/* =====================================================================
   Schlossallee Weingut Pfeiffer – Website-Stylesheet
   Gleiche Designsprache wie der Weinshop. Keine externen Ressourcen.
   ===================================================================== */

:root {
  /* Farben direkt aus dem Logo abgeleitet: Sonnengelb #f5c518 und
     Tafel-Schwarz #0d0d0d wurden aus der Logodatei gemessen. */
  --wine:      #8a1f2c;   /* tiefes Weinrot (Aktionsfarbe, Links) */
  --wine-deep: #6d1622;   /* dunkler für Verläufe und Hover */
  --gold:      #f5c518;   /* Logo-Sonnengelb – auf dunklem Grund */
  --gold-ink:  #9a7605;   /* dunkleres Gelb – lesbar auf hellem Grund */
  --ink:       #17170f;   /* Textfarbe, am Logo-Schwarz orientiert */
  --charcoal:  #0d0d0d;   /* Tafel-Schwarz aus dem Logo */
  --bg:        #faf8f2;
  --paper:     #ffffff;
  --muted:     #7c766a;
  --line:      #ebe5d8;

  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28,22,19,.06);
  --shadow:    0 6px 24px -8px rgba(28,22,19,.18);
  --shadow-lg: 0 20px 50px -18px rgba(28,22,19,.32);
  --wrap: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 600;
  line-height: 1.18; color: var(--ink); letter-spacing: -.01em; margin: 0 0 .5em;
}
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700; color: var(--gold-ink); margin-bottom: 10px;
}
/* Auf dunklem Grund das helle Logo-Gold verwenden */
.hero .eyebrow, .cta .eyebrow { color: var(--gold); }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 54px; width: auto; display: block; border-radius: 4px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: var(--ink); font-size: .9rem; padding: 9px 11px; border-radius: 30px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover { background: rgba(138,31,44,.08); color: var(--wine); text-decoration: none; }
.main-nav a.active { color: var(--wine); font-weight: 600; }
.main-nav .nav-shop {
  background: var(--ink); color: var(--gold); font-weight: 600; margin-left: 8px; padding: 10px 18px;
}
.main-nav .nav-shop:hover { background: var(--wine); color: #fff; }

/* ---------- Untermenüs ----------
   Öffnen ohne JavaScript: beim Überfahren mit der Maus und – für Tastatur
   und Touch – sobald ein Element darin den Fokus hat. */
.nav-group { position: relative; }
.nav-group-top .caret { font-size: .62em; margin-left: 6px; opacity: .65; }
.nav-sub {
  position: absolute; left: 0; top: 100%; min-width: 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
}
.nav-group:hover > .nav-sub,
.nav-group:focus-within > .nav-sub { display: block; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 40px; padding: 8px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero (hell und ruhig – Rot nur als Akzent) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  padding: 64px 24px 72px;
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(245,197,24,.22), transparent 62%),
    linear-gradient(180deg, #fefdf9 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }

/* Geteilter Hero: Text links, Foto rechts */
.hero-split {
  display: grid; gap: 46px; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
/* Grosses Logo im Hero der Startseite (img/logo.jpg – die Logotafel).
   Deutlich groesser als das kleine Logo in der Kopfzeile; die Hoehe waechst
   mit der Fensterbreite mit. Feiner Rahmen und Schatten wie in der Kopfzeile,
   damit die dunkle Tafel auf dem hellen Verlauf sauber abgesetzt ist. */
.hero-logo {
  height: clamp(130px, 16vw, 224px); width: auto; display: block;
  margin: 0 0 26px; border-radius: 6px; box-shadow: var(--shadow);
}
.hero-split h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 16px; }
.hero-split p { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero-foto {
  width: 100%; border-radius: var(--r-lg); display: block;
  box-shadow: var(--shadow-lg); border: 5px solid #fff;
}
.hero-foto-bu {
  text-align: center; font-size: .82rem; color: var(--muted); margin-top: 12px;
  font-style: italic;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Kompakter Hero für Unterseiten – ebenfalls hell */
.hero.slim { padding: 54px 24px 58px; text-align: center; }
.hero.slim .hero-inner { max-width: 720px; }
.hero.slim h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.hero.slim p { color: var(--muted); font-size: 1.06rem; max-width: 560px; margin: 0 auto; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-split p { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-split .hero-text { text-align: center; }
  /* Einspaltig ist der Text zentriert – das Logo muss mitziehen */
  .hero-logo { margin-inline: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; border-radius: var(--r-sm);
  padding: 13px 26px; font-size: 1rem; font-weight: 700; font-family: inherit;
  transition: transform .18s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-gold  { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #c9a066; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
/* Für helle Hintergründe */
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wine  { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-deep); }

/* ---------- Abschnitte ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.rule { width: 62px; height: 2px; background: var(--gold); border: 0; margin: 18px auto 0; }

/* Fließtext */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.lead { font-size: 1.14rem; color: var(--ink); }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0 0 1em; }
.card .icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }

/* Bild-Text-Bereich (z. B. Vorstellung der Familie) */
.media-row {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  max-width: 1000px; margin: 0 auto;
}
.media-row img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); display: block; }
.media-row h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.media-row p { color: var(--muted); }
.media-row .sig {
  font-family: Georgia, serif; font-style: italic; color: var(--ink);
  font-size: 1.05rem; margin-top: 18px;
}
/* Platzhalter, solange noch kein Foto hinterlegt ist */
.foto-platzhalter {
  aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: var(--r);
  background: var(--paper); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: var(--muted); gap: 8px;
}
.foto-platzhalter .ph-icon { font-size: 2.4rem; }
.foto-platzhalter code { background: var(--bg); padding: 3px 8px; border-radius: 5px; font-size: .85rem; }
@media (max-width: 780px) { .media-row { grid-template-columns: 1fr; gap: 26px; } }

/* Faktenzeile */
.facts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); text-align: center; }
.fact { padding: 22px 16px; }
.fact .num { font-family: Georgia, serif; font-size: 2.3rem; color: var(--wine); display: block; line-height: 1; }
.fact .lbl { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: block; }

/* ---------- Chronik-Zeitstrahl ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg);
}
.tl-year { font-family: Georgia, serif; font-size: 1.35rem; color: var(--wine); font-weight: 700; }
.tl-item p { margin: .3em 0 0; color: var(--muted); }

/* ---------- News / Termine ---------- */
.news-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
/* Farbmarkierung je Gruppe – links am Rand, damit die drei Sorten
   auch beim schnellen Überfliegen unterscheidbar sind.
   is-termin = Altbestand, wird wie eine Veranstaltung behandelt. */
.news-item.is-veranstaltung,
.news-item.is-termin       { border-left: 4px solid var(--gold); }
.news-item.is-liefertermin { border-left: 4px solid var(--wine); }
.news-item.is-news         { border-left: 4px solid var(--line); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.news-date {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wine); background: rgba(125,34,49,.08); padding: 4px 10px; border-radius: 20px;
}
.news-tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px;
}
.news-item h3 { font-size: 1.2rem; margin-bottom: .3em; }
.news-item .text { color: var(--muted); white-space: pre-line; }
.news-empty { text-align: center; color: var(--muted); padding: 40px 0; }
/* PDF-Anhang – sitzt immer am unteren Rand der Karte */
.news-pdf { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.news-pdf a { font-weight: 600; font-size: .92rem; }

/* ---------- Kontakt ---------- */
/* ---------- Auszeichnungen (Startseite) ----------
   Ein Jahr je Kachel, die Ehrungen darunter als Liste. */
.awards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.award {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.award-year {
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700;
  color: var(--ink); display: block; margin-bottom: 8px; letter-spacing: -.02em;
}
.award ul { margin: 0; padding-left: 18px; }
.award li { color: var(--muted); font-size: .89rem; margin-bottom: 4px; }
.award li::marker { color: var(--gold-ink); }

.contact-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.contact-box h3 { font-size: 1.15rem; }
.contact-box p { margin: .3em 0; }
.mailprotect { cursor: pointer; word-break: break-word; }
a.mailprotect, .mailprotect a { color: var(--wine); }

/* ---------- CTA-Band (dunkel wie die Logotafel, Gold als Akzent) ---------- */
.cta {
  background:
    radial-gradient(90% 130% at 85% 0%, rgba(200,176,115,.16), transparent 60%),
    linear-gradient(150deg, #201f1d, var(--charcoal));
  color: #fff; text-align: center; padding: 64px 24px;
  border-block: 1px solid rgba(200,176,115,.25);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta p { color: #e8dbd5; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #e9e0d7; padding: 56px 24px 26px; }
.footer-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: 30px; grid-template-columns: auto 1.2fr 1fr 1fr;
}
.footer-logo { width: 92px; border-radius: 6px; }
.footer-grid h4 { color: #fff; margin-bottom: 10px; font-size: 1.02rem; }
.footer-grid p { color: #c9bdb1; margin: 6px 0; font-size: .93rem; }
.footer-grid a { color: #e9e0d7; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--wrap); margin: 38px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12); text-align: center;
  font-size: .8rem; color: #b3a798;
}

/* ---------- Rechtstexte ---------- */
.legal { background: var(--paper); max-width: 820px; margin: 40px auto; padding: 44px 52px;
  border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* ---------- Responsive ---------- */
/* Untertitel ausblenden, sobald es im Kopf eng wird */
@media (max-width: 1180px) { .brand-sub { display: none; } }

@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Menü früh genug auf Hamburger umstellen, damit nichts umbricht */
@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 8px; }
  .main-nav .nav-shop { margin: 8px 0 0; text-align: center; }

  /* Im Klappmenü stehen die Unterpunkte offen untereinander –
     kein zweites Aufklappen nötig, gut mit dem Daumen zu treffen. */
  .nav-group { position: static; }
  .nav-group-top .caret { display: none; }
  .nav-sub {
    position: static; display: block; border: 0; box-shadow: none;
    background: none; padding: 0 0 4px 14px; min-width: 0;
  }
  .nav-sub a { padding: 11px 12px; font-size: .86rem; color: var(--muted); }
  .nav-sub a.active { color: var(--wine); }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-logo { height: 46px; }
  .hero { padding: 62px 20px 68px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal { padding: 26px 22px; margin: 16px; }
  .timeline { padding-left: 28px; }
}

/* ---------- Foto in News / Veranstaltungen ---------- */
.news-bild {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--r); margin: 4px 0 14px;
  display: block; background: var(--line);
}
