/* ==========================================================================
   Max am Kochen · Stylesheet
   Farben, Schriften und Bausteine für alle Seiten.
   ========================================================================== */

/* ---------- Schriften: lokal gespeichert, es wird kein fremder Server gefragt ---------- */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */

:root {
  /* Farbpalette */
  --hafer: #f6efe4;          /* Hintergrund */
  --hafer-tief: #eee4d3;
  --papier: #fffcf7;         /* Karten */
  --espresso: #2b211c;       /* Text */
  --espresso-weich: #5b4d44;
  --paprika: #b5462a;        /* Marke, Knöpfe */
  --paprika-tief: #933620;
  --salbei: #5f6c47;         /* Details */
  --honig: #e4c48e;          /* helle Flächen */
  --linie: rgba(43, 33, 28, 0.14);

  /* Schriften */
  --schrift-titel: "Young Serif", Georgia, "Times New Roman", serif;
  --schrift-text: "Alegreya Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --abschnitt: clamp(4.5rem, 10vw, 8rem);
  --breite: 72rem;
  --radius: 16px;
  --schatten: 0 1px 2px rgba(43, 33, 28, 0.05), 0 18px 40px -22px rgba(43, 33, 28, 0.35);
  --uebergang: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--hafer);
  color: var(--espresso);
  font-family: var(--schrift-text);
  font-size: clamp(1.125rem, 0.35vw + 1.05rem, 1.25rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.45em;
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw + 0.6rem, 5.75rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.1rem, 3vw + 1.1rem, 3.4rem);
}

h3 {
  font-size: clamp(1.35rem, 0.5vw + 1.2rem, 1.6rem);
  line-height: 1.18;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--paprika);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s;
}

a:hover {
  color: var(--paprika-tief);
}

:focus-visible {
  outline: 3px solid var(--paprika);
  outline-offset: 3px;
}

::selection {
  background: var(--honig);
  color: var(--espresso);
}

.huelle {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.nur-vorlesen {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprunglink {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--espresso);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s;
}

.sprunglink:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.kopf.ist-gescrollt {
  border-bottom-color: var(--linie);
}

.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.75rem;
  padding-block: 0.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  color: var(--espresso);
  font-family: var(--schrift-titel);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--espresso);
}

.logo svg {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  transition: transform 0.5s var(--uebergang);
}

.logo:hover svg {
  transform: rotate(-10deg);
}

.logo--klein {
  font-size: 1.2rem;
}

.logo--klein svg {
  width: 2rem;
  height: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav__liste {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__liste a {
  position: relative;
  display: inline-block;
  padding-block: 0.55rem;
  color: var(--espresso);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__liste a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--paprika);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--uebergang);
}

.nav__liste a:hover::after,
.nav__liste a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- Knöpfe und Links ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--paprika);
  box-shadow: 0 10px 22px -12px rgba(181, 70, 42, 0.8);
  color: #fff;
  font-family: var(--schrift-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s var(--uebergang), box-shadow 0.25s;
}

.knopf:hover {
  background: var(--paprika-tief);
  box-shadow: 0 14px 26px -12px rgba(147, 54, 32, 0.8);
  color: #fff;
  transform: translateY(-2px);
}

.knopf:active {
  transform: translateY(0);
}

.knopf svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--uebergang);
}

.knopf:hover svg {
  transform: translateX(3px);
}

.knopf--klein {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  box-shadow: none;
  font-size: 0.98rem;
}

.knopf--dunkel {
  background: var(--espresso);
  box-shadow: none;
}

.knopf--dunkel:hover {
  background: #120d0a;
  box-shadow: none;
}

/* Zweiter, zurückhaltender Knopf auf dunklem Grund */
.knopf--rand {
  border: 1.5px solid rgba(246, 239, 228, 0.55);
  background: transparent;
  box-shadow: none;
  color: var(--hafer);
}

.knopf--rand:hover {
  border-color: var(--hafer);
  background: var(--hafer);
  box-shadow: none;
  color: var(--espresso);
}

/* Zweiter, zurückhaltender Knopf auf hellem Grund */
.knopf--umriss {
  border: 1.5px solid rgba(43, 33, 28, 0.35);
  background: transparent;
  box-shadow: none;
  color: var(--espresso);
}

