/*
Theme Name: Dr. David Hansen
Theme URI: https://rechtsanwalt-hansen.com/
Author: Codex
Description: Schlankes WordPress-Theme fuer die Website von Dr. David Hansen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: dr-david-hansen
*/

:root {
  --bg: #f7f5ef;
  --bg-soft: rgba(241, 237, 227, 0.55);
  --surface: rgba(255, 255, 255, 0.92);
  --text: #14253d;
  --muted: #677286;
  --line: rgba(20, 37, 61, 0.12);
  --line-strong: rgba(20, 37, 61, 0.18);
  --primary: #1a2a4a;
  --primary-contrast: #f6f2e8;
  --shadow: 0 20px 60px rgba(21, 38, 62, 0.14);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.site-narrow {
  width: min(calc(100% - 48px), 760px);
  margin: 0 auto;
}

.display-face {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 239, 0.84);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 16px 0;
}

.site-brand {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 28px;
}

.site-nav__link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.site-nav__link:hover,
.text-link:hover {
  color: var(--text);
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 3px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 96px 0 128px;
}

.hero__image {
  width: min(100%, 520px);
  max-width: 520px;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: auto;
  object-fit: contain;
  filter: grayscale(15%);
}

.hero__copy {
  transform: translateY(-44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: #8f8368;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
}

.eyebrow::before {
  content: "";
  width: 64px;
  height: 1px;
  background: #c0b59c;
}

.hero h1,
.section-title,
.legal-title,
.vita-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.role {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.specialties {
  margin-top: 24px;
  max-width: 36rem;
  display: grid;
  gap: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.specialties p {
  margin: 0;
  line-height: 1.6;
}

.paragraph-sign {
  position: absolute;
  right: 96px;
  bottom: 88px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 56px;
  color: rgba(26, 42, 74, 0.14);
  pointer-events: none;
}

.paragraph-sign--large {
  right: 40px;
  bottom: 8px;
  font-size: 112px;
  color: rgba(26, 42, 74, 0.08);
}

.contact-section {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.contact-section__inner {
  padding: 96px 0 128px;
  text-align: center;
}

.section-title {
  font-size: 48px;
  line-height: 1.05;
}

.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  padding-bottom: 24px;
}

.contact-card--border {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .contact-card--email-no-mobile-border {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.contact-value {
  margin-top: 16px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
}

.contact-value address {
  margin: 0;
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.subpage-main {
  padding: 96px 0;
}

.back-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.vita-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.vita-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.vita-title {
  margin-top: 20px;
  font-size: 56px;
  line-height: 1.05;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.timeline-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.legal-title {
  margin-top: 32px;
  font-size: 48px;
}

.legal-sections {
  margin-top: 40px;
  display: grid;
  gap: 40px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-sections h2 {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 22px;
}

.legal-sections p {
  margin: 0;
}

.legal-sections a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(calc(100% - 32px), 440px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(21, 38, 62, 0.12);
  backdrop-filter: blur(10px);
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-banner button {
  margin-top: 16px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero__inner,
  .vita-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    transform: none;
  }

  .hero__image {
    max-width: 100%;
  }

  .paragraph-sign,
  .eyebrow {
    display: none;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-value,
  .timeline-text {
    font-size: 20px;
  }

  .contact-card--border {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-container,
  .site-narrow {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-nav {
    gap: 12px;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-nav__link,
  .site-button {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .site-button {
    padding: 10px 12px;
    letter-spacing: 0.16em;
  }

  .hero__inner {
    padding: 48px 0 80px;
    gap: 32px;
  }

  .contact-section__inner,
  .subpage-main {
    padding: 72px 0;
  }

  .contact-value {
    font-size: 32px;
    word-break: break-word;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
