/* ============================================================
   Die Markt-Sprechstunde — Stylesheet
   Plain CSS, keine Frameworks. Selbst gehostete Fonts.
   Farben direkt aus dem Logo gesampelt.
   ============================================================ */

/* ---- Fonts (self-hosted woff2) ---------------------------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-italic-latin.woff2") format("woff2");
}
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

/* ---- Design tokens ---------------------------------------- */
:root {
  --cream:      #F9EFE6;
  --cream-2:    #F3E6D6;   /* deeper band background */
  --card:       #FEFAF3;   /* lifted card surface */
  --rose:       #D8A098;
  --rose-deep:  #9E5A4D;   /* rose für kleine Texte, ≥4,5:1 auf Creme (WCAG AA) */
  --blue:       #BDCACC;
  --blue-deep:  #90ABAF;
  --ink:        #373737;
  --ink-soft:   #595249;
  --line:       rgba(55, 55, 55, 0.12);
  --shadow:     0 18px 40px -24px rgba(55, 45, 40, 0.45);
  --shadow-sm:  0 8px 22px -16px rgba(55, 45, 40, 0.5);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1080px;
  --radius: 16px;
  /* Abstand Wrap-Innenkante -> Viewport-Kante (fuer randlose Bilder) */
  --bleed: calc((100vw - min(var(--wrap), 100vw)) / -2 - 1.5rem);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);

  /* Awning signature: 1 rose + 1 blue scallop (Fahnen). Der schwarze
     Querstab ist bewusst NICHT in der Kachel — als eigene Gradient-Ebene
     (s. --awning-bg) bleibt er nahtlos, egal wie die Kacheln runden. */
  --awning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='44' viewBox='0 0 96 44'%3E%3Cpath d='M2 5 H46 V19 A22 22 0 0 1 2 19 Z' fill='%23D8A098'/%3E%3Cpath d='M50 5 H94 V19 A22 22 0 0 1 50 19 Z' fill='%23BDCACC'/%3E%3C/svg%3E");
  /* left top: Reihe beginnt links immer mit einer ganzen Markise,
     der Anschnitt liegt nur an der rechten Bildschirmkante */
  --awning-bg: linear-gradient(var(--ink), var(--ink)) left top / 100% 3px no-repeat,
               var(--awning) left top / 58px 26px repeat-x;
}

/* ---- Reset / base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Randlose Bilder (--bleed) duerfen keinen H-Scroll erzeugen */
  overflow-x: clip;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-weight: 800; }

/* ---- Layout helpers -------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: var(--section-pad); }
.section--band { background: var(--cream-2); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }

/* Eyebrow als geschriebene Zeile (Markttafel) statt Versalien-Label */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.section__head--center .eyebrow { justify-content: center; }

.h-lg { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 0.4em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); }
.accent { font-style: italic; font-weight: 500; color: var(--rose-deep); }
.mt-lg { margin-top: 1.5rem; }
.eyebrow--center { justify-content: center; }

/* ---- Awning band (signature) ----------------------------- */
.awning-band {
  height: 26px;
  background: var(--awning-bg);
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 6px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(55,55,55,0.28); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- Header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 239, 230, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgba(55,45,40,0.6); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: 10px; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.16rem; line-height: 1; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--rose); transition: width 0.22s ease;
}
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { width: 100%; }
.nav .btn { padding: 0.6rem 1.15rem; }

.nav-toggle { display: none; }

