/* ============================================================
   Dönnhoff Digital — style.css
   Webseiten von nebenan.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --violet:   #6E5BFF;
  --ink:      #1A1820;
  --paper:    #F8F6F2;
  --stone:    #6B6873;
  --lavender: #E8E2FF;

  /* Fonts */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Layout */
  --nav-h: 100px;
  --maxw: 960px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography helpers ---------- */
.display-xl {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.light { color: var(--paper); }
.accent { color: var(--violet); font-style: italic; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.label--violet { color: var(--violet); }
.label--ink { color: var(--ink); }

/* Wordmark */
.wordmark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.wordmark--light { color: var(--paper); }
.wordmark .dot { color: var(--violet); }

/* ---------- Layout ---------- */
.section {
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.container--narrow { max-width: 760px; }

.section--paper { background: var(--paper); color: var(--ink); }
.section--ink   { background: var(--ink);   color: var(--paper); }
.section--violet{ background: var(--violet); color: #fff; }

.section .label { display: block; margin-bottom: 20px; }
.section .display-lg { margin-bottom: clamp(40px, 6vh, 72px); }

/* ============================================================
   00 — Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--ink);
  z-index: 100;
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.35); }

.nav__inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 256px; width: auto; }
.nav__brand .wordmark { color: var(--paper); }
.nav__brand .wordmark .dot { color: var(--violet); }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--violet); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   01 — Hero
   ============================================================ */
.hero {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  padding: var(--nav-h) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__inner { max-width: 1400px; margin: 0 auto; width: 100%; }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.85s var(--ease), opacity 0.85s var(--ease);
}
.hero.is-ready .hero__line:nth-child(1) > span { transition-delay: 0.05s; }
.hero.is-ready .hero__line:nth-child(2) > span { transition-delay: 0.18s; }
.hero.is-ready .hero__line > span { transform: translateY(0); opacity: 1; }

.hero__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-top: 32px;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.45s;
}
.hero.is-ready .hero__meta { opacity: 1; }

.hero__cta {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--violet);
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.6s;
}
.hero.is-ready .hero__cta { opacity: 1; }
.hero__cta .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.hero__cta:hover .arrow { transform: translateX(6px); }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.9s;
}
.hero.is-ready .hero__scroll { opacity: 1; }
.hero__scroll-arrow { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   02 — Leistungen
   ============================================================ */
.services { margin-top: 8px; border-top: 1px solid rgba(26,24,32,0.08); }
.service {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vh, 44px) 16px;
  border-bottom: 1px solid rgba(26,24,32,0.08);
  margin: 0 -16px;
  transition: background-color 0.3s var(--ease);
}
.service:hover { background: var(--lavender); }
.service__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  flex-shrink: 0;
  padding-top: 6px;
}
.service__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.service__text {
  font-size: 16px;
  color: var(--stone);
  max-width: 52ch;
}

/* ============================================================
   03 — Für wen  /  split layouts
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split__detail p { color: var(--stone); margin-bottom: 20px; max-width: 46ch; }
.section--ink .split__detail p { color: var(--stone); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  background: var(--lavender);
  padding: 7px 13px;
  border-radius: 4px;
}

/* ============================================================
   04 — Ablauf
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 11px; left: 0; right: 0;
  height: 1px;
  background: var(--lavender);
}
.step { position: relative; padding-top: 36px; }
.step::before {
  content: "";
  position: absolute;
  top: 6px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--violet);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  display: block;
  margin-bottom: 12px;
}
.step__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 8px;
}
.step__text { font-size: 15px; color: var(--stone); }

/* ============================================================
   05 — Preise
   ============================================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.plan {
  background: rgba(248,246,242,0.05);
  border: 1px solid rgba(110,91,255,0.2);
  border-radius: 10px;
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(110,91,255,0.45); }
.plan--featured {
  background: rgba(110,91,255,0.1);
  border-color: var(--violet);
}
.plan__badge {
  position: absolute;
  top: -11px; left: clamp(28px, 3vw, 36px);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--violet);
  padding: 4px 10px;
  border-radius: 4px;
}
.plan__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--paper);
  margin-bottom: 6px;
}
.plan__price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--violet);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(248,246,242,0.12);
}
.plan__features { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.plan__features li { font-size: 15px; color: var(--stone); }
.plan__cta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
}
.plan__cta .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.plan__cta:hover .arrow { transform: translateX(4px); }

.plans__note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  margin-top: 28px;
  text-align: center;
}
.plans__cta { text-align: center; margin-top: 14px; color: var(--stone); }
.plans__cta a { color: var(--violet); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.plans__cta a:hover { border-color: var(--violet); }

/* ============================================================
   06 — Über mich
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about__photo {
  aspect-ratio: 1 / 1;
  background: var(--lavender);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 120px);
  color: var(--violet);
  gap: 6px;
}
.about__placeholder small {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.about__text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--ink);
}
.about__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  transition: transform 0.3s var(--ease);
}
.about__link:hover { transform: translateX(4px); }

/* ============================================================
   07 — FAQ
   ============================================================ */
.faq { border-top: 1px solid rgba(248,246,242,0.08); }
.faq__item { border-bottom: 1px solid rgba(248,246,242,0.08); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--paper);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--violet);
  transition: transform 0.3s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__item[open] .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.faq__item p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  padding: 0 4px 28px;
}

/* ============================================================
   08 — Kontakt
   ============================================================ */
.section--violet .label--ink { color: rgba(26,24,32,0.7); }
.contact__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 1;
  color: #fff;
  margin-bottom: 18px;
}
.contact__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.contact__mail {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
  position: relative;
}
.contact__mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(1); }

.contact__form {
  margin-top: 56px;
  display: grid;
  gap: 22px;
  max-width: 540px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 13px 15px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.5); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.14);
}
.contact__submit {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 15px 28px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.contact__submit:hover { transform: translateY(-2px); }
.contact__submit .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.contact__submit:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--stone);
  padding: 32px var(--gutter);
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__center,
.footer__links {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.footer__links a { transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--violet); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 15px; }

  .hero__title { font-size: clamp(42px, 12vw, 72px); }

  .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 280px; }

  .service { flex-direction: column; gap: 10px; }
  .service__num { padding-top: 0; }

  .footer__inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__line > span { transform: none; opacity: 1; }
  .hero__meta, .hero__cta, .hero__scroll { opacity: 1; }
}
