/* ==================== LOCAL FONTS (DSGVO: no external CDN) ==================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #ffffff;
  --color-fg: #1e293b;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-card-bg: #f8fafc;
  --color-dark: #0f172a;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Fluid spacing & sizing tokens (clamp = mobile..desktop) */
  --space-section: clamp(64px, 10vw, 128px);
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --max-width: 1200px;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-serif); letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-fg); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==================== NAV ==================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-height);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-width); width: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.nav-links {
  display: none; gap: 32px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.025em;
}
.nav-links a { padding: 8px 4px; }
.nav-links a:hover { opacity: 0.6; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-sans); font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease, box-shadow .2s ease;
  min-height: 44px; /* touch target */
  padding: 10px 20px; font-size: 0.9375rem;
  border-radius: 6px;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--color-fg); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: #fff; color: var(--color-fg);
  border-color: var(--color-border);
}
.btn-outline:hover { background: var(--color-card-bg); }
.btn-lg { padding: 14px 28px; font-size: 1rem; min-height: 52px; }
.btn-cta {
  padding: 18px 36px; font-size: 1.0625rem; min-height: 56px;
  box-shadow: 0 10px 30px rgba(30,41,59,0.15);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: clamp(560px, 90svh, 900px);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-height) + 32px) var(--gutter) 64px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; opacity: 0.35; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.6), var(--color-bg));
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto; text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px; margin-bottom: 24px;
  border: 1px solid var(--color-border); border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 4.5rem);
  font-weight: 600; margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 .gradient-text {
  background: linear-gradient(to right, #1e293b, #64748b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--color-muted); max-width: 640px; margin: 0 auto 36px;
  line-height: 1.7; text-wrap: pretty;
}
.hero-buttons {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}

/* ==================== SECTIONS ==================== */
.section { padding: var(--space-section) var(--gutter); }
.section-white { background: #fff; }
.container { max-width: var(--max-width); margin: 0 auto; }

/* ==================== FEATURES ==================== */
.features-grid {
  display: grid; gap: clamp(24px, 4vw, 40px);
  grid-template-columns: 1fr;
}
.feature-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #f1f5f9; border-radius: var(--radius);
  background: rgba(248,250,252,0.5);
  transition: box-shadow .3s ease, transform .3s ease;
}
.feature-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30,41,59,0.06);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--color-fg); }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--color-muted); line-height: 1.7; }

/* ==================== SPLIT SECTION ==================== */
.split {
  display: grid; gap: clamp(48px, 7vw, 80px);
  grid-template-columns: 1fr; align-items: center;
}
.split-text h2 {
  font-size: clamp(1.625rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 600; margin-bottom: 20px; text-wrap: balance;
}
.split-text > p {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.125rem);
  color: var(--color-muted); margin-bottom: 24px; line-height: 1.7;
}
.criteria-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.criteria-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.criteria-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(30,41,59,0.08);
  display: grid; place-items: center; flex-shrink: 0;
}
.criteria-dot svg { width: 12px; height: 12px; color: var(--color-fg); }

.split-image { position: relative; }
.split-image img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.split-stat {
  position: absolute; bottom: -20px; left: -16px;
  background: #fff; padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid #f1f5f9; border-radius: var(--radius);
  max-width: 240px;
}
.split-stat .stat-number {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700; color: var(--color-fg); margin-bottom: 6px;
}
.split-stat .stat-label { font-size: 0.875rem; font-weight: 500; color: var(--color-muted); line-height: 1.5; }

/* ==================== CTA ==================== */
.cta {
  padding: var(--space-section) var(--gutter);
  text-align: center; background: #fff;
}
.cta h2 {
  font-size: clamp(1.625rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 600; margin-bottom: 20px; text-wrap: balance;
}
.cta p {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.125rem);
  color: var(--color-muted); margin: 0 auto 36px; max-width: 600px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-card-bg);
  padding: 40px var(--gutter);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; text-align: center;
}
.footer-logo { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 0.875rem; color: var(--color-muted); }
.footer-links a { padding: 4px 0; }
.footer-links a:hover { color: var(--color-fg); }
.footer-copy { font-size: 0.8125rem; color: var(--color-muted); }