.knopf--umriss:hover {
  border-color: var(--espresso);
  background: var(--espresso);
  box-shadow: none;
  color: var(--hafer);
}

.knopf[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
}

.textlink span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--uebergang);
}

.textlink:hover span {
  background-size: 100% 1.5px;
}

.textlink svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--uebergang);
}

.textlink:hover svg {
  transform: translateX(4px);
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding-block: var(--abschnitt);
}

.abschnitt--papier {
  background: var(--papier);
  border-block: 1px solid var(--linie);
}

.abschnitt__kopf {
  max-width: 42rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.abschnitt__kopf h2 {
  margin-bottom: 0.35em;
}

.abschnitt__intro {
  margin: 0;
  color: var(--espresso-weich);
  font-size: 1.12em;
}

.dachzeile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--salbei);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dachzeile::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mehr {
  margin: 2.5rem 0 0;
}

/* ---------- Platzhalter für Fotos ---------- */

.platzhalter {
  --ph-grund: var(--honig);
  --ph-symbol: var(--paprika);
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--ph-grund);
  background-image: radial-gradient(130% 100% at 28% 18%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 58%);
  color: var(--ph-symbol);
}

.platzhalter::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0.3;
  pointer-events: none;
}

.platzhalter svg {
  width: clamp(2.5rem, 24%, 6.5rem);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.7s var(--uebergang);
}

.platzhalter--porridge {
  --ph-grund: var(--honig);
  --ph-symbol: var(--paprika);
}

.platzhalter--abend {
  --ph-grund: var(--salbei);
  --ph-symbol: var(--hafer);
}

.platzhalter--brot {
  --ph-grund: var(--paprika);
  --ph-symbol: var(--hafer);
}

.platzhalter--suppe {
  --ph-grund: var(--espresso);
  --ph-symbol: var(--honig);
}

.platzhalter--salat {
  --ph-grund: var(--hafer-tief);
  --ph-symbol: var(--salbei);
}

.platzhalter--backen {
  --ph-grund: var(--hafer-tief);
  --ph-symbol: var(--paprika);
}

.platzhalter--extras {
  --ph-grund: var(--honig);
  --ph-symbol: var(--salbei);
}

.format-4x5 {
  aspect-ratio: 4 / 5;
}

.format-1x1 {
  aspect-ratio: 1 / 1;
}

.format-4x3 {
  aspect-ratio: 4 / 3;
}

/* Rundbogen oben, passt zum Format 4:5 */
.bogen {
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
}

.foto {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--hafer-tief);
}

.foto.bogen {
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
}

/* ---------- Kopfbereich der Startseite ---------- */

.held {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4rem, 8vw, 6.5rem);
}

.held__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.held h1 em {
  color: var(--paprika);
  font-style: normal;
}

.held__lead {
  max-width: 30ch;
  margin-bottom: 2.25rem;
  color: var(--espresso-weich);
  font-size: clamp(1.25rem, 0.9vw + 1rem, 1.5rem);
  line-height: 1.5;
}

.held__aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
}

/* Steht immer in einer eigenen Zeile unter den beiden Knöpfen */
.held__notiz {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  color: var(--espresso-weich);
  font-size: 1rem;
  line-height: 1.4;
}

.held__notiz strong {
  display: block;
  color: var(--espresso);
  font-weight: 700;
}

.held__bild {
  margin: 0;
}

/* ---------- Karten ---------- */

