/* ---------- 1. Design Tokens ---------- */
:root {
  /* Farben */
  --bg: #0f172a;
  --bg-elevated: #131c2e;
  --card: #172236;
  --card-hover: #1b2740;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e6eaf2;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #22c55e;
  --gradient: linear-gradient(90deg, var(--blue), var(--violet));

  /* Typografie */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

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

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --max-width: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 460px;
  height: 460px;
  background: rgba(59, 130, 246, 0.14);
  top: -120px;
  left: -120px;
}

body::after {
  width: 420px;
  height: 420px;
  background: rgba(139, 92, 246, 0.12);
  bottom: -100px;
  right: -80px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

img {
  max-width: 100%;
  height: auto;
}

main {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

section {
  max-width: var(--max-width);   /* = 1200px */
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md);
}

/* Fokus sichtbar halten (Accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
a[href="#home"] {
  display: flex;
  align-items: center;
  height: 70px;
}

a[href="#home"] img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
/* ---------- 2b. Smoothe Übergänge & Scroll-Reveal ---------- */

a,
button,
.progress,
.project-card,
.fakten-card,
.certificate-card,
.contact-link-item,
.infocard,
header > div > a,
#theme-toggle {
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* Karten/Items, die beim Scrollen sanft einblenden.
   JS (animations.js) hängt bei Sichtbarkeit die Klasse .in-view an. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Versetzte Einblend-Reihenfolge innerhalb einer Karten-Reihe */
.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal:nth-child(4) {
  transition-delay: 0.24s;
}
/* Über mich: Profilkarte von links, Infocards von rechts,
   Zitat weiterhin von unten */
#about .profile-card.reveal {
  transform: translateX(-50px);
}
#about .profile-card.reveal.in-view {
  transform: translateX(0);
}

#about .infocard.reveal {
  transform: translateX(50px);
}
#about .infocard.reveal.in-view {
  transform: translateX(0);
}

/* Auf schmalen Screens lieber von unten statt seitlich,
   weil links/rechts auf Mobile eh übereinander liegen */
@media (max-width: 640px) {
  #about .profile-card.reveal,
  #about .infocard.reveal {
    transform: translateY(24px);
  }
  #about .profile-card.reveal.in-view,
  #about .infocard.reveal.in-view {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.status {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* ---------- 3. Header / Nav ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* Nav + Socials: auf Desktop normal sichtbar, nebeneinander */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 901px) {
  .nav-panel {
    flex: 1;
  }
  header nav {
    flex: 1;
    justify-content: center;
  }
}

/* 3-Punkte-Button: nur auf Mobile sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-toggle .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .dot {
  background: var(--blue);
}

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

  .nav-panel {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-panel.nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-panel nav {
    flex-direction: column;
    gap: 0;
  }

  .nav-panel nav a {
    padding: 0.85rem 1rem;
    width: 100%;
  }

  .nav-panel nav a::after {
    display: none;
  }

  .nav-panel nav a:hover {
    background: var(--card-hover);
    border-radius: var(--radius-sm);
  }

  .header-social {
    justify-content: center;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}
.header-social {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.header-social a:hover {
  transform: translateY(-2px) scale(1.08);
  opacity: 0.8;
}

.header-social img {
  width: 26px;
  height: 26px;
  object-fit: contain;

  filter: brightness(0) invert(1);
}
header > a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

header > a span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

header nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.4rem 0;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.25s var(--ease);
}

header nav a:hover {
  color: var(--text);
}

header nav a:hover::after {
  width: 100%;
}

header > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

#theme-toggle:hover {
  background: var(--card-hover);
  color: var(--text);
}

header > div > a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

header > div > a:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

/* ---------- 4. Hero (#home) ---------- */

#home {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content:center;
    align-items:flex-start;
    gap: 6rem;
    max-width: none;
    width: 100%;
    margin: 0;

    min-height: calc(100vh - 80px);
    padding: 3rem 2rem;
}

#home::before,
#home::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

#home::before {
  width: 420px;
  height: 420px;
  background: rgba(59, 130, 246, 0.18);
  top: -120px;
  left: -100px;
}

#home::after {
  width: 380px;
  height: 380px;
  background: rgba(139, 92, 246, 0.16);
  bottom: -100px;
  right: 10%;
}

.hero-left {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 750px;
}

