/* Mein Grundlook – Farben und Basiswerte passe ich hier zentral an. */
:root {
  --bg:#07080a;
  --bg2:#0b0e12;
  --card:#0f1318;
  --card2:#11171d;
  --ink:#f7f8fa;
  --muted:#9aa6b2;
  --line:rgba(255,255,255,.105);
  --soft:rgba(255,255,255,.055);
  --lime:#9fd3ff;
  --cyan:#79c9ff;
  --vio:#a9b8ff;
  --orange:#ff9d5c;
  --max:1240px;
  --r:24px;
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden
}

body:before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  background:radial-gradient(900px 500px at 82% -10%,rgba(96,231,255,.11),transparent 60%),radial-gradient(700px 460px at 15% 30%,rgba(167,139,250,.09),transparent 60%),linear-gradient(180deg,#07080a 0%,#090c10 52%,#07080a 100%)
}

.noise {
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.025;
  z-index:50;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")
}

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

.wrap {
  width:min(calc(100% - 38px),var(--max));
  margin:auto
}

/* Meine Navigation – bewusst kompakt und immer erreichbar. */
nav {
  position:fixed;
  top:14px;
  left:0;
  right:0;
  z-index:30
}

.nav {
  height:60px;
  padding:0 12px 0 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(9,11,14,.73);
  backdrop-filter:blur(20px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 18px 50px rgba(0,0,0,.25)
}

.brand {
  font-weight:900;
  letter-spacing:-.04em
}

.brand b {
  color:var(--lime)
}

.links {
  display:flex;
  align-items:center;
  gap:6px
}

.links a {
  font-size:.82rem;
  color:#b3bdc7;
  padding:9px 12px;
  border-radius:999px
}

.links a:hover {
  background:var(--soft);
  color:#fff
}

.nav-cta {
  border:1px solid rgba(199,255,79,.35)!important;
  color:var(--lime)!important
}

.nav-contact-choice {
  position:relative;
  display:inline-flex;
  align-items:center
}

.nav-contact-trigger {
  cursor:pointer;
  font:inherit;
  background:transparent;
  padding:9px 12px;
  border-radius:999px
}

.nav-contact-options {
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:160px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(9,11,14,.96);
  backdrop-filter:blur(18px);
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
  z-index:40
}

.nav-contact-options::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:100%;
  height:12px
}

.nav-contact-choice:hover .nav-contact-options,
.nav-contact-choice:focus-within .nav-contact-options {
  opacity:1;
  visibility:visible;
  transform:translateY(0)
}

.nav-contact-options a {
  display:block;
  padding:10px 14px;
  border-radius:10px;
  color:#c7d0d9;
  font-weight:800;
  font-size:.82rem;
  white-space:nowrap
}

.nav-contact-options a:hover,
.nav-contact-options a:focus-visible {
  background:var(--soft);
  color:#fff
}

/* Kontakt-Auswahl in der Navigation */
.nav-contact-choice {
  position:relative;
  display:inline-flex;
  align-items:center
}

.nav-contact-trigger {
  font:inherit;
  cursor:pointer;
  background:transparent;
  padding:9px 12px;
  border-radius:999px
}

.nav-contact-options {
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  min-width:150px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(9,11,14,.97);
  backdrop-filter:blur(18px);
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
  z-index:40
}

/* Unsichtbare Brücke, damit das Menü beim Überfahren des Abstands offen bleibt */
.nav-contact-options::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:100%;
  height:8px
}

.nav-contact-choice:hover .nav-contact-options,
.nav-contact-choice:focus-within .nav-contact-options {
  opacity:1;
  visibility:visible;
  transform:translateY(0)
}

.nav-contact-options a {
  display:block!important;
  padding:10px 12px!important;
  border-radius:9px;
  color:#c7d0d9!important;
  white-space:nowrap
}

.nav-contact-options a:hover,
.nav-contact-options a:focus-visible {
  background:var(--soft)!important;
  color:#fff!important
}

/* Mein Einstieg – soll in wenigen Sekunden sagen, worum es bei mir geht. */
.hero {
  min-height:100svh;
  display:grid;
  align-items:center;
  padding:118px 0 64px;
  position:relative
}

.hero-grid {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(320px,.65fr);
  gap:52px;
  align-items:end
}

.eyebrow {
  display:flex;
  gap:10px;
  align-items:center;
  color:#c1cad3;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:800
}

.eyebrow-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.eyebrow-title {
  color: #c1cad3;
}

.eyebrow-sub {
  color: #788591;
  font-size: .68rem;
  letter-spacing: .09em;
}

.pulse {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--lime);
  box-shadow:0 0 0 0 rgba(199,255,79,.5);
  animation:pulse 2s infinite
}

@keyframes pulse {
  70% {
    box-shadow:0 0 0 10px rgba(199,255,79,0)
  }

  100% {
    box-shadow:0 0 0 0 rgba(199,255,79,0)
  }

}

h1 {
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 24px 0 30px;
  max-width: 1050px;
}

.stroke {
  color:transparent;
  -webkit-text-stroke:1.2px rgba(247,248,250,.76)
}

.accent {
  color:var(--lime)
}

.lead {
  font-size:clamp(1.12rem,2.1vw,1.48rem);
  max-width:850px;
  color:#c5cdd6;
  letter-spacing:-.012em
}

.lead strong {
  color:#fff
}

.hero-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:30px
}

.btn {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 17px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:800;
  font-size:.9rem;
  background:rgba(255,255,255,.025)
}

.btn:hover {
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.24)
}

.btn.primary {
  background:var(--lime);
  color:#0a0d08;
  border-color:var(--lime)
}

.hud {
  border:1px solid var(--line);
  border-radius:30px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  padding:18px;
  position:relative;
  overflow:hidden
}

.hud:before {
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  background:var(--cyan);
  filter:blur(100px);
  opacity:.12;
  right:-70px;
  top:-60px
}

.hud-top {
  display:flex;
  justify-content:space-between;
  color:#768390;
  font:700 .72rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-transform:uppercase;
  letter-spacing:.08em
}

.status {
  display:grid;
  gap:10px;
  margin-top:28px
}

.status-row {
  padding:13px 14px;
  border-radius:16px;
  background:#090d11;
  border:1px solid var(--line);
  display:grid;
  grid-template-columns:11px 1fr auto;
  align-items:center;
  gap:11px
}

.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--lime)
}

.status-row span {
  font-size:.86rem
}

