/* Wholesome Side Quests — Base Styles (Mobile-First) */

/* Fonts (TTF, relative Pfade) */
@font-face {
  font-family: "Lilita One Local";
  src: url("font/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla Local";
  src: url("font/Karla-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Brand */
  --text: #352222;
  --accent-1: #F7A823;
  --accent-2: #DB7E5B;
  --signal:  #CD3333;
  --bg:      #FFF8E7;


  /* Spacing & layout */
  --maxw: 1160px;
  --radius-card: 14px;
  --radius-btn: 12px;

  /* Schatten: deutlich und „nah am Tisch“ */
  --shadow-card: 0 6px 10px rgba(53,34,34,0.35),
                 0 2px  4px rgba(53,34,34,0.25);
  --shadow-float: 0 16px 32px rgba(53,34,34,0.28);
  --shadow-card-ds:
    drop-shadow(0 6px 10px rgba(53,34,34,0.35))
    drop-shadow(0 2px  4px rgba(53,34,34,0.25));

  /* Luftigeres Grund-Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 28px;
  --space-7: 32px;
  --space-8: 40px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

body {
  font-family: "Karla Local", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
  /*background-image: url(soft-wallpaper - stucco - white texture.png);*/
  background-image: url(rice-paper-2.png);
  background-repeat:repeat;
}

/* Einheitlicher Innenabstand für alle Sections */
.container {
  width: min(100% - 24px, var(--maxw));
  margin-inline: auto;
  /*padding-inline: clamp(1.5rem, 5vw, 4rem); /* NEU: mehr Luft links/rechts – auch am Desktop */*/
}

section {
  margin-bottom: 60px; /* oder jeder andere wert */
}
section:not(:last-of-type) {
  margin-bottom: 60px;
}
section.section-divider {
  margin-bottom: 00px; /* kleinerer abstand */
  margin-top: 0px;    /* optional, falls auch oben zu viel luft ist */
}


/* Header */
header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(255,248,231,0.92), rgba(255,248,231,0.7));
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(53,34,34,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-1); box-shadow: inset 0 0 0 2px rgba(53,34,34,0.08); }
.brand__name {
  font-family: "Karla Local", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

/* Burger */
#nav-toggle { display: none; }
.burger { display: grid; gap: 4px; cursor: pointer; padding: 8px; border-radius: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .25s ease; }

nav.menu {
  position: fixed; inset: 0 0 auto auto; top: 56px; right: 12px;
  width: min(86vw, 320px); background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-float); border: 1px solid rgba(53,34,34,0.08);
  padding: 12px; display: none;
}
nav.menu a { display: block; padding: 12px 10px; border-radius: 10px; }
nav.menu a:hover { background: rgba(247,168,35,0.12); }

#nav-toggle:checked ~ nav.menu { display: block; }
#nav-toggle:checked + label.burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav-toggle:checked + label.burger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked + label.burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


@media (min-width: 860px) {
  .nav {
    position: relative; /* Referenzrahmen für das Menü */
  }

  nav.menu {
    position: absolute;       /* An der .nav ausrichten, nicht am Viewport */
    top: calc(100% + 8px);    /* etwas Abstand unter der Nav-Leiste */
    right: 0;                 /* an der rechten Seite der Nav (Burger) */
    width: min(320px, 86vw);  /* passende Breite */
    margin: 0;
  }
}

/* TRENNER*/

.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-divider img {
  width: 60px; /* Größe nach Geschmack anpassen */
  height: auto;
  opacity: 0.8; /* leicht zurückgenommen, wirkt eleganter */
}





/* Hero — luftig + Above-the-Fold sichtbar */

.hero {
  /* Mobile-first: fülle den sichtbaren Bereich abzüglich Headerhöhe */
  min-height: calc(100svh - 64px);
  padding: var(--space-6) 0 var(--space-5);
  display: grid;
  gap: var(--space-7);
  align-items: center;
  justify-items: center; /* NEU: zentriert die Inhalte horizontal */
}

