/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --c-ink:          #1a3545;
  --c-petrol:       #1c7083;
  --c-petrol-dark:  #145f70;
  --c-petrol-pale:  #e6f2f5;
  --c-gold:         #b8892a;
  --c-gold-light:   #cf9f3a;
  --c-gold-bg:      #fdf8ee;

  /* Neutrals */
  --c-bg:           #f5f4f0;
  --c-surface:      #ffffff;
  --c-text:         #263d4c;
  --c-muted:        #5d7e8e;
  --c-border:       #cfdde5;
  --c-border-light: #e4edf2;

  /* Typography */
  --ff-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type Scale */
  --ts-xs:   0.75rem;
  --ts-sm:   0.8125rem;
  --ts-base: 1rem;
  --ts-lg:   1.125rem;
  --ts-xl:   1.25rem;
  --ts-2xl:  1.5rem;
  --ts-3xl:  1.875rem;
  --ts-4xl:  2.25rem;
  --ts-5xl:  3rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w:       1120px;
  --nav-h:       68px;
  --content-pad: clamp(1.25rem, 5vw, 2.5rem);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26,53,69,0.08);
  --shadow-md: 0 4px 16px rgba(26,53,69,0.12);
  --shadow-lg: 0 8px 32px rgba(26,53,69,0.16);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 450ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--ts-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

a {
  color: var(--c-petrol);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

a:hover { color: var(--c-petrol-dark); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--c-ink);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(var(--ts-4xl), 6vw, var(--ts-5xl)); }
h2 { font-size: clamp(var(--ts-2xl), 4vw, var(--ts-4xl)); }
h3 { font-size: clamp(var(--ts-lg), 2vw, var(--ts-2xl)); }
h4 { font-size: var(--ts-lg); }

p + p { margin-top: var(--sp-4); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.section {
  padding: var(--sp-20) 0;
}

.bg-white    { background: var(--c-surface); }
.bg-offwhite { background: var(--c-bg); }

.section-header {
  margin-bottom: var(--sp-12);
}

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--ts-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-petrol);
  margin-bottom: var(--sp-2);
}

.section-header h2 {
  position: relative;
  padding-bottom: var(--sp-4);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--c-gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--ff-body);
  font-size: var(--ts-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--c-gold);
  color: #fff;
  border-color: var(--c-gold);
}

.btn-primary:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn-secondary:hover {
  background: var(--c-ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--c-muted);
  border-color: transparent;
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

.btn-text:hover { color: var(--c-petrol); }

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border-light);
  z-index: 1000;
  transition: box-shadow var(--t-base);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--ff-display);
  font-size: var(--ts-base);
  font-weight: 700;
  color: var(--c-ink);
}

.nav-logo-title {
  font-size: var(--ts-xs);
  color: var(--c-muted);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-links a {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-petrol);
  background: var(--c-petrol-pale);
}

.nav-links a.nav-cta {
  background: var(--c-gold);
  color: #fff;
  padding: var(--sp-2) var(--sp-5);
}

.nav-links a.nav-cta:hover {
  background: var(--c-gold-light);
  color: #fff;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-ink);
  border-radius: var(--r-sm);
}

.nav-burger:hover { background: var(--c-border-light); }
.nav-burger svg   { width: 22px; height: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-ink);
  color: #fff;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Subtle ledger-line texture — the signature design element */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.025) 39px,
    rgba(255,255,255,0.025) 40px
  );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-16);
  align-items: center;
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: var(--ts-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.hero-name {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--sp-4);
  font-weight: 700;
}

.hero-degree {
  color: var(--c-gold);
  font-weight: 400;
  font-style: italic;
}

.hero-role {
  font-size: clamp(var(--ts-base), 2vw, var(--ts-xl));
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}

