/* ---------------------------------------------------------------
   Rechtsanwalt Dr. Huber – Stylesheet
   Palette aus dem Porträt: Petrol, Gold, Creme, Oxblood.
   Schriften: System-Stacks (kein Font-Download von Drittservern).
   --------------------------------------------------------------- */

:root {
  --petrol-900: #0b1f26;
  --petrol-800: #102a33;
  --petrol-700: #16363f;
  --petrol-600: #1f4552;
  --gold: #c9a56a;
  --gold-soft: #e3cfa6;
  --oxblood: #7a2e2e;
  --cream: #f5f0e6;
  --paper: #fbf9f4;
  --ink: #1a1f22;
  --ink-soft: #4a5257;
  --line: rgba(16, 42, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(var(--wrap), 100% - 5rem); } }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--petrol-900); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--petrol-900); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 38, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; letter-spacing: .04em;
  padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: #fff; border-color: var(--gold); }
.nav .nav-cta { color: var(--gold); border: 1px solid var(--gold); padding: .5rem 1rem; border-radius: var(--radius); }
.nav .nav-cta:hover { background: var(--gold); color: var(--petrol-900); }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .brand img { width: 170px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--petrol-900); border-bottom: 1px solid var(--line-dark);
    padding: .5rem 1rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: .75rem; text-align: center; border-bottom: 1px solid var(--gold); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(201,165,106,.10), transparent 60%),
    linear-gradient(180deg, var(--petrol-900) 0%, var(--petrol-800) 60%, var(--petrol-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end;
  min-height: min(calc(100vh - 76px), 860px);
}
.hero-text { padding: 5rem 0 4.5rem; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  color: #fff;
  margin: 0 0 1.5rem;
}
.hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 34rem; margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
.hero-facts {
  list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 2rem;
  border-top: 1px solid var(--line-dark); padding-top: 1.5rem; width: fit-content;
}
.hero-facts li { display: flex; flex-direction: column; gap: .15rem; }
.hero-facts strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--gold-soft); }
.hero-facts span { font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .02em; }

.hero-portrait { margin: 0; align-self: end; position: relative; }
.hero-portrait img {
  width: 100%; max-width: 560px; margin-inline: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-text { padding: 3.5rem 0 2.5rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; width: 100%; }
  .hero-portrait img { max-width: 420px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2, .contact h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--petrol-800); }
.section-lede { font-size: 1.12rem; color: var(--ink-soft); margin-top: 1.25rem; }
.section-dark { background: var(--petrol-800); color: #fff; }
.section-dark .section-head h2, .section-dark h2 { color: #fff; }
.section-dark .section-lede { color: rgba(255,255,255,.75); }
.section-cream { background: var(--cream); }

/* ---------- Person ---------- */
.person-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose p { font-size: 1.08rem; color: var(--ink); line-height: 1.75; }
.prose .drop::first-letter {
  font-family: var(--serif); font-size: 3.6em; line-height: .85; float: left; padding: .08em .12em 0 0; color: var(--petrol-800);
}
.principles { display: grid; gap: 1.5rem; border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.principle .num { font-family: var(--serif); color: var(--gold); font-size: .95rem; letter-spacing: .1em; }
.principle h3 { font-size: 1.5rem; margin: .25rem 0 .4rem; color: var(--petrol-800); }
.principle p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) {
  .person-grid { grid-template-columns: 1fr; }
  .principles { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
}

/* ---------- Quote band ---------- */
.quote-band { background: var(--cream); border-block: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0; }
.quote-band blockquote { margin: 0; max-width: 52rem; margin-inline: auto; text-align: center; }
.quote-band p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--petrol-800); margin-bottom: 1.25rem; }
.quote-band footer { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- Kompetenzen ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.area {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.area:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(16,42,51,.35); }
.area h3 { font-size: 1.5rem; color: var(--petrol-800); margin-bottom: .75rem; }
.area p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.area ul { list-style: none; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.area ul li { position: relative; padding-left: 1.2rem; font-size: .95rem; }
.area ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 1px; background: var(--gold); }
.area-lead { grid-column: span 2; background: var(--petrol-800); color: #fff; border-color: var(--petrol-800); }
.area-lead h3 { color: var(--gold-soft); font-size: 1.9rem; }
.area-lead p { color: rgba(255,255,255,.8); }
.area-lead ul { border-color: var(--line-dark); }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } .area-lead { grid-column: auto; } }

/* ---------- Arbeitsweise ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.step-num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .75rem; }
.steps h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.steps p { color: rgba(255,255,255,.75); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Notizen ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.note {
  position: relative; padding: 2rem 2rem 2rem 4.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.note-glyph {
  position: absolute; left: 1.6rem; top: 1.8rem; font-family: var(--serif); font-size: 1.8rem; color: var(--gold); line-height: 1;
}
.note h3 { font-size: 1.35rem; color: var(--petrol-800); margin-bottom: .5rem; }
.note p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } }

/* ---------- Werdegang ---------- */
.timeline-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: .35rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2rem; top: .45rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
}
.tl-year { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.timeline h3 { font-size: 1.3rem; color: var(--petrol-800); margin: .25rem 0 .35rem; }
.timeline p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.memberships { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.memberships h3 { font-size: 1.25rem; color: var(--petrol-800); margin-bottom: .75rem; }
.memberships h3 + ul { margin-bottom: 1.75rem; }
.memberships ul { list-style: none; display: grid; gap: .5rem; }
.memberships a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.memberships a:hover { color: var(--petrol-800); border-color: var(--gold); }
@media (max-width: 900px) { .timeline-grid { grid-template-columns: 1fr; } }

/* ---------- Stimmen ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.testimonial { margin: 0; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--petrol-800); flex: 1; }
.testimonial blockquote::before { content: "„"; color: var(--gold); }
.testimonial blockquote::after { content: "“"; color: var(--gold); }
.testimonial figcaption { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 700px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-details { font-style: normal; display: grid; gap: 1rem; margin-top: 2rem; }
.contact-details p { margin: 0; }
.contact-details .label { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; font-weight: 600; }
.contact-details a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-details a:hover { border-color: var(--gold); }

.contact-form { display: grid; gap: 1.1rem; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); padding: 2rem; border-radius: var(--radius); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.field input, .field textarea {
  width: 100%; font: inherit; color: #fff; background: rgba(0,0,0,.2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: .75rem .9rem; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .85rem; color: rgba(255,255,255,.7); }
.consent input { margin-top: .3rem; accent-color: var(--gold); }
.consent a { color: var(--gold-soft); }
.contact-form .btn { justify-self: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-900); color: rgba(255,255,255,.7); border-top: 1px solid var(--line-dark); padding: 3rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; }
.footer-brand img { width: 200px; margin-bottom: .75rem; }
.footer-brand p { margin: 0; font-size: .85rem; line-height: 1.5; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--gold); }
.copyright { margin: 0; font-size: .82rem; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- Reveal (progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