/* === Flip Card (clean & stable) === */
.hero__card {
  perspective: 1000px;
  width: min(400px, 70vw);
  aspect-ratio: 65/100;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.card-inner {
  position: relative;
  width: 80%;
  height: 80%;
  margin: 0 auto;                 /* NEU: zentriert den Inhalt */
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1s cubic-bezier(0.42, 0.0, 0.58, 1.1);
  transform: rotateY(0deg);
}


.card-inner.is-flipped { transform: rotateY(180deg); }

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;                        /* clippt den Bild-Bleed */
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  filter: var(--shadow-card-ds);
  background: #fff;                        /* gegen transparente PNG-Ränder */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* Orientierung der Seiten (mit sanfter Grundneigung) */
.card-front { transform: rotate(-2deg); }
.card-back  { transform: rotateY(180deg) rotate(-2deg); }

/* Kartenbild: eleganter Bleed ohne 3D-Nebenwirkungen */
.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;                        /* keine Letterbox-Balken */
  transform: scale(1.012);                  /* ~1.2% Überzug gegen Haarlinien */
  transform-origin: center;
  background: #fff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* === Ende Flip Card === */

.hero__text h1 {
  font-family: "Lilita One Local", system-ui;
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 1px;
  margin: 0.1rem 0 0;
}
.hero__text h1 span { display: block; }

.hero__copy {
  margin-top: var(--space-2);
  font-size: 1.125rem;
  opacity: 0.95;
  /* etwas kürzerer Absatzabstand, damit Buttons in Fold rutschen */
  margin-bottom: var(--space-3);
}

.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: var(--radius-btn);
  border: 2px solid transparent; font-weight: 700;
}
.btn--primary { background: var(--accent-1); color: #000000; }
.btn--ghost { border-color: rgba(53,34,34,0.18); background: transparent; }
.btn:active { transform: translateY(1px); }


/*ALLGEMEINE SCHRIFTEN*/



body,p,li{
  font-size: 1.125rem;  
  line-height: 1.6;
}

/* Absatzabstände kompakter machen */
p {
  margin-top: 0.4em;
  margin-bottom: 0.8em;
  line-height: 1.55; /* leicht kompakter, aber noch lesbar */
}

h4 {
  font-size: 1.375rem;   /* etwa +2 Punkte über der Copy */
  font-weight: 900;      /* bold, aber noch nicht so schwer wie h3 */
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  line-height: 1.3;
}



/*Zwischeneadline*/

.zwischen {
  font-family: "Karla Local", system-ui;
  font-weight: 900;                 /* maximale „Fettheit“ */
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-align: center;

  color: var(--bg);
  background: var(--signal);

  padding: 0.18em 0.55em;           /* sehr wenig Fläche – elegant */
  border-radius: 4px;               /* kleine Rundung = hochwertiger */
  width: fit-content;
  line-height: 1.2;

  margin: 0 auto var(--space-5);    /* perfekte Zentrierung */
}



/* Sections — mehr Luft */
section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  padding-left: 0;
  padding-right: 0;
}
.section-title {
  font-family: "Lilita One Local", system-ui;
  font-size: clamp(1.9rem, 6.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 1px;
  margin: 1em 0 var(--space-1);
  line-height: 1.55; /* leicht kompakter, aber noch lesbar */
}
}
.grid { display: grid; gap: var(--space-4); }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 6px rgba(53,34,34,0.06);
  padding: 16px;
  border: 1px solid rgba(53,34,34,0.06);
}

/* „Was sind WSQ“ Layout */
.two-col { display: grid; gap: var(--space-5); }
.packshot {
  display: flex;
  justify-content: center;  /* horizontal zentrieren */
  align-items: center;      /* vertikal zentrieren */
  overflow: hidden;
}
.packshot img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
}

#about { scroll-margin-top: 60px; } /* Höhe deiner Menüleiste */
/* Neutraler Hintergrund für erklärenden Text, ohne HTML-Änderung */
#about .two-col .card:first-child {
  background: #f5f1e8;            /* sanftes Beige, harmoniert mit Honey */
  box-shadow: 0 2px 6px rgba(53,34,34,0.05);
  border: 1px solid rgba(53,34,34,0.08);
}

