/* ==========================================================================
   Café Bar Firlefanz, Bermatingen — Demo-Gestaltungsvorschlag
   Charakter: verspielt-gemütlich, charmant-schräg, handgemacht — ein Wohlfühl-
   Café im historischen Fachwerkhaus mit Bio-Anspruch (Café tags / Bar abends).
   Farbwelt: Pflaumen-Violett #7D4675 (Hausfarbe) · Creme #FAF6F1 ·
             Terracotta/Lehm #C98A5E · Salbeigrün #7A8B6F · Aubergine #3A2E36
   Schriften: Quicksand (Display) + Nunito (Text) + Caveat (Marke), lokal gehostet
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --plum: #7d4675;         /* Pflaumen-Violett — Hausfarbe / Primär */
  --plum-dark: #5e3457;    /* dunkle Variante — Text/Tiefe/Hover */
  --plum-soft: #efe1ec;    /* zarte Pflaumenfläche */
  --cream: #faf6f1;        /* Grundton */
  --cream-2: #f3ead9;      /* warme Fläche (Lehm/Sand) */
  --terra: #c98a5e;        /* Terracotta/Holz — warmer Akzent */
  --terra-dark: #b1734a;   /* Hover */
  --terra-soft: #f3e3d4;   /* zarte Terracottafläche */
  --sage: #7a8b6f;         /* Salbeigrün — Bio/Regional, sparsam */
  --sage-soft: #e3e8dd;    /* zarte Salbeifläche */
  --ink: #3a2e36;          /* warmes Dunkel-Aubergine — Text */
  --ink-soft: #6a5a63;     /* abgesetzter Fließtext */
  --line: #e7ddd0;         /* Trennlinien */
  --white: #fffdfa;

  --font-display: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe UI", cursive;

  --container: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--plum); text-decoration: none; }

::selection { background: var(--plum); color: var(--cream); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--plum-dark);
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }

.mark { color: var(--terra); }
.mark--sage { color: var(--sage); }

/* „Firlefanz"-Markenschriftzug (Caveat, handschriftlich) */
.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--plum);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38rem;
}

/* ---------- Deko-Band (Wiedererkennung: schnörkelige Firlefanz-Welle) ---------- */
.squiggle {
  height: 26px;
  width: 100%;
  display: block;
  color: var(--terra);
  opacity: 0.85;
}
.squiggle svg { width: 100%; height: 100%; }

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.79rem;
  text-align: center;
  padding: 0.5rem var(--pad);
  line-height: 1.45;
}
.demo-bar strong { color: var(--terra); font-weight: 700; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--plum);
}
.brand__mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2rem;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  color: var(--plum);
}
.brand__name small {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}
.nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--plum); }
.nav a[aria-current="page"] {
  color: var(--plum);
  border-bottom-color: var(--terra);
}
.nav__cta {
  background: var(--plum);
  color: var(--cream) !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--plum-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--plum-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(58rem 30rem at 88% -12%, var(--plum-soft) 0%, transparent 60%),
    radial-gradient(48rem 26rem at -8% 112%, var(--terra-soft) 0%, transparent 55%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__logo {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(3.6rem, 11vw, 6.6rem);
  line-height: 1.04;
  color: var(--plum);
  margin-block: 0.7rem 1.5rem;
}
.hero h1 { margin-block: 0.2rem 1.2rem; }
.hero__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--terra-dark);
  margin-bottom: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero__art { display: grid; place-items: center; }
.hero__art svg {
  width: min(330px, 70vw);
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(125, 70, 117, 0.26));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.78rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--plum);
  color: var(--plum);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--plum); color: var(--cream); }
