/* =========================================================
   Rechtsanwalt Dr. Torsten Tiefel – Website Stylesheet
   Farben: Ink #14232F · Paper #F6F4F0 · Gold #8C6B3F
   Schriften: Source Serif 4 (Headlines) · Archivo (Text)
   ========================================================= */

:root {
  --ink: #14232F;
  --ink-deep: #0E1A24;
  --paper: #F6F4F0;
  --paper-alt: #EDEAE3;
  --white: #FFFFFF;
  --gold: #8C6B3F;
  --gold-light: #C6A97A;
  --text: #3C4C58;
  --text-soft: #6C7A85;
  --on-dark: #F1EEE8;
  --on-dark-soft: #B9C3CB;
  --line: rgba(20, 35, 47, 0.12);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 1200px;
  --pad: 32px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; overflow-wrap: break-word; }
p { text-wrap: pretty; }
img { max-width: 100%; }
input, textarea, select, button { font-family: var(--sans); max-width: 100%; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow--rule { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.eyebrow--rule::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); }
.eyebrow--light { color: #9BA9B4; }
.eyebrow--gold-light { color: var(--gold-light); }

.lead { font-size: 17px; line-height: 1.65; color: var(--text); }
.muted { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 17px 30px; border-radius: 2px;
  font-size: 15.5px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--gold); color: var(--paper); }
.btn--ghost { border-color: rgba(20, 35, 47, 0.28); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 35, 47, 0.04); }
.btn--gold { background: var(--gold); color: #FFFFFF; }
.btn--gold:hover { background: #A07C4A; }
.btn--sm { padding: 13px 22px; font-size: 14.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 244, 240, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 35, 47, 0.1);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__signet { flex: 0 0 auto; display: block; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand__role { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; line-height: 1.3; text-transform: uppercase; color: var(--text-soft); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 14.5px; }
.site-nav__phone { color: var(--text-soft); white-space: nowrap; }
.site-nav a { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(20,35,47,0.25); border-radius: 2px;
  padding: 10px 14px; font-size: 14px; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 64px; align-items: stretch; padding-top: 88px; padding-bottom: 128px;
}
.hero h1 { font-size: 58px; line-height: 1.07; letter-spacing: -0.02em; margin: 0 0 24px; }
.hero__text { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 30em; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; min-height: 480px; margin: -48px 0; }
.hero__media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  background: #E4DFD6; border-radius: 2px;
}
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 60% 20%; border-radius: 2px; display: block;
}

/* ---------- Dunkler Streifen: Mandate für ---------- */
.band-dark { background: var(--ink); color: #E8E4DC; }
.mandate { padding-top: 34px; padding-bottom: 38px; }
.mandate__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 26px; font-size: 15.5px; color: var(--on-dark);
}
.mandate__grid > div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }

/* ---------- Leistungen ---------- */
.services { padding-top: 96px; padding-bottom: 24px; }
.services__head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px 56px; align-items: end; margin-bottom: 52px;
}
.services__head h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.services__head p { margin: 0; max-width: 42em; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid rgba(20, 35, 47, 0.09); border-radius: 2px;
  padding: 38px 32px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .18s ease;
}
.card:hover { border-color: var(--gold); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--serif); font-size: 14px; color: var(--gold); }
.card h3 { font-size: 25px; margin: 0; line-height: 1.2; }
.card p { font-size: 15.5px; line-height: 1.65; color: var(--text); margin: 0; }

.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--ink); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "—"; color: var(--gold); }

/* ---------- Parallax-Bänder ---------- */
.parallax { position: relative; overflow: hidden; }
.parallax--tall { height: 520px; margin-top: 72px; }
.parallax--quote { min-height: 440px; display: flex; align-items: center; }
.parallax__layer { position: absolute; inset: -18% 0; will-change: transform; }
.parallax__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.parallax--tall .parallax__layer img { object-position: 60% 45%; }
.parallax--quote .parallax__layer img { object-position: 50% 55%; }
.parallax__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.18) 100%);
}
.parallax--quote .parallax__scrim {
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.2) 100%);
}
.parallax__content { position: relative; z-index: 2; width: 100%; color: var(--on-dark); }
.parallax--tall .parallax__content { position: absolute; inset: 0; display: flex; align-items: center; }
.parallax--tall .parallax__content .wrap { width: 100%; }
.claim { font-family: var(--serif); font-size: 40px; line-height: 1.26; font-weight: 400; margin: 0; max-width: 44em; letter-spacing: -0.01em; }
.quote-block { padding-top: 132px; padding-bottom: 132px; max-width: 34em; }
.quote-block blockquote { font-family: var(--serif); font-size: 36px; line-height: 1.28; font-weight: 400; margin: 0 0 24px; letter-spacing: -0.01em; }
.quote-block cite { font-style: normal; font-size: 15.5px; color: #C3CCD3; }

/* ---------- Kanzlei ---------- */
.about { padding-top: 96px; padding-bottom: 96px; }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 64px; align-items: center; }
.about__grid > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 55% 30%; border-radius: 2px; display: block; }
.about h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 22px; }
.about__intro { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0 0 36px; max-width: 40em; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.usp-grid > div { border-top: 1px solid rgba(20, 35, 47, 0.16); padding-top: 18px; }
.usp-grid h3 { font-size: 20px; margin: 0 0 8px; }
.usp-grid p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; }

/* ---------- Ablauf ---------- */
.process { padding-top: 96px; padding-bottom: 96px; }
.process h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 48px; max-width: 22em; }
.process__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: rgba(20, 35, 47, 0.14);
}
.step { background: var(--paper); padding: 32px 26px 36px; display: flex; flex-direction: column; gap: 12px; }
.step__num { font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 21px; margin: 0; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; }