/* Summary / Details */
details.wsq {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(53,34,34,0.08);
  padding: 0;
  box-shadow: var(--shadow-card);
}
details.wsq + details.wsq { margin-top: var(--space-3); }
summary.wsq__header {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
summary.wsq__header::marker { display: none; }
.wsq__chev { transition: transform .25s ease; }
details[open] .wsq__chev { transform: rotate(180deg); }
.wsq__content {
  padding: 0 16px 16px;
  margin-bottom: var(--space-3);
  border-top: 1px dashed rgba(53,34,34,0.12);
  display: flow-root;
}

/* === Verbundene Info-Karte mit Bild rechts, etwas tiefer === */
.wsq-info {
  background: #fff;
  border: 1px solid rgba(53,34,34,0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-5);
}



.section-subtitle {
  margin: 0 0 var(--space-3);
  font-family: "Lilita One Local", system-ui;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

/* Aufzählung mit Fliege.svg */
.list-fliege {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: 10px;
}
.list-fliege li {
  position: relative;
  padding-left: 28px;
}
.list-fliege li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  background: url("img/fliege.svg") no-repeat center / contain;
}

/* Bild rechts, aber kleiner & leicht tiefer */
.wsq-info__media {
  margin: 0;
  align-self: end; 
  align-self: center;    
  justify-self: center;  
}


/* Desktop-Layout: Text | Bild nebeneinander */
@media (min-width: 860px) {
  .wsq-info {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    align-self: center;
    margin-top: 1rem;  /* leicht tiefer, optional */
  }

  /* Bild soll erst unter der Headline beginnen */
.wsq-info__media {
  display: grid;
  justify-items: center;   /* horizontal mittig im Container */
  align-items: start;      /* oben beginnen, nicht ganz mittig */
  align-self: center;     /* unter der Headline starten */
}


.wsq-info__media, .wsq-img {
  display: block;
  width: 100%;
  max-width: 360px;        /* optisch angenehme Breite */
  height: auto;
  border-radius: var(--radius-card);
  object-fit: contain;

}






/* Simple Center Section */
.section--simple { text-align: center; }
.section--simple .section-title { margin-bottom: var(--space-3); }
.section--simple .prose {
  margin-inline: auto;
  max-width: 90ch;          /* gute Lesebreite */
  font-size: 1.05rem;
  opacity: 0.98;
}
.section--simple .prose p + p { margin-top: var(--space-3); }
.section--simple .prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--accent-2);
}
.section--simple .cta-row {
  margin-top: var(--space-4);
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Optionale „Paper“-Variante (leicht abgesetzt) */
.section--simple.paper {
  background: #fff;
  border: 1px solid rgba(53,34,34,0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) min(5vw, 28px);
}



/* === Featured Product === */
.feature { padding-top: var(--space-7); }
.feature-grid {
  display: grid;
  gap: var(--space-5);
}
.feature-media {
  margin: 0;
  display: grid;
  justify-items: start;
  align-items: center;
}
.feature-media {
  width: 100%;
  max-width: calc((var(--maxw) / 2) - 10);
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  justify-self: start;
}
.feature-text { display: grid; gap: var(--space-3); }
.feature-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.2vw, 1.5rem);
}
.feature-desc { margin: 0; }

.prod-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.prod-meta li { display: flex; align-items: center; gap: 10px; }
.prod-meta img { width: 20px; height: 20px; display: block; }

.feature-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ab Desktop: zwei Spalten */
@media (min-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .feature-media { justify-items: center; }
}




/* Footer */
footer { padding: 24px 0 40px; border-top: 1px solid rgba(53,34,34,0.08); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 10px; align-items: center; grid-template-columns: 1fr auto; }

/* Größere Screens */
@media (min-width: 860px) {
  /* Hero: eher kompakt wirken lassen, aber weiterhin luftig */
  .hero {
    min-height: calc(100svh - 72px);
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    padding: var(--space-8) 0 var(--space-7);
  }

  .hero__card {
    margin: 0;                /* statt: margin-left: 1rem; */
    justify-self: center;     /* im linken Gridfeld mittig ausrichten */
    width: min(460px, 90%);
  }

  
  .two-col { grid-template-columns: 1.1fr 1fr; align-items: center; }
  nav.menu { top: 70px; }
}

/* Mehr Seitenabstand auf kleinen Bildschirmen */
@media (max-width: 600px) {
  .container {
    width: min(100% - 40px, var(--maxw)); /* 40 px Gesamt = 20 px je Seite */
  }
}

.wsq-info__text.split-left {
  max-width: calc(var(--maxw) / 2);
  margin-right: auto;
}

/* Optional: auf kleinen Screens trotzdem ganze Breite */
@media (max-width: 860px) {
  .wsq-info__text.split-left {
    max-width: 100%;
  }
}

