:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fa;
  --color-bg-dark: #0f1c2e;
  --color-surface: #ffffff;
  --color-border: #e3e8ef;
  --color-text: #0f1c2e;
  --color-text-muted: #5a6b7e;
  --color-text-inverse: #f6f8fa;
  --color-primary: #243653;
  --color-primary-hover: #1a2840;
  --color-accent: #6b8294;
  --color-accent-hover: #556a7c;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 28, 46, 0.12);

  --container-max: 1200px;
  --section-pad-y: clamp(64px, 8vw, 112px);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

/* ============== HEADER / NAV ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--color-text); }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong { font-size: 0.95rem; font-weight: 700; }
.brand-text span { font-size: 0.78rem; color: var(--color-text-muted); font-weight: 500; }

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

.nav a {
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav a.active { color: var(--color-primary); }
.nav a.cta {
  background: var(--color-primary);
  color: white;
  margin-left: 8px;
}
.nav a.cta:hover { background: var(--color-primary-hover); color: white; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0 var(--section-pad-y);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(36, 54, 83, 0.08), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(107, 130, 148, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(36, 54, 83, 0.08);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  max-width: 480px;
}
.hero-stats .stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Hero card (right side) */
.hero-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(36, 54, 83, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.hero-card .qual {
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
}
.hero-card .qual strong { color: var(--color-primary); }
.hero-card .qual-sub {
  font-size: 0.95rem;
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.contact-list svg {
  width: 18px; height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============== SECTION GENERIC ============== */
.section {
  padding: var(--section-pad-y) 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ============== SERVICES ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(36, 54, 83, 0.25);
}
.service-card .media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.service-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .media img {
  transform: scale(1.04);
}
.service-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 28, 46, 0.08));
  pointer-events: none;
}
.service-card .icon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.service-card .icon svg { width: 20px; height: 20px; }
.service-card .body {
  padding: 24px 26px 28px;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============== ABOUT / CREDENTIALS ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid h2 { margin-bottom: 20px; }
.about-grid p { color: var(--color-text-muted); font-size: 1.05rem; }
.credentials-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text);
  font-weight: 500;
}
.credentials-list svg {
  width: 22px; height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-tile {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
}
.feature-tile .big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.feature-tile .small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ============== CTA STRIP ============== */
.cta-strip {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  background-image:
    radial-gradient(600px 300px at 100% 0%, rgba(107, 130, 148, 0.22), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(36, 54, 83, 0.45), transparent 60%);
}
.cta-strip h2 { color: white; margin: 0 0 12px; }
.cta-strip p { color: rgba(246, 248, 250, 0.75); margin: 0; }
.cta-strip .btn-primary {
  background: var(--color-accent);
}
.cta-strip .btn-primary:hover {
  background: var(--color-accent-hover);
}
.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(246, 248, 250, 0.7);
  padding: 64px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand strong { color: white; display: block; margin-bottom: 8px; font-size: 1.05rem; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; }

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(246, 248, 250, 0.7); font-size: 0.95rem; }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(246, 248, 250, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============== KONTAKT PAGE ============== */
.page-header {
  padding: clamp(96px, 12vw, 144px) 0 var(--section-pad-y);
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(36, 54, 83, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  text-align: center;
}
.page-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 16px auto 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(36, 54, 83, 0.08);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-row .icon svg { width: 20px; height: 20px; }
.contact-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-row .value {
  font-size: 1.02rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}
.contact-row a.value:hover { color: var(--color-primary); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 5;
  width: 100%;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============== IMPRESSUM PAGE ============== */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 { margin-top: 36px; font-size: 1.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--color-text-muted); }
.legal address {
  font-style: normal;
  color: var(--color-text);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; text-align: center; }
  .cta-strip-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: grid; place-items: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============== ANIMATIONS ============== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