.status-row em {
  font:700 .71rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#77838f;
  font-style:normal
}

.hud-code {
  margin:18px 2px 2px;
  font:600 .78rem/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#8795a3
}

.hud-code i {
  font-style:normal;
  color:var(--cyan)
}

.marquee {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  background:#090b0e
}

.track {
  display:flex;
  width:max-content;
  animation:marquee 28s linear infinite;
  padding:12px 0
}

.track span {
  font:800 .72rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.1em;
  color:#9ba6b1;
  text-transform:uppercase;
  padding:0 24px
}

.track b {
  color:var(--lime);
  margin-right:24px
}

@keyframes marquee {
  to {
    transform:translateX(-50%)
  }

}

/* Allgemeine Sections */
section {
  padding:88px 0
}

.section-head {
  display:grid;
  grid-template-columns:150px 1fr;
  gap:34px;
  margin-bottom:42px
}

.index {
  font:800 .72rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#6f7b86;
  text-transform:uppercase;
  letter-spacing:.11em
}

.section-head h2 {
  font-size:clamp(2.35rem,4.5vw,4.3rem);
  line-height:.93;
  letter-spacing:-.065em;
  margin:0
}

.section-head h2 i {
  font-style:normal;
  color:var(--lime)
}

.bento {
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:14px
}

.tile {
  grid-column:span 4;
  min-height:250px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.018));
  position:relative;
  overflow:hidden;
  transition:.25s ease
}

.tile:hover {
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.2)
}

.tile.big {
  grid-column:span 7
}

.tile.small {
  grid-column:span 5
}

.tile.tall {
  min-height:390px
}

.tile .tag {
  font:800 .69rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--lime)
}

.tile h3 {
  font-size:1.45rem;
  line-height:1.1;
  letter-spacing:-.03em;
  margin:14px 0 11px
}

.tile p {
  color:#aeb8c2;
  margin:0;
  max-width:58ch
}

.metric {
  font-size:clamp(3rem,6vw,6.2rem);
  letter-spacing:-.08em;
  font-weight:950;
  line-height:.88;
  margin:32px 0 7px
}

.metric-label {
  color:#8f9aa5;
  font-size:.84rem
}

.corner {
  position:absolute;
  right:18px;
  bottom:14px;
  color:#5f6a74;
  font:700 .68rem/1 ui-monospace,SFMono-Regular,Consolas,monospace
}

.tile.glow:after {
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  border-radius:50%;
  right:-80px;
  bottom:-130px;
  background:var(--vio);
  filter:blur(100px);
  opacity:.14
}

.filterbar {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px
}

.filter {
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:999px;
  color:#9aa6b2;
  background:rgba(255,255,255,.025);
  padding:10px 14px;
  font-weight:800;
  font-size:.82rem
}

.filter.active,.filter:hover {
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink)
}

/* Kompetenzkarten + Filter */
.skill-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}

.skill {
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  background:rgba(255,255,255,.025);
  min-height:218px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:.25s ease
}

.skill.hidden {
  display:none
}

.skill:hover {
  background:rgba(255,255,255,.045)
}

.skill small {
  color:var(--lime);
  font:800 .68rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-transform:uppercase;
  letter-spacing:.1em
}

.skill h3 {
  font-size:1.25rem;
  margin:10px 0 9px;
  letter-spacing:-.02em
}

.skill p {
  color:#9eabb6;
  margin:0
}

.chips {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:18px
}

.chip {
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#aeb8c2;
  font-size:.76rem
}

/* Projektkarten */
.projects {
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:14px
}

.project {
  grid-column:span 6;
  border:1px solid var(--line);
  border-radius:30px;
  padding:26px;
  background:linear-gradient(180deg,rgba(255,255,255,.052),rgba(255,255,255,.018));
  min-height:360px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}

.project.feature {
  grid-column:span 7;
  min-height:430px
}

.project.side {
  grid-column:span 5
}

.project:before {
  content:"";
  position:absolute;
  inset:auto -80px -110px auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background:var(--cyan);
  filter:blur(115px);
  opacity:.09
}

.project:nth-child(2n):before {
  background:var(--vio)
}

.project:nth-child(3n):before {
  background:var(--orange)
}

.project .num {
  font:900 4.4rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:rgba(255,255,255,.045);
  position:absolute;
  right:20px;
  top:14px
}

.project .meta {
  font:800 .68rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:var(--lime);
  text-transform:uppercase;
  letter-spacing:.12em
}

.project h3 {
  font-size:clamp(1.55rem,2.8vw,2.55rem);
  line-height:1.02;
  letter-spacing:-.045em;
  margin:18px 0 13px;
  max-width:14ch
}

.project p {
  color:#aab5bf;
  max-width:60ch;
  margin:0
}

.project .foot {
  margin-top:34px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px
}

.project .arrow {
  font-size:1.45rem;
  color:var(--lime)
}

/* Mein Werdegang – nur die Stationen, die technisch relevant sind. */
.timeline {
  border-top:1px solid var(--line)
}

.row {
  display:grid;
  grid-template-columns:170px 1fr 42px;
  gap:28px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
  align-items:start
}

.date {
  font:750 .78rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#7d8994
}

.row h3 {
  font-size:1.2rem;
  margin:0 0 4px
}

.company {
  color:#c1cad2
}

.desc {
  color:#8e9aa5;
  margin-top:7px;
  max-width:760px
}

.plus {
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#6d7883
}

.manifesto {
  padding:120px 0
}

.statement {
  font-size:clamp(2.7rem,6.8vw,7.2rem);
  line-height:.92;
  letter-spacing:-.075em;
  font-weight:900;
  max-width:1120px
}

.statement .dim {
  color:#4a545e
}

.statement .hot {
  color:var(--lime)
}

/* Kontakt / Footer */
.contact {
  padding-bottom:70px
}

.contact-box {
  border:1px solid rgba(199,255,79,.22);
  border-radius:34px;
  padding:34px;
  background:linear-gradient(135deg,rgba(199,255,79,.08),rgba(96,231,255,.03) 55%,rgba(255,255,255,.02));
  display:grid;
  grid-template-columns:1fr auto;
  gap:32px;
  align-items:end
}

.contact-box h2 {
  font-size:clamp(2.2rem,5vw,5rem);
  line-height:.94;
  letter-spacing:-.06em;
  margin:0;
  max-width:850px
}

.contact-box p {
  color:#aab4be;
  max-width:680px;
  margin:17px 0 0
}