/* ---------- USP-Streifen dunkel ---------- */
.promises {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px; padding-top: 76px; padding-bottom: 76px;
}
.promise { display: flex; flex-direction: column; gap: 12px; }
.promise h3 { font-size: 22px; margin: 0; color: var(--on-dark); }
.promise p { font-size: 15px; line-height: 1.6; color: var(--on-dark-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-alt); }
.faq__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 64px; padding-top: 96px; padding-bottom: 96px; }
.faq h2 { font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 20px; }
.faq__aside p { font-size: 16px; line-height: 1.65; color: var(--text); margin: 0 0 24px; }
.faq__phone { font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--gold); }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid rgba(20, 35, 47, 0.16); }
.faq__q {
  width: 100%; background: none; border: 0; padding: 24px 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.faq__q:hover { color: var(--gold); }
.faq__sign { font-family: var(--sans); font-size: 22px; font-weight: 400; color: var(--gold); line-height: 1; }
.faq__a { font-size: 16px; line-height: 1.7; color: var(--text); margin: -6px 0 26px; max-width: 46em; display: none; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); }
.contact__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px 72px; align-items: start; padding-top: 88px; padding-bottom: 88px;
}
.contact__person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; color: var(--on-dark); }
.contact__person img {
  width: 232px; height: 232px; object-fit: cover; object-position: 60% 18%;
  border-radius: 2px; display: block; border: 1px solid rgba(198, 169, 122, 0.55);
}
.contact__name { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.contact__role { font-size: 16px; line-height: 1.5; color: var(--gold-light); }
.contact__address { font-size: 16px; line-height: 1.7; color: #E0E5EA; }
.contact__links { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.contact__links a { color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.contact__links a:hover { color: var(--gold-light); }
.contact__form-col { color: var(--on-dark); }
.contact__form-col h2 { font-size: 34px; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 18px; }
.contact__form-col > p { font-size: 16.5px; line-height: 1.65; color: #C3CCD3; margin: 0 0 26px; max-width: 40em; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__hint { font-size: 14px; color: #9BA9B4; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  border: 0; border-radius: 2px; padding: 15px 16px; font-size: 15px;
  color: var(--ink); background: var(--white); width: 100%;
}
.form select { -webkit-appearance: none; appearance: none; }
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #7C8894; }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; color: #C3CCD3; }
.form__check input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; }
.form__check a { color: #E9DCC4; border-bottom: 1px solid rgba(198, 169, 122, 0.7); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 10px; }
.form__foot a { font-size: 15px; color: #C3CCD3; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.form__foot a:hover { color: var(--on-dark); }
.form-success {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(198, 169, 122, 0.4);
  border-radius: 2px; padding: 32px; display: none; flex-direction: column; gap: 12px;
}
.form-success h3 { font-size: 24px; margin: 0; }
.form-success p { font-size: 16px; line-height: 1.65; color: #C3CCD3; margin: 0; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { margin: 4px 0 0; padding: 12px 14px; border-radius: 2px; font-size: 14.5px; line-height: 1.5; color: #FBE9E4; background: rgba(190, 70, 50, 0.25); border: 1px solid rgba(220, 110, 90, 0.55); }
.form__error[hidden] { display: none !important; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-success[hidden] { display: none !important; }
.is-sent .form { display: none !important; }
.is-sent .form-success { display: flex !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-soft); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; padding-top: 64px; padding-bottom: 28px;
}
.site-footer__brand {
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--on-dark);
  margin-bottom: 10px; display: flex; align-items: center; gap: 11px;
}
.site-footer p { font-size: 14.5px; line-height: 1.65; margin: 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.site-footer__col-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6E8091; margin-bottom: 4px; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #6E8091;
}
.site-footer__legal a { color: #6E8091; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 72px var(--pad) 96px; }
.legal h1 { font-size: 46px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
.legal__intro { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 56px; max-width: 42em; }
.legal section { margin-bottom: 48px; }
.legal section:last-child { margin-bottom: 0; }
.legal h2 { font-size: 26px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(20, 35, 47, 0.14); }
.legal h3 { font-size: 20px; margin: 0 0 12px; }
.legal p { font-size: 16.5px; line-height: 1.75; color: var(--text); margin: 0 0 14px; }
.legal p:last-child { margin-bottom: 0; }
.legal a { border-bottom: 1px solid rgba(140, 107, 63, 0.5); overflow-wrap: anywhere; }
.legal strong { color: var(--gold); }
.legal .ticks { font-size: 16px; color: var(--text); line-height: 1.7; gap: 10px; margin-bottom: 18px; }
.legal .ticks li::before { flex: 0 0 auto; }
.toc { background: var(--white); border: 1px solid rgba(20, 35, 47, 0.1); border-radius: 2px; padding: 28px 32px; margin-bottom: 56px; }
.toc ol {
  margin: 0; padding-left: 20px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 32px; font-size: 15.5px; line-height: 1.6; color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .hero { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .hero__text { font-size: 17px; }
  .services__head h2, .about h2, .process h2 { font-size: 32px; }
  .claim { font-size: 28px; }
  .quote-block blockquote { font-size: 27px; }
  .quote-block { padding-top: 88px; padding-bottom: 88px; }
  .parallax--tall { height: 420px; }
  .contact__form-col h2 { font-size: 27px; }
  .legal h1 { font-size: 34px; }
  .legal h2 { font-size: 22px; }
  .services, .about, .process, .faq__inner, .contact__inner { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: block; order: 2; }
  .site-nav { display: none; width: 100%; order: 3; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { width: 100%; text-align: center; }
}

@media (max-width: 720px) {
  .parallax--tall { height: 360px; }
  .contact__person img { width: 180px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax__layer { transform: none !important; }
}
