:root {
  --bg: #fbf8f1;
  --paper: #ffffff;
  --ink: #191715;
  --muted: #6d665e;
  --line: #ded5c8;
  --accent: #ed870d; /* Logo-Orange */
  --accent-ink: #b35c00; /* abgedunkelt: 4.5:1 auf --bg */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.services,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header — sticky; oben hoch mit Logo, gescrollt schmal mit Schriftzug */

.scroll-sentinel {
  height: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  /* volle Breite als Glasleiste, Inhalt aber auf 1120px zentriert */
  padding: 20px max(20px, calc((100% - 1120px) / 2));
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition:
    padding 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.site-header.is-stuck {
  padding-block: 4px;
  background: rgba(251, 248, 241, 0.72);
  border-bottom-color: rgba(222, 213, 200, 0.8);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
}

/* gescrollt: alles eine Spur kompakter, Leiste ~46px statt 120px */
.site-header.is-stuck .wordmark-name {
  font-size: 1.12rem;
}

.site-header.is-stuck .header-call {
  min-height: 32px;
  padding-inline: 14px;
  font-size: 0.86rem;
}

/* Logo und Schriftzug liegen übereinander und werden gekreuzblendet,
   damit beim Umschalten nichts springt. */
.brand {
  display: grid;
  align-items: center;
  margin-right: auto;
}

.brand > * {
  grid-area: 1 / 1;
  transition:
    opacity 200ms ease,
    transform 220ms ease,
    height 220ms ease;
}

.brand-logo {
  width: auto;
  height: 80px;
}

/* Das Logo muss beim Schrumpfen auch seine Höhe hergeben — sonst hält es
   die Grid-Zeile (und damit die Leiste) auf voller Höhe, obwohl es unsichtbar ist. */
.site-header.is-stuck .brand-logo {
  height: 0;
}

.site-header .wordmark {
  opacity: 0;
  transform: translateY(4px);
}

.site-header.is-stuck .brand-logo {
  opacity: 0;
  transform: translateY(-4px);
}

.site-header.is-stuck .wordmark {
  opacity: 1;
  transform: none;
}

/* Schriftzug (Header gescrollt + Footer) */

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 7px;
  width: max-content;
}

.wordmark-name {
  font-size: 1.28rem;
  font-weight: 830;
  letter-spacing: -0.035em;
}

.wordmark-name span {
  color: var(--accent-ink);
}

.wordmark-sub {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
}

.site-nav a {
  font-weight: 720;
  letter-spacing: -0.01em;
}

.site-nav a:hover {
  color: var(--accent-ink);
}

/* Sticky-Header nicht über Sprungziele legen */
[id] {
  scroll-margin-top: 84px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease;
}

.header-call:hover {
  background: var(--accent-ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  overflow-wrap: anywhere;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  color: #17140f;
  background: var(--accent);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* E-Mail-Dialog (natives <dialog>) */

.mail-dialog {
  position: fixed;
  inset: 0;
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: clamp(26px, 4vw, 36px);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(30, 20, 10, 0.28);
}

.mail-dialog::backdrop {
  background: rgba(14, 11, 8, 0.55);
  backdrop-filter: blur(3px);
}

.mail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mail-close:hover {
  color: var(--ink);
  background: #f1ebe1;
}

.mail-dialog h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.mail-address {
  margin-bottom: 22px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.98rem;
}

.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mail-actions .btn {
  flex: 1 1 auto;
  min-height: 48px;
  font-size: 0.98rem;
}

.mail-hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mail-hint a {
  color: var(--accent-ink);
  font-weight: 720;
}

/* Der Mail-Button im Hero/CTA ist ein <button>, kein <a> — Browser-Defaults kappen */
button.btn {
  font: inherit;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--accent);
}

/* Randlose Bild-Sektionen (Hero + CTA).
   background-attachment: fixed = das Holz steht, der Inhalt scrollt darüber.
   iOS Safari ignoriert das und scrollt normal mit — sieht dort weiterhin gut
   aus, deshalb bewusst kein JS-Parallax. */

.band {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: #17140f;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero {
  background-image: url("assets/hero.jpg");
}

.cta {
  background-image: url("assets/cta.jpg");
}

.hero::before {
  background: linear-gradient(
    100deg,
    rgba(14, 11, 8, 0.92) 0%,
    rgba(14, 11, 8, 0.74) 42%,
    rgba(14, 11, 8, 0.34) 100%
  );
}

.hero-inner,
.cta-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: min(76vh, 720px);
  padding: clamp(70px, 12vw, 130px) 0 clamp(48px, 7vw, 84px);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 30ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hinweis „im Aufbau" — bewusst ohne Karte/Schatten: die Seite arbeitet
   sonst nur mit Haarlinien und Typo, eine Box fiele heraus. */

.notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(56px, 8vw, 92px) 0 0;
}

.eyebrow-icon {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: -3px;
}

.notice h2 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.notice-text {
  max-width: 46ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.notice-status {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.notice-status li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.notice-status svg {
  flex: none;
  width: 19px;
  height: 19px;
}

.notice-label {
  margin-right: auto;
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.01em;
}

.notice-state {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.notice-status .is-live {
  color: var(--accent-ink);
}

.notice-status .is-live .notice-state {
  font-weight: 760;
}

/* Leistungen */

.services {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head h2 {
  max-width: 20ch;
  margin-bottom: clamp(34px, 5vw, 56px);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.service-list {
  counter-reset: service;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-list li {
  counter-increment: service;
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(18px, 2.4vw, 26px) 4px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.24rem, 2.6vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.02em;
  transition:
    color 160ms ease,
    padding-left 160ms ease;
}

.service-list li:hover {
  color: var(--accent-ink);
  padding-left: 14px;
}

.service-list li::before {
  content: counter(service, decimal-leading-zero);
  flex: none;
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* CTA */

.cta {
  padding: clamp(84px, 12vw, 150px) 0;
}

.cta::before {
  background: linear-gradient(
    170deg,
    rgba(14, 11, 8, 0.88) 0%,
    rgba(14, 11, 8, 0.74) 55%,
    rgba(14, 11, 8, 0.92) 100%
  );
}

.cta h2 {
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 8.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cta-text {
  max-width: 34ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.cta-address {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.98rem;
  font-style: normal;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding: 34px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 720;
}

.footer-links a:hover {
  color: var(--accent-ink);
}

.footer-copy {
  margin: 0;
  line-height: 1.8;
}

.footer-brand img {
  width: auto;
  height: 62px;
}

/* Credit als HTML-Kommentar getarnt — deshalb Monospace. */
.credit {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
}

.credit span {
  color: var(--accent-ink);
  opacity: 0.7;
}

.credit:hover {
  color: var(--ink);
}

.credit:hover span {
  opacity: 1;
}

/* Scroll-Reveal (wie heinemann.media).
   Alles hängt an .js — ohne JavaScript bleibt der Inhalt schlicht sichtbar,
   statt auf opacity:0 hängen zu bleiben. */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Listenzeilen laufen nacheinander ein. Bewusst animation statt transition:
   sonst würde die Verzögerung auch den Hover-Effekt der Zeilen ausbremsen. */
.js .stagger > * {
  opacity: 0;
}

.js .stagger.is-visible > * {
  animation: rise 0.5s ease both;
}

.js .stagger.is-visible > *:nth-child(2) {
  animation-delay: 70ms;
}
.js .stagger.is-visible > *:nth-child(3) {
  animation-delay: 140ms;
}
.js .stagger.is-visible > *:nth-child(4) {
  animation-delay: 210ms;
}
.js .stagger.is-visible > *:nth-child(5) {
  animation-delay: 280ms;
}
.js .stagger.is-visible > *:nth-child(6) {
  animation-delay: 350ms;
}
.js .stagger.is-visible > *:nth-child(7) {
  animation-delay: 420ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero: läuft beim Laden von selbst ein, ohne JS und ohne Observer. */
.hero-inner > * {
  animation: rise 0.7s ease both;
}

.hero-inner > *:nth-child(2) {
  animation-delay: 90ms;
}
.hero-inner > *:nth-child(3) {
  animation-delay: 180ms;
}
.hero-inner > *:nth-child(4) {
  animation-delay: 270ms;
}

/* Impressum */

.legal {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
}

.legal h1 {
  margin-bottom: 40px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.legal h2 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

.legal section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.legal p,
.legal address {
  margin-bottom: 0;
  color: var(--muted);
  font-style: normal;
}

.legal a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Touch-Geräte: fixierte Hintergründe ruckeln (und iOS ignoriert sie ohnehin) */
@media (hover: none), (max-width: 820px) {
  .band {
    background-attachment: scroll;
  }
}

@media (max-width: 860px) {
  .notice {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .services,
  .site-footer,
  .hero-inner,
  .cta-inner,
  .notice,
  .legal {
    width: min(100% - 28px, 1120px);
  }

  .footer-brand img {
    height: 54px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-logo {
    height: 38px;
  }

  .wordmark-sub {
    display: none;
  }

  .header-call {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 0.92rem;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .band {
    background-attachment: scroll;
  }

  .js .reveal,
  .js .stagger > *,
  .hero-inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  * {
    transition: none !important;
  }
}