/* ==================== IMPRESSUM ==================== */
.legal-page { min-height: 100vh; padding: calc(var(--nav-height) + 32px) var(--gutter) 64px; }
.legal-container { max-width: 720px; margin: 0 auto; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--color-muted);
  margin-bottom: 40px; transition: color .2s; min-height: 44px;
}
.legal-back:hover { color: var(--color-fg); }
.legal-back svg { width: 16px; height: 16px; }
.legal-container h1 {
  font-size: clamp(1.875rem, 4vw + 0.5rem, 2.5rem);
  font-weight: 600; margin-bottom: 32px;
}
.legal-container h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem; font-weight: 600;
  color: var(--color-fg); margin-bottom: 14px;
}
.legal-section { margin-bottom: 28px; }
.legal-section p, .legal-section li {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.0625rem);
  color: var(--color-muted); line-height: 1.7;
  overflow-wrap: anywhere;
}
.legal-section ul { list-style: disc; padding-left: 24px; margin: 12px 0; }
.legal-section ul li { margin-bottom: 6px; }
.legal-section .legal-small { font-size: 0.8125rem; }
.legal-divider { border: none; border-top: 1px solid var(--color-border); margin: 56px 0; }

/* ==================== KARRIERE / JOB ==================== */
.career-page { min-height: 100vh; padding: calc(var(--nav-height) + 32px) var(--gutter) 64px; }
.career-container { max-width: 820px; margin: 0 auto; }
.career-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.career-header h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 600; margin: 20px 0 20px;
  text-wrap: balance;
}
.career-header h1 .gradient-text {
  background: linear-gradient(to right, #1e293b, #64748b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.career-header p {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.125rem);
  color: var(--color-muted); max-width: 600px; margin: 0 auto;
  line-height: 1.7; text-wrap: pretty;
}

.job-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 10px 40px rgba(15,23,42,0.04);
}
.job-card-head { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.job-card-head h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  font-weight: 600; margin-bottom: 16px; text-wrap: balance;
}
.job-meta-inline {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.7em; color: var(--color-muted);
}
.job-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
}
.job-tags li {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; color: var(--color-fg);
}
.job-intro {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.0625rem);
  color: var(--color-muted); line-height: 1.7;
  margin-bottom: 32px;
}
.job-section { margin-bottom: 28px; }
.job-section h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem; font-weight: 600;
  color: var(--color-fg); margin-bottom: 14px;
}
.job-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.job-list li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1rem);
  color: var(--color-muted); line-height: 1.65;
}
.job-list li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-fg); opacity: 0.35;
}
.job-meta-section p { color: var(--color-muted); font-size: 0.9375rem; }
.job-meta-section strong { color: var(--color-fg); }
.job-cta {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.job-cta > p {
  color: var(--color-muted); margin-bottom: 16px;
  font-size: 0.9375rem;
}
.job-cta-mail {
  margin-top: 14px; font-size: 0.8125rem;
}
.job-cta-mail a { color: var(--color-fg); text-decoration: underline; text-underline-offset: 3px; }

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}

/* ==================== BREAKPOINTS ==================== */

/* small phones */
@media (max-width: 360px) {
  .split-stat { left: 8px; right: 8px; max-width: none; padding: 18px 20px; }
}

/* tablets and up */
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
  :root { --nav-height: 80px; }
  .nav-links { display: flex; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .split-stat { left: -24px; bottom: -24px; padding: 28px 32px; max-width: 260px; }
}

@media (min-width: 1024px) {
  .hero-content { max-width: 920px; }
}

/* high-DPI / dark mode hint kept light by design choice */
