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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

/* =============================
   Language Switching
   ============================= */
html[lang="de"] .en { display: none !important; }
html[lang="en"] .de { display: none !important; }

/* =============================
   Layout
   ============================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: #f8fafc;
}

/* =============================
   Navigation
   ============================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: #2563eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2563eb;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-left: 0.5rem;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch button:hover,
.lang-switch button.active {
  color: #2563eb;
  background: #eff6ff;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f2937;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .lang-switch {
    margin-top: 0.75rem;
    margin-left: 0;
  }
}

/* =============================
   Hero
   ============================= */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%);
  border-bottom: 1px solid #e5e7eb;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: #2563eb;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1.25rem;
}

.hero-text {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* =============================
   Section Headings
   ============================= */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: #6b7280;
  max-width: 600px;
  line-height: 1.7;
}

/* =============================
   Service Cards (Angebot)
   ============================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #2563eb;
}

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

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.65;
}

/* =============================
   Lebenslauf / CV
   ============================= */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .cv-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Personal Info Box */
.cv-personal {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}

.cv-personal h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.cv-info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.cv-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-info-value {
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 500;
}

.cv-info-value a {
  color: #2563eb;
  text-decoration: none;
}

.cv-info-value a:hover {
  text-decoration: underline;
}

/* Skills / Badges */
.cv-skills-wrap {
  margin-top: 1.5rem;
}

.cv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
}

/* CV Main Content */
.cv-main {}

.cv-section {
  margin-bottom: 3rem;
}

.cv-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f3f4f6;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #2563eb;
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
}

.timeline-list li {
  font-size: 0.88rem;
  color: #4b5563;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.3rem;
  line-height: 1.55;
}

.timeline-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 1.1em;
  line-height: 1.4;
}

/* Education Table */
.edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.edu-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.edu-table th:first-child { padding-left: 0; }

.edu-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: top;
}

.edu-table td:first-child {
  padding-left: 0;
  white-space: nowrap;
  color: #6b7280;
  font-weight: 500;
}

.edu-table tr:last-child td {
  border-bottom: none;
}

/* Interests */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.interests-list li {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: #4b5563;
}

/* =============================
   Footer
   ============================= */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #6b7280;
  font-size: 0.8rem;
}
