/* ---------- Custom properties ---------- */
:root {
  --color-navy: #1b2a4a;
  --color-navy-dark: #24355a;
  --color-navy-darker: #1f2f51;
  --color-blue: #0f9bd7;
  --color-blue-light: #5cc2ef;
  --color-text-body: #45536e;
  --color-text-dark: #2c3a54;
  --color-muted: #8695ab;
  --color-muted-2: #6b7a91;
  --color-border: #e8ebef;
  --color-border-2: #dde3ea;
  --color-border-3: #e0e6ed;
  --color-bg-tinted: #f7f9fb;
  --color-on-dark-text: #e4eaf3;
  --color-on-dark-muted: #d7dfea;
  --color-on-dark-border: #3d4e6d;
  --color-on-dark-border-2: #2c3d5e;
  --color-on-dark-row: #9fb0c8;

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container-width: 1180px;
  --container-pad: 28px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  color: var(--color-navy);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Shared type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 20px;
}

.eyebrow--light {
  color: var(--color-blue-light);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 24ch;
  color: var(--color-navy);
}

.section-title--light {
  color: #ffffff;
  margin: 0;
}

.section-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 56px;
  color: var(--color-text-body);
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section--tinted {
  background: var(--color-bg-tinted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--dark {
  background: var(--color-navy);
  color: #ffffff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-navy);
}

.nav-link:hover {
  color: var(--color-blue);
}

.nav-cta {
  font-weight: 500;
  color: #ffffff !important;
  background: var(--color-blue);
  padding: 10px 18px;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--color-navy) !important;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 110;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px var(--container-pad) 80px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 20ch;
  color: var(--color-navy);
}

.hero-title em {
  font-style: italic;
  color: var(--color-blue);
}

.hero-text {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  max-width: 56ch;
  margin-top: 34px;
  color: var(--color-text-body);
}

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

.btn {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: 2px;
  display: inline-block;
}

.btn-primary {
  color: #ffffff;
  background: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-blue);
  color: #ffffff;
}

.btn-secondary {
  font-weight: 400;
  color: var(--color-navy);
  border: 1px solid #c9d2dd;
}

.btn-secondary:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* ---------- Image placeholders ---------- */
.hero-image-wrap {
  padding-bottom: 96px;
}

.image-placeholder {
  width: 100%;
  background-image: repeating-linear-gradient(135deg, #eef2f6 0 12px, #f7f9fb 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.image-placeholder span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-align: center;
  padding: 0 20px;
}

.image-placeholder--wide {
  min-height: 220px;
}

.image-placeholder--portrait {
  aspect-ratio: 4 / 5;
  max-width: 320px;
  background-image: repeating-linear-gradient(135deg, var(--color-navy-dark) 0 12px, var(--color-navy-darker) 12px 24px);
}

.image-placeholder--portrait span {
  color: #7d8ca6;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--color-border-2);
}

.service-card {
  background: #ffffff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card--highlight {
  box-shadow: inset 0 3px 0 0 var(--color-blue);
}

.service-card-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--color-blue);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  color: var(--color-navy);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list li {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-dark);
  padding-left: 18px;
  border-left: 2px solid #d9e6f0;
  line-height: 1.45;
}

.service-list li:hover {
  color: var(--color-navy) !important;
  font-weight: 400 !important;
  border-left-color: var(--color-blue) !important;
}

.service-list-item--accent {
  color: var(--color-navy) !important;
  font-weight: 400 !important;
  border-left-color: var(--color-blue) !important;
}

.service-note {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted-2);
  margin-top: auto;
}

/* ---------- Ablauf / steps ---------- */
#ablauf {
  padding-left: 24px;
  padding-right: 24px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--color-blue);
}

.step-number {
 font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--color-blue);
  line-height: 1;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

.step-card p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 56px;
  align-items: start;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-on-dark-muted);
  max-width: 46ch;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tag {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  border: 1px solid var(--color-on-dark-border);
  padding: 8px 16px;
  border-radius: 999px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fact-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  margin: 0 0 16px;
}

.fact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fact-list li {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-on-dark-text);
  line-height: 1.45;
}

.fact-list--rows {
  gap: 12px;
}

.fact-list--rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--color-on-dark-border-2);
  padding-bottom: 10px;
}

.fact-list-item--last {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.fact-years {
  color: var(--color-on-dark-row);
  white-space: nowrap;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 56px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--color-navy);
  word-break: break-word;
}

.contact-address {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-dark);
}

/* ---------- Impressum / Datenschutz ----------
   Hidden by default and revealed below the footer when their
   footer-nav trigger is clicked (see main.js). max-height is
   animated (rather than display/visibility) so the reveal and
   the close can transition smoothly. */
.legal-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--color-bg-tinted);
  border-top: 1px solid var(--color-border);
  transition: max-height 0.4s ease;
}

.legal-panel-inner {
  position: relative;
  padding-top: 56px;
  padding-bottom: 72px;
}

.legal-close {
  position: absolute;
  top: 20px;
  right: var(--container-pad);
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
}

.legal-close:hover {
  color: var(--color-navy);
}

.legal-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 18px;
}

.legal-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-body);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border-3);
  background: var(--color-bg-tinted);
}

.footer-inner {
  padding: 40px var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}

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

.footer-nav a {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-body);
}

.footer-copy {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-muted);
}

/* ---------- Mobile nav overlay ----------
   .mobile-nav lives outside <header> on purpose: <header> is
   position:sticky, and a sticky ancestor becomes the containing
   block for position:fixed descendants, which would shrink a
   fixed overlay down to the header's own box instead of the
   full viewport. */
.mobile-nav {
  display: none;
}

@media (max-width: 860px) {
  .burger {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-nav-close {
    position: absolute;
    top: 18px;
    right: var(--container-pad);
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 34px;
    line-height: 1;
    color: var(--color-navy);
    cursor: pointer;
    padding: 0;
  }

  .nav-link {
    font-size: 22px;
  }

  .nav-cta {
    margin-top: 10px;
  }

  body.nav-open .mobile-nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px var(--container-pad) 56px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-lead {
    margin-bottom: 40px;
  }
}
