/* ============================================================
   Lettinis — Startseite der Rezepte
   Ergaenzt rezepte.css. Dieselbe Formsprache wie im Shop-Theme:
   kein Beige, kein Gold, keine runden Ecken, keine Schatten.
   Karo-Rot markiert ausschliesslich Klickbares, Verde ist die
   Auszeichnungsfarbe fuer Rubriken.
   ============================================================ */

/* --- Buehne --------------------------------------------------------- */

/* Der Aufmacher ist ein Rezept, kein Dekobild. Links steht, worum es
   geht, rechts das Gericht, das gerade Saison hat — beides verlinkt. */
.buehne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    /* Nur oben und unten. Als Kurzform geschrieben nahm die Null in der
       Mitte dem umschliessenden .huelle den seitlichen Abstand — auf dem
       Telefon klebte der ganze Aufmacher am Rand. */
    padding-block: clamp(36px, 6vw, 76px) clamp(30px, 5vw, 60px);
}

@media (max-width: 899px) {
    .buehne { grid-template-columns: 1fr; }
}

.buehne h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: 8px 0 0;
    max-width: 14ch;
}

.buehne__intro {
    font-size: clamp(1.063rem, 2vw, 1.313rem);
    line-height: 1.55;
    color: var(--gray-700);
    max-width: 46ch;
    margin: 22px 0 0;
}

.buehne__aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.knopf {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 13px 26px;
    font-weight: 700;
    font-size: .938rem;
    letter-spacing: .01em;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    color: var(--near-black);
    background: var(--white);
}
.knopf:hover { border-color: var(--akzent); color: var(--akzent); }

.knopf--haupt {
    background: var(--karo-red);
    border-color: var(--karo-red);
    color: var(--white);
}
.knopf--haupt:hover { background: var(--crimson); border-color: var(--crimson); color: var(--white); }

/* Zahlen statt Behauptungen: Sie sind pruefbar und stehen als Text da,
   wo ein Suchagent sie findet. */
.zahlen {
    display: flex;
    flex-wrap: wrap;
    gap: 0 clamp(24px, 4vw, 48px);
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid var(--gray-100);
}
.zahlen div { padding-right: 4px; }
.zahlen dt { font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; }
.zahlen dd {
    margin: 2px 0 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* --- Aufmacher des Monats ------------------------------------------- */

.aufmacher { display: block; text-decoration: none; color: inherit; }
.aufmacher img { width: 100%; height: auto; display: block; background: var(--gray-050); }
.aufmacher__titel {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-top: 16px;
}
.aufmacher:hover .aufmacher__titel { color: var(--karo-red); }
.aufmacher__text { font-size: .938rem; color: var(--gray-600); margin: 6px 0 0; max-width: 44ch; }

/* --- Sektionskopf ---------------------------------------------------- */

.kopfzeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.kopfzeile h2 { margin: 0; }
.kopfzeile a {
    font-weight: 700;
    font-size: .875rem;
    color: var(--karo-red);
    text-decoration: none;
    white-space: nowrap;
}
.kopfzeile a:hover { text-decoration: underline; }

/* --- Kachelreihen ---------------------------------------------------- */

.reihe {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 32px);
}

@media (max-width: 899px) { .reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .reihe { grid-template-columns: 1fr; } }

.kachel { display: block; text-decoration: none; color: inherit; }
.kachel img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    background: var(--gray-050);
}
.kachel__meta {
    font-size: .688rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--akzent);
    margin-top: 14px;
}
.kachel__titel { font-weight: 700; font-size: 1.125rem; letter-spacing: -.015em; margin-top: 4px; }
.kachel:hover .kachel__titel { color: var(--karo-red); }

/* --- Einstiege nach Gang --------------------------------------------- */

.einstiege {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0;
    border-top: 1px solid var(--gray-200);
    border-left: 1px solid var(--gray-200);
}

.einstieg {
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    display: block;
}
.einstieg:hover { background: var(--gray-050); }
.einstieg__name { font-weight: 700; font-size: 1.125rem; letter-spacing: -.015em; }
.einstieg:hover .einstieg__name { color: var(--karo-red); }
.einstieg__zahl { font-size: .813rem; color: var(--gray-500); margin-top: 2px; }
.einstieg__text { font-size: .813rem; color: var(--gray-600); margin-top: 8px; line-height: 1.5; }

/* --- Regionen: Karte und Liste ---------------------------------------- */

.landkarte {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 60px);
    align-items: start;
}

@media (max-width: 767px) {
    .landkarte { grid-template-columns: 1fr; }
    .landkarte__bild { max-width: 200px; }
}

.landkarte__bild { width: 100%; height: auto; display: block; overflow: visible; }

/* Jede Region ist eine eigene Flaeche. Im Ruhezustand sehen alle gleich
   aus; erst beim Ueberfahren faerbt sich die eine ein. */
.landkarte__bild path {
    fill: var(--gray-050);
    stroke: var(--akzent);
    stroke-width: 2.2;
    stroke-linejoin: round;
    transition: fill .18s ease;
}

.region { cursor: pointer; }
.region--leer { cursor: default; }
.region--leer path { fill: var(--white); stroke: var(--gray-200); }

.region:hover path,
.region:focus path,
.region.ist-aktiv path {
    fill: var(--akzent);
    stroke: var(--akzent);
    stroke-width: 3;
}

.region:focus { outline: none; }
.region:focus-visible path { stroke: var(--karo-red); stroke-width: 4; }

