/* =========================================================
   Knusperfreund – altmodischer Marktstand-Look
   Schwarz + Rosa + Wortmarke bleiben (mag der Kunde).
   Charakter kommt aus: harten Schlagschatten (Aufkleber),
   Stempel, Polaroids, Handschrift, warmem Papier.
   ---------------------------------------------------------
   --schwarz      #241D18  warmes Fast-Schwarz (Text, dunkler Block)
   --schwarz-tief #17110D  Fuß
   --rosa         #FF5A8A  Hauptakzent (Buttons, Stempel)
   --rosa-tief    #DE3A6C  Rosa für Text/Links (mehr Kontrast)
   --papier       #F7EFE1  warmes Papier, Grund
   --papier-2     #EFE3D0  Panels
   ========================================================= */

:root {
  --schwarz:      #241D18;
  --schwarz-tief: #17110D;
  --rosa:         #FF5A8A;
  --rosa-tief:    #DE3A6C;
  --papier:       #F7EFE1;
  --papier-2:     #EFE3D0;
  --tinte-leise:  #6E6055;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --hand:    "Caveat", "Segoe Script", cursive;
  --body:    "Work Sans", system-ui, sans-serif;

  --breite: 1120px;
  --lauf:   clamp(1.25rem, 5vw, 4rem);
  --schatten: 5px 5px 0 var(--schwarz);   /* harter Aufkleber-Schatten */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--schwarz);
  background: var(--papier);
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* zarte Papier-Körnung über allem */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .fuss { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--schwarz); color: var(--papier);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--rosa-tief);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Wiederkehrende Teile ---------- */

.wortmarke {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.4rem;
}
.wortmarke__knusper { color: var(--schwarz); }
.wortmarke__freund  { color: var(--rosa); }
.wortmarke--gross {
  display: block;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  margin: 0.4rem 0 1.4rem;
  line-height: 0.95;
  max-width: 100%;
}
/* schmale Screens: "Knusper" und "freund" untereinander, damit nichts abgeschnitten wird */
@media (max-width: 560px) {
  .wortmarke--gross .wortmarke__knusper,
  .wortmarke--gross .wortmarke__freund { display: block; }
}

/* handschriftliche Randnotizen */
.krakel {
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rosa-tief);
  transform: rotate(-2deg);
  margin: 1.2rem 0 0;
}
.krakel--hell { color: var(--rosa); }

.klotz-titel {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem);
}

/* ---------- HERO / Eintrag (das Erste) ---------- */

.hallo {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 8vh, 5rem) var(--lauf);
  position: relative;
  overflow: hidden; /* haelt den gedrehten Stempel drin, kein Querscroll */
  background:
    radial-gradient(120% 90% at 50% -10%, #FDE7EF 0%, transparent 55%),
    var(--papier);
}

.hallo__inhalt { width: 100%; max-width: 640px; min-width: 0; }

.gruss {
  font-family: var(--hand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--rosa-tief);
  margin: 0;
  transform: rotate(-1.5deg);
}

.hallo__pitch {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--schwarz);
  max-width: 52ch;
  margin: 0 auto 2rem;
}
.hallo__pitch strong { color: var(--rosa-tief); }

/* das Eintragefeld */
.eintrag {
  display: flex;
  gap: 0.7rem;
  max-width: 520px;
  margin: 0 auto;
}
.eintrag__input {
  flex: 1;
  min-width: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
  color: var(--schwarz);
  background: #fff;
  border: 2.5px solid var(--schwarz);
  border-radius: 4px;
  box-shadow: var(--schatten);
}
.eintrag__input::placeholder { color: #9a8d7f; }
.eintrag__input:focus { outline: none; border-color: var(--rosa-tief); }

.eintrag__button {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  color: var(--schwarz);
  background: var(--rosa);
  border: 2.5px solid var(--schwarz);
  border-radius: 4px;
  box-shadow: var(--schatten);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.eintrag__button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--schwarz); }
.eintrag__button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--schwarz); }