.raster {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.raster--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.karte__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.karte__link:hover {
  color: inherit;
}

.karte__link:hover .platzhalter svg,
.karte__link:focus-visible .platzhalter svg {
  transform: scale(1.08) rotate(-4deg);
}

/* Fotos heben sich beim Darüberfahren leicht an */
.karte__link .foto {
  transition: transform 0.5s var(--uebergang), box-shadow 0.5s;
}

.karte__link:hover .foto,
.karte__link:focus-visible .foto {
  box-shadow: var(--schatten);
  transform: translateY(-4px);
}

.karte__link h3 {
  transition: color 0.2s;
}

.karte__link:hover h3 {
  color: var(--paprika);
}

.karte__link p {
  margin: 0;
  color: var(--espresso-weich);
}

.karte__meta,
.karte__link .karte__meta {
  margin: 1.15rem 0 0.4rem;
  color: var(--salbei);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.serie__nr,
.karte__link .serie__nr {
  margin: 1.25rem 0 0.35rem;
  color: var(--paprika);
  font-family: var(--schrift-titel);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Kurz zu mir ---------- */

.ich {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.ich__foto {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.ich__foto::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 1.5px solid var(--salbei);
  border-radius: var(--radius);
}

.ich__foto img {
  aspect-ratio: 4 / 5;
  object-position: 72% 50%;
}

.ich__text p:not(.dachzeile) {
  max-width: 34rem;
  color: var(--espresso-weich);
}

/* ---------- Einladung zum Folgen ---------- */

.aufruf {
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: var(--espresso);
  color: var(--hafer);
  text-align: center;
}

.aufruf__innen::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0 auto 1.75rem;
  border-radius: 2px;
  background: var(--honig);
}

.aufruf h2 {
  color: var(--hafer);
}

.aufruf p {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: rgba(246, 239, 228, 0.8);
  font-size: 1.2rem;
}

.aufruf .knopf {
  box-shadow: none;
}

.aufruf__knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1rem;
}

.aufruf__handle {
  margin: 1.25rem 0 0;
  color: var(--honig);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

/* ---------- Fußzeile ---------- */

.fuss {
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--linie);
  font-size: 1rem;
}

.fuss__innen {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: start;
}

.fuss__marke p {
  margin: 0.85rem 0 0;
  color: var(--espresso-weich);
}

.fuss__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss__nav a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--espresso);
  text-decoration: none;
}

.fuss__nav a:hover {
  color: var(--paprika);
  text-decoration: underline;
}

.fuss__klein {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  color: var(--espresso-weich);
  font-size: 0.92rem;
}

/* ---------- Unterseiten: Kopfbereich ---------- */

.seitenkopf {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}

.seitenkopf__lead {
  max-width: 38rem;
  margin: 0;
  color: var(--espresso-weich);
  font-size: clamp(1.2rem, 0.7vw + 1rem, 1.4rem);
  line-height: 1.5;
}

/* ---------- Rezepte: Übersicht und Suche ---------- */

.uebersicht {
  padding-block: 0 clamp(3rem, 6vw, 5rem);
}

.uebersicht__titel {
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.1rem);
}

.suche {
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.suche label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.suche input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.7rem 1.1rem 0.7rem 3rem;
  border: 1.5px solid var(--linie);
  border-radius: 999px;
  background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%235b4d44' stroke-width='1.8'/%3E%3Cpath d='M13 13l4 4' stroke='%235b4d44' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 1.1rem center / 18px no-repeat;
  color: var(--espresso);
  font: inherit;
  font-size: 1.05rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.suche input:hover {
  border-color: rgba(43, 33, 28, 0.3);
}

.suche input:focus {
  border-color: var(--paprika);
  background-color: #fff;
  outline: none;
}

.suche__info {
  min-height: 1.6em;
  margin: 0.6rem 0 0;
  color: var(--espresso-weich);
  font-size: 0.98rem;
}

.gruppen {
  display: grid;
  gap: 0.75rem;
}

.gruppe {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--papier);
}

.gruppe > summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.gruppe > summary::-webkit-details-marker {
  display: none;
}

/* Kleiner Punkt in den Farben der jeweiligen Rezeptgruppe */
.gruppe__punkt {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  margin-inline: 3px;
  border-radius: 50%;
  background: var(--ph-symbol);
  box-shadow: 0 0 0 3px var(--ph-grund);
}

.gruppe__zahl {
  margin-left: auto;
  color: var(--espresso-weich);
  font-family: var(--schrift-text);
  font-size: 0.95rem;
}

.gruppe__liste {
  margin: 0;
  padding: 0.25rem 1.25rem 1.25rem;
  list-style: none;
  columns: 3 15rem;
  column-gap: 2.5rem;
}

.gruppe__liste li {
  break-inside: avoid;
}

.gruppe__liste a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--espresso);
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}

