/* tastydishes – Stylesheet nach Corporate Design
   Layout-Idee: weiße Fläche wie im Logo, große Fotos, der grün-pinke "Schwung"
   aus dem Logo als einziges Schmuckelement, "tasty …!" als handschriftliche Markenstimme.
   Farben stammen direkt aus dem Logo. Die Website ist bewusst hell (Logo auf Weiß). */

:root {
  color-scheme: light;

  /* CI-Farben aus dem Logo */
  --green: #94C11F;        /* CI Grün – Flächen, Linien, Grafik (nicht für kleinen Text) */
  --pink: #E6007E;         /* CI Pink – Buttons, Akzente, große Zahlen */
  --grey: #575656;         /* CI Grau – Fließtext */

  /* abgeleitet */
  --green-dark: #4E7A0F;   /* Grün für Text auf Weiß (Kontrast 5:1) */
  --pink-dark: #C2006A;    /* Pink für kleinen Text und Hover */
  --ink: #3C3B3B;          /* Überschriften */
  --green-tint: #F4F9E8;   /* Abschnitts-Hintergrund */
  --pink-tint: #FDEEF6;    /* Hervorhebung */
  --bg: #FFFFFF;
  --line: #E3E8DA;
  --on-pink: #FFFFFF;
  --shadow: 0 12px 32px rgba(60, 59, 59, .10);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand: "Nanum Pen Script", "Segoe Print", "Bradley Hand", cursive;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4vw, 2.6rem);
  --step-4: clamp(2.5rem, 6vw, 4.4rem);

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--pink-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green-dark); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }
.measure { max-width: 62ch; }
/* Markenstimme: handschriftlich wie "your vegan catering" im Logo */
.eyebrow { font-family: var(--font-hand); font-size: 1.85rem; line-height: 1; color: var(--pink); }
.lead { font-size: var(--step-1); }
.muted { color: var(--grey); }
.small { font-size: var(--step--1); }
.hl-pink { color: var(--pink); }
.hl-green { color: var(--green-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.badge-vegan {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid var(--green); color: var(--green-dark); border-radius: 99px; padding: .15rem .55rem; white-space: nowrap;
}
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .45rem .75rem; border-radius: 99px;
}
.nav a:hover { background: var(--green-tint); }
.nav a[aria-current="page"] { color: var(--pink-dark); box-shadow: inset 0 -2px 0 var(--pink); border-radius: 0; }
.nav .cta { background: var(--pink); color: var(--on-pink); border-radius: 99px; }
.nav .cta:hover { background: var(--pink-dark); }
.nav .cta[aria-current="page"] { color: var(--on-pink); box-shadow: none; border-radius: 99px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 10px; padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .9rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--pink); }
}
@media (max-width: 560px) { .badge-vegan { display: none; } .brand img { height: 54px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .8rem 1.35rem; border-radius: 99px; border: 2px solid var(--pink);
  background: var(--pink); color: var(--on-pink); cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--green); }
.btn.ghost:hover { background: var(--green-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--green-tint); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.5rem; max-width: 760px; }

