:root {
  --bg: #f6f6f1;
  --surface: #ffffff;
  --surface-soft: #eef0e8;
  --text: #242821;
  --muted: #62695e;
  --green: #495f38;
  --green-dark: #293523;
  --green-light: #dfe8d6;
  --border: #d7dbd0;
  --shadow: 0 14px 40px rgba(27, 35, 24, .10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(246, 246, 241, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(73, 95, 56, .12);
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--green-dark); }

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #d9dfd2 url("assets/images/rebblatt.jpg") center right / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.3) 23px 24px);
  pointer-events: none;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,246,241,.98), rgba(246,246,241,.78) 48%, rgba(246,246,241,.12)); }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.5rem));
  margin-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding: 6rem 0;
}
.eyebrow {
  margin: 0 0 .6rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--green);
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.13; margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(3.2rem, 8vw, 7rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.hero-lead { font-size: clamp(1.25rem, 2.5vw, 1.75rem); max-width: 680px; margin: 0 0 1rem; }
.hero-copy { max-width: 650px; color: #4d5448; margin: 0 0 2rem; font-size: 1.05rem; }
.lead { font-size: 1.18rem; color: #3d4339; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
}
.button:hover { transform: translateY(-1px); }
.button-light { background: #fff; color: var(--green-dark); }

.section { padding: 6rem max(1.25rem, calc((100vw - var(--max)) / 2)); }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--green-dark); color: #f4f5f1; }
.section-dark .eyebrow { color: #bfceaF; }
.section-dark p { color: #d9dfd2; }
.section-heading { max-width: 760px; margin-bottom: 2.4rem; }
.section-heading.narrow { max-width: 820px; }

.product-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; }
.product-card, .info-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.product-card { transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-main { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.product-card-main p { color: #dce3d7; }
.product-icon { display: block; font-size: 2rem; margin-bottom: 1rem; }
.product-card p, .info-card p { color: var(--muted); }
.product-card-main .card-link { color: #e8eee3; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--green); }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }
.intro-split { align-items: start; }
.feature-copy { max-width: 560px; }
.compact-list { margin: 1.5rem 0 0; padding-left: 1.2rem; }
.compact-list li + li { margin-top: .45rem; }

.screenshot {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(32, 40, 29, .13);
  border-radius: 16px;
  padding: .65rem;
  box-shadow: var(--shadow);
}
.screenshot img { width: 100%; border-radius: 10px; }
.screenshot figcaption { padding: .7rem .35rem .2rem; color: var(--muted); font-size: .88rem; }
.screenshot-feature { margin-top: .5rem; }
.screenshot-dark { box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.image-stack { display: grid; gap: 1.25rem; }

.callout-section { padding-top: 3rem; padding-bottom: 3rem; }
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}
.callout p { margin-bottom: 0; color: #edf2e8; }
.callout .eyebrow { color: #dfe8d6; }
.callout h2 { margin-bottom: .4rem; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-box { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: start; }
.contact-placeholder { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.contact-placeholder p { margin-bottom: 0; color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: #20271d;
  color: #dce3d6;
  font-size: .9rem;
}
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { color: inherit; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .nav { justify-content: flex-end; }
  .product-grid, .split, .two-column, .contact-box { grid-template-columns: 1fr; }
  .product-grid { gap: 1rem; }
  .split { gap: 2rem; }
  .split-reverse > :first-child, .split-reverse > :last-child { order: initial; }
  .feature-copy { max-width: none; }
  .callout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .site-header { position: static; display: block; }
  .brand { display: inline-block; margin-bottom: .75rem; }
  .nav { gap: .5rem 1rem; justify-content: flex-start; }
  .hero { min-height: auto; }
  .hero-overlay { background: rgba(246,246,241,.82); }
  .hero-content { padding: 5rem 0; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .site-footer { flex-direction: column; }
}

/* Ergänzungen Entwurf 02 */
.screenshot-wide { max-width: 760px; }
.contact-details { display: grid; gap: 1rem; }
.contact-card, .support-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem;
}
.contact-card p, .support-card p { color: var(--muted); }
.contact-card p { margin-bottom: 0; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.support-card h3 { margin-bottom: .6rem; }
.support-card .button { margin-top: .4rem; }

.legal-page { min-height: 100vh; background: var(--bg); }
.legal-header {
  padding: 1rem max(1.25rem, calc((100vw - 900px) / 2)); background: var(--green-dark); color: #fff;
}
.legal-header a { text-decoration: none; font-weight: 800; }
.legal-content {
  width: min(900px, calc(100% - 2.5rem)); margin: 3rem auto 5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.legal-content h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.legal-content h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-top: 2.2rem; }
.legal-content h3 { margin-top: 1.8rem; }
.legal-content h4 { margin-bottom: .4rem; }
.legal-content a { color: var(--green); overflow-wrap: anywhere; }
.legal-content li + li { margin-top: .45rem; }
@media (max-width: 680px) { .legal-content { margin-top: 1.25rem; } }

/* Ergänzungen Gesamtstand 03 */
.brand-logo{display:flex;align-items:center;width:min(310px,38vw)}
.brand-logo img{width:100%;max-height:58px;object-fit:contain;object-position:left center}
.product-card{position:relative;min-height:260px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate;background-size:cover;background-position:center;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.55)}
.product-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(20,28,18,.08) 12%,rgba(20,28,18,.84) 100%)}
.product-card::after{content:"";position:absolute;inset:0;z-index:-2;background:#495f38}
.product-card-skow{background-image:url("assets/images/kachel-skow-muster.jpg")}
.product-card-sektdata{background-image:url("assets/images/kachel-sektdata.jpg")}
.product-card-weindata{background-image:url("assets/images/kachel-weindata.jpg")}
.product-card p,.product-card-main p,.product-card .card-link,.product-card-main .card-link{color:#fff}
.product-card h3{font-size:clamp(1.7rem,2.6vw,2.35rem);margin-bottom:.2rem}
.product-card .card-link{font-weight:700}
#sektdata .feature-copy h3{margin:1.45rem 0 .35rem;color:var(--green-dark)}
#sektdata .feature-copy h3:first-child{margin-top:0}
.weindata-copy{max-width:850px;margin:0 auto}
.weindata-copy .lead{font-size:1.12rem}
@media(max-width:780px){.brand-logo{width:min(245px,68vw)}.product-card{min-height:220px}}


/* Ergänzungen Gesamtstand 04 */
.brand-logo{width:min(410px,46vw)}
.brand-logo img{max-height:78px}
#skow .intro-split .eyebrow,#sektdata>.section-heading .eyebrow,#weindata>.section-heading .eyebrow{font-size:clamp(1.05rem,1.7vw,1.35rem);font-weight:900;letter-spacing:.12em}
.product-card{background-color:#354a2d;background-repeat:no-repeat;background-size:cover;background-position:center}
.product-card::before,.product-card::after{display:none}
.product-card-skow{background-image:linear-gradient(180deg,rgba(20,28,18,.10) 8%,rgba(20,28,18,.88) 100%),url("assets/images/kachel-skow-muster.jpg")}
.product-card-sektdata{background-image:linear-gradient(180deg,rgba(20,28,18,.10) 8%,rgba(20,28,18,.88) 100%),url("assets/images/kachel-sektdata.jpg")}
.product-card-weindata{background-image:linear-gradient(180deg,rgba(20,28,18,.10) 8%,rgba(20,28,18,.88) 100%),url("assets/images/kachel-weindata.jpg")}
.feature-copy-wide{max-width:900px;margin:0 auto 1.4rem;text-align:center}
.screenshot-grid{display:grid;gap:1rem;align-items:start}
.screenshot-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.screenshot-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.screenshot-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.screenshot-grid .screenshot{margin:0}
.screenshot-grid .screenshot img{display:block;aspect-ratio:4/3;object-fit:contain;background:#fff}
.screenshot img{cursor:zoom-in}
.lightbox{width:auto;max-width:96vw;max-height:96vh;padding:1rem;border:0;border-radius:14px;background:#f7f8f5;box-shadow:0 24px 80px rgba(0,0,0,.45);overflow:auto}
.lightbox::backdrop{background:rgba(10,14,9,.82)}
.lightbox img{display:block;max-width:92vw;max-height:88vh;width:auto;height:auto;margin:auto}
.lightbox-close{position:sticky;top:0;float:right;z-index:2;width:2.6rem;height:2.6rem;margin:0 0 .5rem .5rem;border:0;border-radius:999px;background:#26371f;color:#fff;font-size:1.8rem;line-height:1;cursor:pointer}
@media(max-width:980px){.screenshot-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.screenshot-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.brand-logo{width:min(320px,78vw)}.brand-logo img{max-height:66px}.screenshot-grid-4,.screenshot-grid-3,.screenshot-grid-2{grid-template-columns:1fr}}

/* Flächenverwaltung: Text oben, Doppelpack darunter wie bei den übrigen Bildgruppen */
.area-screenshots{grid-column:1/-1;margin-top:.35rem}
@media(min-width:900px){.feature-block .split:has(.area-screenshots){display:block}.feature-block .split:has(.area-screenshots) .feature-copy{max-width:900px;margin-bottom:1.25rem}}

/* Smartphone-Hochformat: Haupttitel vollständig im Viewport halten */
@media (max-width: 680px) {
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); letter-spacing: -.045em; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 2.25rem; }
}