.gruppe__liste a:hover {
  color: var(--paprika);
  text-decoration: underline;
}

/* ---------- Rezepte ---------- */

.kategorie {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--linie);
}

.kategorie__kopf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  align-items: center;
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.kategorie__symbol {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--ph-grund);
  color: var(--ph-symbol);
}

.kategorie__symbol svg {
  width: 2.3rem;
  height: 2.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kategorie__kopf h2 {
  margin: 0;
}

.kategorie__kopf p {
  grid-column: 2;
  margin: 0;
  color: var(--espresso-weich);
}

.rezepte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.rezept {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 1.1rem 1.5rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--linie);
  border-radius: calc(var(--radius) + 4px);
  background: var(--papier);
  transition: box-shadow 0.3s;
}

.rezept:hover {
  box-shadow: var(--schatten);
}

.rezept .platzhalter {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.rezept .platzhalter::after {
  inset: 7px;
}

.rezept:hover .platzhalter svg {
  transform: scale(1.08) rotate(-4deg);
}

.rezept__text {
  align-self: center;
}

.rezept__text .karte__meta {
  margin-top: 0;
}

.rezept__text h3 {
  margin-bottom: 0.35rem;
}

.rezept__text p:last-child {
  margin: 0;
  color: var(--espresso-weich);
  font-size: 1.05rem;
  line-height: 1.5;
}

.rezept__details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--linie);
}

.rezept__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding-top: 0.9rem;
  color: var(--espresso);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.rezept__details summary::-webkit-details-marker {
  display: none;
}

.rezept__details summary::after,
.gruppe > summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--hafer) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1.5v11M1.5 7h11' fill='none' stroke='%232b211c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform 0.35s var(--uebergang), background-color 0.2s;
}

.rezept__details summary:hover::after,
.gruppe > summary:hover::after {
  background-color: var(--honig);
}

.rezept__details[open] summary::after,
.gruppe[open] > summary::after {
  transform: rotate(45deg);
}

.rezept__inhalt {
  padding: 0.5rem 0 0.25rem;
  font-size: 1.05rem;
}

.rezept__inhalt h4 {
  margin: 1rem 0 0.5rem;
  color: var(--salbei);
  font-family: var(--schrift-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rezept__inhalt ul,
.rezept__inhalt ol {
  margin: 0;
  padding-left: 1.25rem;
}

.rezept__inhalt li {
  margin-bottom: 0.3rem;
  padding-left: 0.25rem;
}

.rezept__inhalt li::marker {
  color: var(--paprika);
}

.rezept__inhalt ol li::marker {
  font-weight: 700;
}

/* Zwischenüberschrift in der Zutatenliste, zum Beispiel „Dressing“ */
.rezept__inhalt .rezept__zwischen {
  margin: 0.8rem 0 0.35rem -1.25rem;
  padding-left: 0;
  font-weight: 700;
  list-style: none;
}

.rezept__video,
.rezept__notiz {
  margin: 0;
}

.rezept__notiz {
  margin-top: 0.9rem;
  color: var(--espresso-weich);
  font-size: 0.98rem;
}

.rezept__zurueck {
  margin: 1rem 0 0;
}

.rezept__zurueck a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
}

.rezept__zurueck a:hover {
  text-decoration: underline;
}

.rezept__zurueck svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Echtes Rezeptfoto statt Platzhalter */
.rezept__foto {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

/* ---------- Über mich ---------- */

.ueber__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.ueber__foto {
  margin: 0;
}

.ueber__aktion {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-top: 2rem;
}

.ueber__foto img {
  aspect-ratio: 4 / 5;
  object-position: 72% 50%;
}

.geschichte {
  max-width: 44rem;
}

.geschichte p:not(.dachzeile) {
  color: var(--espresso-weich);
}

.zeitstrahl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.zeitstrahl::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--linie);
}

.zeitstrahl li {
  position: relative;
  padding-top: 2.1rem;
}

.zeitstrahl li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--paprika);
  border-radius: 50%;
  background: var(--hafer);
  transition: transform 0.3s var(--uebergang);
}

.zeitstrahl li:hover::before {
  transform: scale(1.25);
}