.hero-left::before {
  content: "Verfügbar für neue Projekte";
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 600;
  animation: fadeInUp 0.6s var(--ease) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Text ---------- */

.main-content > p:first-child {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.main-content h1 {
  font-size: clamp(4rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;

  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-content h2 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.main-content > p:last-child {
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}

.hero-buttons a {
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: 0.25s ease;

  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-buttons a img {
  width: 30px;
  height: 30px;
}

.hero-buttons a:first-child {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.hero-buttons a:last-child {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-buttons a:hover {
  transform: translateY(-3px);
}

/* ---------- Stats ---------- */

.stats {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.stats h3 {
  font-size: 2.6rem;
  margin-bottom: 0.25rem;
}

.stats p {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.stats div:nth-child(1) h3 {
  color: var(--blue);
}

.stats div:nth-child(2) h3 {
  color: var(--violet);
}

.stats div:nth-child(3) h3 {
  color: var(--green);
}

/* ---------- Bild ---------- */

.main-image {
    position: relative;
    z-index: 1;
    width: 600px;
    height: 700px;

    flex-shrink: 0;

    border-radius: 25px;
    overflow: hidden;

    background: linear-gradient(
      145deg,
      rgba(59, 130, 246, 0.14),
      rgba(139, 92, 246, 0.14)
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);

    display: flex;
    justify-content: center;
    align-items: center;
    /* animation: float 6s ease-in-out infinite; */
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Responsive ---------- */
/* Tablet & kleinere Desktops */
@media (max-width: 1024px) {
  #home {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding: 5rem 2rem;
  }

  .hero-left {
    max-width: 700px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .main-image {
    width: min(380px, 80vw);
    height: min(380px, 80vw);
  }
}


/* Mobile */
@media (max-width: 768px) {

  #home {
    padding: 4rem 1.5rem;
    gap: 2.5rem;
  }

  .main-content h1 {
    font-size: clamp(2.3rem, 8vw, 3rem);
  }

  .main-content h2 {
    font-size: 1.3rem;
  }

  .main-content p {
    font-size: 0.95rem;
  }

  .main-image {
    width: 280px;
    height: 280px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a {
    width: 90%;
    margin: auto;
  }

}


/* Kleine Smartphones */
@media (max-width: 400px) {

  #home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

  .main-content h1 {
    font-size: 2rem;
  }

  .main-content h2 {
    font-size: 1.1rem;
  }

  .main-image {
    width: 230px;
    height: 230px;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

}
/* ---------- 5. Section Titles (gemeinsam) ---------- */
.section-title,
.about-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--gap-xl);
}

.section-title > span,
.about-title > span {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title h2,
.about-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-title h2 em,
.section-title h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title p {
  font-size: 1rem;
}

/* ---------- 6. About (#about) ---------- */
.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  box-shadow: var(--shadow-card);
}

.profile-image {
  width: 96px;
  height: 96px;

  border-radius: 50%;
  padding: 3px;

  background: var(--gradient);

  box-shadow:
    0 0 30px rgba(4,178,252,0.35);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-header {
  margin-bottom: var(--gap-sm);
}

.profile-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.profile-header span {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-description {
  margin-bottom: var(--gap-md);
}

.about-left .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
}

.infocard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.9rem;
  align-items: center;
  overflow: hidden;
}


/* Farbiger Indikator-Punkt oben rechts, Farbe wechselt je Karte
   (Standort=blau, Ausbildung=violett, Erfahrung=türkis, Verfügbarkeit=grün) */
.infocard::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.info-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 22px;
  height: 22px;
  -webkit-mask-image: var(--icon-url, none);
  mask-image: var(--icon-url, none);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.infocard[data-color="blue"] .info-icon {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}
.infocard[data-color="blue"] .info-icon img {
  background-color: var(--blue);
}
.infocard[data-color="blue"]::after {
  background: var(--blue);
}

.infocard[data-color="violet"] .info-icon {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}
.infocard[data-color="violet"] .info-icon img {
  background-color: var(--violet);
}
.infocard[data-color="violet"]::after {
  background: var(--violet);
}

.infocard[data-color="cyan"] .info-icon {
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}
.infocard[data-color="cyan"] .info-icon img {
  background-color: #22d3ee;
}
.infocard[data-color="cyan"]::after {
  background: #22d3ee;
}

.infocard[data-color="green"] .info-icon {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}
.infocard[data-color="green"] .info-icon img {
  background-color: var(--green);
}
.infocard[data-color="green"]::after {
  background: var(--green);
}

.infocard:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.infocard > p {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.infocard h3 {
  grid-column: 2;
  grid-row: 2;
  font-size: 1rem;
}

.quotecard {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.quotecard p {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

/* Für die Zuschreibungszeile ("— Damien Blaumüller") unter dem Zitat:
   <span class="quote-author">— Damien Blaumüller</span> im HTML ergänzen. */
.quote-author {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue);
}

@media (min-width: 900px) {
  .about-container {
    grid-template-columns: 1fr 1fr;
  }

  .profile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .profile-card .tags {
    margin-top: auto;
  }
}

/* ---------- 7. Technologien / Skills (#technologien) ---------- */
.technology-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.technology-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
}

.technology-card > h3 {
  font-size: 1rem;
  margin-bottom: var(--gap-md);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.technology-card > h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Kategorie-Akzentfarben: Frontend, Backend, Datenbanken, Tools & Weitere */
.technology-card:nth-of-type(1) > h3::before {
  background: var(--blue);
}
.technology-card:nth-of-type(2) > h3::before {
  background: var(--violet);
}
.technology-card:nth-of-type(3) > h3::before {
  background: #22d3ee;
}
.technology-card:nth-of-type(4) > h3::before {
  background: var(--green);
}

.technology-card:nth-of-type(1) .progress {
  background: var(--blue);
}
.technology-card:nth-of-type(2) .progress {
  background: var(--violet);
}
.technology-card:nth-of-type(3) .progress {
  background: #22d3ee;
}
.technology-card:nth-of-type(4) .progress {
  background: var(--green);
}

.skill {
  margin-bottom: 1.1rem;
}

.skill:last-child {
  margin-bottom: 0;
}

/* Skill Header */
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  gap: 1rem;
}

.skill-header > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Icons */
.skill-header img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Skill Name */
.skill-header p {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* Kenntnis */
.skill-header span {
  color: var(--text-faint);
  font-size: 0.8rem;
  white-space: nowrap;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
}

/* Füllstände je Skill, abgeleitet aus dem Kenntnis-Label im HTML:
   Fundierte Kenntnisse = 90% | Gute Kenntnisse = 75%
   Grundkenntnisse = 55%      | Erste Erfahrungen = 40% */
.progress.html,
.progress.csharp,
.progress.vs {
  width: 90%;
}

.progress.css,
.progress.javascript,
.progress.blazor,
.progress.aspnet,
.progress.dotnet,
.progress.php,
.progress.laravel,
.progress.sqlserver,
.progress.mysql,
.progress.github,
.progress.restapi {
  width: 75%;
}

.progress.tailwind,
.progress.figma,
.progress.npm {
  width: 55%;
}

.progress.docker {
  width: 40%;
}

@media (min-width: 700px) {
  .technology-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .technology-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 8. Projekte (#projects) ---------- */
.project-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-links {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;

  display: flex;
  gap: 0.5rem;

  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  z-index: 5;
}

.project-card:hover .project-links {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.project-links a {
  width: 36px;
  height: 36px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
/* GitHub Icon */
.project-links a img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Live-Demo Pfeil */
.project-links a:last-child {
  color: white;
  font-size: 1rem;
  font-weight: bold;
}

/* Hover auf Button */
.project-links a:hover {
  transform: scale(1.1);
  background: var(--blue);
}

.project-content {
  padding: var(--gap-md);
}

.project-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.project-content p {
  font-size: 0.92rem;
  margin-bottom: var(--gap-sm);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .project-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .project-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 9. Werdegang / Timeline (#werdegang) ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--blue),
    var(--violet),
    transparent
  );
}

.timeline-item {
  position: relative;
  margin-bottom: var(--gap-lg);
}

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

.timeline-icon {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.timeline-icon svg {
  width: 18px;
  height: 18px;
}

/* Farbcodierung pro Werdegangs-Eintrag */
.timeline-item[data-color="green"] .timeline-icon {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.3);
}

.timeline-item[data-color="red"] .timeline-icon {
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

.timeline-item[data-color="blue"] .timeline-icon {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

/* Datum-Pill farblich passend zum Icon */
.timeline-item[data-color="green"] .timeline-date {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.timeline-item[data-color="red"] .timeline-date {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.timeline-item[data-color="blue"] .timeline-date {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* Aktueller Eintrag (mit .badge "Aktuell") bekommt einen dezenten Puls,
   damit er als "das hier passiert gerade" ins Auge sticht */
.timeline-item:has(.badge) .timeline-icon {
  animation: pulse-ring 2s ease-out infinite;
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-org {
  color: var(--blue);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.timeline-description {
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- 10. Zertifikate (#zertifikate) ---------- */
.certificate-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.certificate-card article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  height: 100%;
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gap-sm);
}

.certificate-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue);
}

.certificate-badge {
  color: #fbbf24;
}

.certificate-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.certificate-provider {
  color: var(--violet);
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.certificate-description {
  font-size: 0.9rem;
  margin-bottom: var(--gap-sm);
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.certificate-date {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.certificate-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
}

.certificate-link:hover {
  text-decoration: underline;
}
.certificate-icon svg {
  width: 22px;
  height: 22px;
}

.certificate-badge svg {
  width: 18px;
  height: 18px;
}

/* Farbcodierung pro Zertifikat, analog zu Infocards/Fakten-Cards */
.certificate-card[data-color="yellow"] .certificate-icon {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.35);
  color: #facc15;
}

.certificate-card[data-color="blue"] .certificate-icon {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--blue);
}

.certificate-card[data-color="violet"] .certificate-icon {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--violet);
}

.certificate-card[data-color="green"] .certificate-icon {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--green);
}

.certificate-card[data-color="red"] .certificate-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

@media (min-width: 700px) {
  .certificate-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .certificate-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 11. Zahlen & Fakten (#fakten) ---------- */
.fakten-banner {
  text-align: center;
  max-width: 640px;
  margin: -1.5rem auto var(--gap-lg);
  padding: 1rem 1.5rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text);
}

.fakten-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.fakten-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg) var(--gap-md);
  text-align: center;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.fakten-card:hover {
  transform: translateY(-5px);
}

.fakten-card[data-color="blue"]:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}
.fakten-card[data-color="violet"]:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}
.fakten-card[data-color="green"]:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.15);
}
.fakten-card[data-color="orange"]:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.fakten-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--gap-sm);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

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

/* Farbcodierung je Karte */
.fakten-card[data-color="blue"] .fakten-icon {
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
}

.fakten-card[data-color="violet"] .fakten-icon {
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet);
}

.fakten-card[data-color="green"] .fakten-icon {
  background: rgba(34, 197, 94, 0.14);
  color: var(--green);
}

.fakten-card[data-color="orange"] .fakten-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

/* Hover: Icon-Kreis leuchtet in seiner Farbe auf */
.fakten-card[data-color="blue"]:hover .fakten-icon {
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.55);
  transform: scale(1.08);
}

.fakten-card[data-color="violet"]:hover .fakten-icon {
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
  transform: scale(1.08);
}

.fakten-card[data-color="green"]:hover .fakten-icon {
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.55);
  transform: scale(1.08);
}

.fakten-card[data-color="orange"]:hover .fakten-icon {
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.55);
  transform: scale(1.08);
}

.fakten-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  transition: text-shadow 0.3s var(--ease);
}

.fakten-card[data-color="blue"] .fakten-value { color: var(--blue); }
.fakten-card[data-color="violet"] .fakten-value { color: var(--violet); }
.fakten-card[data-color="green"] .fakten-value { color: var(--green); }
.fakten-card[data-color="orange"] .fakten-value { color: #f59e0b; }

.fakten-card[data-color="blue"]:hover .fakten-value {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}
.fakten-card[data-color="violet"]:hover .fakten-value {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}
.fakten-card[data-color="green"]:hover .fakten-value {
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}
.fakten-card[data-color="orange"]:hover .fakten-value {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.fakten-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.fakten-description {
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .fakten-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .fakten-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 12. Kontakt (#contact) ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.contact-highlight {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12),
    rgba(139, 92, 246, 0.12)
  );
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
}

.contact-highlight h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.contact-highlight p {
  font-size: 0.92rem;
  margin-bottom: var(--gap-sm);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  transition: border-color 0.2s ease;
}

.contact-link-item:hover {
  border-color: var(--border-strong);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.contact-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.contact-link-item:hover .contact-icon {
  transform: scale(1.08);
}

.contact-link-item:hover .contact-icon img {
  opacity: 1;
}
.contact-link-item[data-color="white"]:hover .contact-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-link-item[data-color="linkedin"]:hover .contact-icon {
  background: rgba(10, 102, 194, 0.18);
  border-color: rgba(10, 102, 194, 0.4);
}

.contact-link-item[data-color="violet"]:hover .contact-icon {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}

.contact-link-item[data-color="green"]:hover .contact-icon {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

.contact-link-item p {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.contact-link-item a,
.contact-link-item address {
  font-style: normal;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

@media (min-width: 900px) {
  .contact-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- 13. Footer ---------- */
footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap-md);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s var(--ease);
}

.footer-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-socials a:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-3px);
}

.footer-socials a:hover img {
  opacity: 1;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--gap-md) 0;
}

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

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.heart {
  color: #ef4444;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text);
}
