/* Grundlegendes Styling und Layout */
:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #0f172a;
  background: #ffffff;
  --bg-surface: #f5f5f7;
  --text-secondary: #475569;
  --border: rgba(10, 36, 99, 0.12);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  --primary: #0a2463;
  --primary-soft: #3e92cc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea, a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

.section-text {
  margin-top: 1rem;
  max-width: 44rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: #0f172a;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 0.12rem;
  background: #0f172a;
  border-radius: 999px;
}

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
}

.nav-mobile-panel a {
  color: #0f172a;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
}

.hero-copy {
  max-width: 640px;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(14, 62, 158, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(10, 36, 99, 0.16);
}

.hero-visual {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.avatar-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(62, 146, 204, 0.22), transparent 45%);
  filter: blur(20px);
}

.avatar-circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f5f7;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
  display: block;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.05);
}

.shape-1 {
  width: 140px;
  height: 140px;
  top: 8%;
  left: 10%;
}

.shape-2 {
  width: 100px;
  height: 100px;
  top: 42%;
  right: 12%;
}

.shape-3 {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: 18%;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.info-card, .contact-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-card {
  display: grid;
  gap: 1rem;
}

.icon-holder {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(62, 146, 204, 0.08);
  color: var(--primary);
}

.info-card h3 {
  margin-top: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: calc(50% - 2px);
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  max-width: 48rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary);
  left: -2.76rem;
}

.timeline-item.reverse {
  margin-left: auto;
}

.timeline-item.reverse::before {
  left: auto;
  right: -2.76rem;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(10, 36, 99, 0.08);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.timeline-company {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-group {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.skill-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(62, 146, 204, 0.1);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 36, 99, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
}

.project-link {
  margin-top: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.bg-surface {
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: #ffffff;
  color: #0f172a;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(62, 146, 204, 0.08);
}

.form-status {
  margin-top: 0.5rem;
  min-height: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-info {
  display: grid;
  align-content: start;
}

.contact-panel p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: var(--primary);
  font-weight: 600;
}

.small-text {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 767px) {
  .section {
    padding: 2.5rem 0;
  }
  .hero {
    padding-top: 2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-visual {
    width: min(260px, 100%);
    margin: 0 auto;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .timeline {
    gap: 1.5rem;
  }
  .timeline-line {
    left: 1rem;
    width: 4px;
  }
  .timeline-item,
  .timeline-item.reverse {
    width: 100%;
    margin: 0;
    padding-left: 2.5rem;
  }
  .timeline-item::before,
  .timeline-item.reverse::before {
    left: 0.5rem;
    right: auto;
  }
  .skills-grid,
  .project-grid,
  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    gap: 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile-panel {
    display: none !important;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
  }
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .timeline {
    gap: 3rem;
  }
  .timeline-item {
    width: 45%;
  }
  .timeline-item.reverse {
    margin-left: 0;
  }
  .timeline-item:not(.reverse) {
    margin-right: auto;
  }
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .footer-inner {
    grid-template-columns: auto auto;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 4rem;
  }
  .section {
    padding: 5rem 0;
  }
}
