/* =========================================================
   IT-Kompass — Stylesheet
   Modernes, semi-dunkles Portfolio-Design.
   Aufbau:
   1. Design Tokens (CSS Variables)
   2. Base / Reset
   3. Layout (container, grid)
   4. Komponenten (nav, hero, cards, buttons, quiz)
   5. Sektionen
   6. Responsive
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Farben */
  --bg:           #0f1218;
  --bg-elev:      #161b25;
  --bg-soft:      #1c2230;
  --border:       #262d3d;
  --text:         #e7ecf3;
  --text-dim:     #9aa3b2;
  --text-soft:    #c7cdd9;
  --accent:       #6c8cff;
  --accent-2:     #4dd6c1;
  --accent-soft:  rgba(108, 140, 255, 0.12);
  --danger:       #ff6b6b;

  /* Türkis / Aqua – dezente Sekundär-Akzentfarbe (Highlights, Hover, Focus, Icons) */
  --accent-teal:       #37d6d0;
  --accent-teal-light: #63e6e2;
  --accent-teal-dark:  #1fa7b8;
  --accent-teal-soft:  rgba(55, 214, 208, 0.12);

  /* Typo */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Maße */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.35);

  /* Abstände */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap:    1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
}

/* ---------- 2. Base / Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Platz für die sticky Navigationsleiste, damit Überschriften beim
     Anspringen (Nav-Links, Suche) nicht darunter verschwinden. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--gap-sm); }
p { margin: 0 0 var(--gap-sm); color: var(--text-soft); }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }

/* ---------- 3. Layout ---------- */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.section {
  padding: var(--gap-xl) 0;
}
.section--alt {
  background: var(--bg-elev);
  /* feine türkise Trennlinie als ruhiger Section-Akzent */
  border-top: 1px solid var(--accent-teal-soft);
}

.section__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: var(--gap-sm);
  letter-spacing: -0.01em;
}
.section__lead {
  max-width: 720px;
  margin-bottom: var(--gap-lg);
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- 4. Komponenten ---------- */

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 18, 24, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.nav__logo {
  color: var(--accent);
  font-size: 1.4rem;
}
.nav__links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.nav__links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--accent-teal-light); }

/* Hamburger-Button – nur auf schmalen Screens sichtbar (Mobile-Menü) */
.nav__toggle {
  display: none; /* Desktop: ausgeblendet, Links sind direkt sichtbar */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;            /* großzügiges Touch-Ziel (>= 44px) */
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s ease;
}
.nav__toggle:hover { border-color: var(--accent-teal); }
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
/* Geöffneter Zustand: Balken werden zu einem X */
.nav__toggle.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(1rem, 3vw, 2rem) 0 var(--gap-lg);
}