.hero-claim {
  font-family: var(--ff-display);
  font-size: clamp(var(--ts-base), 1.5vw, var(--ts-lg));
  font-style: italic;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin-bottom: var(--sp-10);
  max-width: 560px;
  border-left: 2.5px solid var(--c-gold);
  padding-left: var(--sp-5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-actions .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.hero-actions .btn-text {
  color: rgba(255,255,255,0.55);
}

.hero-actions .btn-text:hover { color: var(--c-gold); }

/* Portrait */
.portrait-frame {
  position: relative;
  width: 290px;
  flex-shrink: 0;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 2px solid var(--c-gold);
  border-radius: var(--r-md);
  z-index: 0;
  opacity: 0.7;
}

.portrait-img {
  position: relative;
  z-index: 1;
  border-radius: var(--r-md);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--c-petrol-pale);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.28);
  animation: bounce 2.4s ease-in-out infinite;
}

.hero-scroll-hint svg { width: 24px; height: 24px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   ÜBER MICH
   ============================================================ */
.ueber-mich-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-12);
  align-items: start;
}

.ueber-mich-text p {
  font-size: var(--ts-lg);
  line-height: 1.85;
  color: var(--c-text);
}

.info-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.info-card:last-child { margin-bottom: 0; }

.info-card-title {
  font-family: var(--ff-body);
  font-size: var(--ts-xs);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}

.lang-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--ts-sm);
}

.lang-list li:last-child { border-bottom: none; }

.lang-name {
  color: var(--c-text);
  font-weight: 500;
}

.lang-badge {
  font-size: var(--ts-xs);
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--c-petrol-pale);
  color: var(--c-petrol-dark);
}

.lang-badge.lang-native {
  background: var(--c-ink);
  color: #fff;
}

.lang-badge.lang-basic {
  background: var(--c-border-light);
  color: var(--c-muted);
}

.info-card-text {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--ts-sm);
  color: var(--c-text);
}

.info-card-text svg {
  flex-shrink: 0;
  color: var(--c-petrol);
  width: 15px;
  height: 15px;
}

/* ============================================================
   TIMELINE — BERUFSERFAHRUNG (ledger-line system)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 196px;
}

/* The continuous ledger rule */
.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 178px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--c-petrol), transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding: 0 0 var(--sp-12) var(--sp-10);
}

.timeline-item:last-child { padding-bottom: 0; }

/* Gold ledger node */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: var(--c-gold);
  border: 3px solid var(--c-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--c-gold);
  z-index: 1;
}

.timeline-meta {
  position: absolute;
  left: -196px;
  top: 7px;
  width: 166px;
  text-align: right;
  padding-right: var(--sp-8);
}

.timeline-date {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--ts-sm);
  font-weight: 600;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.timeline-role {
  font-size: clamp(var(--ts-lg), 1.8vw, var(--ts-xl));
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--sp-1);
}

.timeline-org {
  font-size: var(--ts-base);
  color: var(--c-petrol);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}

.timeline-city {
  color: var(--c-muted);
  font-weight: 400;
}

.timeline-duties {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-duties li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--ts-sm);
  color: var(--c-text);
  line-height: 1.65;
}

.timeline-duties li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-gold);
  font-weight: 700;
}

/* ============================================================
   AUSBILDUNG
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.edu-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px 1fr;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.edu-card-year {
  background: var(--c-ink);
  color: #fff;
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.edu-card-body {
  padding: var(--sp-5) var(--sp-6);
}

.edu-card-body h3 {
  font-size: var(--ts-lg);
  margin-bottom: var(--sp-1);
}

.edu-institution {
  font-size: var(--ts-sm);
  color: var(--c-petrol);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.edu-detail {
  font-size: var(--ts-sm);
  color: var(--c-text);
  line-height: 1.6;
}

.edu-note {
  margin-top: var(--sp-2);
  font-size: var(--ts-xs);
  color: var(--c-muted);
  font-style: italic;
  border-top: 1px solid var(--c-border-light);
  padding-top: var(--sp-2);
}

/* ============================================================
   KENNTNISSE
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.skills-group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

.skills-group-title {
  font-family: var(--ff-body);
  font-size: var(--ts-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border-light);
}

.skills-group-title svg {
  color: var(--c-petrol);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.skills-list li {
  display: flex;
  align-items: center;
  padding: var(--sp-2) 0;
  font-size: var(--ts-sm);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-light);
}

.skills-list li:last-child { border-bottom: none; }

.skills-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  margin-right: var(--sp-3);
  flex-shrink: 0;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-petrol-pale);
  color: var(--c-petrol-dark);
  font-size: var(--ts-xs);
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(28,112,131,0.18);
  letter-spacing: 0.02em;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.kontakt-lead {
  font-size: var(--ts-lg);
  color: var(--c-text);
  margin-bottom: var(--sp-8);
  line-height: 1.75;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.kontakt-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--ts-base);
  color: var(--c-text);
}

.kontakt-details li svg {
  color: var(--c-petrol);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.placeholder-contact {
  color: var(--c-muted);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  transition: all var(--t-fast);
}

.social-link:hover {
  border-color: var(--c-petrol);
  color: var(--c-petrol);
  background: var(--c-petrol-pale);
}

.social-link svg { width: 15px; height: 15px; }

/* Form */
.kontakt-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-size: var(--ts-sm);
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
}

