/* Integro – Stylesheet. Farben und Schriften aus dem Markenset „Tiefsee und Messing“. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v31-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-v18-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-v18-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --surface: #F6F3EE;
  --surface-raised: #FFFFFF;
  --line: #E3DDD2;
  --ink: #0F2A44;
  --ink-muted: #4F5F70;
  --tiefsee: #0F2A44;
  --on-tiefsee: #F6F3EE;
  --on-tiefsee-muted: #B9C4D0;
  --petrol: #1F6F78;
  --petrol-soft: #E2EFEF;
  --messing: #C8A15A;
  --messing-text: #7E6128;
  --messing-soft: #F3EAD7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --wrap: 1120px;
  --gutter: 24px;
  --section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--messing); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.015em; }
h1 { font-size: clamp(42px, 5.6vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: 19px; line-height: 1.4; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-muted); max-width: 34em; }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tiefsee); color: var(--on-tiefsee); padding: 8px 16px; z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--tiefsee);
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--tiefsee); color: var(--on-tiefsee); }
.btn-primary:hover { background: var(--petrol); border-color: var(--petrol); color: var(--on-tiefsee); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--surface-raised); color: var(--ink); }
.btn-light { background: var(--on-tiefsee); color: var(--tiefsee); border-color: var(--on-tiefsee); }
.btn-light:hover { background: var(--messing); border-color: var(--messing); color: var(--tiefsee); }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 243, 238, .94); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark span { color: var(--messing); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--petrol); }
.nav .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 600px; }
.hero-text { padding: 96px 64px 96px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { margin-bottom: 28px; }
.hero-text .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { position: relative; background: var(--tiefsee); color: var(--on-tiefsee); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 40px 48px 120px; }
.hero-panel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--tiefsee); }
.hero-facts { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.hero-facts li { padding: 14px 0; border-top: 1px solid rgba(246, 243, 238, .18); font-size: 16px; line-height: 1.45; }
.hero-facts li:first-child { border-top: 0; }
.hero-facts strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--messing); }
.hero-disc { position: absolute; top: 96px; left: 0; width: 220px; height: 220px; transform: translateX(-50%); z-index: 2; }
.hero-disc .left { fill: var(--tiefsee); }
.hero-disc .right { fill: var(--messing); }

/* Abschnitte */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 18px; }

/* Ausgangslage */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pains p.q { font-family: var(--font-display); font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
.pains p.q::before { content: "„"; color: var(--messing); }
.pains p.q::after { content: "“"; color: var(--messing); }

/* Leistungen & Preise */
.offer-group { margin-bottom: 56px; }
.offer-group:last-of-type { margin-bottom: 32px; }
.offer-group > h3 { font-size: 15px; color: var(--ink-muted); font-weight: 600; margin-bottom: 12px; }
.offers { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.offer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: 32px; padding: 28px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.offer h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; }
.offer .for { font-size: 15px; color: var(--ink-muted); margin: 0; }
.offer .desc { margin: 0; }
.offer .price { text-align: right; }
.offer .price b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.1; white-space: nowrap; }
.offer .price span { font-size: 14px; color: var(--ink-muted); }
.offer.featured { background: var(--messing-soft); border-bottom-color: var(--messing); }
.offer .tag { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--messing-text); }
.price-note { font-size: 15px; color: var(--ink-muted); max-width: 46em; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 28px 0 0; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 24px;
  background: var(--surface); border: 1.5px solid var(--tiefsee);
  font-family: var(--font-display); font-size: 22px; color: var(--ink); position: relative; z-index: 1;
}
.steps li:first-child::before { background: var(--tiefsee); color: var(--on-tiefsee); }
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--ink-muted); }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--tiefsee); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: 24px; }
.about-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.about-facts li { padding-left: 28px; position: relative; }
.about-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--messing); }

/* Referenzen */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; }
.case .branch { font-size: 15px; color: var(--ink-muted); margin-bottom: 12px; }
.case .result { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.case .result b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--petrol); line-height: 1.15; }
.case.placeholder { border-style: dashed; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; max-width: 42em; color: var(--ink-muted); }

/* Kontakt */
.contact { background: var(--tiefsee); color: var(--on-tiefsee); }
.contact .section-head .lead, .contact .muted { color: var(--on-tiefsee-muted); }
.contact a { color: var(--on-tiefsee); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.form label .opt { font-weight: 400; color: var(--on-tiefsee-muted); }
.form input, .form textarea {
  width: 100%; font: 400 16px/1.5 var(--font-sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--messing); box-shadow: 0 0 0 3px rgba(200, 161, 90, .35); }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--messing); }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.error { color: #F2B8A8; }
.form-status.ok { color: var(--messing); }
.direct { border-top: 1px solid rgba(246, 243, 238, .18); padding-top: 24px; }
.direct p { margin-bottom: 20px; }
.direct strong { display: block; font-size: 15px; color: var(--on-tiefsee-muted); font-weight: 400; }
.direct a { font-family: var(--font-display); font-size: 24px; text-decoration: none; }
.direct a:hover { color: var(--messing); }

/* Fußzeile */
.site-footer { padding: 40px 0; font-size: 15px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--ink-muted); }

/* Rechtstexte */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-muted); }
.legal address { font-style: normal; color: var(--ink-muted); margin-bottom: 1em; }