/* Bildflächen: Foto der alten Site, darunter ein Verlauf in CI-Farben als Ersatz */
.photo {
  border-radius: var(--radius); min-height: 280px; background-color: var(--green-tint);
  background-size: cover; background-position: center; max-width: 100%;
}
.ph-fruehling { background-image: url("../img/hero-spiesse.jpg"), linear-gradient(135deg, #DCEBB0, #94C11F 75%); }
.ph-glaeschen { background-image: url("../img/glas-physalis.jpg"), linear-gradient(135deg, #FBD3E8, #E6007E 85%); }
.ph-tischgruen { background-image: url("../img/glaeser-physalis-aufsicht.jpg"), linear-gradient(160deg, #F4F9E8, #B9D86A 60%, #94C11F); }
.ph-service { background-image: url("../img/dessert-tafel.jpg"), linear-gradient(135deg, #FDEEF6, #F39BC8 55%, #94C11F); }
.ph-tomate { background-image: url("../img/glas-tomate-orchidee.jpg"), linear-gradient(135deg, #FBD3E8, #E6007E 85%); }
.ph-fingerfood { background-image: url("../img/fingerfood-physalis.jpg"), linear-gradient(135deg, #DCEBB0, #94C11F 75%); }
.ph-erdbeere { background-image: url("../img/dessert-erdbeere.jpg"), linear-gradient(135deg, #FBD3E8, #E6007E 85%); }
.ph-ocs-raum { background-image: url("../img/ocs-gastraum.jpg"), linear-gradient(160deg, #F4F9E8 0%, #B9D86A 45%, #4E7A0F 100%); }
.ph-clean { background-image: url("../img/reinigung.jpg"), linear-gradient(135deg, #FFFFFF, #DCEBB0 60%, #94C11F); }
.ph-ocs { background-image: url("../img/ocs-eventlocation.jpg"), linear-gradient(160deg, #F4F9E8 0%, #B9D86A 45%, #4E7A0F 100%); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; }
.hero-grid > * { min-width: 0; }
.hero h1 .hl-pink { display: block; }
.hero .photo { min-height: 460px; position: relative; }
/* Der Schwung aus dem Logo */
.swoosh { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.swoosh path { fill: none; stroke-linecap: round; }
.stamp {
  position: absolute; left: -18px; bottom: 28px; background: var(--bg); color: var(--ink);
  border-radius: 999px; width: 136px; height: 136px; display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow); border: 3px solid var(--pink); transform: rotate(-8deg);
}
.stamp strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--pink); font-weight: 700; }
.stamp span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.facts li::before { content: "✓ "; color: var(--green-dark); font-weight: 800; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .photo { min-height: 300px; }
  .stamp { left: 12px; bottom: -24px; width: 112px; height: 112px; }
}

/* ---------- Leistungs-Karten ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--grey); transition: transform .2s ease, box-shadow .2s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar .photo { border-radius: 0; min-height: 200px; }
.pillar-body { padding: 1.4rem 1.4rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.pillar-body .more { font-weight: 700; color: var(--pink-dark); margin-top: .4rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--green); }
.checklist li::after { content: ""; position: absolute; left: .36rem; top: .6em; width: .33rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Karten-Raster ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.card .tag { font-size: var(--step--1); font-weight: 800; letter-spacing: .04em; color: var(--green-dark); }

/* Kennzahlen */
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.keyfacts div { background: var(--bg); padding: 1.4rem; display: grid; gap: .2rem; }
.keyfacts strong { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--pink); line-height: 1.1; white-space: nowrap; }
.split .keyfacts { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .keyfacts { grid-template-columns: repeat(2, 1fr); } }

/* Ablauf (echte Reihenfolge) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .4rem; align-content: start; border-top: 3px solid var(--green); padding-top: 1rem; }
.steps li::before { content: "Schritt " counter(step); font-size: var(--step--1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--green); }
.timeline li { padding: 0 0 1.6rem 1.5rem; position: relative; display: grid; gap: .2rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); }
.timeline .year { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); }

/* Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green-dark); font-weight: 800; }

/* Hinweisband */
.band { background: var(--pink-tint); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; } }

/* ---------- tasty impact! ---------- */
.impact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.5rem; }
.impact-card > * { min-width: 0; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.totals > div { display: grid; gap: .15rem; align-content: start; }
.totals strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; font-variant-numeric: tabular-nums; color: var(--ink); }
.totals .co2 strong { color: var(--green-dark); }
.totals .animals strong { color: var(--pink); }
.totals .label { font-weight: 700; color: var(--ink); }
@media (max-width: 640px) { .totals { grid-template-columns: 1fr; } }
.impact-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.asof { font-size: .92rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .92rem; padding: .45rem 1rem; border-radius: 99px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--pink); color: var(--on-pink); }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { fill: var(--grey); font-size: 12px; font-family: var(--font-body); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--green); transition: height .6s ease, y .6s ease; cursor: pointer; }
.chart .bar.partial { fill: #DCEBB0; stroke: var(--green-dark); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .bar:hover, .chart .bar:focus { fill: var(--green-dark); outline: none; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 800; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: .5rem .7rem; border-radius: 8px; font-size: .85rem; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -110%); z-index: 2; }
@media (max-width: 600px) { .chart .axis text.odd { display: none; } }

.herd { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 5px; }
.herd i { aspect-ratio: 1; border-radius: 50%; display: block; transition: opacity .3s ease; }
.herd i.in { animation: pop .45s ease backwards; }
@keyframes pop { from { transform: scale(.2); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.herd.dim i { opacity: .15; }
.herd.dim i.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.legend button { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: .3rem .8rem; font: inherit; font-size: .92rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.legend button[aria-pressed="true"] { border-color: var(--ink); background: var(--green-tint); }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend b { font-weight: 800; }

.per-guest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.per-guest > div { background: var(--green-tint); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: .1rem; align-content: start; }
.per-guest strong { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .per-guest { grid-template-columns: 1fr; } }
details.assumptions { background: var(--bg); border: 1px dashed #C9CFC0; border-radius: var(--radius); padding: 1rem 1.3rem; }
details.assumptions summary { font-weight: 700; cursor: pointer; color: var(--ink); }
details.assumptions ul { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; font-size: .93rem; }

/* ---------- Formular ---------- */
form.contact { display: grid; gap: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid #C9CFC0; border-radius: 10px; padding: .7rem .8rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .88rem; }
.form-status { font-weight: 700; color: var(--green-dark); }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--green); padding-block: 3rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; }
.footer-grid img { width: 180px; height: auto; }
.footer-grid h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-grid a { color: var(--grey); text-decoration: none; }
.footer-grid a:hover { color: var(--pink-dark); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Seitenkopf für Unterseiten */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero .photo { min-height: 340px; margin-top: 1.5rem; }

/* Bildergalerie */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* Instagram, fest oben rechts unter der Kopfleiste */
.ig-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); top: 5.6rem; z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem .7rem .9rem; border-radius: 999px;
  background: var(--bg); color: var(--pink-dark); border: 2px solid var(--pink);
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow);
}
.ig-float:hover { background: var(--pink-tint); color: var(--pink-dark); }
@media (max-width: 640px) { .ig-float { top: 5rem; padding: .75rem; } .ig-float span { display: none; } }
@media print { .ig-float { display: none; } }