/* === Tag Cloud === */
/* === Tag Cloud === */
/* === Tag Cloud === */
/* === Tag Cloud === */

/* === Tag Cloud === */
.tag-cloud {
  margin-top: var(--space-6);
  text-align: center;
}

.tag-cloud h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  opacity: 0.8;
}

/* Tag-Liste */
.tag-cloud ul {
  display: flex;
  flex-wrap: wrap;              /* erlaubt mehrere Zeilen */
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}


/* Einzelne Tags */
.tag-cloud li {
  display: inline-flex;          /* für saubere Zentrierung */
  align-items: center;
  justify-content: center;
  white-space: nowrap;           /* 🔒 kein Zeilenumbruch im Text */
  background: var(--tag-bg, #f4d8c8);
  color: var(--tag-fg, #5c4033);
  padding: 0.4em 0.8em;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* dezente Hover-Reaktion */
.tag-cloud li:hover {
  background: #f9e5d7;
  transform: translateY(-2px);
}

/* HERO-KARTE: zentrieren auf mobilen Screens */
@media (max-width: 860px) {
  .hero__card {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-inner {
    width: 100%;
    height: auto;
  }
}

/* Hero-Karte – mobil: sichtbar, zentriert, weniger Abstand */
@media (max-width: 860px) {
  .hero {
    /* weniger Luft oben/unten und engerer Abstand */
    padding: var(--space-4) 0 var(--space-4);
    gap: var(--space-4);
    place-items: center; /* sorgt für Zentrierung im Grid */
  }

  .hero__card {
    /* nur für die Perspektive zuständig, Breite/Höhe steuert nun .card-inner */
    display: block;
    margin: 0 auto;
    overflow: visible;
  }

  .hero__card .card-inner {
    /* WICHTIG: eigene Größe, damit die absolut positionierten Seiten Fläche haben */
    width: min(340px, 70vw);
    aspect-ratio: 65 / 100;   /* fixe Karten-Proportion */
    height: auto;             /* Höhe ergibt sich aus aspect-ratio */
    margin: 0 auto;           /* horizontal zentriert */
  }

  /* Sicherheit: Fülle die .card-inner-Fläche aus */
  .hero__card .card-front,
  .hero__card .card-back {
    inset: 0;
  }
}

/* --- HERO-KARTE: Cross-Browser (Chrome Mobile fix) --- */
@media (max-width: 860px) {
  /* 1) Sichere Zentrierung der gesamten Hero-Zeile */
  .hero {
    display: grid;
    place-items: center;          /* horizontal + vertikal */
    gap: var(--space-4);
    padding: var(--space-4) 0;    /* etwas kompakter */
  }

  /* 2) Die Karte selbst übernimmt die Größe, Kind füllt einfach aus */
  .hero__card {
    width: min(340px, 72vw);      /* bei Bedarf hier feintunen (z.B. 320px/70vw) */
    aspect-ratio: 65 / 100;
    margin: 0 auto;               /* falls Grid mal nicht greift */
    display: grid;
    place-items: center;
  }

  .hero__card .card-inner {
    width: 100%;
    height: 100%;                 /* füllt das aspect-ratio-Parent */
    /* Chrome 3D/Transform Stabilität */
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
  }

  /* Sicherheit: Vorder-/Rückseite füllen wirklich die Fläche */
  .hero__card .card-front,
  .hero__card .card-back {
    inset: 0;
  }
}

/* 3) Fallback für ältere Chrome-Varianten, die 100svh nicht mögen */
@supports not (height: 1svh) {
  .hero { min-height: calc(100vh - 64px); }
}





/* --- Wildcard Galerie (komplette, eigenständige Version) --- */

/* Weißes Paper-Feld wie bei "Und so geht’s" */
.wildcard-gallery-box {
  background: #fff;
  border: 1px solid rgba(53,34,34,0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  display: block;
}

/* Grid-Layout */
.wildcard-gallery {
  display: grid;
  gap: 10px;                      /* wenig Abstand */
}

/* Bilder im Grid — füllen ihre Spalte komplett */
.wildcard-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  object-fit: cover;
}

/* Desktop: 3 Spalten über die gesamte Breite */
@media (min-width: 860px) {
  .wildcard-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}



.wildcard-gallery figure {
  margin: 0;
}

.wildcard-gallery figcaption {
  font-size: 0.7rem;
  color: #777;
  margin-top: 0.25rem;
}