/* =====================================================================
   Familienweinbau Schober – Website-Stylesheet
   Gleiche Designsprache wie der Weinshop. Keine externen Ressourcen.
   ===================================================================== */

:root {
  /* Farben direkt aus dem Logo abgeleitet:
     Gold #c8b073 und Tafel-Schwarz #161716 wurden aus der Logodatei gemessen. */
  --wine:      #9b2b3b;   /* helles, klares Weinrot (Hauptakzent) */
  --wine-deep: #7a2030;   /* dunkler für Verläufe und Hover */
  --gold:      #c8b073;   /* Logo-Gold – auf dunklem Grund */
  --gold-ink:  #8a6d3b;   /* dunkleres Gold – lesbar auf hellem Grund */
  --ink:       #1a1a19;   /* Textfarbe, am Logo-Schwarz orientiert */
  --charcoal:  #161716;   /* Tafel-Schwarz aus dem Logo */
  --bg:        #f8f4ed;
  --paper:     #ffffff;
  --muted:     #857a6e;
  --line:      #eae2d5;

  --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(125,34,49,.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: #fff; font-weight: 600; margin-left: 8px; padding: 10px 18px;
}
.main-nav .nav-shop:hover { background: var(--wine); color: #fff; }

/* 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(200,176,115,.20), transparent 60%),
    linear-gradient(180deg, #fdfbf7 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 ---------- */
.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; }
}
@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);
}

/* ---------- Betriebs-Vorstellung ----------
   Abschnitte, die der Betrieb selbst pflegt. Das Layout ist fest
   vorgegeben: Text und Fotos nebeneinander, abwechselnd rechts und
   links. Auf dem Handy stehen sie untereinander, Text zuerst. */
.betrieb-block {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: var(--wrap); margin: 0 auto;
}
.betrieb-block.bild-links .betrieb-text   { order: 2; }
.betrieb-block.bild-links .betrieb-bilder { order: 1; }
.betrieb-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5em; }
.betrieb-text p  { color: var(--muted); margin: 0 0 1em; }
.betrieb-text ul { color: var(--muted); margin: 0 0 1em; padding-left: 1.2em; }
.betrieb-text li { margin-bottom: .4em; }
.betrieb-text :last-child { margin-bottom: 0; }

.betrieb-bilder img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r); box-shadow: var(--shadow); border: 5px solid #fff;
}
/* Mehrere Fotos: kleine Galerie, das erste bleibt das große */
.betrieb-bilder.galerie { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.betrieb-bilder.galerie img:first-child { grid-column: 1 / -1; }

.betrieb-nurtext { padding: 0; }
.betrieb-nurtext h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5em; }

@media (max-width: 860px) {
  .betrieb-block { grid-template-columns: 1fr; gap: 26px; }
  /* Auf dem Handy immer Text zuerst – sonst steht man vor einem Bild
     ohne zu wissen, worum es geht. */
  .betrieb-block.bild-links .betrieb-text   { order: 1; }
  .betrieb-block.bild-links .betrieb-bilder { order: 2; }
}

/* ---------- Foto-Großansicht ----------
   Klick auf ein Foto der Betriebs-Vorstellung zeigt es bildschirmfuellend.
   Das Fenster baut js/site.js beim ersten Klick. Ein Klick irgendwohin
   schliesst wieder – auch auf das Bild selbst. */
.betrieb-bilder img { cursor: zoom-in; }
.foto-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 40px 20px; cursor: zoom-out;
  background: rgba(20, 16, 14, .88);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.foto-overlay.open { display: flex; animation: fotoEin .2s var(--ease); }
.foto-overlay figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; }
.foto-overlay img {
  display: block; margin: 0 auto; cursor: zoom-out;
  max-width: min(1000px, 100%); max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r); background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  animation: fotoAuf .26s var(--ease);
}
.foto-overlay figcaption {
  margin-top: 16px; color: #f4ece2; font-family: Georgia, serif; font-size: 1.05rem;
}
.foto-close {
  position: absolute; top: 16px; right: 18px; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35);
  color: #fff; font-size: 1.8rem; line-height: 1;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.foto-close:hover { background: rgba(0, 0, 0, .6); transform: scale(1.06); }
body.kein-scroll { overflow: hidden; }

@keyframes fotoEin { from { opacity: 0; } to { opacity: 1; } }
@keyframes fotoAuf {
  from { opacity: 0; transform: scale(.88) translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .foto-overlay.open, .foto-overlay img { animation: none; }
}
@media (max-width: 640px) {
  .foto-overlay { padding: 20px 12px; }
  .foto-overlay img { max-height: calc(100vh - 130px); }
  .foto-close { top: 10px; right: 10px; width: 42px; height: 42px; }
}
