/* ============================================================
   Rechtsanwalt Michael Götz LL.M. — Einseitige Homepage
   Palette: gedeckt, Schwarz / Weiß / Grau
   ============================================================ */

:root {
  --ink:      #16171a;   /* fast schwarz */
  --graphite: #2c2e33;
  --stone:    #55585e;
  --slate:    #7c7f86;
  --mist:     #a9abb0;
  --line:     #e4e2dd;   /* warmes Hellgrau für Linien */
  --paper:    #f6f5f2;   /* warmweißer Hintergrund */
  --paper-2:  #efeeea;
  --white:    #ffffff;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Typografie-Helfer ---------- */
.eyebrow,
.kicker {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 13px 0;
  background: rgba(246, 245, 242, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--white);
  transition: color 0.4s var(--ease);
}
.scrolled .wordmark { color: var(--ink); }
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wordmark-sub {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.4s var(--ease);
}
.scrolled .wordmark-sub { color: var(--slate); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s var(--ease);
}
.scrolled .nav a { color: var(--stone); }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--white); }
.scrolled .nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--white) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--white); color: var(--ink) !important; }
.scrolled .nav-cta { border-color: var(--ink); color: var(--ink) !important; }
.scrolled .nav-cta:hover { background: var(--ink); color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.4s var(--ease);
}
.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: -8% 0 -8% 0;
  background: url("assets/hero.jpg") center 30% / cover no-repeat;
  filter: grayscale(100%) contrast(1.02) brightness(0.92);
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,18,0.55) 0%, rgba(15,16,18,0.25) 38%, rgba(15,16,18,0.72) 100%),
    linear-gradient(90deg, rgba(15,16,18,0.6) 0%, rgba(15,16,18,0.1) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 880px;
}
.hero .eyebrow { color: rgba(255,255,255,0.78); }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(2.3rem, 1rem + 5.6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0.5em 0 0;
}
.hero-lead {
  max-width: 600px;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
  font-weight: 300;
  color: rgba(255,255,255,0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.4rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--white);
  animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { top: -50%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-ghost-light { border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }

/* ============================================================
   SECTIONS – allgemein
   ============================================================ */
.section {
  padding: clamp(72px, 11vh, 140px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vh, 70px);
}
.section-head .kicker { display: block; margin-bottom: 18px; }
.section-intro {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--stone);
  margin: 0 0 clamp(40px, 6vh, 66px);
}

/* ---------- Profil / Schwerpunkte ---------- */
.profil { background: var(--paper); }
.focus-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.focus-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.focus-item:hover { background: var(--white); }
.focus-num {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--mist);
  font-feature-settings: "tnum";
}
.focus-label {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Leistungen ---------- */
.leistungen { background: var(--white); }
.service-list {
  display: grid;
  gap: 0;
}
.service {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) 1.5fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(36px, 5vh, 56px) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.service-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--mist);
  letter-spacing: 0.05em;
}
.service-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 1rem + 1.2vw, 2rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}
.service-items {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}
.service-items li {
  break-inside: avoid;
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 0.98rem;
  color: var(--stone);
  border-bottom: 1px solid var(--line);
}
.service-items li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 7px; height: 1px;
  background: var(--slate);
}

/* ---------- Zitat-Band (Parallax) ---------- */
.quote-band {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 20vh, 220px) 0;
  color: var(--white);
}
.quote-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background: url("assets/facade.jpg") center 40% / cover no-repeat;
  filter: grayscale(100%) contrast(1.05) brightness(0.62);
  will-change: transform;
}
.quote-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,18,0.55), rgba(15,16,18,0.4));
}
.quote-band blockquote {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* ---------- Über mich ---------- */
.ueber-mich { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.6s var(--ease), transform 1.2s var(--ease);
}
.about-photo:hover img { filter: grayscale(0%); transform: scale(1.03); }
.photo-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.about-text .kicker { display: block; margin-bottom: 16px; }
.about-text .section-title { margin-bottom: 4px; }
.about-role {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin: 0 0 1.6rem;
}
.about-text p { max-width: 52ch; color: var(--stone); }
.credentials {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.credentials li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}
.credentials li:last-child { border-bottom: 1px solid var(--line); }
.credentials li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 12px; height: 12px;
  border: 1px solid var(--slate);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ---------- Mandanten / Zielgruppen ---------- */
.mandanten { background: var(--white); }
.tag-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tag-grid li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s var(--ease);
}
.tag-grid li:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------- Kontakt ---------- */
.kontakt {
  background: var(--ink);
  color: var(--white);
}
.kontakt .section-title { color: var(--white); }
.kicker-light { color: var(--mist); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.contact-card {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}
.contact-value {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}
.contact-value a {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.contact-value a:hover { border-color: var(--white); }
.contact-cta { margin-top: 48px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.7);
  padding: 56px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
}
.footer-tag { font-size: 0.8rem; color: var(--mist); max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-legal { font-size: 0.82rem; }
.footer-legal p { margin: 0 0 6px; }
.footer-mini { color: var(--mist); }
.footer-links { display: flex; gap: 22px; margin-bottom: 14px !important; }
.footer-links a {
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--white); border-color: var(--white); }

/* ============================================================
   RECHTLICHE UNTERSEITEN (Impressum / Datenschutz)
   ============================================================ */
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(246, 245, 242, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.subpage-header .header-inner { align-items: center; }
.subpage-header .wordmark { color: var(--ink); }
.subpage-header .wordmark-sub { color: var(--slate); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--stone);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.back-link:hover { color: var(--ink); gap: 13px; }
.back-link svg { width: 16px; height: 16px; }

.legal {
  padding: clamp(56px, 10vh, 120px) 0 clamp(72px, 12vh, 140px);
}
.legal-inner { max-width: 760px; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
.legal .lead {
  font-size: 1.08rem;
  color: var(--stone);
  margin: 0 0 3rem;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  color: var(--ink);
  margin: 2.8rem 0 0.8rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin: 1.8rem 0 0.4rem;
}
.legal p { margin: 0 0 1rem; color: var(--graphite); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--mist); transition: border-color 0.3s var(--ease); }
.legal a:hover { border-color: var(--ink); }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--graphite); }
.legal li { margin-bottom: 0.4rem; }
.legal .addr { font-style: normal; line-height: 1.7; }
.legal .note {
  margin: 0.6rem 0 1.6rem;
  padding: 16px 20px;
  background: var(--paper-2);
  border-left: 2px solid var(--slate);
  font-size: 0.9rem;
  color: var(--stone);
}
.legal .muted { color: var(--slate); }
.legal .updated { margin-top: 3rem; font-size: 0.85rem; color: var(--slate); }

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 0 var(--gutter);
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: -30px 0 80px rgba(0,0,0,0.3);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: rgba(255,255,255,0.85); font-size: 1.15rem; }
  .scrolled .nav a { color: rgba(255,255,255,0.85); }
  .nav a:not(.nav-cta):hover { color: var(--white); }
  .nav-cta { border-color: rgba(255,255,255,0.4); color: var(--white) !important; }
  .scrolled .nav-cta { border-color: rgba(255,255,255,0.4); color: var(--white) !important; }

  .nav-toggle { display: flex; z-index: 120; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-toggle span { background: var(--white); }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .service { grid-template-columns: 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; }
}

@media (max-width: 620px) {
  .focus-grid { grid-template-columns: 1fr; }
  .service-items { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-bg, .quote-bg { transform: none !important; }
  .scroll-line::after { animation: none; }
}