.form-group label .req {
  color: var(--c-gold);
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--ff-body);
  font-size: var(--ts-base);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-petrol);
  box-shadow: 0 0 0 3px rgba(28,112,131,0.14);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-consent { margin-bottom: var(--sp-6); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--ts-sm);
  color: var(--c-text);
  line-height: 1.55;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--c-petrol);
  cursor: pointer;
  margin-top: 2px;
}

.form-note {
  margin-top: var(--sp-4);
  font-size: var(--ts-sm);
  text-align: center;
  min-height: 22px;
}

.form-note.success { color: #2e7d52; }
.form-note.error   { color: #b83232; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.65);
  padding: var(--sp-12) 0;
}

/* footer-inner grid now defined below with social column */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer-name {
  font-family: var(--ff-display);
  font-size: var(--ts-lg);
  color: #fff;
  font-weight: 700;
}

.footer-title { font-size: var(--ts-xs); letter-spacing: 0.02em; }

.footer-nav {
  display: flex;
  gap: var(--sp-6);
}

.footer-nav a {
  font-size: var(--ts-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: var(--ts-xs);
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delay helpers */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    display: none;
  }

  .ueber-mich-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }

  .footer-nav { justify-content: center; }

  .timeline {
    padding-left: 148px;
  }

  .timeline::before {
    left: 130px;
  }

  .timeline-meta {
    left: -148px;
    width: 118px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-surface);
    flex-direction: column;
    padding: var(--sp-4);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    gap: var(--sp-1);
    z-index: 999;
  }

  .nav-links.open  { display: flex; }
  .nav-links a     { padding: var(--sp-3) var(--sp-4); }
  .nav-links a.nav-cta { text-align: center; margin-top: var(--sp-2); }

  .nav-burger { display: flex; }

  .section { padding: var(--sp-16) 0; }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Simplified mobile timeline */
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 7px;
    top: 12px;
  }

  .timeline-item {
    padding-left: var(--sp-8);
    padding-bottom: var(--sp-8);
  }

  .timeline-item::before {
    left: 0;
    top: 12px;
  }

  .timeline-meta {
    position: static;
    width: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: var(--sp-2);
  }

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

  .edu-card {
    grid-template-columns: 76px 1fr;
  }

  .edu-card-year {
    padding: var(--sp-3);
    font-size: 0.65rem;
  }

  .kontakt-form {
    padding: var(--sp-5);
  }
}

/* ============================================================
   LEGAL PAGES (impressum, datenschutz)
   ============================================================ */
.legal-page {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-24);
  min-height: 100vh;
}

.legal-page h1 {
  margin-bottom: var(--sp-8);
}