/* ---- Hero: 50/50, Bild randlos bis zur Viewport-Kante ----- */
.hero { position: relative; --hero-pad: clamp(2.5rem, 6vw, 5rem); }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: var(--hero-pad);
}
.hero__logo { width: 132px; height: 132px; margin-bottom: 1.4rem; filter: drop-shadow(0 10px 24px rgba(55,45,40,0.14)); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--rose-deep); }
.hero__lead { font-size: clamp(1.1rem, 2.3vw, 1.32rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.9rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.fact { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.98rem; font-weight: 500; color: var(--ink); }
.fact svg { width: 20px; height: 20px; flex: none; color: var(--rose-deep); }

.hero__media {
  position: relative;
  align-self: stretch;
  margin-right: var(--bleed);
  margin-block: calc(var(--hero-pad) * -1);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Markise haengt nur unter dem Bild, nicht unter der Text-Haelfte */
.hero__media::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px;
  background: var(--awning-bg);
}

/* ---- Angebot: Markttafel-Liste ----------------------------
   Keine Kacheln: typografische Zeilen mit Haarlinien,
   Überschrift links, Text rechts — wie eine Tafel am Stand. */
.offer { max-width: 56rem; margin-inline: auto; }
.offer__row {
  display: grid; grid-template-columns: minmax(12rem, 0.8fr) 1.7fr;
  gap: 0.4rem 3rem; align-items: baseline;
  padding-block: 1.7rem; border-top: 1px solid var(--line);
}
.offer__row:last-child { border-bottom: 1px solid var(--line); }
.offer__row h3 { font-size: 1.4rem; }
.offer__row p { color: var(--ink-soft); }

/* ---- Split (Finden): Bild randlos zur linken Kante -------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.split__media { align-self: stretch; min-height: clamp(340px, 42vw, 620px); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__media {
  order: -1; margin-left: var(--bleed);
  /* volle Sektionshoehe: blutet oben+unten ins Sektions-Padding */
  margin-block: calc(var(--section-pad) * -1);
}
.info-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: center; }
.info-list .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(189,202,204,0.38); color: var(--blue-deep); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list b { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; display: block; }
.info-list span { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Team (Wer wir sind): Textspalten statt Boxen --------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); }
.person { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.person__name { font-size: 1.45rem; margin-bottom: 0.15rem; }
.person__role { font-size: 0.95rem; font-weight: 500; color: var(--rose-deep); letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.person p { color: var(--ink-soft); font-size: 1.01rem; }
.team__photo {
  grid-column: 1 / -1; margin-top: clamp(1.5rem, 4vw, 3rem);
  margin-inline: var(--bleed);
  /* Foto blutet ins Sektions-Padding: buendig an die naechste Sektion */
  margin-bottom: calc(var(--section-pad) * -1);
}
.team__photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 35%; }

/* ---- CTA / Termine band -----------------------------------
   Keine Box: Inhalt direkt in der Band-Sektion, Markisen-Kante
   volle Breite an der Sektions-Oberkante (wie unterm Header). */
.section--cta { position: relative; }
.section--cta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 26px;
  background: var(--awning-bg);
}
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 auto 0.8rem; max-width: 30rem; }
.cta p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto 1.7rem; }
.cta .btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* Ansprechpartner:innen im Kontakt-Band: typografisch, keine Boxen —
   zwei Spalten, getrennt durch eine Haarlinie (mobil untereinander). */
.contact-people {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.6rem 0; max-width: 44rem; margin-inline: auto;
}
.contact-person { padding-inline: clamp(1rem, 4vw, 2.5rem); }
.contact-person + .contact-person { border-left: 1px solid var(--line); }
.cta p.contact-person__name { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--ink); margin-bottom: 0.55rem; }
.cta p.contact-person__links { display: grid; gap: 0.35rem; justify-items: center; margin-bottom: 0; }
.contact-person__links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 500; color: var(--ink);
}
.contact-person__links a:hover { text-decoration: underline; }
.contact-person__links svg { flex: none; color: var(--rose-deep); }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--ink); color: #e9e2d8; padding-block: clamp(2.8rem, 6vw, 4rem) 2rem; }
.site-footer a { color: #e9e2d8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 42px; height: 42px; border-radius: 8px; }
.footer-brand b { font-family: var(--serif); font-size: 1.15rem; }
.site-footer p { color: #c9c1b5; font-size: 0.96rem; }
.footer-col__title { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a89f92; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; font-size: 0.98rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact-name { font-weight: 600; }
.footer-contact-name:not(:first-child) { margin-top: 0.45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; align-items: center; font-size: 0.86rem; color: #a89f92; }
.footer-bottom a { color: #a89f92; text-decoration: none; }
.footer-bottom a:hover { color: #e9e2d8; }

/* ---- Legal (Impressum / Datenschutz) --------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.7rem; }
.legal h3 { font-size: 1.12rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal address { margin-bottom: 0.9rem; color: var(--ink-soft); font-style: normal; }
.legal a { color: var(--ink); }
.legal .back { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; text-decoration: none; font-weight: 600; color: var(--rose-deep); }
.legal .todo { background: rgba(216,160,152,0.14); border-left: 3px solid var(--rose); padding: 0.5rem 0.9rem; border-radius: 6px; color: var(--ink); font-size: 0.95rem; }

/* ---- Scroll reveal ----------------------------------------
   Nur hinter html.js versteckt (Klasse setzt main.js):
   ohne JavaScript bleibt der gesamte Inhalt sichtbar. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; row-gap: 4rem; }
  /* Hero-Text mobil zentriert */
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .facts { justify-content: center; }
  .hero__media {
    order: -1;
    margin: calc(var(--hero-pad) * -1) -1.5rem 0;
    height: 62vw; max-height: 460px;
  }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 0; }
  .split__media img { height: auto; aspect-ratio: 3 / 2.1; }
  /* Mobil: Bild oben, blutet zur Sektions-Oberkante (wie Hero) */
  .split--flip .split__media { order: 0; margin: calc(var(--section-pad) * -1) -1.5rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .offer__row { grid-template-columns: 1fr; padding-block: 1.4rem; }
  .contact-people { grid-template-columns: 1fr; }
  .contact-person + .contact-person { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .team { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 0.5rem 1.5rem 1.4rem; box-shadow: var(--shadow); transform: translateY(-140%); transition: transform 0.3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.8rem; justify-content: center; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
