/* ==========================================================================
   prodomum.ch – Stylesheet
   Dunkel, minimalistisch, kantig. Linien statt Boxen.
   ========================================================================== */

:root {
  --bg: #0A0A0B;
  --surface: #111113;
  --surface-2: #1C1C1F;
  --text: #F5F5F7;
  --text-2: #E5E5EA;
  --muted: #A1A1A6;
  --muted-2: #8E8E93;
  --dim: #6E6E73;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);

  /* Flächen mit Transparenz (Kopfzeile, Formular, Video) */
  --header-bg: rgba(10, 10, 11, 0.72);
  --field-line: rgba(255, 255, 255, 0.25);
  --link-line: rgba(255, 255, 255, 0.3);
  --play-bg: rgba(10, 10, 11, 0.6);

  /* Logofarben (Blau für dunklen Grund leicht aufgehellt) */
  --blue: #4A6BD0;
  --orange: #EE7F1E;
  --green: #62B23A;
  /* Farben für kleine Schrift – gut lesbar auf dem jeweiligen Grund */
  --blue-text: #6B88E0;
  --orange-text: #EE7F1E;
  --green-text: #62B23A;

  /* Hintergrund-Dächer: voll deckende, zurückhaltende Töne (keine Transparenz, nichts scheint durch) */
  --blue-roof: #182036;
  --orange-roof: #3D2510;
  --green-roof: #1D3016;
  --blue-glow: rgba(74, 107, 208, 0.22);
  --orange-glow: rgba(238, 127, 30, 0.22);
  --green-glow: rgba(98, 178, 58, 0.22);
  --roof-line: var(--line-strong);
  --roof-glow: transparent;
  --accent: var(--text);

  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-wipe: cubic-bezier(.7, 0, .3, 1);

  /* Azo Sans (Adobe Fonts, wie im Logo) */
  --font: 'azo-sans-web', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Dauer des Intros, danach starten die Animationen der Seite */
  --intro: 1.8s;

  color-scheme: dark;
}

/* Helle Ansicht (Umschalter Sonne/Mond in der Kopfzeile) */
html[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --surface-2: #E8E8ED;
  --text: #1D1D1F;
  --text-2: #2C2C2E;
  --muted: #515154;
  --muted-2: #6E6E73;
  --dim: #86868B;
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.22);

  --header-bg: rgba(255, 255, 255, 0.78);
  --field-line: rgba(0, 0, 0, 0.25);
  --link-line: rgba(0, 0, 0, 0.3);
  --play-bg: rgba(255, 255, 255, 0.7);

  /* Originales Logo-Blau; dunklere Töne für kleine Schrift auf Weiss */
  --blue: #2E4B9E;
  --blue-text: #2E4B9E;
  --orange-text: #B85C0C;
  --green-text: #3F7F22;

  /* Helle, voll deckende Dächer im Hintergrund */
  --blue-roof: #D6DDF2;
  --orange-roof: #FADDC4;
  --green-roof: #D9EBCF;
  --blue-glow: rgba(46, 75, 158, 0.12);
  --orange-glow: rgba(238, 127, 30, 0.14);
  --green-glow: rgba(98, 178, 58, 0.14);

  color-scheme: light;
}

/* Fest im HTML eingetragene Logofarben an die Ansicht anpassen */
g[fill="#F5F5F7"] { fill: var(--text); }
[stroke="#F5F5F7"] { stroke: var(--text); }
[stroke="#4A6BD0"] { stroke: var(--blue); }

.page-home { --intro: 2.2s; }

/* Intro nur beim ersten Besuch einer Seite (gesteuert im <head> jeder Seite) */
html.intro-seen,
html.intro-seen body { --intro: 0s; }
html.intro-seen .intro { display: none; }

/* Sanfter Wechsel zwischen den Seiten, wenn das Intro schon gesehen wurde */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* Bereichsfarbe je Seite */
.page-bau      { --accent: var(--blue);   --roof-line: var(--blue-roof);   --roof-glow: var(--blue-glow); }
.page-raeumung { --accent: var(--orange); --roof-line: var(--orange-roof); --roof-glow: var(--orange-glow); }
.page-content  { --accent: var(--green);  --roof-line: var(--green-roof);  --roof-glow: var(--green-glow); }

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

