/* ════════════════════════════════════════════════════════════
   JO-TS – Design System v4
   Light, clean, B2B engineering. Hero light, Header/Footer dark.
   ════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Archivos &-Zeichen gefällt nicht – nur das Ampersand (U+0026) aus Inter rendern.
   Muss NACH der Haupt-Archivo-Regel stehen, damit es bei Überschneidung gewinnt. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0026;
}

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Brand colors */
  --color-navy:       #12214e;  /* Dunkelblau – Headlines, Akzente, Buttons */
  --color-grey:       #2f3349;  /* Grau – Header, Footer */
  --color-off-white:  #faf9f6;  /* Off-White – Body-Hintergrund */

  /* Functional aliases */
  --color-bg:         var(--color-off-white);
  --color-surface:    #ffffff;
  --color-text:       var(--color-navy);
  --color-text-muted: #5b637a;
  --color-border:     #e5e3dd;
  --color-on-dark:    var(--color-off-white);
  --color-on-dark-muted: #b9bcc8;

  /* Typography */
  --font-headline: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Layout */
  --container-max: 1240px;
  --gutter: 24px;
  --nav-height: 130px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem);  font-weight: 700; }
h2 { font-size: clamp(2rem,    4vw, 3.25rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem,  2.5vw, 2rem);  font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5, h6 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: var(--space-sm); max-width: 65ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-2xl);
}
.section--sm { padding-block: var(--space-xl); }

.section--dark {
  background: var(--color-navy);
  color: var(--color-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 {
  color: var(--color-on-dark);
}

/* ── Skip-Link (a11y) ───────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--gutter);
  background: var(--color-navy); color: var(--color-on-dark);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
}
.skip-link:focus { top: var(--space-sm); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header (dark) ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: var(--color-grey);
  color: var(--color-on-dark);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-on-dark);
  text-decoration: none;
}
.site-logo-mark {
  height: 120px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: var(--space-sm);
}
.site-logo-name {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.site-logo-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-top: 4px;
}
.site-nav ul {
  display: flex;
  gap: var(--space-lg);
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-on-dark);
  position: relative;
  padding-block: var(--space-xs);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-on-dark);
  transition: width var(--transition);
}
.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
  width: 100%;
}

/* ── Hamburger + Mobile-Nav (ab ≤700px aktiv) ───────────── */
.hamburger {
  display: none; /* erst im Mobile-Breakpoint sichtbar */
  position: relative;
  z-index: 1100;
  background: none;
  border: 0;
  padding: var(--space-xs);
  margin: calc(-1 * var(--space-xs));
  cursor: pointer;
  color: var(--color-on-dark);
}
.hamburger-box {
  display: block;
  width: 30px;
  height: 22px;
  position: relative;
}
.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 10px; }
.hamburger-line:nth-child(3) { top: 20px; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}
.mobile-nav {
  display: none; /* erst im Mobile-Breakpoint als Overlay */
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--color-grey);
  z-index: 1050;
  padding: var(--space-xl) var(--container-pad, var(--space-lg));
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.mobile-nav a {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-on-dark);
  padding-block: var(--space-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav .current-menu-item a {
  color: var(--color-off-white);
  opacity: 0.6;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.btn--primary {
  background: var(--color-navy);
  color: var(--color-on-dark);
}
.btn--primary:hover {
  background: #1b2e6b;
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn--secondary:hover {
  background: var(--color-navy);
  color: var(--color-on-dark);
}
.btn--on-dark {
  background: var(--color-on-dark);
  color: var(--color-navy);
}
.btn--on-dark:hover {
  background: #ffffff;
}

/* ── Section heads ──────────────────────────────────────── */
.section-head {
  margin-bottom: var(--space-xl);
  max-width: 760px;
}
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-md);
  max-width: none;
}
.section-head h2 { margin-block: var(--space-xs) var(--space-md); }
.section-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 65ch;
}
.link-arrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  border-bottom: 1.5px solid var(--color-navy);
  padding-bottom: 2px;
  transition: gap var(--transition);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--color-grey); border-bottom-color: var(--color-grey); }
.link-arrow span { display: inline-block; transition: transform var(--transition); }
.link-arrow:hover span { transform: translateX(4px); }