.btn--solid:hover { background: var(--plum-dark); border-color: var(--plum-dark); }
.btn--terra { border-color: var(--terra); color: var(--terra-dark); }
.btn--terra:hover { background: var(--terra); color: var(--white); border-color: var(--terra); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--plum); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--cream2 { background: var(--cream-2); }
.section--plum { background: var(--plum); color: var(--cream); }
.section--plum h2, .section--plum h3 { color: var(--cream); }
.section--plum p { color: rgba(250, 246, 241, 0.9); }
.section--plum .eyebrow { color: var(--terra-soft); }
.section--plum .mark { color: #e7bd96; }

.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head h2 { margin-bottom: 0.8rem; }
.section__head p { color: var(--ink-soft); }
.section--plum .section__head p { color: rgba(250, 246, 241, 0.9); }

/* ---------- Highlight-/Karten-Raster ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(125, 70, 117, 0.12); }
.card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.97rem; color: var(--ink-soft); }
.card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--plum-soft);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.85rem;
}
.card__tag--sage { color: #56684c; background: var(--sage-soft); }
.card__tag--terra { color: var(--terra-dark); background: var(--terra-soft); }

/* ---------- Bio-Band ---------- */
.bio-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.bio-band__leaf { width: 64px; height: 64px; flex-shrink: 0; color: var(--sage); }
.bio-band h3 { color: #4f6044; margin-bottom: 0.4rem; }
.bio-band p { color: #55624c; font-size: 1rem; }

/* ---------- Foto-Platzhalter ---------- */
.photo-ph {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--cream-2) 0 14px, var(--plum-soft) 14px 28px);
  border: 2px dashed var(--plum);
  border-radius: var(--radius);
  color: var(--plum-dark);
  min-height: 240px;
  padding: 1.5rem;
}
.photo-ph span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--cream);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(58, 46, 54, 0.08);
}
.photo-ph small {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-weight: 400;
  font-family: var(--font-body);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* ---------- Karte / Speisen-Gruppen ---------- */
.menu-group { margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.menu-group__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--line);
}
.menu-group__head svg { width: 42px; height: 42px; flex-shrink: 0; }
.menu-group__head h2 { margin-bottom: 0; }
.menu-group__intro { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 44rem; }

.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.menu-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.menu-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.menu-item p { font-size: 0.96rem; color: var(--ink-soft); }
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56684c;
  background: var(--sage-soft);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  vertical-align: middle;
}

/* ---------- Über-uns-Stationen ---------- */
.story {
  display: grid;
  gap: 1.4rem;
  max-width: 46rem;
}
.story__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}
.story__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--plum);
  background: var(--plum-soft);
  border-radius: 999px;
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 1;
  text-align: center;
  padding: 0.3rem;
}
.story__item h3 { margin-bottom: 0.3rem; }
.story__item p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Öffnungszeiten ---------- */
.hours-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.3rem);
}
.hours-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .day { font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.hours-table .time { text-align: right; }
.hours-table .closed { color: #9c8f97; }
.hours-note {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: var(--plum-dark);
  background: var(--plum-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  line-height: 1.55;
}

/* ---------- Teaser-Öffnungszeiten (Startseite) ---------- */
.hours-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.6rem; }
.cta-band p {
  color: rgba(250, 246, 241, 0.9);
  max-width: 36rem;
  margin-inline: auto;
}
.cta-band .tel {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--cream);
  margin-block: 1.4rem 1.2rem;
  border-bottom: 3px solid rgba(250, 246, 241, 0.45);
  transition: border-color 0.2s;
}
.cta-band .tel:hover { border-color: var(--cream); }
.cta-band .btn { display: inline-block; }

/* ---------- Kontaktseite ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}
.contact-card h2 { font-size: 1.55rem; margin-bottom: 1rem; }
.contact-card .tel-big {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--plum);
  line-height: 1.1;
  margin-block: 0.3rem 0.5rem;
}
.contact-card address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.65;
}
.contact-card ul { list-style: none; color: var(--ink-soft); }
.contact-card li { padding-block: 0.25rem; }
.contact-card a.mail { color: var(--plum); font-weight: 600; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.legal p, .legal address { color: var(--ink-soft); font-style: normal; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { margin: 0.6rem 0 0 1.2rem; color: var(--ink-soft); }
.legal li { padding-block: 0.2rem; }

.demo-note {
  background: var(--terra-soft);
  border-left: 5px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.demo-note strong { color: var(--terra-dark); font-weight: 700; }

.placeholder {
  display: inline-block;
  background: var(--cream-2);
  border: 1px dashed var(--plum);
  border-radius: 6px;
  padding: 0.05rem 0.55rem;
  font-size: 0.88rem;
  color: var(--plum-dark);
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--cream-2);
  padding-block: clamp(2.2rem, 5vw, 3.5rem) 1.4rem;
}
.site-foot a { color: var(--cream); }
.site-foot a:hover { text-decoration: underline; }
.site-foot h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.site-foot .foot-brand {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.site-foot ul { list-style: none; font-size: 0.95rem; }
.site-foot li { padding-block: 0.18rem; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.foot-meta {
  border-top: 1px solid rgba(250, 246, 241, 0.22);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art svg { width: min(210px, 52vw); }
  .hours-teaser, .contact-grid, .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__cta {
    margin-top: 0.9rem;
    text-align: center;
    border-radius: 12px;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .bio-band { grid-template-columns: 1fr; text-align: center; }
  .bio-band__leaf { margin-inline: auto; }
  .story__item { grid-template-columns: 1fr; gap: 0.5rem; }
  .story__year { width: 4rem; height: 4rem; font-size: 1rem; }
}