.mail {
  white-space:nowrap
}

.contact-choice {
  position:relative;
  display:inline-block;
  justify-self:end
}

.contact-trigger {
  cursor:pointer;
  font-family:inherit
}

.contact-options {
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  min-width:190px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(9,11,14,.96);
  backdrop-filter:blur(18px);
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
  z-index:20
}


.contact-options::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px
}

.contact-choice:hover .contact-options,
.contact-choice:focus-within .contact-options {
  opacity:1;
  visibility:visible;
  transform:translateY(0)
}

.contact-options a {
  display:block;
  padding:10px 14px;
  border-radius:10px;
  color:#c7d0d9;
  font-weight:800;
  font-size:.86rem;
  white-space:nowrap
}

.contact-options a:hover,
.contact-options a:focus-visible {
  background:var(--soft);
  color:#fff
}

footer {
  border-top:1px solid var(--line);
  padding:28px 0;
  color:#6d7882;
  font-size:.78rem
}

.footer {
  display:flex;
  justify-content:space-between;
  gap:20px
}

.reveal {
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease,transform .7s ease
}

.reveal.in {
  opacity:1;
  transform:none
}

.cursor {
  position:fixed;
  width:420px;
  height:420px;
  border-radius:50%;
  pointer-events:none;
  z-index:-1;
  background:radial-gradient(circle,rgba(199,255,79,.055),transparent 67%);
  transform:translate(-50%,-50%)
}

@media(max-width:980px) {
  .hero-grid {
    grid-template-columns:1fr
  }

  .hud {
    max-width:650px
  }

  .links > a:not(.nav-cta) {
    display:none
  }

  .section-head {
    grid-template-columns:1fr;
    gap:10px
  }

  .tile,.tile.big,.tile.small {
    grid-column:span 6
  }

  .skill-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .project,.project.feature,.project.side {
    grid-column:span 6
  }

  .contact-box {
    grid-template-columns:1fr
  }

  .mail {
    justify-self:start
  }

  .contact-choice {
    justify-self:start
  }

  .row {
    grid-template-columns:130px 1fr 34px
  }

}

@media(max-width:680px) {
  .wrap {
    width:min(calc(100% - 24px),var(--max))
  }

  nav {
    top:8px
  }

  .nav {
    height:54px
  }

  .hero {
    padding-top:96px
  }

  .hero-grid {
    gap:28px
  }

  h1 {
    font-size:clamp(2.5rem,11vw,3.8rem)
  }

  .hud {
    border-radius:22px
  }

  .bento,.projects {
    grid-template-columns:1fr
  }

  .tile,.tile.big,.tile.small,.project,.project.feature,.project.side {
    grid-column:1
  }

  .skill-grid {
    grid-template-columns:1fr
  }

  .project {
    min-height:330px
  }

  .section-head h2 {
    font-size:2.7rem
  }

  .row {
    grid-template-columns:1fr 34px;
    gap:8px 16px
  }

  .date {
    grid-column:1/-1
  }

  .contact-box {
    padding:24px
  }

  .footer {
    flex-direction:column
  }

  .marquee {
    display:none
  }

  .cursor {
    display:none
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }

  .reveal {
    opacity:1;
    transform:none
  }

}