/* ── Home Hero ──────────────────────────────────────────── */
.home-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.home-hero h1 { margin-bottom: var(--space-md); }
.home-hero-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 60ch;
}
.home-hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-left: 3px solid var(--color-navy);
  padding-left: var(--space-md);
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-fact-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero-fact-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* Old generic hero (still used as fallback) */
.hero { padding-block: var(--space-2xl) var(--space-xl); }
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: var(--space-md); }
.hero-lead { font-size: 1.2rem; line-height: 1.6; color: var(--color-text-muted); margin-bottom: var(--space-lg); max-width: 60ch; }
.hero-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ── Home Services Overview ─────────────────────────────── */
.services-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.service-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
  color: inherit;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-navy);
}
.service-card-num {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-navy);
  opacity: 0.3;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}
.service-card-code {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 4px 8px;
  border: 1.5px solid var(--color-navy);
  margin-bottom: var(--space-md);
}
.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: 0;
  color: var(--color-navy);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
}
.service-card-arrow {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  font-size: 1.25rem;
  color: var(--color-navy);
  transition: transform var(--transition);
}
.service-card:hover .service-card-arrow { transform: translateX(4px); }

/* ── Home About Teaser ──────────────────────────────────── */
.home-about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.home-about-portrait {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  transition: transform var(--transition);
}
.home-about-portrait:hover .home-about-img {
  transform: scale(1.03);
}
.home-about-portrait::after {
  content: "Mehr über mich →";
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(18, 33, 78, 0.85) 0%, rgba(18, 33, 78, 0) 100%);
  color: var(--color-off-white);
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.95;
  transition: opacity var(--transition);
}
.home-about-portrait:hover::after { opacity: 1; }
.home-about-content h2 { margin-bottom: var(--space-md); }
.home-about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* ── Home Projects ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-navy);
}
.project-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-grey), var(--color-navy));
  position: relative;
  overflow: hidden;
}
.project-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.project-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}
.project-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: var(--space-xs);
}
.project-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
}
.project-card-meta {
  font-size: 0.85rem !important;
  color: var(--color-text-muted) !important;
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--color-border);
  margin-top: var(--space-xs) !important;
}

/* ── Home Final CTA ─────────────────────────────────────── */
.home-cta {
  text-align: center;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.home-cta h2 { margin-bottom: var(--space-sm); }
.home-cta p {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-md);
  max-width: 56ch;
}
.home-cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Home Responsive ────────────────────────────────────── */
@media (max-width: 1000px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-facts { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 3px solid var(--color-navy); padding-left: 0; padding-top: var(--space-md); gap: var(--space-lg); }
  .services-overview { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .home-about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .home-about-portrait { max-width: 100%; }
  .section-head--row { flex-direction: column; align-items: start; }
}

/* ── CV / Über mich ─────────────────────────────────────── */
.cv-hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}
.cv-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.cv-portrait {
  position: relative;
}
.cv-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-grey), var(--color-navy));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--color-on-dark-muted);
  font-family: var(--font-headline);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cv-portrait-icon {
  position: relative;
  z-index: 1;
  width: 38%;
  height: auto;
  fill: rgba(255,255,255,0.22);
}
.cv-portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cv-portrait-placeholder span {
  position: relative;
  z-index: 1;
}
.cv-portrait-img,
.home-about-img,
.project-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv-portrait-img {
  aspect-ratio: 3/2;
  border-radius: 4px;
}
.home-about-img {
  aspect-ratio: 3/2;
  transition: transform 0.4s ease;
}
.project-card-image img { display: block; }