/* Banner-Card mit Bild + Overlay + Inhalt */
.hero__banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 380px;
  max-height: 620px;
  /* Bannerbild + dezenter dunkler Verlauf (links dunkel -> rechts klarer),
     damit der Text links sicher lesbar bleibt und der Kompass rechts sichtbar ist.
     background-size: cover verhindert jede Verzerrung. */
  background-color: #0b1020; /* Fallback-Farbe, falls das Bild fehlt */
  background-image:
    linear-gradient(90deg,
      rgba(9, 13, 24, 0.85) 0%,
      rgba(9, 13, 24, 0.55) 45%,
      rgba(9, 13, 24, 0.20) 100%),
    url("assets/header-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* dezenter türkiser Lichtschein unten links – belebt das Banner subtil */
    radial-gradient(120% 80% at 0% 100%,
      rgba(55, 214, 208, 0.12) 0%,
      transparent 45%),
    linear-gradient(180deg,
      rgba(15, 18, 24, 0.15) 0%,
      rgba(15, 18, 24, 0.55) 55%,
      rgba(15, 18, 24, 0.92) 100%),
    linear-gradient(90deg,
      rgba(15, 18, 24, 0.55) 0%,
      rgba(15, 18, 24, 0) 60%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 720px;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(120deg, #fff 0%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text);
  font-weight: 500;
  margin: 0 0 0.5rem;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Skill-Badges direkt unter dem Banner */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--gap);
}
.hero__badges li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;                 /* klickbar: startet eine Themen-Suche */
  user-select: none;
  transition: border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.hero__badges li:hover,
.hero__badges li:focus-visible {
  border-color: var(--accent-teal);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(55, 214, 208, 0.25);
  outline: none;
}
.hero__badges li:active { transform: translateY(0); }
/* Tastatur-Fokus klar sichtbar (Barrierefreiheit) */
.hero__badges li:focus-visible {
  box-shadow: 0 0 0 3px rgba(55, 214, 208, 0.35);
}
.hero__badges-hint {
  text-align: center;
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Ghost-Variante mit hellerer Border für Lesbarkeit auf dunklem Banner */
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  font-family: inherit;
}
.btn--primary {
  background: var(--accent);
  color: #0c1020;
}
.btn--primary:hover {
  background: var(--accent-2);
  color: #0c1020;
  transform: translateY(-1px);
}
.btn--primary:disabled {
  background: var(--bg-soft);
  color: var(--text-dim);
  cursor: not-allowed;
  transform: none;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

/* Haupt-Call-to-Action im Hero — bewusst auffälliger als alle anderen Buttons */
.btn--hero {
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0c1020;
  background: linear-gradient(135deg, #6c8cff 0%, #8a7dff 45%, #37d6d0 100%);
  background-size: 160% 160%;
  /* Blauer Hauptglow + feiner türkiser Zweitschein */
  box-shadow: 0 6px 22px rgba(108, 140, 255, 0.35), 0 4px 18px rgba(55, 214, 208, 0.18);
  animation: heroPulse 4.5s ease-in-out infinite;
}
.btn--hero:hover {
  color: #0c1020;
  background: linear-gradient(135deg, #6c8cff 0%, #8a7dff 45%, #37d6d0 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(108, 140, 255, 0.5), 0 8px 26px rgba(55, 214, 208, 0.3);
  animation-play-state: paused;
}
.btn__arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn--hero:hover .btn__arrow {
  transform: translateX(4px);
}

/* Sehr dezenter, langsamer Glow-Puls — nur für den Hero-CTA */
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(108, 140, 255, 0.35), 0 4px 18px rgba(55, 214, 208, 0.18); }
  50%      { box-shadow: 0 6px 26px rgba(108, 140, 255, 0.55), 0 6px 22px rgba(55, 214, 208, 0.30); }
}

/* Animationen respektieren Nutzer-Einstellung */
@media (prefers-reduced-motion: reduce) {
  .btn--hero { animation: none; }
  .btn__arrow { transition: none; }
}

/* ---------- Suche / Search ---------- */
/* Breite, moderne Search-Bar im Glas-Look auf dunklem Hintergrund. */
.search-section {
  padding: 0 0 var(--gap-lg);
}
.search-wrapper {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
/* Sichtbarer Fokus-Zustand mit dezentem Glow */
.search-bar:focus-within {
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(55, 214, 208, 0.20), var(--shadow);
}
.search-icon {
  display: flex;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color .2s ease;
}
.search-bar:focus-within .search-icon { color: var(--accent-teal); }
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.search-input::placeholder { color: var(--text-dim); }
.search-compass {
  color: var(--accent-teal);
  font-size: 1.3rem;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Vorschlags-Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 40;
}
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.search-suggestion + .search-suggestion {
  border-top: 1px solid var(--border);
}
.search-suggestion:hover,
.search-suggestion.is-active {
  background: var(--accent-teal-soft);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent-teal);
}
.search-suggestion__icon {
  color: var(--accent-teal);
  flex-shrink: 0;
}
.search-suggestion__type {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Ergebnis-Karte für einen Beruf */
.career-result { max-width: 760px; margin: var(--gap) auto 0; }
.career-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid rgba(108, 140, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
}
.career-card__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.career-card__close:hover { color: var(--text); background: var(--bg-soft); }
.career-card__title {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  padding-right: 2rem;
}
.career-card__desc { color: var(--text-soft); margin-bottom: 0.5rem; }
.career-card__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}
.career-card__tasks li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.career-card__tasks li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.career-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
/* Tool-Tags in der zweiten Akzentfarbe, zur Unterscheidung von Skills */
.tags--tool li {
  border-color: rgba(77, 214, 193, 0.35);
  color: var(--text);
}

/* Hinweis, wenn nichts gefunden wurde */
.search-message {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--text-soft);
}

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(55, 214, 208, 0.18);
}
.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card__icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card--accent {
  background: linear-gradient(135deg, rgba(108,140,255,0.10), rgba(77,214,193,0.08));
  border-color: rgba(108,140,255,0.3);
}
.card--agent { position: relative; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.tags li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  transition: border-color .2s ease, color .2s ease;
}
.tags li:hover {
  border-color: var(--accent-teal);
  color: var(--text);
}
.bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
}
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* About-me Layout */
.about-me {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: start;
}
/* ---------- Anschreiben / Brief ---------- */
/* Saubere, gut lesbare Brief-Darstellung – bewusst ruhig gehalten. */
.letter {
  max-width: 760px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.letter p { color: var(--text-soft); }
.letter__subject {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--gap);
}
.letter__closing { margin-top: var(--gap); }
.letter__sign {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Bewerbungsunterlagen (Dokument-Karten) ---------- */
.card--doc {
  display: flex;
  flex-direction: column;
}
/* Aktionen unten bündig halten, auch wenn Texte unterschiedlich lang sind */
.doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.1rem;
}
.doc__actions .btn {
  flex: 1 1 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---------- PDF-Viewer (Overlay) ---------- */
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  background: rgba(7, 10, 16, 0.8);
  backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
.doc-modal[hidden] { display: none; }   /* überschreibt display:flex sauber */
.doc-modal__box {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  height: min(90vh, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.doc-modal__title {
  font-weight: 700;
  color: var(--text);
}
.doc-modal__bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.doc-modal__close {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.doc-modal__close:hover { color: var(--text); background: var(--bg-soft); }
.doc-modal__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff; /* heller PDF-Hintergrund */
}

/* Contact */
.contact .card p { color: var(--text-soft); margin-bottom: 0.4rem; }

/* ---------- Quiz ---------- */
.quiz {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.quiz__header { margin-bottom: 1.5rem; }
.quiz__progress {
  width: 100%;
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
.quiz__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.quiz__card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 260px;
  animation: fade .25s ease;
}
.quiz__question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.quiz__options { display: grid; gap: 0.6rem; }
.quiz__option {
  width: 100%;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-size: 0.96rem;
}
.quiz__option:hover {
  border-color: var(--accent-teal);
  color: var(--text);
}
.quiz__option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: var(--gap-sm);
}

.quiz__results { margin-top: 2rem; }
.quiz__results-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.quiz__results-actions {
  margin-top: var(--gap);
  text-align: center;
}

.result-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.result-card__rank {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.result-card__role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.result-card__match {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.result-card__bar {
  width: 100%;
  height: 6px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
}
.result-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.result-card__section { margin-top: 0.4rem; }
.result-card__label {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.result-card p { margin: 0; font-size: 0.92rem; }

/* ---------- 5. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg-elev);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Animations ---------- */
@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 6. Responsive ---------- */

/* Tablet / kleinere Desktops: 3er-Grid auf 2 Spalten, About-me einspaltig */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about-me { grid-template-columns: 1fr; }
  .hero__banner { aspect-ratio: 4 / 3; min-height: 440px; }
}

/* ----- Mobile-Navigation: Hamburger-Menü ab 760px ----- */
@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }

  /* Links als ausklappbares Panel unter der Leiste – relativ zur sticky .nav */
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.4rem 0;
    /* Standard: geschlossen. Wird per .is-open (JS) eingeblendet. */
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 0.85rem max(4%, 1rem);
    font-size: 1rem;
    border-top: 1px solid var(--border);
  }
  .nav__links a:first-child { border-top: none; }
}

/* ----- Smartphone-Layout ----- */
@media (max-width: 600px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .quiz__nav { flex-direction: column-reverse; }
  .quiz__nav .btn { width: 100%; }

  .section { padding: var(--gap-lg) 0; }

  .hero__banner {
    aspect-ratio: auto;
    min-height: 480px;
    /* Auf schmalen Screens den rechten Bildteil (Kompass) im Blick behalten */
    background-position: center right;
  }
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(15, 18, 24, 0.25) 0%,
      rgba(15, 18, 24, 0.7) 55%,
      rgba(15, 18, 24, 0.95) 100%);
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__badges { justify-content: flex-start; }

  /* Suchleiste: etwas kompakter, Marken-Icon rechts ausblenden für mehr Platz */
  .search-bar { height: 52px; padding: 0 0.9rem; }
  .search-compass { display: none; }
}

/* ----- Sehr schmale Geräte (kleine Phones) ----- */
@media (max-width: 380px) {
  .container { width: 90%; }
  .hero__content { padding: 1.25rem; }
  .quiz__card,
  .card { padding: 1.15rem; }
  .career-card__actions .btn,
  .quiz__nav .btn { font-size: 0.9rem; }
}