/* Projektgliederung – Option 1: Filter */
.project-filterbar{display:flex;gap:8px;flex-wrap:wrap;margin:-10px 0 24px}
.project-filter{cursor:pointer;border:1px solid var(--line);border-radius:999px;color:#9aa6b2;background:rgba(255,255,255,.025);padding:10px 14px;font-weight:800;font-size:.82rem}
.project-filter:hover,.project-filter.active{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.project.project-hidden{display:none}


/* Projektstatus & Bachelorarbeits-Teaser – aus HTML ausgelagert */
/* Projektstatus – bewusst dezent, wie ein technischer Stempel am Kartenrand */
.project{position:relative;overflow:hidden}
 .project-status{position:absolute;top:14px;right:-31px;z-index:2;min-width:128px;min-height:27px;padding:5px 28px;text-align:center;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;transform:rotate(45deg);border:1px solid rgba(255,255,255,.22);background:rgba(8,10,12,.78);backdrop-filter:blur(8px);color:rgba(235,241,246,.72);box-shadow:0 2px 14px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center}
.project-status.success{color:#a9d8bd;border-color:rgba(169,216,189,.35)}
.project-status.live{color:#ff9f43;border-color:rgba(255,159,67,.55);background:rgba(255,159,67,.10)}
.project-status.soon{color:#d5c7ff;border-color:rgba(213,199,255,.4)}
.project-status .status-text{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.05;white-space:nowrap;transform:translate(2px,-2px)}
.project-status .status-date{display:block;font-size:.82em;letter-spacing:.13em}
.project.teaser .teaser-blur{display:inline-block;filter:blur(8px);user-select:none;opacity:.72}
.project.teaser .teaser-copy{max-width:92%}
.project.teaser::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 45%,rgba(255,255,255,.025),transparent 62%)}

/* Ehemals Inline-Style im Hero */
.hero-content {
  max-width:1000px;
}


/* Projektkarten sind vollständig klickbar; Linkziel steht je Karte in data-href. */
#projekte .project[data-href] {
  cursor:pointer;
}
#projekte .project[data-href]:focus-visible {
  outline:2px solid var(--lime);
  outline-offset:4px;
}


/* Zertifikate direkt an der CAD-Kompetenz */
.certificate-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.certificate-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(159,211,255,.28);border-radius:999px;color:#c9e7ff;background:rgba(159,211,255,.045);font:800 .72rem/1 ui-monospace,SFMono-Regular,Consolas,monospace}
.certificate-badge span{color:#8495a4;font-weight:700}
.certificate-badge .certificate-name{color:#c9e7ff;font-weight:800}
.certificate-icon-placeholder{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border:1px dashed rgba(159,211,255,.45);border-radius:7px;color:#718493!important;font-size:.52rem;letter-spacing:.04em;background:rgba(159,211,255,.035)}
.certificate-badge:hover{border-color:rgba(159,211,255,.58);transform:translateY(-1px)}

/* Dezenter Hinweis auf Projektmedien – das eigentliche Ziel wird später je Projekt ersetzt. */
.project-media-hint{display:inline-flex;margin-top:18px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:#b9c6d1;background:rgba(255,255,255,.025);font:800 .72rem/1 ui-monospace,SFMono-Regular,Consolas,monospace}

/* Nachweise & Qualifikationen */
.proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.proof-card{min-height:220px;padding:24px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));display:flex;flex-direction:column;transition:.25s ease}
.proof-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.2)}
.proof-card .tag{font:800 .69rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--lime)}
.proof-card h3{font-size:1.35rem;line-height:1.1;letter-spacing:-.03em;margin:16px 0 8px}
.proof-card p{margin:0;color:#9eabb6}
.proof-link{margin-top:auto;padding-top:28px;color:#c9d2da;font-weight:800;font-size:.82rem}
@media(max-width:980px){.proof-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.proof-grid{grid-template-columns:1fr}}

/* Hero-Portrait – großflächig im Hintergrund, inspiriert vom Referenzlayout */
.hero{overflow:hidden;isolation:isolate}
.hero::before{
  content:"";
  position:absolute;
  z-index:-2;

  /* Etwas größer als bisher, damit genügend Ausblendfläche vorhanden ist */
  top:-8%;
  right:max(-5vw,-70px);
  bottom:-8%;
  width:min(72vw,1050px);

  background-image:url("../assets/images/robin-schnabel.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center 28%;

  filter:grayscale(1) contrast(1.12) brightness(.58);
  opacity:.92;
  transform:scale(1.035);

  /* weicher Übergang rund um das Portrait */
  -webkit-mask-image: radial-gradient(
    ellipse 72% 88% at 68% 48%,
    #000 0%,
    #000 48%,
    rgba(0,0,0,.95) 56%,
    rgba(0,0,0,.75) 66%,
    rgba(0,0,0,.40) 76%,
    rgba(0,0,0,.12) 86%,
    transparent 96%
  );

  mask-image: radial-gradient(
    ellipse 72% 88% at 68% 48%,
    #000 0%,
    #000 48%,
    rgba(0,0,0,.95) 56%,
    rgba(0,0,0,.75) 66%,
    rgba(0,0,0,.40) 76%,
    rgba(0,0,0,.12) 86%,
    transparent 96%
  );
}
.hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,var(--bg) 0%,var(--bg) 31%,rgba(7,8,10,.94) 43%,rgba(7,8,10,.56) 63%,rgba(7,8,10,.18) 82%,rgba(7,8,10,.32) 100%),
    linear-gradient(180deg,rgba(7,8,10,.2) 0%,rgba(7,8,10,0) 42%,rgba(7,8,10,.72) 100%);
}
.hero-grid-portrait{grid-template-columns:1fr;align-items:center;position:relative;z-index:1}
.hero-content{max-width:900px}
.hero h1{max-width:940px;text-shadow:0 3px 30px rgba(0,0,0,.45)}
.hero .lead{max-width:760px;text-shadow:0 2px 20px rgba(0,0,0,.72)}
@media(max-width:980px){
  .hero::before{right:-12vw;width:78vw;opacity:.72;background-position:center 25%}
  .hero::after{background:linear-gradient(90deg,var(--bg) 0%,rgba(7,8,10,.96) 38%,rgba(7,8,10,.68) 68%,rgba(7,8,10,.45) 100%),linear-gradient(180deg,rgba(7,8,10,.12),rgba(7,8,10,.72))}
}
@media(max-width:680px){
  .hero::before{top:0;right:-38%;bottom:auto;width:115%;height:70%;opacity:.42;background-position:center 22%}
  .hero::after{background:linear-gradient(90deg,rgba(7,8,10,.9),rgba(7,8,10,.55)),linear-gradient(180deg,rgba(7,8,10,.18) 0%,var(--bg) 66%)}
  .hero-content{max-width:none}
}

.blurred {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.75;
}

.career-status {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.career-status.ongoing {
  color: #ff9f43;
}

.career-status.completed {
  color: #4ade80;
  opacity: 0.65;
}

.career-status.former {
  color: #9fd3ff;
}

.plus-menu {
  position: relative;
  display: inline-flex;
}

.plus {
  cursor: pointer;
}

/* Menü zunächst verstecken */
.plus-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);

  min-width: 190px;
  padding: 6px;

  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);

  transition: 0.2s ease;
  z-index: 20;
}

/* Beim Hover anzeigen */
.plus-menu:hover .plus-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.plus-dropdown a {
  display: block;
  padding: 9px 12px;

  color: #9a9a9a;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;

  transition: 0.2s ease;
}

