/* Schröder Dachsicherheit – Website-Entwurf. Farben und Schriften wie auf sd-dachsicherheit.de */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #ededea;
  --surface: #ffffff;
  --navy: #1a2744;
  --red: #c8323c;
  --red-dark: #a92730;
  --text: #374151;
  --line: #d9d9d4;
  --radius: 14px;
  --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h2.serif { font-family: var(--serif); font-weight: 400; }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.red { color: var(--red); }
.center { text-align: center; }
.eyebrow { color: var(--red); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }

.demo-note { background: var(--navy); color: #dfe3ec; font-size: .8rem; text-align: center; padding: .45rem 1rem; }
.demo-note a { color: #fff; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 2rem; padding: 0 clamp(1rem, 4vw, 3rem); background: rgba(237, 237, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { border-radius: 6px; background: #fff; }
.brand strong { display: block; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.brand small { font-size: .78rem; color: #5b6478; letter-spacing: .03em; }
.nav { display: flex; gap: 1.6rem; }
.nav a, .site-header .btn, .brand strong { white-space: nowrap; }
.nav a { text-decoration: none; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }

.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* Einstieg */
.hero { min-height: calc(100vh - var(--header-h) - 30px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 7vw, 7rem); background: #f7f7f5; }
.lead { font-size: 1.12rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .95rem; font-size: .85rem; color: var(--navy); font-weight: 500; }
.hero-card { margin: 0; background: #fff; padding: .7rem; border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 60px -30px rgba(26, 39, 68, .35); }
.hero-card img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card figcaption { font-size: .82rem; padding: .7rem .5rem .2rem; color: #5b6478; }

/* Scroll-Animation */
.story { height: 520vh; position: relative; background: var(--bg); }
.story-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(300px, 30rem) 1fr; align-items: center; overflow: hidden; }
.story-panel { grid-column: 1; grid-row: 1; padding-left: clamp(1.2rem, 6vw, 6rem); position: relative; z-index: 2; }
.stage { grid-column: 2; grid-row: 1; position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.stage canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage-caption { position: absolute; bottom: 1rem; right: 1.5rem; margin: 0; font-size: .75rem; color: #7b8192; }

.story-nav { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 2.2rem; counter-reset: s; }
.story-nav li { flex: 1; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9aa0ae; padding-top: .6rem; border-top: 3px solid var(--line); transition: color .3s, border-color .3s; }
.story-nav li.on { color: var(--navy); border-color: var(--red); }
.story-steps { position: relative; min-height: 21rem; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s; pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }

.labels { position: absolute; inset: 0; pointer-events: none; }
.labels { opacity: 0; transition: opacity .4s; }
.labels.on { opacity: 1; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders line { stroke: var(--navy); stroke-width: 1.5; }
.leaders circle { fill: var(--red); stroke: rgba(200, 50, 60, .28); stroke-width: 6; }
.tag { position: absolute; transform: translate(0, -50%); background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: .34rem .75rem; border-radius: 6px; white-space: nowrap; }
.tag.left { transform: translate(-100%, -50%); }

/* Abschnitte */
.section { padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 7vw, 7rem); max-width: 86rem; margin: 0 auto; }
.sub { max-width: 40rem; margin: 0 auto 3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--red); margin-bottom: .8rem; }
.cards .card { transition: transform .25s, box-shadow .25s; }
.cards .card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(26, 39, 68, .4); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about img { border-radius: calc(var(--radius) + 4px); aspect-ratio: 4 / 3; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.facts li { padding-left: 1.1rem; border-left: 3px solid var(--red); font-size: .95rem; }
.facts strong { display: block; color: var(--navy); }

.faq { max-width: 50rem; margin: 3rem auto 0; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; }

.cta { background: var(--red); color: #fff; text-align: center; border-radius: 22px; padding: clamp(3rem, 6vw, 5rem) 1.5rem; margin: 0 clamp(1.2rem, 7vw, 7rem); }
.cta h2 { color: #fff; }
.cta p { margin-bottom: 2rem; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 3rem; text-align: center; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.label { font-family: var(--serif); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.role { color: var(--red); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }

/* Fuß */
.site-footer { background: var(--red); color: #fff; margin-top: clamp(4rem, 8vw, 7rem); padding: 2.5rem clamp(1.2rem, 4vw, 3rem) 1.5rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand-light { color: #fff; margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: .8rem; }
.badges img { height: 52px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
.footer-links { display: flex; gap: 1.4rem; }
.site-footer a { color: #fff; font-size: .9rem; }
.copy { text-align: center; font-size: .8rem; margin: 2rem 0 0; opacity: .9; }

@media (max-width: 1150px) {
  .site-header { gap: 1.2rem; }
  .nav { gap: 1.1rem; }
  .brand small { display: none; }
  .brand strong { font-size: .8rem; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .about { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 52% 48%; align-items: start; }
  .stage { grid-column: 1; grid-row: 1; }
  .story-panel { grid-column: 1; grid-row: 2; padding: 1rem 1.2rem 0; }
  .story-nav { margin-bottom: 1.2rem; }
  .story-nav li { font-size: .62rem; }
  .step h2 { font-size: 1.45rem; }
  .step p { font-size: .95rem; }
  .tag { font-size: .65rem; padding: .2rem .45rem; }
  .stage-caption { display: none; }
  .brand small { display: none; }
  .site-header .btn { padding: .6rem .9rem; font-size: .85rem; }
  .site-header { gap: .8rem; }
  .brand { min-width: 0; gap: .6rem; }
  .brand strong { white-space: normal; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .btn, .cards .card { transition: none; }
}
