/* ============================================================
   LIGHT GLOW THEME – BEREINIGTE VERSION (mit Skills-Layout)
   ============================================================ */

/* --------------------
   Design Tokens / Root
   -------------------- */
:root {
  /* Layout / Spacing */
  --space-1: clamp(8px, 1.2vw, 14px);
  --space-2: clamp(12px, 2vw, 24px);
  --space-3: clamp(20px, 3vw, 40px);
  --page-max: 1360px;
  --radius: 14px;

  /* Retina-weiß + UI-Weiß */
  --bg: #ffffff;
  --bg2: #ffffff;
  --panel: #ffffff;
  --card: #ffffff;

  /* Textfarben */
  --text: #111827;
  --muted: #6b7280;

  /* Border */
  --border: rgba(0, 0, 0, .08);

  /* Akzentfarben pro Themenbereich */
  --c1: #000185;   /* Blau — Startseite */
  --c2: #0d9488;   /* Türkis/Grün — Experience */
  --c3: #3a3a3a;   /* Projekte – dunkles Grau */
  --c4: #d85b00;   /* Ausbildung – dunkles Orange */
  --c5: #5c3e98;   /* Violett — Skills */
  --c6: #000185;   /* Reserve-Blau */

  --c7: #8a0035;   /* Weinrot — Weiterbildung */
  --c8: #000185;   /* Dunkelblau — Profil & Kontakt */

  /* Default Accent */
  --accent: var(--c1);
  --glow-rgb: 37, 99, 235;
}

/* --------------------------
   Accent per Themen-Section
   -------------------------- */
.theme-default   { --accent: var(--c1); --glow-rgb: 37, 99, 235; }
.theme-work      { --accent: var(--c2); --glow-rgb: 13, 148, 136; }
.theme-education { --accent: var(--c4); --glow-rgb: 216, 91, 0; }  /* Ausbildung – Orange */
.theme-skills    { --accent: var(--c5); --glow-rgb: 92, 62, 152; }
.theme-projects  { --accent: var(--c3); --glow-rgb: 58, 58, 58; }  /* Projekte – Grau */
.theme-training  { --accent: var(--c7); --glow-rgb: 138, 0, 53; }  /* Weiterbildung – Weinrot */
.theme-contact   { --accent: var(--c8); --glow-rgb: 0, 0, 133; }   /* Kontakt – Dunkelblau */

/* Farbige Überschriften pro Themenbereich */
.theme-default h2   { color: var(--c1); }
.theme-work h2      { color: var(--c2); }
.theme-education h2 { color: var(--c4); }
.theme-skills h2    { color: var(--c5); }
.theme-projects h2  { color: var(--c3); }
.theme-training h2  { color: var(--c7); }
.theme-contact h2   { color: var(--c8); }

/* H1 auf Startseite neutral lassen */
.theme-default h1 { color: var(--text); }

/* ----------
   Body
   ---------- */
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.6;

  /* Weiß, aber mit superweichem Glow nach oben */
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(var(--glow-rgb), .06), transparent 70%),
    #ffffff;
}

/* -------------
   Wrapper
   ------------- */
.wrap,
.container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
  padding-block: var(--space-2);
}

/* ----------------
   Typografie
   ---------------- */
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

/* Berufsbezeichnung im Hero */
.hero__left p.muted {
  font-size: 1.7rem;
  font-weight: 700;
  color: #000185;
  line-height: 1.3;
  margin-top: .3rem;
}

/* Mobile Fix: Berufstitel kleiner auf Smartphones */
@media (max-width: 480px) {
  .hero__left p.muted {
    font-size: 1.55rem;   /* vorher 1.9rem */
    line-height: 1.35;
  }
}

/* Profil-Überschrift in ruhigem Blau */
#profil h2 {
  color: #000185;
}

/* -------------
   Cards (HELL)
   ------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

.card-pro {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  border: 1px solid rgba(0, 0, 0, .08);
  transition: border-color .2s ease;
}

/* Soft Glow auf Hover */
.card-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, box-shadow .25s ease;
  box-shadow:
    0 0 16px 2px rgba(var(--glow-rgb), .14),
    0 0 40px 8px rgba(var(--glow-rgb), .10);
}

.card-pro:hover::after,
.card-pro:focus-within::after {
  opacity: 1;
}

