/* ==========================================================================
   dolbaum.com — design system
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (utility)
   Signature motif: corner-bracket frame (technical-drawing registration marks)

   Fonts are self-hosted (assets/fonts) rather than loaded from Google's CDN.
   This avoids sending visitors' IP addresses to Google on every page load,
   which German courts have ruled requires consent (LG München I, 20.01.2022,
   Az. 3 O 17493/20) — self-hosting sidesteps the issue entirely.
   ========================================================================== */

@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root{
  /* color */
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-dark: #12161c;
  --text: #12161c;
  --text-secondary: #5b6472;
  --text-muted: #8993a3;
  --text-on-dark: #eef1f6;
  --text-on-dark-secondary: #a7afbd;
  --accent: #2954e0;
  --accent-dark: #1b3aa6;
  --accent-tint: #eaf0fe;
  --accent-tint-strong: #d3e0fd;
  --gray-tint: #eef0f3;
  --amber: #9a6b00;
  --amber-tint: #fbf1dc;
  --border: #e3e7ee;
  --border-strong: #c7ced9;
  --danger: #b3261e;
  --danger-tint: #fce8e6;
  --success: #146c43;
  --success-tint: #e6f4ea;

  /* type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* layout */
  --max-width: 1120px;
  --radius: 4px;
  --nav-height: 76px;
}

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

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

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

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; color: var(--text-secondary); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

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

/* focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover{ background: var(--accent-dark); }
.btn-secondary{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover{ border-color: var(--accent); color: var(--accent); }

/* ---------- corner-bracket frame (signature motif) ---------- */
.bracket-frame{
  position: relative;
  padding: 18px;
}
.bracket-frame::before,
.bracket-frame::after,
.bracket-frame > .bf-tr,
.bracket-frame > .bf-br{
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
}
.bracket-frame::before{ top: 0; left: 0; border-right: none; border-bottom: none; }
.bracket-frame::after{ bottom: 0; right: 0; border-left: none; border-top: none; }
.bracket-frame .bf-tr{ top: 0; right: 0; border-left: none; border-bottom: none; }
.bracket-frame .bf-bl{ position: absolute; bottom: 0; left: 0; width: 28px; height: 28px; border: 2px solid var(--accent); border-right: none; border-top: none; }

/* ---------- nav ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.site-nav .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}
.nav-logo span{ color: var(--accent); }
.nav-links{
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin-left: 2.2rem;
  padding: 0;
}
.nav-links a{
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}
.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 820px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a{ display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* ---------- hero ---------- */
.hero{
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-photo-wrap{ max-width: 340px; margin-left: auto; }
.hero-photo{
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; }
.hero h1{ margin-bottom: 0.4em; }
.hero-sub{ font-size: 1.1rem; margin-bottom: 2em; max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.facts-strip{
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.facts-strip .container{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.facts-strip strong{ color: var(--text); font-weight: 500; }

@media (max-width: 820px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-photo-wrap{ max-width: 240px; margin: 0 auto; order: -1; }
}

/* ---------- section basics ---------- */
.section{ padding: 88px 0; }
.section-alt{ background: var(--bg-alt); }
.section[id]{ scroll-margin-top: var(--nav-height); }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head p{ margin-bottom: 0; }

/* ---------- page header (non-home pages) ---------- */
.page-header{
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-header p{ max-width: 60ch; margin-bottom: 0; }

/* ---------- tags / badges ---------- */
.tag{
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gray-tint);
  color: var(--text-secondary);
}
.tag-arbeit{ background: var(--accent-tint); color: var(--accent-dark); }
.tag-bildung{ background: var(--gray-tint); color: var(--text-secondary); }
.tag-zertifikat{ background: var(--amber-tint); color: var(--amber); }

.tech-tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

/* ---------- timeline (Werdegang) ---------- */
.timeline{
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item{
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-date{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.timeline-item h3{ margin-bottom: 4px; }
.timeline-org{ font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.timeline-desc{ margin-bottom: 10px; }

/* ---------- cards ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover{ border-color: var(--accent); transform: translateY(-2px); }
.card-media{
  aspect-ratio: 16/10;
  background: var(--bg-alt);
}
.card-media img{ width: 100%; height: 100%; object-fit: cover; }
.card-body{ padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-badge{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-body h3{ margin-bottom: 8px; }
.card-body p{ font-size: 0.92rem; margin-bottom: 16px; }
.card-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-link{
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link.disabled{ color: var(--text-muted); }

/* ---------- skills grid ---------- */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.skill-group h3{ font-size: 1rem; margin-bottom: 12px; }
.skill-list{ display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

/* ---------- contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info-item{ margin-bottom: 24px; }
.contact-info-item .eyebrow{ margin-bottom: 6px; }
.contact-info-item a, .contact-info-item span{ font-size: 1.05rem; }

form{ display: flex; flex-direction: column; gap: 18px; }
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-size: 0.85rem; font-weight: 600; }
.form-row .hint{ font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
input[type="text"], input[type="email"], textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
textarea{ resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder{ color: var(--text-muted); }

.form-status{
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.visible{ display: block; }
.form-status.success{ background: var(--success-tint); color: var(--success); }
.form-status.error{ background: var(--danger-tint); color: var(--danger); }

@media (max-width: 820px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ---------- legal pages ---------- */
.legal-content{ max-width: 720px; }
.legal-content h2{ margin-top: 2em; font-size: 1.2rem; }
.legal-content p, .legal-content li{ font-size: 0.95rem; }
.legal-content a{ color: var(--accent); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--bg-dark);
  color: var(--text-on-dark-secondary);
  padding: 64px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand{ font-family: var(--font-display); color: var(--text-on-dark); font-size: 1.1rem; margin-bottom: 10px; }
.footer-tagline{ font-size: 0.88rem; max-width: 32ch; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  margin-bottom: 14px;
  font-weight: 400;
}
.footer-col ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: 0.88rem; color: var(--text-on-dark-secondary); }
.footer-col a:hover{ color: var(--text-on-dark); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
}

@media (max-width: 820px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}

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