:root {
  --blue: #0c1d3a;
  --blue-light: #18365f;
  --text: #1e1e1e;
  --muted: #666;
  --line: #e8e8e8;
  --surface: #f6f7f9;
  --white: #fff;
  --content-width: 1180px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-light);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

.logo-text {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Typografie */

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 1.35rem;
}

p {
  margin-top: 0;
}

.kicker,
.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 7vw, 90px);
  padding-block: clamp(72px, 10vw, 120px);
}

.hero-content,
.hero > * {
  min-width: 0;
}

.areas {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover {
  border-color: var(--blue-light);
  color: var(--white);
  background: var(--blue-light);
}

.button-secondary {
  color: var(--blue);
  background: transparent;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--blue);
}

.portrait {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.portrait img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
}

/* Abschnitte */

.section {
  padding-block: clamp(68px, 8vw, 100px);
}

.section-muted {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-intro > p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card p {
  margin-bottom: 0;
}

.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 8vw, 100px);
}

.profile-text {
  max-width: 720px;
  font-size: 1.05rem;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

/* Kontakt */

.contact-section {
  color: var(--white);
  background: var(--blue);
}

.contact-section .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.contact-section h2,
.contact-section p {
  color: var(--white);
}

.contact-card {
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
}

.contact-card address {
  margin-bottom: 28px;
  font-style: normal;
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  min-width: 0;
  margin: 0;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.contact-button {
  margin-top: 30px;
}

/* Footer */

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Tablet */

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-block: 18px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .hero,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 48px;
  }

  .portrait,
  .portrait img {
    min-height: 420px;
  }
}

/* Smartphone */

@media (max-width: 640px) {
  html {
    scroll-padding-top: 145px;
  }

  .wrap {
    padding-inline: 20px;
  }

  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }

  .main-nav {
    width: 100%;
    font-size: 0.95rem;
  }

  .hero {
    gap: 36px;
    padding-block: 54px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .portrait,
  .portrait img {
    min-height: 340px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* Rechtliche Unterseiten */

.legal-hero {
  padding-block: clamp(54px, 8vw, 88px) 36px;
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.legal-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-page {
  padding-top: 0;
}

.legal-content {
  max-width: 820px;
}

.legal-section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.015em;
}

.legal-section p:last-child,
.legal-section address:last-child {
  margin-bottom: 0;
}

.legal-section address {
  font-style: normal;
}

.legal-section a {
  overflow-wrap: anywhere;
}

.legal-list {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-list li + li {
  margin-top: 6px;
}

.back-link {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