/* Responsiv */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 64px 0 120px; }
  .hero-panel { margin: 0 calc(var(--gutter) * -1); padding: 140px var(--gutter) 40px; }
  .hero-panel::after { display: none; }
  .hero-disc { top: 0; left: 50%; width: 180px; height: 180px; transform: translate(-50%, -50%) rotate(90deg); }
  .pains, .cases { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .about, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 420px; }
}
@media (max-width: 760px) {
  :root { --section: 72px; --gutter: 20px; }
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 1.5px solid var(--tiefsee); }
  .nav-toggle { display: flex; }
  .offer { grid-template-columns: 1fr; gap: 12px; padding: 24px 16px; }
  .offer .price { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .form { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
}

/* Navigation: Button-Farben gegen die Link-Farbe absichern */
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-tiefsee); }
.hero-text { padding-right: 112px; }
@media (max-width: 1000px) { .hero-text { padding-right: 0; } }

/* Bildzeichen statt Porträt */
.brandmark { border-radius: var(--radius-md); overflow: hidden; max-width: 460px; }
.brandmark svg { width: 100%; height: auto; display: block; }

/* Videos */
.clips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.clip { margin: 0; }
.clip video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius-md); background: var(--tiefsee); display: block; }
.clip figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; }
@media (max-width: 1000px) {
  .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .clip { scroll-snap-align: start; }
}

/* ===================== Bewegung & Lebendigkeit ===================== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --dur: .55s; }

/* Scroll-Fortschritt im Kopf */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--messing); transform-origin: 0 50%; transform: scaleX(0); }
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 42, 68, .08); }

/* Einblenden beim Scrollen (nur mit JS, sonst sofort sichtbar) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero: Auftakt beim Laden */
.hero-disc { overflow: visible; }
.hero-disc .ring { stroke: var(--messing); stroke-width: 1.5; stroke-dasharray: 3 9; opacity: .55; transform-origin: 100px 100px; animation: drehen 40s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.js .hero-disc .left { animation: links-rein 1.1s var(--ease-out) .25s both; }
.js .hero-disc .right { animation: rechts-rein 1.1s var(--ease-out) .25s both; }
@keyframes links-rein { from { transform: translateX(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rechts-rein { from { transform: translateX(70px); opacity: 0; } to { transform: none; opacity: 1; } }
.js .hero-text > * { animation: auftauchen .8s var(--ease-out) both; }
.js .hero-text > :nth-child(1) { animation-delay: .1s; }
.js .hero-text > :nth-child(2) { animation-delay: .25s; }
.js .hero-text > :nth-child(3) { animation-delay: .4s; }
.js .hero-facts li, .js .panel-bar { animation: auftauchen .7s var(--ease-out) both; }
.js .panel-bar { animation-delay: .7s; }
.js .hero-facts li:nth-child(1) { animation-delay: .85s; }
.js .hero-facts li:nth-child(2) { animation-delay: 1s; }
.js .hero-facts li:nth-child(3) { animation-delay: 1.15s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero-Panel im Interface-Stil der Videos */
.panel-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-tiefsee-muted); padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(246, 243, 238, .18); }
.panel-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(246, 243, 238, .25); }
.panel-bar span:first-child { background: var(--messing); }
.panel-bar span:nth-child(2) { background: var(--petrol); margin-right: 8px; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(185, 196, 208, .14) 1.2px, transparent 1.2px); background-size: 28px 28px; pointer-events: none; }

/* Buttons: spürbares Feedback */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.btn:active { transform: scale(.97); }

/* Leistungen: Zeilen reagieren */
.offer { transition: background-color .25s ease; }
.offer:hover { background: rgba(255, 255, 255, .7); }
.offer.featured:hover { background: var(--messing-soft); }
.offer .price b { font-variant-numeric: tabular-nums; }

/* Ablauf: Linie zeichnet sich, Punkte füllen sich nacheinander */
.js .steps li::after { transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 260ms + 200ms); background: var(--messing); }
.js .steps.is-in li::after { transform: scaleX(1); }
.js .steps li::before { transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out); transition-delay: calc(var(--i, 0) * 260ms); }
.js .steps.is-in li::before { background: var(--tiefsee); color: var(--on-tiefsee); }
.js .steps li:not(:first-child)::before { transform: scale(.85); }
.js .steps.is-in li::before { transform: none; }

/* Karten und Videos */
.case, .clip video { transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.case:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 42, 68, .10); }
.clip:hover video { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 42, 68, .18); }

/* Fragen: Antwort weich einblenden */
.faq details[open] .answer { animation: auftauchen .35s var(--ease-out); }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--petrol); }

/* Bildzeichen „Über uns“: Hälften fahren beim Scrollen zusammen */
.brandmark svg path { transition: transform 1s var(--ease-out); }
.js .brandmark:not(.is-in) svg path:nth-of-type(1) { transform: translateX(-60px); }
.js .brandmark:not(.is-in) svg path:nth-of-type(2) { transform: translateX(60px); }

/* Weniger Bewegung gewünscht: alles sofort im Endzustand */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-disc .ring { animation: none; }
  .js .hero-disc .left, .js .hero-disc .right, .js .hero-text > *, .js .hero-facts li, .js .panel-bar { animation: none; }
  .js .steps li::after { transform: scaleX(1); transition: none; }
  .js .steps li::before { transform: none; transition: none; }
  .js .brandmark svg path { transform: none !important; transition: none; }
  .case:hover, .clip:hover video { transform: none; }
}

/* Spam-Falle im Formular (für Menschen unsichtbar) */
.hp { display: none !important; }