/* CV Hero: Photo-Hero — Foto + Navy-Gradient-Overlay, Text rechts in Off-White */
.cv-hero--photo {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding-top: var(--space-lg) !important;
  padding-bottom: var(--space-lg) !important;
  color: var(--color-off-white);
  margin-bottom: var(--space-xl);
}
.cv-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}
.cv-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(18, 33, 78, 0.10) 0%,
    rgba(18, 33, 78, 0.45) 40%,
    rgba(18, 33, 78, 0.92) 75%,
    rgba(18, 33, 78, 0.95) 100%
  );
}
.cv-hero--photo .container {
  position: relative;
  z-index: 2;
}
.cv-hero-photo-grid {
  display: flex;
  justify-content: flex-end;
}
.cv-hero-content {
  max-width: 520px;
}
.cv-hero-content .eyebrow,
.cv-hero-content h1,
.cv-hero-content .cv-pitch {
  color: var(--color-off-white);
}
.cv-hero-content h1 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
}
.cv-hero-content .cv-pitch {
  color: rgba(250, 249, 246, 0.88);
  margin-bottom: var(--space-md);
}
.cv-hero-content .cv-meta {
  padding-top: var(--space-sm);
}
.cv-meta--on-dark {
  border-top-color: rgba(250, 249, 246, 0.22);
}
.cv-meta--on-dark li {
  color: var(--color-off-white);
}
.cv-meta--on-dark strong {
  color: rgba(250, 249, 246, 0.55);
}
@media (max-width: 900px) {
  /* Foto nicht mehr als Crop hinter dem Text, sondern gestapelt:
     Bild oben (voll sichtbar, Ausschnitt auf Jascha), Text darunter auf Navy. */
  .cv-hero--photo {
    display: block;
    min-height: 0;
    padding: 0 !important;
    overflow: visible;
    background: var(--color-navy);
  }
  .cv-hero-bg {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 30% center;
  }
  .cv-hero-overlay { display: none; }
  .cv-hero--photo .container {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
  .cv-hero-photo-grid {
    justify-content: flex-start;
  }
  .cv-hero-content {
    max-width: 100%;
  }
}
.cv-pitch {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-block: var(--space-md) var(--space-lg);
  max-width: 60ch;
}
.cv-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.cv-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}
.cv-meta strong {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cv-section { padding-block: var(--space-xl); }
.cv-section h2 { margin-bottom: var(--space-lg); }

/* Timeline */
.timeline {
  list-style: none;
  position: relative;
  margin-left: 12px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-left: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--color-navy);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-navy);
}
.timeline-date {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}
.timeline-content h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.timeline-org {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
.timeline-content p:last-child { margin-bottom: 0; }

/* Expertise grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.expertise-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: 4px;
  transition: transform var(--transition), border-color var(--transition);
}
.expertise-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-navy);
}
.expertise-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-navy);
  opacity: 0.25;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.04em;
}
.expertise-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.expertise-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Tools / Languages on dark */
.cv-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.cv-list {
  list-style: none;
  font-size: 1rem;
  line-height: 2;
}
.cv-list strong { display: inline-block; min-width: 110px; }
.eyebrow--on-dark { color: var(--color-on-dark-muted); }

/* Qualifikationen / Zertifikate */
.quals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-xl);
}
.quals-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-navy);
  display: inline-block;
}
.quals-list {
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.quals-list li {
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.quals-list li:last-child { border-bottom: none; }
.quals-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 6px; height: 6px;
  background: var(--color-navy);
}

/* Werte (Block 5, on dark) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.values-card {
  padding: var(--space-md) 0;
  border-top: 2px solid rgba(255,255,255,0.15);
}
.values-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--color-on-dark);
  opacity: 0.4;
  margin-bottom: var(--space-xs);
}
.values-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-on-dark);
}
.values-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-on-dark-muted);
  max-width: none;
}

/* Persönlich (Block 6) */
.cv-personal {
  max-width: 760px;
}
.cv-personal p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

/* CTA (Block 7) */
.cv-cta {
  text-align: center;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.cv-cta h2 { margin-bottom: var(--space-sm); }
.cv-cta p {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-md);
  max-width: 50ch;
}
.cv-cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ── Leistungen ─────────────────────────────────────────── */
.page-header .page-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-top: var(--space-md);
}

.services {
  padding-block: var(--space-xl) var(--space-lg);
}
.service-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.service-block:first-child { border-top: none; }
.service-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
  align-self: start;
}
.service-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-navy);
  opacity: 0.35;
  letter-spacing: 0.02em;
}
.service-code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 6px 10px;
  border: 1.5px solid var(--color-navy);
  align-self: start;
}
.service-content h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: var(--space-sm);
}
.service-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  border-left: 3px solid var(--color-navy);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-md);
  max-width: none;
}
.service-content p { max-width: 70ch; }
.service-partners {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--color-border);
}
.service-partners strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--color-navy);
}