.eintrag__status {
  min-height: 1.4rem;
  margin: 1.1rem auto 0;
  max-width: 520px;
  font-weight: 600;
  color: var(--rosa-tief);
}
.eintrag__status[data-typ="fehler"] { color: #B01B45; }

.handnotiz {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--tinte-leise);
  margin: 0.8rem 0 0;
}

/* Auf schmalen Screens: Feld und Button untereinander */
@media (max-width: 540px) {
  .eintrag { flex-direction: column; }
  .eintrag__button { width: 100%; }
}

/* Stempel oben rechts */
.stempel {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 5vw, 5rem);
  width: 118px; height: 118px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 3px double var(--rosa-tief);
  border-radius: 50%;
  color: var(--rosa-tief);
  transform: rotate(-11deg);
  opacity: 0.9;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
}
.stempel::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1.5px solid var(--rosa-tief);
  border-radius: 50%;
}
.stempel__zeile1 { font-size: 0.8rem; font-weight: 700; }
.stempel__zeile2 { font-size: 0.95rem; font-weight: 800; }
@media (max-width: 560px) { .stempel { width: 92px; height: 92px; } .stempel__zeile2 { font-size: 0.8rem; } }

/* Scroll-Hinweis */
.runter {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  text-decoration: none;
  color: var(--tinte-leise);
  font-family: var(--hand);
  font-size: 1.25rem;
  text-align: center;
}
.runter__pfeil {
  font-size: 1.3rem;
  animation: huepf 1.8s ease-in-out infinite;
}
@keyframes huepf { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-height: 680px) { .runter { display: none; } }

/* ---------- Erdbeere / Wandler ---------- */

.erdbeere {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--lauf);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .erdbeere { grid-template-columns: 1fr; } }
.erdbeere__text p { color: var(--tinte-leise); max-width: 46ch; margin: 1.2rem 0 0; }
.erdbeere__text .klotz-titel { color: var(--schwarz); }
.erdbeere__text .krakel { font-size: 1.7rem; }

.wandler { margin: 0; }
.wandler__buehne {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--schwarz);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--schatten);
  background: var(--papier-2);
  user-select: none;
  touch-action: pan-y;
}
.wandler__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wandler__klippe {
  position: absolute; inset: 0;
  width: 50%; overflow: hidden;
  border-right: 3px solid var(--schwarz);
}
.wandler__bild--vorher { width: var(--buehne-breite, 100%); max-width: none; }

.wandler__marke {
  position: absolute; bottom: 0.9rem;
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 4px;
  background: var(--schwarz); color: var(--papier);
  pointer-events: none;
}
.wandler__marke--links  { left: 0.9rem; }
.wandler__marke--rechts { right: 0.9rem; }

.wandler__griff {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--schwarz);
  transform: translateX(-50%); pointer-events: none;
}
.wandler__griff-knopf {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: var(--rosa);
  border: 3px solid var(--schwarz);
  border-radius: 50%;
  display: grid; place-items: center;
}
.wandler__griff-knopf::before {
  content: "↔";
  font-family: var(--body);
  font-weight: 700;
  color: var(--schwarz);
  font-size: 1.1rem;
}
.wandler__regler {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}

/* ---------- Rezept (dunkler Block) ---------- */

.rezept {
  background: var(--schwarz);
  padding: clamp(3rem, 8vw, 6rem) var(--lauf);
}
.rezept__karte {
  max-width: 720px;
  margin: 0 auto;
  background: var(--papier);
  border: 3px solid var(--rosa);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--rosa);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
}
.rezept__eyebrow {
  font-family: var(--hand);
  font-size: 1.5rem; font-weight: 700;
  color: var(--rosa-tief);
  margin: 0;
}
.rezept__titel {
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  margin: 0.3rem 0 1.75rem;
}
.rezept__liste {
  list-style: none; margin: 0; padding: 0;
  text-align: left;
  display: grid; gap: 1.1rem;
}
.rezept__liste li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 2px dashed color-mix(in srgb, var(--schwarz) 25%, transparent);
}
.rezept__liste li:last-child { border-bottom: 0; padding-bottom: 0; }
.rezept__liste p { margin: 0; color: var(--schwarz); }
.rezept__nr {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--papier);
  background: var(--rosa-tief);
  border-radius: 50%;
}
.rezept__zutaten {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 1.75rem 0 0;
}
.rezept__zutaten strong { color: var(--rosa-tief); }
.rezept__karte .krakel { display: inline-block; margin-top: 0.5rem; }