.legal-page h2 {
  font-size: var(--ts-xl);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.legal-page h3 {
  font-size: var(--ts-lg);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.legal-page p,
.legal-page ul {
  margin-bottom: var(--sp-4);
}

.legal-placeholder {
  background: var(--c-gold-bg);
  border: 2px dashed var(--c-gold);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
  font-size: var(--ts-sm);
  color: var(--c-ink);
  line-height: 1.6;
}

.legal-placeholder strong {
  color: var(--c-gold);
}

/* ============================================================
   LEISTUNGEN / SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--c-petrol-pale);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--c-petrol);
}

.service-icon svg { width: 21px; height: 21px; }

.service-title {
  font-size: var(--ts-lg);
  margin-bottom: var(--sp-2);
}

.service-desc {
  font-size: var(--ts-sm);
  color: var(--c-muted);
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: var(--sp-10);
}

/* ============================================================
   WARUM ICH / USPs
   ============================================================ */
.usps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.usp-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

.usp-icon {
  width: 56px;
  height: 56px;
  background: var(--c-gold-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  color: var(--c-gold);
}

.usp-icon svg { width: 24px; height: 24px; }

.usp-title {
  font-family: var(--ff-body);
  font-size: var(--ts-base);
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
}

.usp-desc {
  font-size: var(--ts-sm);
  color: var(--c-muted);
  line-height: 1.65;
}

/* ============================================================
   ÜBER MICH v2 (Kurzversion)
   ============================================================ */
.ueber-mich-v2 {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--sp-12);
  align-items: start;
}

.ueber-mich-v2 .ueber-mich-text p {
  font-size: var(--ts-lg);
  line-height: 1.85;
  color: var(--c-text);
}

.ueber-mich-v2 .info-card {
  background: var(--c-surface);
}

.ueber-mich-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.lang-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--c-petrol-pale);
  border-left: 3px solid var(--c-petrol);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-6) 0 0;
  font-size: var(--ts-sm);
  color: var(--c-text);
  line-height: 1.6;
}

.lang-banner svg {
  color: var(--c-petrol);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lang-banner strong { color: var(--c-ink); }

/* ============================================================
   KONTAKT — CTA-BUTTONS & FORMULAR
   ============================================================ */
.kontakt-lead {
  font-size: var(--ts-lg);
  color: var(--c-text);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
  max-width: 680px;
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  max-width: 820px;
  margin-bottom: var(--sp-10);
}

.contact-cta-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  text-decoration: none;
  border: 2px solid;
  transition: all var(--t-base);
}

.contact-cta-btn.phone {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.contact-cta-btn.phone:hover {
  background: var(--c-petrol-dark);
  border-color: var(--c-petrol-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-cta-btn.email {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text);
}

.contact-cta-btn.email:hover {
  border-color: var(--c-petrol);
  background: var(--c-petrol-pale);
  color: var(--c-petrol-dark);
  transform: translateY(-2px);
}

.cta-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-cta-btn.email .cta-icon {
  background: var(--c-petrol-pale);
  color: var(--c-petrol);
}

.cta-icon svg { width: 20px; height: 20px; }

.cta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cta-label {
  font-size: var(--ts-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}

.cta-value {
  font-size: var(--ts-lg);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-hint {
  font-size: var(--ts-xs);
  opacity: 0.6;
  margin-top: 3px;
  line-height: 1.4;
}

/* Form enhancements */
.kontakt-form-wrapper {
  max-width: 740px;
}

.form-section-title {
  font-family: var(--ff-display);
  font-size: var(--ts-2xl);
  color: var(--c-ink);
  margin-bottom: var(--sp-6);
  margin-top: var(--sp-10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-optional {
  font-weight: 400;
  color: var(--c-muted);
  font-size: var(--ts-xs);
  margin-left: 3px;
}

.form-group select {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  font-family: var(--ff-body);
  font-size: var(--ts-base);
  color: var(--c-text);
  background-color: var(--c-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d7e8e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select:focus {
  outline: none;
  border-color: var(--c-petrol);
  box-shadow: 0 0 0 3px rgba(28,112,131,0.14);
}

.kontakt-standort {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--ts-sm);
  color: var(--c-muted);
  margin-top: var(--sp-8);
}

.kontakt-standort svg {
  width: 15px;
  height: 15px;
  color: var(--c-petrol);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER — social icons column
   ============================================================ */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: var(--sp-8);
}

.footer-social {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.footer-social .social-link {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  border-radius: var(--r-sm);
}

.footer-social .social-link svg { width: 16px; height: 16px; }

.footer-social .social-link:hover {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── Responsive additions ──────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .usps-grid     { grid-template-columns: repeat(2, 1fr); }
  .ueber-mich-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid      { grid-template-columns: 1fr; }
  .usps-grid          { grid-template-columns: 1fr; }
  .contact-cta-grid   { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .cta-value          { font-size: var(--ts-base); }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }
  .footer-nav    { justify-content: center; }
  .footer-social { justify-content: center; }
}