/* Beschriftung ueber der Karte. Sie behaelt ihre Hoehe, auch wenn nichts
   ausgewaehlt ist — sonst springt die Karte bei jeder Mausbewegung. */
.landkarte__name {
    min-height: 2.6em;
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 1.063rem;
    letter-spacing: -.012em;
    line-height: 1.3;
}
.landkarte__name span { display: block; font-weight: 500; font-size: .813rem; color: var(--gray-500); }
.landkarte__name:empty::before { content: "Fahr über die Karte"; color: var(--gray-500); font-weight: 500; }

.regionsliste {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3 180px;
    column-gap: 32px;
}
.regionsliste li { break-inside: avoid; }
.regionsliste a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: var(--near-black);
    font-size: .938rem;
}
.regionsliste a:hover,
.regionsliste a.ist-aktiv { color: var(--karo-red); }
.regionsliste span { color: var(--gray-500); font-variant-numeric: tabular-nums; }

/* --- Merkmalsknoepfe --------------------------------------------------- */

.marken { display: flex; flex-wrap: wrap; gap: 12px; }
.marke {
    border: 1px solid var(--gray-200);
    padding: 11px 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    color: var(--near-black);
}
.marke:hover { border-color: var(--akzent); color: var(--akzent); }
.marke span { color: var(--gray-500); font-weight: 500; margin-left: 8px; }

/* --- Buecher ----------------------------------------------------------- */

.buecher { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.buch {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    border: 1px solid var(--gray-200);
    padding: 22px;
    text-decoration: none;
    color: inherit;
}
.buch:hover { border-color: var(--akzent); }
.buch img { width: 100%; height: auto; display: block; background: var(--gray-050); }
.buch > span { display: block; }
.buch__titel { display: block; font-weight: 700; font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.3; }
.buch__text { display: block; font-size: .875rem; color: var(--gray-600); margin-top: 10px; line-height: 1.55; }
.buch__preise { display: block; font-size: .75rem; color: var(--akzent); font-weight: 700; margin-top: 12px; line-height: 1.5; }

/* --- Wer kocht hier ----------------------------------------------------- */

.person {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    border-top: 1px solid var(--gray-100);
    padding-top: clamp(30px, 5vw, 54px);
}

@media (max-width: 599px) {
    .person { grid-template-columns: 1fr; }
    .person__foto { max-width: 150px; }
}

.person__foto { width: 100%; height: auto; display: block; border-radius: 50%; }
.person p { max-width: var(--lesebreite); }

/* Einzige Ausnahme von „keine runden Ecken": das Portrait. Ein Gesicht im
   Kreis liest sich als Person, im Rechteck als Produktfoto. */

/* --- A bis Z ------------------------------------------------------------ */

.azliste {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 4 210px;
    column-gap: 32px;
    font-size: .875rem;
}
.azliste li { break-inside: avoid; padding: 5px 0; }
.azliste a { color: var(--gray-700); text-decoration: none; }
.azliste a:hover { color: var(--karo-red); text-decoration: underline; }

/* --- Druck -------------------------------------------------------------- */

@media print {
    .buehne__aktionen, .einstiege, .marken, .landkarte__bild { display: none; }
}

/* --- Buchaufmacher ---------------------------------------------------- */

/* Die beiden Buecher stehen vor allem anderen. Sie sind die Quelle der
   Rezepte — wer hier landet, soll das in der ersten Sekunde sehen. */
.buchaufmacher {
    background: var(--gray-050);
    border-bottom: 1px solid var(--gray-200);
    padding: clamp(34px, 5vw, 62px) 0;
}

.buchaufmacher__inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 767px) {
    .buchaufmacher__inner { grid-template-columns: 1fr; gap: 26px; }
}

/* Beide Cover stehen frei nebeneinander, jedes leicht gekippt. Sie
   ueberlappen bewusst nicht: Das eine wuerde sonst den Titel des anderen
   anschneiden, und beide Titel fangen oben links an. */
.buchaufmacher__cover {
    display: flex;
    align-items: flex-end;
    gap: clamp(14px, 2vw, 26px);
    padding: 10px 6px 14px;
}

.buchcover {
    display: block;
    transition: transform .35s ease;
}

.buchcover img {
    display: block;
    width: auto;
    height: clamp(160px, 21vw, 270px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .10),
                0 18px 40px rgba(0, 0, 0, .18);
}

.buchcover--gusto  { transform: rotate(-2.5deg); }
.buchcover--puglia { transform: rotate(2deg); }

.buchcover--gusto:hover  { transform: rotate(-2.5deg) translateY(-8px); }
.buchcover--puglia:hover { transform: rotate(2deg) translateY(-8px); }

@media (prefers-reduced-motion: reduce) {
    .buchcover, .buchcover:hover { transform: none; transition: none; }
}

.buchaufmacher__text p {
    font-size: clamp(.938rem, 1.7vw, 1.063rem);
    line-height: 1.65;
    color: var(--gray-700);
    max-width: 58ch;
    margin: 12px 0 0;
}

.buchaufmacher__text strong { color: var(--near-black); font-weight: 700; }

.buchaufmacher__zeile {
    font-weight: 600;
    color: var(--near-black) !important;
}


@media (max-width: 599px) {
    /* .kachel__meta stand bei 11px — zusammen mit der Sperrung war das auf
       dem Telefon zu klein. */
    .kachel__meta { font-size: .75rem; }
}
