/* Fonts are self-hosted so no visitor data is sent to third parties (see datenschutz.html) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --fg: #f4f1ea;
  --muted: #9a978f;
  --line: #26262a;
  --accent: #ff6a3d;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 11, 12, .8); backdrop-filter: blur(12px); border-color: var(--line); }
.brand { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav nav a:not(.nav-cta) { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }
.nav-cta { border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; transition: border-color .2s; }
.nav-cta:hover { border-color: var(--fg); }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 64px;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(255, 106, 61, .18), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(120, 80, 255, .12), transparent 70%);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 9vw, 140px); line-height: .95; letter-spacing: -.02em;
}
h1 .line { display: block; opacity: 0; transform: translateY(30px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
h1 .line:nth-child(2) { font-style: italic; color: var(--accent); }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { max-width: 560px; margin-top: 32px; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 15px; border: 1px solid var(--line); cursor: pointer; font-family: inherit; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: scroll 40s linear infinite; font-family: var(--serif); font-size: 32px; white-space: nowrap; }
.marquee-track .sep { color: var(--accent); font-size: 20px; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.section-head .eyebrow { margin: 0; order: 2; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.5vw, 72px); line-height: 1; letter-spacing: -.01em; }

/* Disciplines */
.disciplines { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.discipline { background: var(--bg); padding: 40px 32px; transition: background .3s; }
.discipline:hover { background: var(--bg-2); }
.discipline .num { font-size: 13px; color: var(--accent); }
.discipline h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 48px 0 12px; }
.discipline ul { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.discipline li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.pricing-link { margin-top: 32px; }

/* Pricing modal */
.modal {
  margin: auto; width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px);
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(28px, 5vw, 48px);
}
.modal[open] { animation: pop .35s cubic-bezier(.2, .7, .2, 1); }
.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 28px; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--fg); }
.price-list { list-style: none; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-list h3 { font-weight: 500; font-size: 17px; }
.price-list span { font-size: 14px; }
.price-list strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--accent); white-space: nowrap; }
.modal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 16px; }
.modal-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; }
.modal-stats strong { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.modal-stats span { font-size: 13px; }
.modal .btn { margin-top: 20px; }

/* Stats */
.stats-wrap { padding-block: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1; }

/* Portfolio */
.chip { background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 14px var(--sans); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; }
.chip:hover { color: var(--fg); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.portfolio { border: 1px solid var(--line); border-radius: 12px; padding: clamp(32px, 6vw, 80px); text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(255, 106, 61, .12), transparent 70%); }
.portfolio h2 { margin-bottom: 20px; }
.portfolio p.muted { max-width: 520px; margin: 0 auto 32px; }

/* Clients & testimonials */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; font-family: var(--serif); font-size: 28px; color: var(--muted); }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.quote blockquote { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin-bottom: 20px; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.process li { border-top: 1px solid var(--fg); padding-top: 20px; }
.process .num { font-size: 13px; color: var(--accent); }
.process h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 16px 0 8px; }

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-title { font-size: clamp(44px, 7vw, 104px); margin-bottom: 56px; }
.contact-form { display: grid; gap: 24px; max-width: 760px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.contact-form fieldset { border: 0; }
.contact-form legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { display: inline-flex; position: relative; }
input:not([type="checkbox"]), textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg); font: 18px var(--sans); padding: 10px 0; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding: 48px var(--pad); border-top: 1px solid var(--line); }
.footer .small { flex-basis: 100%; }
.legal-link { text-decoration: underline; text-underline-offset: 3px; }
.legal-link:hover { color: var(--fg); }

/* Legal pages */
.legal { max-width: 720px; padding: 140px var(--pad) 96px; }
.legal h1 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 48px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal address { font-style: normal; color: var(--muted); }
.legal p + p, .legal p + address { margin-top: 12px; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .line, .reveal { opacity: 1; transform: none; }
}