.zeitstrahl li:last-child::before {
  background: var(--paprika);
}

/* Die Linie endet beim letzten Punkt */
.zeitstrahl li:last-child {
  background: var(--hafer);
}

.zeitstrahl__datum {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  line-height: 1.2;
}

.zeitstrahl__text {
  display: block;
  color: var(--espresso-weich);
  font-size: 1rem;
  line-height: 1.45;
}

.grundsaetze {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.grundsatz {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--hafer);
  transition: transform 0.35s var(--uebergang), box-shadow 0.35s;
}

.grundsatz:hover {
  box-shadow: var(--schatten);
  transform: translateY(-3px);
}

.grundsatz svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: var(--paprika);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grundsatz h3 {
  font-size: 1.45rem;
}

.grundsatz p {
  margin: 0;
  color: var(--espresso-weich);
}

/* ---------- Kontaktformular ---------- */

.kontakt {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.kontakt__text p:not(.dachzeile) {
  color: var(--espresso-weich);
}

.formular {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--linie);
  border-radius: calc(var(--radius) + 4px);
  background: var(--papier);
}

.feld {
  display: grid;
  gap: 0.4rem;
}

.feld--breit {
  grid-column: 1 / -1;
}

.feld label {
  font-size: 1rem;
  font-weight: 700;
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: var(--hafer);
  color: var(--espresso);
  font: inherit;
  font-size: 1.05rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.feld select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.5l4 4 4-4' fill='none' stroke='%232b211c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 0.95rem center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.feld textarea {
  min-height: 9.5rem;
  line-height: 1.5;
  resize: vertical;
}

.feld input:hover,
.feld select:hover,
.feld textarea:hover {
  border-color: var(--linie);
}

.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  border-color: var(--paprika);
  background-color: #fff;
  outline: none;
}

.formular__hinweis {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--espresso-weich);
  font-size: 0.98rem;
}

.formular__fuss {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 1rem 1.25rem;
}

.formular__status {
  margin: 0;
  font-weight: 500;
}

.formular__status[data-art="ok"] {
  color: var(--salbei);
}

.formular__status[data-art="fehler"] {
  color: var(--paprika-tief);
}

/* Unsichtbares Feld gegen Spam-Roboter */
.falle {
  position: absolute;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Impressum und Datenschutz ---------- */

.rechtstext {
  max-width: 46rem;
  padding-bottom: var(--abschnitt);
}

.rechtstext h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 1.9rem);
}

.rechtstext h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.rechtstext address {
  margin-bottom: 1em;
  font-style: normal;
}

.rechtstext ul {
  padding-left: 1.25rem;
}

.rechtstext li {
  margin-bottom: 0.35rem;
}

.hinweis {
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--honig);
  border-left: 5px solid var(--honig);
  border-radius: 12px;
  background: #fbf1dc;
  font-size: 1.02rem;
}

.hinweis strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- Sanftes Einblenden beim Scrollen ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--uebergang), transform 0.8s var(--uebergang);
}

.js .reveal.ist-sichtbar {
  opacity: 1;
  transform: none;
}

