/* Piranha Speisekarte – Frontend (0.2.0)
 *
 * Alle Farben und Maße laufen über CSS-Variablen. Das Theme überschreibt sie,
 * z. B. :root { --piranha-bg: #0b0b0d; --piranha-accent: #19d3c5; }
 */

.piranha-speisekarte {
	--piranha-text: #1b1b1f;
	--piranha-muted: #5f6368;
	--piranha-line: #e3e3e6;
	--piranha-leader: #b9b9bf;
	--piranha-surface: #f5f5f7;
	--piranha-hero-bg: #141418;
	--piranha-on-hero: #ffffff;
	--piranha-accent: #1b1b1f;
	--piranha-radius: 10px;
	--piranha-max: 1100px;

	max-width: var(--piranha-max);
	margin: 0 auto;
	font-family: inherit;
	color: var(--piranha-text);
}

.piranha-speisekarte *,
.piranha-speisekarte *::before,
.piranha-speisekarte *::after {
	box-sizing: border-box;
}

/* Nur für Screenreader sichtbar */
.piranha-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Übersicht: Kacheln ---- */
.piranha-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: 1rem;
	width: 100%;
}

.piranha-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 220px;
	padding: 1.5rem;
	background-color: var(--piranha-hero-bg);
	background-size: cover;
	background-position: center;
	border-radius: var(--piranha-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--piranha-on-hero);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.piranha-tile:hover,
.piranha-tile:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	color: var(--piranha-on-hero);
	text-decoration: none;
}

.piranha-tile:focus-visible {
	outline: 3px solid var(--piranha-accent);
	outline-offset: 3px;
}

.piranha-tile-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.75) 100%);
}

.piranha-tile-label {
	position: relative;
	z-index: 1;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
	.piranha-tile { transition: none; }
	.piranha-tile:hover, .piranha-tile:focus-visible { transform: none; }
}

/* ---- Detailseite: Hero ---- */
.piranha-hero {
	position: relative;
	min-height: 260px;
	background-color: var(--piranha-hero-bg);
	background-size: cover;
	background-position: center;
	border-radius: var(--piranha-radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.piranha-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.piranha-hero-inner {
	position: relative;
	z-index: 1;
	padding: 1.5rem 1.5rem 2rem;
	color: var(--piranha-on-hero);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 260px;
}

.piranha-back {
	color: var(--piranha-on-hero);
	text-decoration: none;
	font-size: 0.95rem;
	align-self: flex-start;
	padding: 0.25rem 0;
}

.piranha-back:hover,
.piranha-back:focus-visible {
	text-decoration: underline;
	color: var(--piranha-on-hero);
}

.piranha-hero-title {
	margin: 0;
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	font-weight: 700;
	color: var(--piranha-on-hero);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---- Intro / Tags ---- */
.piranha-intro {
	font-size: 1.05rem;
	color: var(--piranha-muted);
	margin: 0 0 1rem;
}

.piranha-tags {
	color: var(--piranha-muted);
	font-size: 0.95rem;
	margin: 0 0 1.5rem;
}

/* ---- Sektionen / Sub-Sektionen ---- */
.piranha-section {
	margin-top: 2.25rem;
}

.piranha-section:first-of-type {
	margin-top: 1rem;
}

.piranha-section-title {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--piranha-accent);
}

.piranha-subsection-title {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 1rem 0 0.4rem;
}

.piranha-section-intro {
	color: var(--piranha-muted);
	font-size: 0.95rem;
	margin: -0.25rem 0 0.75rem;
	line-height: 1.45;
}

.piranha-subsections--two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 700px) {
	.piranha-subsections--two-col {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ---- Outro / Hinweis-Block ---- */
.piranha-outro {
	margin: 2.5rem 0 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--piranha-surface);
	border-radius: var(--piranha-radius);
	text-align: center;
	font-weight: 600;
}

.piranha-outro p {
	margin: 0;
}

/* ---- Artikel ---- */
.piranha-items {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.piranha-item {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--piranha-line);
}

.piranha-item:last-child {
	border-bottom: 0;
}

.piranha-item-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.piranha-item-name {
	font-weight: 600;
	flex: 0 1 auto;
}

.piranha-item-unit {
	font-weight: 400;
	font-size: 0.9em;
	color: var(--piranha-muted);
	margin-left: 0.35rem;
}

.piranha-marker {
	font-size: 0.7em;
	font-weight: 500;
	color: var(--piranha-muted);
	margin-left: 0.25rem;
	vertical-align: super;
}

.piranha-leader {
	flex: 1 1 auto;
	border-bottom: 1px dotted var(--piranha-leader);
	transform: translateY(-4px);
	min-width: 1rem;
}

.piranha-item-price {
	font-weight: 700;
	flex: 0 0 auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.piranha-item-desc {
	margin: 0.35rem 0 0;
	color: var(--piranha-muted);
	font-size: 0.95rem;
}

.piranha-item-desc p {
	margin: 0.25rem 0;
}

.piranha-empty {
	padding: 1rem;
	color: var(--piranha-muted);
	font-style: italic;
}

/* ---- Legende ---- */
.piranha-legende {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--piranha-surface);
	border-radius: var(--piranha-radius);
	font-size: 0.9rem;
}

.piranha-legende h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.piranha-legende ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.piranha-legende li {
	padding: 0.15rem 0;
}