/* ---------- Markt ---------- */

.markt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--lauf) clamp(3.5rem, 9vw, 7rem);
}
/* Polaroids */
.polaroids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(5.5rem, 13vw, 10rem);
}
.polaroid {
  margin: 0;
  background: #fff;
  padding: 0.7rem 0.7rem 0;
  border: 1px solid #e6dccb;
  box-shadow: var(--schatten);
  width: min(300px, 80vw);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--papier-2);
}
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--schwarz);
  text-align: center;
  padding: 0.5rem 0.3rem 0.9rem;
}
.polaroid--a { transform: rotate(-3deg); }
.polaroid--b { transform: rotate(2deg); margin-top: 1.2rem; }
.polaroid--c { transform: rotate(-1.5deg); }
.polaroid--a:hover, .polaroid--b:hover, .polaroid--c:hover { transform: rotate(0) scale(1.02); transition: transform 0.2s ease; }

/* Termine */
.termine {
  margin: 0 auto;
  max-width: 720px;
  border: 2.5px solid var(--schwarz);
  border-radius: 8px;
  box-shadow: var(--schatten);
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.termine__kopf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.termine__titel { font-size: 1.5rem; margin: 0; }

/* "bald verfuegbar"-Hinweis mit pulsierendem Punkt */
.bald {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rosa-tief);
  background: color-mix(in srgb, var(--rosa) 16%, transparent);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.bald__punkt {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rosa);
  flex-shrink: 0;
  animation: pulsieren 1.8s ease-out infinite;
}
@keyframes pulsieren {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rosa) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.termine__liste { list-style: none; margin: 0; padding: 0; }
.termin {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 2px dashed color-mix(in srgb, var(--schwarz) 20%, transparent);
}
.termin__tag { font-weight: 700; }
.termin__ort { color: var(--tinte-leise); }
.termin__zeit { font-family: var(--display); font-weight: 700; color: var(--rosa-tief); }
.termine__hinweis { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--tinte-leise); }
.termine__hinweis a { color: var(--rosa-tief); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .termin { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Wer wir sind ---------- */

.wir {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--lauf);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .wir { grid-template-columns: 1fr; } }
.wir__text p { color: var(--tinte-leise); max-width: 50ch; margin: 1.1rem 0 0; }
.wir__text .krakel { font-size: 1.7rem; }
.polaroid--gross { width: min(420px, 90vw); transform: rotate(-2deg); margin: 0 auto; }
.polaroid--gross img { aspect-ratio: 5 / 4; }
@media (max-width: 820px) { .polaroid--gross { order: -1; } }

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

.fuss {
  background: var(--schwarz-tief);
  color: #C9BCAD;
  padding: clamp(2.5rem, 5vw, 4rem) var(--lauf) 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.fuss__marke .wortmarke__knusper { color: var(--papier); }
.fuss__marke p { margin: 0.6rem 0 0; font-size: 0.9rem; color: #8b7d6d; max-width: 28ch; }
.fuss__links, .fuss__kontakt { display: flex; flex-direction: column; gap: 0.6rem; }
.fuss__links a, .fuss__kontakt a { text-decoration: none; color: #C9BCAD; font-size: 0.95rem; }
.fuss__links a:hover, .fuss__kontakt a:hover { color: var(--rosa); }
.fuss__copyright {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: #8b7d6d;
}
@media (max-width: 640px) {
  .fuss { grid-template-columns: 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