.plus-dropdown a:hover {
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.05);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);

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

  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;

  z-index: 9999;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-container {
  position: relative;
  width: min(900px, 90vw);
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

.video-close {
  position: absolute;
  right: 0;
  top: -45px;

  background: none;
  border: 0;
  color: #aaa;

  font-size: 30px;
  cursor: pointer;
}

.video-close:hover {
  color: #fff;
}

/* Aus index.html ausgelagerte Styles */
.certificate-links{
      display:flex;
      flex-wrap:nowrap;
      gap:12px;
      align-items:center;
    }
    .certificate-badge{
      flex:1 1 0;
      min-width:0;
    }
    @media (max-width:620px){
      .certificate-links{flex-wrap:wrap;}
      .certificate-badge{flex:1 1 100%;}
    }

    .certificate-icon{
      width:42px;
      height:42px;
      object-fit:contain;
      flex:0 0 42px;
      border-radius:50%;
    }


/* Detailseiten: Werkstudent / Praktikum */
.detail-hero{padding:150px 0 72px;min-height:62vh;display:flex;align-items:end}
    .detail-back{display:inline-flex;align-items:center;gap:9px;color:var(--muted);font:800 .72rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.11em;margin-bottom:34px;transition:.2s ease}
    .detail-back:hover{color:var(--ink);transform:translateX(-3px)}
    .detail-kicker{color:var(--lime);font:800 .7rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.13em;margin-bottom:18px}
    .detail-hero h1{font-size:clamp(3rem,7vw,7rem);line-height:.9;letter-spacing:-.07em;margin:0;max-width:11ch}
    .detail-hero h1 i{font-style:normal;color:var(--lime)}
    .detail-lead{max-width:760px;color:#aeb8c2;font-size:clamp(1.05rem,1.8vw,1.3rem);margin:30px 0 0}
    .detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
    .detail-meta span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:#aeb8c2;font-size:.78rem}
    .detail-section{padding:72px 0}
    .detail-grid{display:grid;grid-template-columns:150px 1fr;gap:34px}
    .detail-content{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
    .detail-card{grid-column:span 6;padding:26px;border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.018))}
    .detail-card.wide{grid-column:span 12}
    .detail-card small{color:var(--lime);font:800 .68rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.1em}
    .detail-card h2{font-size:1.55rem;letter-spacing:-.035em;margin:13px 0 12px}
    .detail-card p{color:#aeb8c2;margin:0;max-width:75ch}
    .detail-list{margin:16px 0 0;padding-left:19px;color:#aeb8c2}
    .detail-list li+li{margin-top:8px}
    .detail-footer{padding:42px 0 80px;border-top:1px solid var(--line);margin-top:28px}
    .detail-footer a{color:var(--muted)}
    .detail-footer a:hover{color:var(--ink)}
    @media(max-width:760px){.detail-grid{grid-template-columns:1fr}.detail-card,.detail-card.wide{grid-column:span 12}.detail-hero{padding-top:120px}.detail-hero h1{font-size:clamp(3rem,16vw,5rem)}}

.detail-chips-spaced { margin-top: 18px; }


/* ===== Aus index.html ausgelagerte Ergänzungen ===== */
/* Profil-Bento: ausgewogenes Wechselmuster */
    #profil .bento {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 14px;
    }

    #profil .profile-wide   { grid-column: span 7; }
    #profil .profile-narrow { grid-column: span 5; }
    #profil .profile-full   { grid-column: 1 / -1; }

    /* Zweite Reihe bewusst gespiegelt */
    #profil .bento > .profile-narrow:nth-of-type(3) { grid-column: span 5; }
    #profil .bento > .profile-wide:nth-of-type(4)   { grid-column: span 7; }

    /* Abschlusskarte etwas kompakter */
    #profil .profile-full {
      min-height: auto;
    }

    @media (max-width: 760px) {
      #profil .profile-wide,
      #profil .profile-narrow,
      #profil .profile-full {
        grid-column: 1 / -1;
      }
    }
  


   /* Kompetenzen & Projekte: ohne sichtbaren Rahmen im Ruhezustand */
   .links .nav-contact-choice:not(:last-child) > .nav-cta {
     border-color: transparent;
     background: transparent;
     box-shadow: none;
   }
  


   /* Kompetenzen & Projekte: exakt wie normale Nav-Links, ohne Kringel */
   .links .nav-contact-choice:not(:last-child) {
     border: 0 !important;
     background: transparent !important;
     box-shadow: none !important;
     padding: 0 !important;
   }

   .links .nav-contact-choice:not(:last-child) > .nav-cta {
     border: 0 !important;
     outline: 0 !important;
     background: transparent !important;
     box-shadow: none !important;
     border-radius: 0 !important;
     padding: 0 !important;
     color: inherit;
   }

   .links .nav-contact-choice:not(:last-child) > .nav-cta:hover,
   .links .nav-contact-choice:not(:last-child) > .nav-cta:focus,
   .links .nav-contact-choice:not(:last-child) > .nav-cta:focus-visible {
     border: 0 !important;
     outline: 0 !important;
     background: transparent !important;
     box-shadow: none !important;
   }
  


   /* Kompetenzen & Projekte: gleiche Schriftfarbe wie die ursprünglichen Nav-Links */
   .links .nav-contact-choice:not(:last-child) > .nav-cta {
     color: var(--muted) !important;
   }

   .links .nav-contact-choice:not(:last-child) > .nav-cta:hover,
   .links .nav-contact-choice:not(:last-child) > .nav-cta:focus,
   .links .nav-contact-choice:not(:last-child) > .nav-cta:focus-visible {
     color: var(--ink) !important;
   }
  


   /* Kompetenzen & Projekte: Typografie exakt wie die ursprünglichen Nav-Links */
   .links .nav-contact-choice:not(:last-child) > .nav-cta {
     font: inherit !important;
     font-family: inherit !important;
     font-size: inherit !important;
     font-weight: inherit !important;
     line-height: inherit !important;
     letter-spacing: inherit !important;
     text-transform: none !important;
   }
  


   /* Kompetenzen: Breite dynamisch nach Anzahl der aktuell sichtbaren Karten */
   #stack .skill-grid.dynamic-skill-grid {
     display: grid !important;
     grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
   }

   #stack .skill-grid.dynamic-skill-grid > .skill {
     grid-column: span 4; /* Standard: 3 Karten pro Zeile */
   }

   #stack .skill-grid.dynamic-skill-grid[data-visible-count="1"] > .skill:not([hidden]) {
     grid-column: 1 / -1;
   }

   #stack .skill-grid.dynamic-skill-grid[data-visible-count="2"] > .skill:not([hidden]) {
     grid-column: span 6;
   }

   #stack .skill-grid.dynamic-skill-grid[data-visible-count="3"] > .skill:not([hidden]) {
     grid-column: span 4;
   }

   #stack .skill-grid.dynamic-skill-grid[data-visible-count="4"] > .skill:not([hidden]) {
     grid-column: span 4;
   }

   #stack .skill-grid.dynamic-skill-grid[data-visible-count="4"] > .skill:not([hidden]):nth-child(4 of .skill:not([hidden])) {
     grid-column: 1 / -1;
   }

   @media (max-width: 900px) {
     #stack .skill-grid.dynamic-skill-grid > .skill:not([hidden]) {
       grid-column: span 6 !important;
     }
     #stack .skill-grid.dynamic-skill-grid[data-visible-count="1"] > .skill:not([hidden]),
     #stack .skill-grid.dynamic-skill-grid[data-visible-count="4"] > .skill:not([hidden]):nth-child(4 of .skill:not([hidden])) {
       grid-column: 1 / -1 !important;
     }
   }

   @media (max-width: 650px) {
     #stack .skill-grid.dynamic-skill-grid > .skill:not([hidden]) {
       grid-column: 1 / -1 !important;
     }
   }
  


   /* Nachweise: klassische Qualifikationen 3-spaltig, SOLIDWORKS-Zertifikate 2-spaltig */
   #nachweise .proof-grid-main {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 16px;
   }

   #nachweise .proof-grid-certificates {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 16px;
     margin-top: 16px;
   }

   #nachweise .proof-certificate {
     display: grid;
     grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
     align-items: stretch;
     gap: 26px;
   }

   #nachweise .proof-certificate-copy {
     min-width: 0;
     display: flex;
     flex-direction: column;
   }

   #nachweise .proof-certificate-copy .proof-link {
     margin-top: auto;
     padding-top: 24px;
   }

   #nachweise .proof-certificate-visual {
     min-width: 0;
     border-left: 1px solid rgba(255,255,255,.12);
     display: flex;
     align-items: center;
     justify-content: center;
     padding-left: 24px;
   }

   #nachweise .proof-certificate-visual img {
     display: block;
     width: min(190px, 100%);
     height: auto;
     object-fit: contain;
     filter: drop-shadow(0 12px 26px rgba(0,0,0,.28));
   }

   @media (max-width: 980px) {
     #nachweise .proof-grid-main {
       grid-template-columns: 1fr;
     }

     #nachweise .proof-grid-certificates {
       grid-template-columns: 1fr;
     }
   }

   @media (max-width: 600px) {
     #nachweise .proof-certificate {
       grid-template-columns: minmax(0, 1fr) 110px;
       gap: 16px;
     }

     #nachweise .proof-certificate-visual {
       padding-left: 16px;
     }
   }
  