main, .site-footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; align-items: center; padding: 10px 0; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo svg { display: block; width: 122px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}
.nav-links a { color: var(--muted); padding: 14px 0; transition: color .3s; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Bereiche im Menü: Farbe des Bereichs beim Darüberfahren und auf der aktiven Seite */
.nav-links a[href="bauberatung.html"]:hover,
.nav-links a[href="bauberatung.html"][aria-current="page"] { color: var(--blue-text); }
.nav-links a[href="raeumung.html"]:hover,
.nav-links a[href="raeumung.html"][aria-current="page"] { color: var(--orange-text); }
.nav-links a[href="content-creation.html"]:hover,
.nav-links a[href="content-creation.html"][aria-current="page"] { color: var(--green-text); }

/* Umschalter Hell/Dunkel: im dunklen Modus Sonne, im hellen Modus Mond */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  transition: color .3s, transform .5s var(--ease-out);
}
.theme-toggle:hover { transform: rotate(-20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Kreisförmiger Übergang beim Umschalten (nur dort, nicht beim Seitenwechsel) */
html.theme-switching::view-transition-old(root),
html.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.menu-toggle .bars { display: flex; flex-direction: column; gap: 6px; }
.menu-toggle .bars span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.site-header.is-open .menu-toggle .bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .menu-toggle .bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: flex; order: 2; }
  .theme-toggle { order: 1; margin-right: -8px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.02em;
    display: none;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

.display {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.display-sub {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--muted-2);
}

.lead {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow svg { width: 34px; height: 16px; flex: none; }
.eyebrow path { stroke: var(--accent); }

.h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.h2 .soft { font-weight: 300; color: var(--muted-2); }
.h2-xl { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }

.label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */

.hero { padding-top: 140px; }
.page-home .hero {
  min-height: calc(82vh - 60px);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-sub .hero { padding-top: 120px; }
.section { padding-top: 140px; }
.section-lg { padding-top: 160px; }
.section-sm { padding-top: 88px; }
.section-md { padding-top: 120px; }


/* Startseite: drei Bereiche als Liste mit Bildfläche
   (nach «Features With Panel» von 21st.dev; kantig statt abgerundet) */
.features-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.fp-heading { margin-bottom: 40px; }
.fp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }

.fp-item {
  --area: var(--text);
  --area-text: var(--text);
  border: 1px solid transparent;
  transition: border-color .25s;
}
.fp-item[data-area="bauberatung"] { --area: var(--blue); --area-text: var(--blue-text); }
.fp-item[data-area="raeumung"] { --area: var(--orange); --area-text: var(--orange-text); }
.fp-item[data-area="content"] { --area: var(--green); --area-text: var(--green-text); }
.fp-item:hover { border-color: var(--line-soft); }
.fp-item.is-active { border-color: var(--line-strong); }

.fp-tab {
  width: 100%;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fp-num {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--muted);
  transition: background-color .25s, color .25s;
}
/* Dach am Wortende wie im Logo, mit etwas Luft über den Buchstaben */
.fp-title {
  position: relative;
  margin-right: .5em;
  padding: .45em 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .25s;
}
.fp-title svg {
  position: absolute;
  top: calc(.2em + 2px);
  right: -.5em;
  width: 1.2em;
  height: .545em;
  overflow: visible;
}
.fp-title path { stroke-width: 2; }
.fp-tab:hover .fp-title { color: var(--text); }
.fp-item.is-active .fp-num { background: var(--area); color: #fff; }
.fp-item.is-active .fp-title { color: var(--area-text); }

.fp-body { padding: 0 18px 20px 64px; }
.fp-body:not([hidden]) { animation: pd-rise-in .5s var(--ease-out) both; }
.fp-body p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.fp-body .more { display: inline-block; margin-top: 12px; font-size: 15px; }
.fp-body .more span { display: inline-block; transition: transform .4s var(--ease-out); }
.fp-body .more:hover span { transform: translateX(6px); }

/* Bildfläche rechts, bleibt beim Scrollen stehen */
.fp-panel {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.fp-media { margin: 0; }
.fp-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fp-media[data-area="content"] img { object-position: 50% 30%; }
.fp-panel .fp-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.fp-panel .fp-media:not(.is-active) { visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.fp-panel .fp-media.is-active { opacity: 1; transform: none; }
.fp-media-inline { display: none; }

/* Content Creation: Video statt Foto, YouTube erst nach dem Klick */
.fp-video { background: var(--surface); }
.fp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .features-panel { grid-template-columns: 1fr; gap: 0; }
  .fp-panel { display: none; }
  .fp-media-inline { display: block; position: relative; margin-top: 18px; aspect-ratio: 4 / 3; overflow: hidden; }
  .fp-media-inline.fp-video { aspect-ratio: 16 / 9; }
  .fp-body { padding-left: 18px; }
}

/* Startseite: Erfahrung */
.statements {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.statements li { padding: 24px 0; border-top: 1px solid var(--line); }
.statements li:last-child { border-bottom: 1px solid var(--line); }

/* Startseite: Name */
.name { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: baseline; }
.name h2 {
  margin: 0;
  flex: 1 1 380px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.name h2 span { font-weight: 300; color: var(--dim); }
.name p { margin: 0; flex: 1 1 320px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.name p strong { font-weight: 400; color: var(--text); }

/* Kontakt */
.contact { display: flex; flex-wrap: wrap; gap: 56px 80px; padding: 160px 0 140px; }
.contact-intro { flex: 1 1 300px; min-width: 0; }
.mail-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 16px;
  border-bottom: 1px solid var(--link-line);
  padding-bottom: 3px;
}
.mail-link:hover { text-decoration: none; border-bottom-color: var(--text); }

.form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px 32px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: transparent;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  min-height: 46px;
  transition: border-color .3s;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A1A1A6' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
  padding-right: 28px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--text); }
/* Unsichtbares Feld gegen Spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; min-height: 20px; font-size: 13px; color: var(--muted-2); }

/* Kontaktseite: direkte Wege und interaktives Formular */
.page-contact .contact { padding-top: 120px; }
.contact-direct { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.contact-direct li { display: grid; gap: 6px; font-size: 16px; color: var(--muted); }
.contact-direct .mail-link { margin-top: 0; justify-self: start; color: var(--text); }

.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label {
  padding: 0;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hint { text-transform: none; letter-spacing: 0; color: var(--dim); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-card {
  --area: var(--text);
  --area-text: var(--text);
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.choice-card[data-area="bauberatung"] { --area: var(--blue); --area-text: var(--blue-text); }
.choice-card[data-area="raeumung"] { --area: var(--orange); --area-text: var(--orange-text); }
.choice-card[data-area="content"] { --area: var(--green); --area-text: var(--green-text); }
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card:hover { border-color: var(--line-strong); }
.choice-num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--muted);
  transition: background-color .25s, color .25s;
}
.choice-title { margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); transition: color .25s; }
.choice-text { font-size: 13px; line-height: 1.4; color: var(--muted-2); }
.choice-card:has(input:checked) { border-color: var(--area); background: var(--surface); }
.choice-card:has(input:checked) .choice-num { background: var(--area); color: #fff; }
.choice-card:has(input:checked) .choice-title { color: var(--area-text); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }

.field-foot { display: flex; justify-content: space-between; gap: 16px; }
.counter { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--dim); }
.field-error { margin: 8px 0 0; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--orange-text); }
.field-foot .field-error { margin: 0; }
.field [aria-invalid="true"] { border-bottom-color: var(--orange-text); }
.form.is-sent .btn { border-color: var(--green-text); color: var(--green-text); }

/* Desktop: Kontaktseite passt ohne Scrollen in die Bildschirmhöhe (unter der Kopfzeile) */
@media (min-width: 901px) {
  .page-contact .contact {
    min-height: calc(100vh - 61px);
    min-height: calc(100svh - 61px);
    padding: clamp(20px, 5vh, 72px) 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 64px;
  }
  .page-contact .contact-intro { flex: 0 1 38%; }
  .page-contact .contact-intro .h2-xl { font-size: clamp(34px, min(5vw, 8.5vh), 64px); }
  .page-contact .lead { margin-top: clamp(10px, 2vh, 24px); font-size: clamp(16px, 2.4vh, 19px); }
  .page-contact .contact-direct { margin-top: clamp(16px, 4vh, 40px); gap: clamp(10px, 2vh, 20px); }
  .page-contact .form { flex: 1 1 62%; gap: clamp(12px, 2.6vh, 28px); }
  .page-contact .form-row { gap: clamp(12px, 2.6vh, 28px) 32px; }
  .page-contact .field-label { margin-bottom: clamp(6px, 1.4vh, 14px); }
  .page-contact .choice-card { padding: clamp(8px, 1.6vh, 16px) 14px; gap: 4px; }
  .page-contact .choice-num { width: 22px; height: 22px; font-size: 11px; }
  .page-contact .choice-title { margin-top: clamp(0px, .6vh, 6px); font-size: 14px; }
  .page-contact .field input,
  .page-contact .field textarea { font-size: 16px; min-height: 0; padding: clamp(4px, 1vh, 10px) 0; }
  .page-contact .field textarea { height: clamp(56px, 16vh, 160px); min-height: 56px; }
  .page-contact .btn { min-height: 0; padding: clamp(10px, 1.6vh, 14px) 28px; }
  .page-contact .form-note:empty { display: none; }
}
/* Niedrige Bildschirme: Kurzbeschrieb der Bereiche weglassen */
@media (min-width: 901px) and (max-height: 700px) {
  .page-contact .choice-text { display: none; }
  .page-contact .choice-card { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
  .page-contact .choice-title { margin-top: 0; }
  .page-contact .field textarea { height: clamp(56px, 12vh, 100px); }
}

@media (max-width: 640px) {
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .choice-title { margin-top: 0; }
  .choice-text { grid-column: 2; }
}

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 14px 32px;
  min-height: 48px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--text); color: var(--bg); text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 36px;
  font-size: 12px;
  color: var(--muted-2);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { color: var(--muted); padding: 12px 0; }

/* --------------------------------------------------------------------------
   Unterseiten
   -------------------------------------------------------------------------- */

.rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.rows h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.rows p { margin: 0; font-size: 16px; color: var(--muted); }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.steps li:first-child { border-top-color: var(--accent); }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
/* Nur oben/unten setzen, damit der seitliche Rand von .container erhalten bleibt */
.cta-section { padding-top: 140px; padding-bottom: 110px; }
.more-areas { margin: 56px 0 0; font-size: 15px; color: var(--muted-2); }
.more-areas a { display: inline-block; margin-left: 20px; padding: 10px 0; }

/* Bilder & Platzhalter: fehlt ein Bild, bleibt der beschriftete Platzhalter sichtbar */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.ratio-wide { aspect-ratio: 16 / 7; }
.ratio-video { aspect-ratio: 16 / 9; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-photo { aspect-ratio: 3 / 2; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* Video: Vorschaufläche, YouTube wird erst nach dem Klick geladen */
.video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.video-roof {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.video-roof path { stroke: var(--roof-line); stroke-width: 0.5; }
.video-play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--text);
  background: var(--play-bg);
  transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease-out);
}
.video-start:hover .video-play,
.video-start:focus-visible .video-play {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: scale(1.06);
}
.video-note { position: absolute; left: 20px; bottom: 16px; font-size: 12px; color: var(--muted-2); }
.video-caption { margin-top: 28px; display: grid; gap: 10px; }
.video-caption .h2 { font-size: clamp(24px, 3vw, 36px); }
.video-caption p:last-child { margin: 0; font-size: 16px; color: var(--muted); }

/* Marke RPro-Photography: Text links, 2×2 quadratische Bilder rechts (5px Abstand) */
.brand {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand-lead { margin: 0; max-width: 440px; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; font-weight: 300; letter-spacing: -0.015em; color: var(--text-2); }
.brand-note { margin: 0 0 12px; max-width: 440px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.brand-text .btn { white-space: nowrap; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.brand-grid figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1 / 1; background: #0A0A0B; }
/* Hochformat-Fotos quadratisch zeigen; Ausschnitt wie auf rpro-photography.ch (50% 18%) */
.brand-grid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 760px) { .brand { grid-template-columns: 1fr; } }

/* Vorher / Nachher */
.ba {
  --pos: 50%;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-user-select: none;
  user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-after { background: var(--surface); }
.ba-after .media-label { justify-content: flex-end; padding: 0 48px; }
.ba-before { background: var(--surface-2); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .media-label { justify-content: flex-start; padding: 0 48px; color: var(--muted-2); }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 20px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ba-tag-left { left: 20px; }
.ba-tag-right { right: 20px; }
.ba input {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 1px;
  background: var(--accent);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  z-index: 3;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform .25s var(--ease-out);
}
.ba:active .ba-handle { transform: translate(-50%, -50%) scale(1.1); }
.ba input:focus-visible ~ .ba-handle { outline: 2px solid var(--text); outline-offset: 3px; }
.ba-hint { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); }

/* Rechtliche Seiten */
.legal { max-width: 720px; padding: 120px 0 120px; }
.legal h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.legal p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal h1 + p { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Grosses Dach im Hintergrund (Unterseiten)
   -------------------------------------------------------------------------- */

.bg-roof {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Gleich zentriert wie .intro-big, damit das Dach nach dem Intro an derselben Stelle steht */
.bg-roof svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  min-width: 1100px;
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
  filter: drop-shadow(0 0 22px var(--roof-glow));
}
.bg-roof path {
  stroke: var(--roof-line);
  stroke-width: 0.26;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: pd-big 11s var(--ease) calc(var(--intro) + .6s) infinite;
}

/* Startseite: alle drei Dächer wie im Logo, leicht versetzt nacheinander */
/* Reihenfolge im HTML wie im Logo: Grün unten, Blau, Orange oben – Orange deckt den Ansatz von Blau ab */
.roof-orange { --accent: var(--orange); --roof-line: var(--orange-roof); --roof-glow: var(--orange-glow); }
.roof-blue   { --accent: var(--blue);   --roof-line: var(--blue-roof);   --roof-glow: var(--blue-glow); }
.roof-green  { --accent: var(--green);  --roof-line: var(--green-roof);  --roof-glow: var(--green-glow); }
.bg-roof.trio path { stroke-width: 0.13; }
.bg-roof .roof-blue path  { animation-delay: calc(var(--intro) + .95s); }
.bg-roof .roof-green path { animation-delay: calc(var(--intro) + 1.3s); }

/* --------------------------------------------------------------------------
   Seitenübergang
   -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  animation: pd-wipe .7s var(--ease-wipe) var(--intro) forwards;
}

/* Dachlinien im Intro zeichnen sich nacheinander (Startzeit über --t) */
.intro .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: pd-draw .9s var(--ease) var(--t, .1s) forwards;
}

/* Startseite: Logo baut sich auf – Buchstaben zeichnen sich, füllen sich, dann die Dächer */
.intro-logo { position: relative; z-index: 1; width: min(65vw, 560px); height: auto; overflow: visible; }
.intro-logo .glyph {
  fill: var(--text);
  fill-opacity: 0;
  stroke: var(--text);
  stroke-width: 0.12;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    pd-draw .7s var(--ease) var(--t) forwards,
    pd-fill .4s ease calc(var(--t) + .35s) forwards;
}

/* Unterseiten: Bereichsname mit dem Dach in der Bereichsfarbe, aufgebaut wie im Logo */
.intro-lockup {
  position: relative;
  z-index: 1;
  margin-right: .43em;
  font-size: clamp(36px, 6.75vw, 86px);
  line-height: 1;
}

/* Grosses Dach im Hintergrund des Intros – liegt genau dort, wo danach das Hintergrund-Dach der Seite sitzt */
.intro-big {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  min-width: 1100px;
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
  filter: drop-shadow(0 0 22px var(--roof-glow));
}
.intro-big path { stroke: var(--roof-line); stroke-width: 0.26; }
.intro-big.trio path { stroke-width: 0.13; }
.intro-big .line { animation-duration: 1.3s; }

/* Handy: Dachspitze sitzt genau an der Unterkante des Menüs (60px), Dach 10% weiter rechts.
   Breite = max(150vw, 1100px); Spitze liegt bei 1.5/44 (ein Dach) bzw. 0.79/22.5 (drei Dächer) der Breite. */
@media (max-width: 760px) {
  .bg-roof svg,
  .intro-big {
    top: calc(60px - max(150vw, 1100px) * 1.5 / 44);
    left: 60%;
    transform: translate(-50%, 0);
  }
  .bg-roof.trio svg,
  .intro-big.trio {
    top: calc(60px - max(150vw, 1100px) * 0.79 / 22.5);
  }
}
.intro-word {
  display: block;
  padding: .12em 0 .22em;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  clip-path: inset(0 100% 0 0);
  animation: pd-reveal-x .8s var(--ease) .1s forwards;
}
.intro-roof {
  position: absolute;
  top: .04em;
  right: -.43em;
  width: 1.2em;
  height: .545em;
  overflow: visible;
}
.intro-roof path { stroke: var(--accent); stroke-width: 1.1; }

/* Drei Dächer (Rechtliches) */
.intro-roofs { width: min(80vw, 960px); height: auto; overflow: visible; }

.intro.is-leaving {
  clip-path: inset(100% 0 0 0);
  animation: pd-cover .45s var(--ease-wipe) forwards;
}
.intro.is-leaving > * { visibility: hidden; }

/* --------------------------------------------------------------------------
   Animationen
   -------------------------------------------------------------------------- */

/* Dachlinien zeichnen sich nach dem Seitenübergang */
.draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: pd-draw 2.2s var(--ease) calc(var(--intro) + .1s) forwards;
}
.draw .d2 { animation-delay: calc(var(--intro) + .45s); }
.draw .d3 { animation-delay: calc(var(--intro) + .8s); }

.hero-in { animation: pd-rise-in 1.2s var(--ease-out) calc(var(--intro) + .2s) both; }
.fade-in { animation: pd-fade 1.2s ease calc(var(--intro) + .7s) both; }

/* Einblenden beim Scrollen (nur mit JavaScript, sonst sofort sichtbar) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

.js .reveal-img {
  opacity: 0;
  clip-path: inset(14% 0 0 0);
  transform: scale(1.04);
  transition: opacity 1s var(--ease-out), clip-path 1.2s var(--ease-out), transform 1.6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.js .reveal-img.in { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }

.js .icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease) .2s;
}
.js .icon.in path { stroke-dashoffset: 0; }

@keyframes pd-draw  { to { stroke-dashoffset: 0; } }
@keyframes pd-big   { 0% { stroke-dashoffset: 1; } 28% { stroke-dashoffset: 0; } 58% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: -1; } 100% { stroke-dashoffset: -1; } }
@keyframes pd-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pd-fill  { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes pd-reveal-x { to { clip-path: inset(0 0 0 0); } }
@keyframes pd-wipe  { to { clip-path: inset(0 0 100% 0); } }
@keyframes pd-cover { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .draw path,
  .bg-roof path,
  .js .icon path { animation: none; transition: none; stroke-dashoffset: 0; }
  .hero-in, .fade-in { animation: none; opacity: 1; transform: none; }
  .js .reveal,
  .js .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .fp-body:not([hidden]) { animation: none; }
  .fp-panel .fp-media { transition: none; transform: none; }
}
