/* Schwarz + Neuenschwander – Notariat und Steuerpraxis */
:root {
  --bg: #f4f2ec;
  --bg-alt: #ebe8e0;
  --ink: #1e2925;
  --ink-soft: #46504b;
  --muted: #7c817c;
  --green: #22302a;
  --green-2: #2c3b34;
  --gold: #a8916a;
  --line: #d9d4c8;
  --white: #fbfaf7;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--ink); color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--solid { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--solid:hover { background: var(--ink); }
.btn--light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--green); }
.arrow::after { content: "→"; font-family: var(--sans); transition: transform .2s; display: inline-block; }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }
.textlink {
  display: inline-flex; gap: 10px; align-items: center; font-weight: 500; font-size: .92rem;
  text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--ink);
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,242,236,.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { text-decoration: none; display: block; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; letter-spacing: .02em; text-transform: uppercase; display: block; line-height: 1.02; }
.brand-sub { font-family: var(--serif); font-size: .86rem; color: var(--ink-soft); display: block; margin-top: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: .9rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-cta { padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); padding: 10px 12px; cursor: pointer; color: var(--ink); font: inherit; font-size: .85rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-text { padding: 80px var(--gutter) 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); align-self: center; }
.hero-text p { font-size: 1.02rem; color: var(--ink-soft); max-width: 460px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-media { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(20,28,24,.45)); }
.hero-claim { position: absolute; right: 36px; bottom: 30px; z-index: 1; color: var(--white); text-align: right; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.9; }

/* Kompetenzen */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.intro-split p { color: var(--ink-soft); max-width: 470px; }
.services { display: grid; grid-template-columns: repeat(5, 1fr); }
.service { padding: 6px 28px 10px; border-left: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; }
.service:first-child { border-left: 0; padding-left: 0; }
.service-num { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.service h3 { font-size: 1.35rem; margin-bottom: 14px; min-height: 2.3em; }
.service p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.service .arrow::after { color: var(--gold); font-size: 1.2rem; }
.service:hover h3 { color: var(--green-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Team teaser */
.team-teaser { display: grid; grid-template-columns: .9fr 1.55fr .5fr; gap: 0; align-items: center; }
.team-teaser .copy { padding-right: 48px; }
.team-teaser .copy p { color: var(--ink-soft); margin: 26px 0 30px; }
.team-teaser figure { margin: 0; }
.team-teaser figure img { width: 100%; aspect-ratio: 1.85 / 1; object-fit: cover; object-position: center 20%; }
.quote { padding-left: 32px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.7rem; line-height: 1.22; }
.quote .rule { width: 36px; height: 1px; background: var(--gold); margin: 30px 0 14px; }
.quote small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.6; display: block; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.story-media { position: relative; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,20,18,.55), rgba(15,20,18,0) 55%); z-index: 1; }
.story-label { position: absolute; left: 34px; top: 38px; z-index: 2; color: var(--white); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.9; }
.story-text { padding: 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 80px 64px; align-self: center; }
.story-text p { color: var(--ink-soft); margin: 26px 0 30px; max-width: 480px; }

/* CTA */
.cta { position: relative; background: var(--green); color: var(--white); overflow: hidden; }
.cta-inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.cta .rule { width: 36px; height: 1px; background: rgba(255,255,255,.6); margin-bottom: 28px; }
.cta h2 { max-width: 640px; }
.cta p { margin: 18px 0 34px; color: rgba(251,250,247,.82); }
.cta-media { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.cta-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green) 0%, rgba(34,48,42,.55) 45%, rgba(34,48,42,.15)); z-index: 1; }

/* Page header (subpages) */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-soft); max-width: 640px; margin-top: 22px; font-size: 1.05rem; }

/* Service detail rows */
.svc-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; padding: 64px 0; border-bottom: 1px solid var(--line); align-items: center; scroll-margin-top: 110px; }
.svc-row:nth-of-type(even) .svc-media { order: 2; }
.svc-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-copy .service-num { margin-bottom: 14px; }
.svc-copy h2 { font-size: 2.2rem; margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; color: var(--ink-soft); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--gold); }

/* Kosten */
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.fee-table td { text-align: right; font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }
.note { font-size: .88rem; color: var(--muted); }

/* Team page */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; background: var(--bg-alt); }
.person h3 { margin-top: 18px; font-size: 1.4rem; }
.person .role { color: var(--gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 12px; }
.person dl { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.person dt { font-weight: 600; color: var(--ink); margin-top: 8px; font-size: .78rem; }
.person dd { margin: 0; overflow-wrap: anywhere; }
.person a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.people--small { grid-template-columns: repeat(4, 1fr); }
.people--small .person h3 { font-size: 1.2rem; }
.initials { width: 100%; aspect-ratio: 4 / 5; background: var(--bg-alt); display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--gold); }
.wide-photo { margin: 0 0 72px; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 25%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-block { padding: 26px 0; border-top: 1px solid var(--line); }
.contact-block h2 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-block p { margin: 0; color: var(--ink-soft); }
.contact-block a { color: var(--ink); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr 0.8fr; gap: 32px; align-items: start; font-size: .86rem; }
.footer-top p { margin: 0; }
.footer-top a { text-decoration: none; }
.footer-top .textlink { border-bottom-width: 1px; font-size: .86rem; padding-bottom: 2px; margin-bottom: 8px; }
.footer-legal a { display: block; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); font-size: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; font-size: .74rem; color: var(--muted); }
.footer-bottom span:last-child { letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .service:nth-child(4) { border-left: 0; padding-left: 0; }
  .team-teaser { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .quote { grid-column: 1 / -1; padding-left: 0; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero, .story { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px var(--gutter); }
  .hero-media { aspect-ratio: 4 / 3; }
  .story-media { aspect-ratio: 4 / 3; }
  .story-text { padding: 56px var(--gutter); }
  .intro-split, .svc-row, .fees, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-row:nth-of-type(even) .svc-media { order: 0; }
  .cta-media { width: 100%; opacity: .35; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .service h3 { min-height: 0; }
  .team-teaser { grid-template-columns: 1fr; }
  .team-teaser .copy { padding-right: 0; }
  .people, .people--small { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Logo */
.brand-logo { width: 280px; height: auto; display: block; }
.brand-logo--footer { width: 220px; }
@media (max-width: 640px) { .brand-logo { width: 210px; } .brand-logo--footer { width: 200px; } }