/* Footer: eine einzige, ruhige Zeile – Navigation links, Copyright rechts */
footer .wrap,
footer .footer-inner {
  align-items: center;
}

footer,
footer a,
footer .footer-separator {
  font-size: 14px;
  line-height: 1.5;
}

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

footer a:hover {
  color: var(--ink);
}

footer .footer-separator {
  opacity: .55;
  margin: 0 .2em;
}

@media (max-width: 700px) {
  footer .wrap,
  footer .footer-inner {
    gap: 12px;
  }
}



footer .footer-clean{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
}
footer .footer-left{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:0 !important;
  color:var(--muted) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}
footer .footer-left span,
footer .footer-left a,
footer .footer-right{
  font-size:14px !important;
  line-height:1.5 !important;
}
footer .footer-left a{
  display:inline !important;
  color:var(--muted) !important;
  text-decoration:none !important;
}
footer .footer-left a:hover{color:var(--ink) !important;}
footer .footer-dot{margin:0 .42em !important;opacity:.65;}
footer .footer-right{
  flex:0 0 auto !important;
  color:var(--muted) !important;
  white-space:nowrap !important;
}
@media(max-width:760px){
  footer .footer-clean{
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:10px !important;
  }
}

/* ==========================================================
   WORTMARKE
   ========================================================== */
/* Typografische Wortmarke */
.brand.wordmark{
  display:flex;
  align-items:center;
  white-space:nowrap;
  letter-spacing:0;
}
.brand.wordmark .wordmark-part{
  display:inline-block;
}
.brand.wordmark .wordmark-slash{
  display:inline-block;
  margin:0 .55em;
  opacity:.35;
}


/* ==========================================================
   SEITENZUSTAND / PAGE TRANSITIONS
   ========================================================== */
html,
body {
    background: #07080a;
    color: #f7f8fa;
}

html.return-restoring body {
    opacity: 0 !important;
}

/* ==========================================================
   NACHWEISE & QUALIFIKATIONEN – CAROUSEL
   ========================================================== */
/* Nachweise: skalierbare Slider-Gruppen */
#nachweise .proof-carousel-shell{position:relative}
#nachweise .proof-carousel-shell + .proof-carousel-shell{margin-top:80px}
#nachweise .proof-carousel-shell .proof-grid{display:flex!important;grid-template-columns:none!important;gap:16px;overflow:hidden;scroll-behavior:smooth;scrollbar-width:none}
#nachweise .proof-carousel-shell .proof-grid::-webkit-scrollbar{display:none}
#nachweise .proof-carousel-shell.main .proof-card{flex:0 0 calc((100% - 32px)/3);min-width:0}
#nachweise .proof-carousel-shell.certificates .proof-card{flex:0 0 calc((100% - 16px)/2);min-width:0}
#nachweise .proof-carousel-btn{position:absolute;top:46%;z-index:8;width:auto;height:auto;padding:8px;border:0;border-radius:0;background:transparent;color:#fff;font-size:3.4rem;font-weight:300;line-height:.8;cursor:pointer;box-shadow:none;transform:translateY(-50%);transition:opacity .2s ease,transform .2s ease,color .2s ease}
#nachweise .proof-carousel-btn:hover{color:var(--lime);transform:translateY(-50%) scale(1.12)}
#nachweise .proof-carousel-prev{left:-62px}
#nachweise .proof-carousel-next{right:-62px}
#nachweise .proof-carousel-btn[hidden],#nachweise .proof-dots[hidden]{display:none!important}
#nachweise .proof-dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:18px}
#nachweise .proof-dot{width:7px;height:7px;border:0;border-radius:50%;padding:0;background:#46515c;cursor:pointer;transition:.2s}
#nachweise .proof-dot.active{width:24px;border-radius:99px;background:var(--lime)}
#nachweise .proof-placeholder{border-style:solid}
#nachweise .proof-placeholder .tag::after{content:" · PLATZHALTER";opacity:.55}
@media(max-width:850px){
 #nachweise .proof-carousel-shell.main .proof-card,
 #nachweise .proof-carousel-shell.certificates .proof-card{flex-basis:calc((100% - 16px)/2)}
}
@media(max-width:600px){
 #nachweise .proof-carousel-shell.main .proof-card,
 #nachweise .proof-carousel-shell.certificates .proof-card{flex-basis:88%}
 #nachweise .proof-carousel-prev{left:-18px}
 #nachweise .proof-carousel-next{right:-18px}
}

/* ==========================================================
   WERDEGANG – AUF-/ZUKLAPPEN
   ========================================================== */