.services-cta {
  text-align: center;
}
.services-cta h2 { margin-bottom: var(--space-sm); }
.services-cta p {
  color: var(--color-on-dark-muted);
  margin: 0 auto var(--space-md);
  max-width: 60ch;
}

/* ── Kontakt ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.contact-grid h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-weight: 600;
}
.contact-grid a { color: var(--color-navy); border-bottom: 1px solid var(--color-navy); }
.contact-grid a:hover { color: var(--color-grey); border-bottom-color: var(--color-grey); }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Responsive CV + Leistungen */
@media (max-width: 900px) {
  .cv-hero-grid { grid-template-columns: 200px 1fr; gap: var(--space-md); }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-meta { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .quals-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: var(--space-md); }
  .service-meta { position: static; flex-direction: row; align-items: center; gap: var(--space-md); }
  .service-num { font-size: 3rem; }
}
@media (max-width: 700px) {
  .cv-hero-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .cv-tools-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .cv-meta { grid-template-columns: 1fr; }
}

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  background: var(--color-off-white);
  padding-block: var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin: 0; }

/* ── Legal Pages (Impressum, Datenschutz, AGB) ──────────── */
.legal-content {
  max-width: 72ch;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-navy);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.legal-content ul {
  margin: 0 0 var(--space-sm) var(--space-md);
  padding-left: var(--space-sm);
  line-height: 1.7;
}
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: var(--color-navy); text-decoration: underline; }

/* ── Footer (dark) ──────────────────────────────────────── */
.site-footer {
  background: var(--color-grey);
  color: var(--color-on-dark);
  padding-block: var(--space-lg) var(--space-md);
}
.site-footer a:hover { color: #ffffff; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
}
.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 4px;
  color: var(--color-on-dark);
  text-decoration: none;
}
.footer-logo-mark {
  height: 200px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-slogan {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: var(--space-md);
}
.footer-logo-name {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.footer-logo-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-top: 6px;
}
.site-footer h4 {
  color: var(--color-on-dark);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.site-footer ul li { margin-bottom: var(--space-xs); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-on-dark-muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .site-nav ul { gap: var(--space-md); }
}

@media (max-width: 700px) {
  :root {
    --space-2xl: 80px;
    --space-xl:  56px;
    --nav-height: 96px;
  }
  body { font-size: 15px; }
  .site-logo-mark { height: 88px; }
  .site-logo-name { font-size: 0.95rem; }
  .site-logo-tagline { font-size: 0.7rem; letter-spacing: 0.14em; }
  .site-logo-text { padding-left: var(--space-xs); }
  .footer-logo-mark { height: 152px; }
  .footer-slogan { font-size: 0.8rem; letter-spacing: 0.1em; white-space: normal; }
  .footer-logo-name { font-size: 1.15rem; }
  .footer-logo-tagline { font-size: 0.85rem; }
  .site-nav { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: block; }
}

/* ── WPForms Overrides ──────────────────────────────────── */
.wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full {
  background-color: var(--color-navy) !important;
  border: 1px solid var(--color-navy) !important;
  color: var(--color-off-white) !important;
}
.wpforms-confirmation-container-full p,
.wpforms-confirmation-container-full {
  color: var(--color-off-white) !important;
}
.wpforms-confirmation-container-full a {
  color: var(--color-off-white);
  text-decoration: underline;
}

/* Spalten-Felder (wpforms-one-half etc.) nur auf Smartphone untereinander;
   Tablet (ab 768px, inkl. Querformat) bleibt 2-spaltig */
@media (max-width: 767px) {
  .wpforms-container .wpforms-field.wpforms-one-half,
  .wpforms-container .wpforms-field.wpforms-two-fourths,
  .wpforms-container .wpforms-field.wpforms-one-third,
  .wpforms-container .wpforms-field.wpforms-two-thirds,
  .wpforms-container .wpforms-field.wpforms-one-fourth,
  .wpforms-container .wpforms-field.wpforms-three-fourths {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