.js .raster > .reveal:nth-child(2),
.js .rezepte > .reveal:nth-child(2),
.js .grundsaetze > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js .raster > .reveal:nth-child(3),
.js .rezepte > .reveal:nth-child(3),
.js .grundsaetze > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.js .rezepte > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .held__raster,
  .ueber__raster,
  .kontakt {
    grid-template-columns: minmax(0, 1fr);
  }

  .held__bild,
  .ueber__foto {
    max-width: 30rem;
  }

  .rezepte {
    grid-template-columns: minmax(0, 1fr);
  }

  .zeitstrahl {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .zeitstrahl::before {
    top: 0.5rem;
    right: auto;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 2px;
    height: auto;
  }

  .zeitstrahl li {
    padding-top: 0;
    padding-left: 2.25rem;
  }

  .zeitstrahl li::before {
    top: 0.1rem;
  }

  .grundsaetze {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Handy: eigener Durchgang ---------- */

@media (max-width: 700px) {
  /* Kopfzeile: nur Logo und zwei Links, der Folgen-Knopf sitzt direkt im Kopfbereich */
  .nav__knopf {
    display: none;
  }

  .kopf__innen {
    min-height: 4rem;
    column-gap: 0.75rem;
  }

  .logo {
    gap: 0.45rem;
    font-size: 1.08rem;
  }

  .logo svg {
    width: 1.85rem;
    height: 1.85rem;
  }

  .nav__liste {
    gap: 1rem;
  }

  .nav__liste a {
    font-size: 0.98rem;
  }

  /* Kopfbereich: Text zuerst, Bild kürzer */
  .held {
    padding-top: 1.5rem;
  }

  .held__raster {
    gap: 2.25rem;
  }

  .held__lead {
    margin-bottom: 1.75rem;
  }

  .held__aktion .knopf {
    width: 100%;
  }

  .held__bild .platzhalter,
  .held__bild .foto {
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
  }

  /* Serien: kompakte Zeilen mit kleinem Bild */
  .raster--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .serie .karte__link {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0 1.1rem;
    align-items: start;
  }

  .serie .platzhalter,
  .serie .foto {
    grid-row: 1 / span 3;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .serie .platzhalter::after {
    inset: 6px;
  }

  .serie .karte__link > :not(.platzhalter):not(.foto) {
    grid-column: 2;
  }

  .karte__link .serie__nr {
    margin-top: 0.15rem;
  }

  .serie h3 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
  }

  .serie p:last-child {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  /* Lieblingsrezepte: zum Wischen nebeneinander */
  .raster--wisch {
    grid-template-columns: none;
    grid-auto-columns: minmax(14.5rem, 76%);
    grid-auto-flow: column;
    margin-inline: calc(-1 * var(--rand));
    padding: 0 var(--rand) 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--rand);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .raster--wisch::-webkit-scrollbar {
    display: none;
  }

  .raster--wisch > * {
    scroll-snap-align: start;
  }

  .raster--wisch .platzhalter,
  .raster--wisch .foto {
    aspect-ratio: 1 / 1;
  }

  /* Kurz zu mir */
  .ich {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .ich__foto {
    max-width: 19rem;
  }

  .ich__foto::before {
    inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  }

  .ich__foto img {
    aspect-ratio: 1 / 1;
  }

  /* Rezepte: kleines Bild links, Details darunter */
  .rezept {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.9rem 1rem;
  }

  .rezept .platzhalter::after {
    inset: 5px;
  }

  .rezept__text {
    align-self: start;
  }

  .rezept__text h3 {
    font-size: 1.22rem;
  }

  .rezept__text p:last-child {
    font-size: 1rem;
  }

  .kategorie__symbol {
    width: 3.25rem;
    height: 3.25rem;
  }

  .kategorie__symbol svg {
    width: 1.9rem;
    height: 1.9rem;
  }

  /* Über mich: Foto kleiner */
  .ueber__foto {
    max-width: 21rem;
  }

  .ueber__foto img {
    aspect-ratio: 1 / 1;
  }

  .ueber__foto .bogen {
    border-radius: 50% 50% var(--radius) var(--radius) / 50% 50% var(--radius) var(--radius);
  }

  /* Über mich: Knöpfe untereinander */
  .ueber__aktion .knopf {
    width: 100%;
  }

  /* Rezept-Übersicht: größere Tippflächen */
  .gruppe > summary {
    padding-inline: 1rem;
    font-size: 1.15rem;
  }

  .gruppe__liste {
    padding-inline: 1rem;
  }

  .gruppe__liste a {
    padding: 0.5rem 0;
  }

  /* Formular einspaltig */
  .formular {
    grid-template-columns: minmax(0, 1fr);
  }

  .formular__fuss .knopf {
    width: 100%;
  }

  /* Einladung zum Folgen */
  .aufruf .knopf {
    width: 100%;
    max-width: 22rem;
  }

  /* Fußzeile untereinander */
  .fuss__innen {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Sehr schmale Handys: Kopfzeile wird zweizeilig und scrollt mit ---------- */

@media (max-width: 359px) {
  .kopf {
    position: static;
  }

  html {
    scroll-padding-top: 1rem;
  }
}

/* ---------- Weniger Bewegung, wenn im System so eingestellt ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