/* Werdegang: weich auf-/zuklappen und Scrollposition beim Zuklappen stabil halten */
#weg .career-extra{
  display:grid;
  grid-template-rows:1fr;
  transition:grid-template-rows .38s cubic-bezier(.2,.75,.25,1),opacity .28s ease;
  opacity:1;
}
#weg .career-extra-inner{overflow:hidden;min-height:0}
#weg .career-extra.is-collapsed{grid-template-rows:0fr;opacity:0}
#weg .career-toggle{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin:28px auto 0;padding:11px 18px;
  border:1px solid var(--line);border-radius:999px;
  background:transparent;color:var(--text);
  font:inherit;font-weight:700;cursor:pointer;
  transition:border-color .2s ease,color .2s ease,transform .2s ease;
}
#weg .career-toggle:hover{border-color:var(--lime);color:var(--lime);transform:translateY(-1px)}
@media (prefers-reduced-motion:reduce){#weg .career-extra{transition:none}}

/* ==========================================================
   KOMPETENZEN – NAVIGATIONS-SLIDER
   Nur aktiv auf body.skill-navigation
   ========================================================== */
/* Horizontale Kompetenzkarten mit seitenweiser Navigation */
body.skill-navigation #stack .demo-skill{border-style:solid}
body.skill-navigation #stack .demo-skill small::after{content:" · PLATZHALTER";opacity:.55}
body.skill-navigation #stack .skill-carousel-shell{position:relative}
body.skill-navigation #stack .skill-grid,body.skill-navigation #stack .skill-grid.dynamic-skill-grid{display:flex!important;grid-template-columns:none!important;gap:14px;overflow:hidden;scroll-behavior:smooth;scrollbar-width:none}
body.skill-navigation #stack .skill-grid::-webkit-scrollbar{display:none}
body.skill-navigation #stack .skill-grid.dynamic-skill-grid>.skill,body.skill-navigation #stack .skill{grid-column:auto!important;flex:0 0 calc((100% - 28px)/3);min-width:0}
body.skill-navigation #stack .skill-carousel-btn{position:absolute;top:46%;z-index:8;width:auto;height:auto;padding:8px;border:0;border-radius:0;background:transparent;color:#fff;font-size:3.4rem;font-weight:300;line-height:.8;cursor:pointer;transition:opacity .2s ease,transform .2s ease,color .2s ease;box-shadow:none;transform:translateY(-50%)}
body.skill-navigation #stack .skill-carousel-btn:hover{background:transparent;color:var(--lime);transform:translateY(-50%) scale(1.12)}
body.skill-navigation #stack .skill-prev{left:-62px}
body.skill-navigation #stack .skill-next{right:-62px}
body.skill-navigation #stack .skill-carousel-btn[hidden],body.skill-navigation #stack .skill-dots[hidden]{display:none!important}
body.skill-navigation #stack .skill-carousel-btn:disabled{opacity:.25;cursor:default}
body.skill-navigation #stack .skill-dots{display:flex;justify-content:center;gap:7px;margin-top:18px}
body.skill-navigation #stack .skill-dot{width:7px;height:7px;border:0;border-radius:50%;padding:0;background:#46515c;cursor:pointer;transition:.2s}
body.skill-navigation #stack .skill-dot.active{width:24px;border-radius:99px;background:var(--lime)}
@media(max-width:850px){body.skill-navigation #stack .skill-grid.dynamic-skill-grid>.skill,body.skill-navigation #stack .skill{grid-column:auto!important;flex-basis:calc((100% - 14px)/2)!important}}
@media(max-width:600px){body.skill-navigation #stack .skill-grid.dynamic-skill-grid>.skill,body.skill-navigation #stack .skill{grid-column:auto!important;flex-basis:88%!important}}

/* ==========================================================
   KOMPETENZEN – SWIPE-SLIDER
   Nur aktiv auf body.skill-swipe
   ========================================================== */
/* Horizontale Kompetenzkarten mit freiem Scrollen und Snap-Verhalten */
body.skill-swipe #stack .demo-skill{border-style:solid}
body.skill-swipe #stack .demo-skill small::after{content:" · PLATZHALTER";opacity:.55}
body.skill-swipe #stack .skill-carousel-shell{position:relative}
body.skill-swipe #stack .skill-carousel-shell.has-overflow:before,body.skill-swipe #stack .skill-carousel-shell.has-overflow:after{content:"";position:absolute;top:0;bottom:10px;width:72px;z-index:4;pointer-events:none}
body.skill-swipe #stack .skill-carousel-shell.has-overflow:before{left:0;background:linear-gradient(90deg,var(--bg),transparent);opacity:0}
body.skill-swipe #stack .skill-carousel-shell.has-overflow:after{right:0;background:linear-gradient(270deg,var(--bg),transparent)}
body.skill-swipe #stack .skill-grid,body.skill-swipe #stack .skill-grid.dynamic-skill-grid{display:flex!important;grid-template-columns:none!important;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:2px;padding:2px 38px 12px 2px;scrollbar-width:none;overscroll-behavior-inline:contain;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
body.skill-swipe #stack .skill-grid.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
body.skill-swipe #stack .skill-grid::-webkit-scrollbar{display:none}
body.skill-swipe #stack .skill-grid.dynamic-skill-grid>.skill,body.skill-swipe #stack .skill{grid-column:auto!important;flex:0 0 calc((100% - 28px)/3);scroll-snap-align:start;scroll-snap-stop:always;min-width:0}
body.skill-swipe #stack .skill-position{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:18px}
body.skill-swipe #stack .skill-position[hidden]{display:none!important}
body.skill-swipe #stack .skill-position-dot{width:7px;height:7px;border:0;border-radius:50%;padding:0;background:#46515c;transition:width .2s ease,background .2s ease}
body.skill-swipe #stack .skill-position-dot.active{width:24px;border-radius:99px;background:var(--lime)}
@media(max-width:850px){body.skill-swipe #stack .skill-grid.dynamic-skill-grid>.skill,body.skill-swipe #stack .skill{grid-column:auto!important;flex-basis:46%!important}}
@media(max-width:600px){body.skill-swipe #stack .skill-grid.dynamic-skill-grid>.skill,body.skill-swipe #stack .skill{grid-column:auto!important;flex-basis:86%!important}body.skill-swipe #stack .skill-carousel-shell.has-overflow:after{width:45px}}

/* Automatische Kartenbreite für Kategorien mit 1 oder 2 Projekten.
   Ab 3 Projekten bleibt das ursprüngliche Feature-/Side-Raster erhalten. */
@media (min-width: 769px) {
  .projects.layout-single > .project:not(.project-hidden) {
    grid-column: span 12;
  }

  /* Zwei sichtbare Projekte: 7/5 statt 6/6. */
  .projects.layout-double > .project:not(.project-hidden):nth-child(1 of .project:not(.project-hidden)) {
    grid-column: span 7;
  }
  .projects.layout-double > .project:not(.project-hidden):nth-child(2 of .project:not(.project-hidden)) {
    grid-column: span 5;
  }
}

/* Ungerade Anzahl: nur die letzte sichtbare Karte fuellt die letzte Zeile.
   Das bestehende 8/4-Feature-/Side-Muster bleibt unveraendert. */
@media (min-width: 769px) {
  .projects.layout-odd > .project:not(.project-hidden):nth-last-child(1 of .project:not(.project-hidden)) {
    grid-column: 1 / -1;
  }
}

/* Profil: eigene Text- und Symbolspalte. Keine Schrift unter dem Symbol. */
#profil .bento > .tile {
  --profile-placeholder-size: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--profile-placeholder-size);
  grid-template-rows: min-content min-content 1fr;
  column-gap: 22px;
  align-content: start;
}

#profil .bento > .tile .tag {
  grid-column: 1;
  grid-row: 1;
}

#profil .bento > .tile h3 {
  grid-column: 1;
  grid-row: 2;
  overflow-wrap: break-word;
}

#profil .bento > .tile p {
  grid-column: 1;
  grid-row: 3;
  max-width: none;
  min-width: 0;
}