/* Glow-Variante dauerhaft aktiv */
.card-pro.glow::after {
  opacity: 1;
  box-shadow:
    0 0 18px 2px rgba(var(--glow-rgb), .12),
    0 0 42px 8px rgba(var(--glow-rgb), .10),
    inset 0 0 8px rgba(var(--glow-rgb), .04);
}

/* Farbige Rahmen pro Themenbereich */
.theme-default .card-pro {
  border: 1.5px solid color-mix(in oklab, var(--c1), #000 70%);
}
.theme-work .card-pro {
  border: 1.5px solid color-mix(in oklab, var(--c2), #000 75%);
}
.theme-education .card-pro {
  border: 1.5px solid color-mix(in oklab, var(--c4), #000 75%);
}
.theme-skills .card-pro {
  border: 1.7px solid color-mix(in oklab, var(--c5), #000 65%);
}
.theme-projects .card-pro {
  border: 1.5px solid color-mix(in oklab, var(--c3), #000 70%);
}
.theme-training .card-pro {
  border: 1.5px solid color-mix(in oklab, var(--c7), #000 70%);
}
.theme-contact .card-pro {
  border: 1.5px solid color-mix(in oklab, var(--c8), #000 70%);
}

/* ------------
   Meta / Chips
   ------------ */
.meta {
  color: var(--muted);
  margin: .35rem 0 .6rem;
}

.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}

/* helle Chips */
.chip,
.tag {
  display: inline-block;
  max-width: 24ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent), #0f172a 75%);
  background: color-mix(in oklab, #ffffff, var(--accent) 12%);
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.chip:hover,
.tag:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ----------------
   Listen in Cards
   ---------------- */
.topics {
  margin: .9rem 0 1.2rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: .92rem;
  line-height: 1.55;
}
.topics li {
  margin-bottom: .45rem;
  opacity: .9;
}

/* ----------
   Buttons
   ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter .2s, transform .06s;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* Hero-Buttons als Outline-Variante in ruhigem Blau */
.hero__left .btn,
.hero__left .btn--ghost {
  background: transparent !important;
  color: #0200B9 !important;
  border: 1.5px solid #0200B9 !important;
}

.hero__left .btn:hover,
.hero__left .btn--ghost:hover {
  background: #0200B9 !important;
  color: #ffffff !important;
  filter: none !important;
}

/* Icon-Badges in den Hero-Buttons */
.hero__actions .btn,
.hero__actions .btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.hero__actions .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #0200B9;
  font-size: 1.05rem;
  line-height: 1;
  color: #ffffff;
}

/* Section notes – hint lines under headings */
.section-note {
  margin: 0.2rem 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}
.section-note .small {
  font-size: inherit;
  line-height: inherit;
}

.hero__actions .btn:hover .btn-icon,
.hero__actions .btn--ghost:hover .btn-icon {
  background: #2222d5;
}

/* ----------------
   Small Link Style
   ---------------- */
.small a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.small a:hover {
  border-bottom-style: solid;
}

/* ==========================
   Skills – Sammel-Card Layout
   ========================== */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.skills-col {
  flex: 1 1 260px;
  min-width: 220px;
}

.skills-col h3 {
  margin-bottom: .4rem;
}

.skills-col .chips {
  margin-top: .2rem;
}

/* etwas kompakteres Padding nur für die Skills-Card */
#skills .card-pro {
  padding: 1.8rem 1.4rem;
}

/* ==========================
   Projekte: neue Badges (aktuell nicht genutzt)
   ========================== */

/*
.theme-projects .project-badge {
  background: color-mix(in oklab, #ffffff, var(--c3) 18%);
  border: 1px solid color-mix(in oklab, var(--c3), #000 60%);
  color: #111827;
  padding: .35rem .9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow:
    0 0 10px rgba(58, 58, 58, .18),
    0 0 25px rgba(58, 58, 58, .12);
}

.theme-projects .project-badge:hover {
  background: color-mix(in oklab, #ffffff, var(--c3) 30%);
  box-shadow:
    0 0 14px rgba(58, 58, 58, .25),
    0 0 30px rgba(58, 58, 58, .18);
  transform: translateY(-1px);
}
*/

/* -----------
   Print
   ----------- */
@media print {
  @page { size: A4; margin: 14mm; }

  body {
    background: #ffffff !important;
    color: #000;
  }

  .card,
  .card-pro {
    box-shadow: none;
    border: 1px solid #aaa;
  }

  .card-pro::after { display: none !important; }
}
