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

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(8,145,178,0.95) 0%, rgba(6,182,212,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: #ffffff; }

/* ── HERO (Hauptseite) ── */
.hero-wrapper {
  background: linear-gradient(175deg, #cffafe 0%, #e0f2fe 40%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 260px;
}

.hero-photo {
  flex-shrink: 0;
  width: 200px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  align-self: flex-end;
}

.hero-text {
  flex: 1;
  padding: 48px 0 48px 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

/* Kontaktinfo gestapelt */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-line {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

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

/* ── PAGE HEADER (Unterseiten) ── */
.page-header {
  background: linear-gradient(160deg, #eef2ff 0%, #e0f2fe 55%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 2rem 48px;
}

.page-header-inner {
  max-width: 920px;
  margin: 0 auto;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: gap 0.15s;
}

.page-back:hover { gap: 0.5rem; }

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.page-header p {
  color: var(--muted);
  font-size: 14px;
}

/* ── CONTACT CHIPS ── */
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

a.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ── SECTION ── */
section {
  border-top: 1px solid var(--border);
  padding: 64px 2rem;
}

.section-inner {
  max-width: 920px;
  margin: 0 auto;
}

/* Größere Section-Überschriften */
.section-heading {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.section-more {
  margin-top: 2.25rem;
}

.section-more a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.15s;
}

.section-more a:hover { gap: 0.5rem; }

/* ── TIMELINE ── */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 138px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0 2.5rem;
  margin-bottom: 2.25rem;
  position: relative;
}

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

.timeline-date {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
  padding-right: 2rem;
  padding-top: 2px;
}

.timeline-dot {
  position: absolute;
  left: 133px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  z-index: 1;
}

.timeline-body { padding-left: 0.5rem; }

.timeline-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
}

/* Spiegelstriche → Punkte */
.timeline-bullets {
  list-style: none;
  margin-top: 0.5rem;
}

.timeline-bullets li {
  font-size: 13.5px;
  color: #334155;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.3rem;
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.45;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  line-height: 1.6;
}

.badge-blue  { background: var(--accent-light); color: var(--accent); }
.badge-green { background: var(--green-light);  color: var(--green);  }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

/* Größere Skill-Überschriften */
.skill-card h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 12.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  .nav-links { display: none; }
  .timeline::before { display: none; }
  .timeline-dot { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem 0; }
  .timeline-date { text-align: left; padding-right: 0; font-size: 11px; }
  .timeline-body { padding-left: 0; }
  .hero { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; min-height: unset; }
  .hero-photo { width: 100%; height: 220px; object-position: center 20%; }
  .hero-text { padding: 1.5rem 2rem; }
  .hero h1 { letter-spacing: -0.03em; }
  .section-heading { font-size: 1.35rem; }
}