#profil .bento > .tile .profile-symbol {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: center;
  float: none;
  margin: 0;
  width: var(--profile-placeholder-size);
  height: var(--profile-placeholder-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(121,201,255,.06), rgba(255,255,255,0) 72%);
}

#profil .bento > .tile .profile-symbol img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
  opacity: .94;
  filter: drop-shadow(0 0 10px rgba(121,201,255,.08));
}

/* Schmale Profilkacheln etwas breiter: 11/24 statt 10/24. */
@media (min-width: 981px) {
  #profil .bento { grid-template-columns: repeat(24, minmax(0, 1fr)); }
  #profil .bento > .tile.profile-wide { grid-column: span 13; }
  #profil .bento > .tile.profile-narrow { grid-column: span 11; }
}

@media (max-width: 980px) {
  #profil .bento > .tile { --profile-placeholder-size: 116px; column-gap: 16px; }
}

@media (max-width: 680px) {
  #profil .bento > .tile { --profile-placeholder-size: 92px; column-gap: 14px; }
}


/* ==============================================================
   WERKZEUGKASTEN – isoliert, um vorhandene Portfolio-Styles
   (insbesondere .filter, .nav und .section-head) nicht zu ändern.
   ============================================================== */
.toolbox-section { scroll-margin-top: 95px; }
.toolbox-library {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(155deg,#17191b,#101214 70%);
  overflow: hidden;
}
.toolbox-library [hidden] { display: none !important; }
.toolbox-filters { display:flex; flex-wrap:wrap; gap:8px; padding:23px 26px 18px; }
.toolbox-filter, .toolbox-subfilter {
  appearance:none; border:1px solid #33363a; border-radius:999px;
  background:transparent; color:#b6c1cf; padding:9px 14px;
  font:inherit; font-size:12px; cursor:pointer;
  transition:background .16s,border-color .16s,color .16s;
}
.toolbox-filter:hover, .toolbox-subfilter:hover { color:#fff; border-color:#6a7683; }
.toolbox-filter.active { background:#273440; color:#c9e7ff; border-color:#526c81; }
.toolbox-subsection { padding:0 26px 4px; }
.toolbox-divider { height:1px; background:#292d31; }
.toolbox-subfilters { display:flex; flex-wrap:wrap; gap:7px; padding:16px 0 8px; }
.toolbox-subfilter { font-size:11px; padding:7px 11px; border-color:transparent; background:#1b1e21; color:#9eacbb; }
.toolbox-subfilter.active { border-color:#526274; color:#c8dff4; background:#27313a; }
.toolbox-words {
  display:flex; flex-wrap:wrap; align-content:center; justify-content:center;
  gap:15px 17px; min-height:270px; padding:42px 34px 52px;
}
.toolbox-word {
  border:1px solid transparent; border-radius:9px; background:transparent;
  color:#cbd2db; line-height:1.15; padding:8px 10px;
  font-size:var(--fs); font-weight:var(--fw); letter-spacing:-.025em;
  cursor:default; white-space:nowrap;
  transition:background .16s,border-color .16s,color .16s,transform .16s;
}
.toolbox-word:nth-child(4n) { color:#f3f5f8; }
.toolbox-word:nth-child(11n) { color:#98c8f0; }
.toolbox-word:hover, .toolbox-word:focus-visible {
  color:#b3dfff; background:#27323c; border-color:#526b7e;
  transform:scale(1.055); outline:none; z-index:2;
}
.toolbox-status { color:#8a99a7; font-size:12px; min-height:16px; margin:14px 5px; }
.toolbox-empty { color:#9eacbb; font-size:13px; }
@media(max-width:640px) {
  .toolbox-filters { padding:18px 17px 14px; }
  .toolbox-subsection { padding:0 17px; }
  .toolbox-words { padding:29px 12px 35px; gap:9px 7px; min-height:230px; }
  .toolbox-word { font-size:clamp(12px,var(--fs),20px); padding:7px; }
}
@media(prefers-reduced-motion:reduce) {
  .toolbox-filter,.toolbox-subfilter,.toolbox-word { transition:none; }
}

/* Nur den Übergang zwischen Werkzeugkasten und Kontakt halbieren.
   Standard: 88px + 88px = 176px; neu: 44px + 44px = 88px. */
#werkzeugkasten {
  padding-bottom: 25px;
}
#werkzeugkasten + #kontakt {
  padding-top: 25px;
}

/* Abstand zwischen Hero und Profil */
.hero {
    min-height: auto;
    padding-bottom: 160px;
}

#profil {
    padding-top: 160px;
}

/* Zugang / Dokumente – kompakter Hinweis im Werdegang (aus index.html ausgelagert). */
/* Kompakter Zugangshinweis innerhalb des Werdegangs. */
   #weg .career-access {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 20px 24px; margin: 0 0 28px;
    border: 1px solid rgba(180, 210, 235, .17); border-radius: 16px;
    background: rgba(255, 255, 255, .025);
   }
   #weg .career-access-copy { min-width: 0; }
   #weg .career-access-label {
    display: block; margin-bottom: 6px; font-size: 10px;
    font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #a9c4d6;
   }
   #weg .career-access h3 {
    margin: 0 0 5px; font-size: clamp(17px, 2vw, 21px);
    line-height: 1.3; color: #f5f7fa;
   }
   #weg .career-access p {
    margin: 0; max-width: 66ch; font-size: 13px;
    line-height: 1.65; color: #aebac6;
   }
   #weg .career-access-link {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 11px 17px;
    border: 1px solid rgba(180, 210, 235, .3); border-radius: 999px;
    color: #f5f7fa; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .2s, border-color .2s;
   }
   #weg .career-access-link:hover,
   #weg .career-access-link:focus-visible {
    background: rgba(180, 210, 235, .1); border-color: rgba(180, 210, 235, .6);
   }
   @media (max-width: 650px) {
    #weg .career-access { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
   }
