/* Meine Perücke – Stylesheet
   Farben und Schriften zentral über die Variablen unten ändern. */
:root {
  --wine: #C90B00;        /* Firmenfarbe Rot */
  --wine-dark: #9A0800;   /* dunkleres Rot für Hover */
  --rose: #FFEDCC;        /* zarter Orange-Ton für Hervorhebungen */
  --cream: #FFF9E5;       /* Firmenfarbe Beige: Seitenhintergrund */
  --orange: #FFA400;      /* Firmenfarbe Orange: Akzente */
  --paper: #ffffff;
  --ink: #2a2422;         /* Fließtext */
  --muted: #6e625d;
  --line: #EFE2C2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1160px;
  --prose: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-dark); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Header & Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: #fff; font: 600 1rem/1 var(--serif); letter-spacing: .04em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font: 600 1.35rem/1.1 var(--serif); }
.brand-text small { color: var(--muted); font-size: .78rem; }

.main-nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav button { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: 999px; font: 500 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .main-nav button:hover, .main-nav .active > a, .main-nav li.active > button, .main-nav a.active { background: var(--rose); color: var(--wine-dark); }
.chev { width: .45em; height: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-sub { position: relative; }
.has-sub > ul { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 250px; list-style: none; margin: 0; padding: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(60, 30, 20, .35); display: none; }
.has-sub > ul a { display: block; border-radius: 9px; }
.has-sub.open > ul { display: block; }
@media (hover: hover) and (min-width: 1001px) { .has-sub:hover > ul, .has-sub:focus-within > ul { display: block; } .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; } }
.nav-cta a { background: var(--wine); color: #fff !important; padding-inline: 1.1rem; margin-left: .35rem; }
.nav-cta a:hover, .nav-cta a.active { background: var(--wine-dark) !important; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--cream); overflow-y: auto; padding: 1rem 1.25rem 3rem; display: none; }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a, .main-nav button { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .has-sub > ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem 1rem; min-width: 0; }
  .nav-cta a { margin: .75rem 0 0; justify-content: center; }
  .brand-text small { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; background: var(--wine); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--wine); transition: .15s; }
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--rose); color: var(--wine-dark); }
.btn-light { background: #fff; color: var(--wine-dark); border-color: #fff; }
.btn-light:hover { background: var(--rose); color: var(--wine-dark); border-color: var(--rose); }

/* ---------- Startseite ---------- */
.eyebrow { margin: 0 0 .75rem; color: var(--wine); font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font: 500 clamp(2.1rem, 4.4vw, 3.4rem)/1.1 var(--serif); margin: 0 0 1.25rem; letter-spacing: -.01em; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-img { margin: 0; position: relative; }
.hero-img img { border-radius: 24px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(70, 30, 20, .45); }
.hero-img figcaption { position: absolute; left: -1.5rem; bottom: -1.5rem; max-width: 300px; background: var(--paper); padding: 1rem 1.25rem; border-radius: var(--radius); font: italic 500 1.05rem/1.4 var(--serif); color: var(--wine-dark); box-shadow: 0 16px 34px -18px rgba(70, 30, 20, .4); }
.facts { padding: 2.5rem 0 1rem; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.fact p { margin: 0; color: var(--muted); font-size: .97rem; }
.fact .f-label { color: var(--wine); font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.fact .f-title { font: 500 1.5rem/1.2 var(--serif); color: var(--ink); margin-bottom: .4rem; }
.fact .f-title a { color: inherit; text-decoration: none; }
@media (max-width: 860px) {
  .hero-grid, .facts-grid { grid-template-columns: 1fr; }
  .hero-img figcaption { position: static; margin-top: -2rem; margin-left: 1rem; margin-right: 1rem; position: relative; }
}

/* ---------- Unterseiten-Kopf ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f6ede6 0%, var(--cream) 100%); }
.page-head h1 { font: 500 clamp(1.8rem, 3.6vw, 2.8rem)/1.15 var(--serif); margin: 0; max-width: 24em; letter-spacing: -.01em; }

/* ---------- Fließtext ---------- */
.content { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.prose { max-width: var(--prose); margin-inline: auto; }
.home .prose { margin-top: 1rem; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2 { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); margin: 3rem 0 1rem; color: var(--ink); clear: both; }
.prose h3 { font: 600 1.25rem/1.3 var(--serif); margin: 2.2rem 0 .6rem; color: var(--wine-dark); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1rem; }
.prose strong, .prose b { font-weight: 650; color: #1f1a18; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.4rem; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.prose li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wine); opacity: .75; }
.prose li p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; clear: both; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--wine); background: var(--rose); border-radius: 0 var(--radius) var(--radius) 0; }

/* Bilder: Größe bestimmt der Code (data aus der alten Seite), hier anpassbar */
.prose figure { margin: 1.5rem 0 2rem; }
.prose figure img { border-radius: 12px; }
.prose figure.full img { width: 100%; }
.prose figure.float { float: right; margin: .35rem 0 1.2rem 2rem; max-width: 42%; }
.prose figcaption { margin-top: .55rem; font-size: .9rem; color: var(--muted); font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; clear: both; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4 / 3; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.table-wrap td, .table-wrap th { border: 1px solid var(--line); padding: .6rem .8rem; vertical-align: top; background: var(--paper); }
@media (max-width: 640px) {
  .prose figure.float { float: none; max-width: 100%; margin: 1.2rem 0; }
  body { font-size: 1rem; }
}

/* ---------- Kontaktband & Footer ---------- */
.cta-band { background: var(--wine); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; flex-wrap: wrap; }
.cta-band h2 { font: 500 2rem/1.2 var(--serif); margin: 0 0 .5rem; }
.cta-band p { margin: 0; max-width: 36em; opacity: .9; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-band .btn:not(.btn-light) { background: var(--wine-dark); border-color: rgba(255, 255, 255, .35); }
.site-footer { background: #241d1b; color: #d9cec8; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-grid p { margin: 0 0 .75rem; }
.f-brand { font: 500 1.5rem/1.2 var(--serif); color: #fff; }
.f-head { color: #fff; font-weight: 600; }
.f-slogan { font-style: italic; color: #bfaea6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #3a302d; padding: 1.25rem 0 2rem; color: #a8988f; }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: #d9cec8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.single { margin: 1.5rem 0 2rem; clear: both; }
.single img { width: 100%; border-radius: 12px; }
.prose img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(25, 18, 16, .88); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
/* ---------- Inhalte aus dem CMS ---------- */
.cms-state { color: var(--muted); font-style: italic; }
.stimmen { display: grid; gap: 1.25rem; margin-top: 2rem; transition: opacity .2s; }
.stimmen.is-fetching { opacity: .6; }
.stimme { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.prose .stimme-anlass { margin: 0 0 .6rem; color: var(--wine); font: 600 .8rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.stimme-text p:last-child { margin-bottom: 0; }
.stimmen-more { text-align: center; margin-top: 1.75rem; }
.stimmen-more .btn[disabled] { opacity: .6; cursor: wait; }
/* Bilder aus dem Rich-Content-Feld: links ausgerichtet bzw. zentriert */
.prose figure.float.left { float: left; margin: .35rem 2rem 1.2rem 0; }
.prose figure.center { margin-inline: auto; text-align: center; }
.prose figure.center img { margin-inline: auto; }
@media (max-width: 640px) { .prose figure.float.left { float: none; max-width: 100%; margin: 1.2rem 0; } }

/* Logo, Galerie-Seitenverhältnis */
.brand-logo { height: 60px; width: auto; display: block; }
@media (max-width: 1000px) { .brand-logo { height: 46px; } }
.gallery img { aspect-ratio: var(--ratio, 4 / 3); object-position: center 25%; }
.gallery.cols-3 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gallery.cols-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }

/* ---------- Corporate Design (Rot, Orange, Beige) und größere Kopfzeile ---------- */
:root { --header-h: 112px; --topbar: 22px; --topline: 7px; }
.site-header { background: rgba(255, 249, 229, .96); border-top: var(--topbar) solid var(--wine); box-shadow: inset 0 var(--topline) 0 var(--orange); padding-top: var(--topline); border-bottom: 1px solid var(--line); }
.bar { min-height: var(--header-h); gap: 2rem; padding-block: .6rem; }
.brand { gap: 1rem; }
.brand-logo { height: 92px; }
.brand-text strong { font-size: 1.65rem; }
.brand-text small { font-size: .88rem; }
.main-nav a, .main-nav button { padding: .7rem 1rem; font-size: 1.05rem; }
.nav-cta a { padding-inline: 1.3rem; }
.has-sub > ul a { font-size: 1rem; }
.site-header .container { width: min(100% - 2.5rem, 1320px); }
.main-nav a, .main-nav button { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1340px) { .brand-text { display: none; } }
@media (min-width: 1001px) and (max-width: 1120px) { .main-nav a, .main-nav button { padding: .6rem .7rem; font-size: 1rem; } .bar { gap: 1rem; } }
@media (max-width: 1000px) { :root { --header-h: 84px; } .brand-logo { height: 66px; } :root { --topbar: 14px; --topline: 5px; } .main-nav { inset: calc(var(--header-h) + var(--topbar) + var(--topline) + 1px) 0 0 0; } .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); } }
.prose li::before { background: var(--orange); opacity: 1; }
.prose blockquote { border-left-color: var(--orange); }
.fact { border-top: 4px solid var(--orange); }
.hero-img figcaption { border-left: 4px solid var(--orange); }
.page-head { background: linear-gradient(180deg, #FFEFC4 0%, var(--cream) 100%); }
.cta-band { border-top: 4px solid var(--orange); }
.f-slogan { color: var(--orange); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Abschluss unten wie auf dem Flyer: großes Rot (Fußzeile) mit schmalem Orange darunter */
.site-footer { background: var(--wine); color: rgba(255, 255, 255, .9); border-bottom: 8px solid var(--orange); }
.site-footer a { color: #fff; }
.f-slogan { color: var(--cream); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .8); }
.footer-bottom a { color: rgba(255, 255, 255, .92); }
@media (max-width: 1000px) { .site-footer { border-bottom-width: 6px; } }
/* Kontaktband hell, damit es sich von der roten Fußzeile abhebt */
.cta-band { background: var(--rose); color: var(--ink); }
.cta-band h2 { color: var(--wine-dark); }
.cta-band p { opacity: 1; color: var(--muted); }
.cta-band .btn:not(.btn-light) { background: var(--wine); border-color: var(--wine); }
.cta-band .btn:not(.btn-light):hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.cta-band .btn-light { background: transparent; color: var(--wine); border-color: var(--wine); }
.cta-band .btn-light:hover { background: #fff; color: var(--wine-dark); border-color: var(--wine-dark); }
