/* ═══════════════════════════════════════════════════════════════
   Bruneder IT-Consulting — bruneder.eu · VERSION 2 „Der Weg nach innen"
   Cinematische Dark-Experience · Markenkit-Farben, mutiger inszeniert
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dmsans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --void:     #101216;
  --charcoal: #2A2D35;
  --dark-2:   #323640;
  --teal:     #D97757;
  --ice:      #F3F5F8;
  --muted:    #7E8898;
  --mid:      #B8C0CC;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 1160px;
  --radius: 14px;
  --header-h: 76px;
  --glass-bg: rgba(50, 54, 64, 0.42);
  --glass-line: rgba(184, 192, 204, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ice);
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(217, 119, 87, 0.06), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, #171a20 40%, var(--charcoal) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

/* ── Atmosphäre: Canvas, Aurora, Korn, Fortschritt ────────── */

#core {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.aurora-a {
  top: -25vmax; right: -18vmax;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.13), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora-b {
  bottom: -30vmax; left: -20vmax;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.08), transparent 65%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(6vmax, -8vmax) scale(0.9); } }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(8) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 3%); }
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  background: transparent;
}
#progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #E89B7E);
  box-shadow: 0 0 12px rgba(217, 119, 87, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .grain { animation: none; }
}

/* ── Typografie ───────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.55em;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #fff;
}
h1 { font-size: clamp(3rem, 8.5vw, 6.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  font-weight: 300;
  color: var(--mid);
  max-width: 33em;
}

.section-intro { color: var(--muted); max-width: 42em; margin-bottom: 3rem; }

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(16, 18, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(126, 136, 152, 0.18);
}

.nav {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  margin: 0;
}
.brand-dot { color: var(--muted); margin: 0 0.1em; }
.brand-ki { color: var(--teal); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-menu a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.nav-cta { padding: 0.55rem 1.35rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ice); transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary {
  background: var(--teal);
  color: var(--void);
  box-shadow: 0 0 0 rgba(217, 119, 87, 0);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(217, 119, 87, 0.4); }
.btn-ghost {
  border: 1px solid rgba(184, 192, 204, 0.35);
  color: var(--ice);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  z-index: 1;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.6rem; }

/* Intro-Orchestrierung */
.intro-1, .intro-2, .intro-3, .intro-4, .intro-5, .intro-6 {
  opacity: 0;
  transform: translateY(105%);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.intro-1 { transform: translateY(20px); animation-delay: 0.15s; }
.intro-2 { animation-delay: 0.3s; }
.intro-3 { animation-delay: 0.42s; }
.intro-4 { transform: translateY(24px); animation-delay: 0.65s; }
.intro-5 { transform: translateY(24px); animation-delay: 0.8s; }
.intro-6 { transform: none; animation: fade 1s ease 1.6s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .intro-1, .intro-2, .intro-3, .intro-4, .intro-5, .intro-6 {
    opacity: 1; transform: none; animation: none;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
}
.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--teal));
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-line { animation: none; } }
.scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Manifest ─────────────────────────────────────────────── */

.manifest { position: relative; z-index: 1; padding: clamp(5rem, 12vw, 10rem) 0; }

.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 21em;
  margin: 0 0 3.5rem;
  text-wrap: balance;
}
.statement .w {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.5s ease;
}
.statement .w.lit { opacity: 1; }
.statement .w.accent { color: var(--teal); }

.manifest-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  border-top: 1px solid var(--glass-line);
  padding-top: 2rem;
}
.fact-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--teal);
  line-height: 1.1;
}
.fact-label { color: var(--muted); font-size: 0.92rem; }

/* ── Sektionen ────────────────────────────────────────────── */

.section { position: relative; z-index: 1; padding: clamp(4.5rem, 10vw, 8.5rem) 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.sec-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 119, 87, 0.5);
  flex-shrink: 0;
}

/* ── Glas-Karten ──────────────────────────────────────────── */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 87, 0.55), transparent);
}

.glass-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.glass-cards .glass { transition: transform 0.3s ease, border-color 0.3s ease; }
.glass-cards .glass:hover { transform: translateY(-6px); border-color: rgba(217, 119, 87, 0.45); }
.glass p { color: var(--muted); font-size: 0.97rem; }
.glass ul { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.glass li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  margin-bottom: 0.55rem;
  color: var(--mid);
}
.glass li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--teal);
}

/* ── 02 Pillars & Checkliste ──────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.pillar h3 {
  padding-top: 0.9rem;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--teal) 52px, rgba(126, 136, 152, 0.3) 52px) 1;
}
.pillar p { color: var(--muted); font-size: 0.97rem; }

.provide h3 { margin-bottom: 1.4rem; }
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2.5rem;
}

/* ── 03 Kurs-Rail (horizontal) ────────────────────────────── */

.rail-wrap { position: relative; z-index: 1; }
.rail {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.8rem max(calc((100vw - var(--container)) / 2), 1.5rem) 1.6rem;
  scrollbar-color: var(--teal) rgba(126, 136, 152, 0.15);
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: rgba(126, 136, 152, 0.15); border-radius: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
.rail:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

.course {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: center;
}
.course-featured { border-color: rgba(217, 119, 87, 0.6); }
.course-badge {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  margin: 0;
  background: var(--teal);
  color: var(--void);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.8rem;
  border-radius: 999px;
}
.course-meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
/* Platz für den absolut positionierten „Empfohlen"-Badge freihalten */
.course-featured .course-meta { padding-right: 8.5rem; }
.course h3 { font-size: 1.45rem; }

.funding-note {
  margin-top: 1.6rem;
  padding: 1.1rem 1.5rem;
  background: rgba(217, 119, 87, 0.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--mid);
  max-width: 54em;
}

/* ── 04 Leitbild ──────────────────────────────────────────── */

.creed { margin: 1rem 0 4rem; padding: 0; border: 0; }
.creed p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.18;
  color: #fff;
  max-width: 18em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.creed cite { font-style: normal; color: var(--muted); font-size: 0.95rem; }
.creed .w { display: inline-block; opacity: 0.12; transition: opacity 0.5s ease; }
.creed .w.lit { opacity: 1; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.principle h3 {
  padding-top: 0.9rem;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--teal) 52px, rgba(126, 136, 152, 0.3) 52px) 1;
}
.principle p { color: var(--muted); font-size: 0.97rem; }

/* ── 05 Kontakt ───────────────────────────────────────────── */

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.8rem;
}
.contact-person img {
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.person-role { color: var(--teal); font-weight: 500; font-size: 0.92rem; margin-bottom: 1rem; }
.person-blurb { color: var(--mid); font-size: 0.98rem; max-width: 36em; }

.contact-lines { margin: 1.8rem 0 2rem; display: grid; gap: 0.7rem; }
.contact-lines a, .contact-lines p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  color: var(--ice);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-lines a:hover { color: var(--teal); }
.contact-lines a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.contact-lines span {
  flex: 0 0 5.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25em;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-line);
  background: rgba(16, 18, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem 0 1.4rem;
}
.footer-legal { display: flex; gap: 1.8rem; }
.footer-legal a { color: var(--mid); text-decoration: none; font-size: 0.95rem; }
.footer-legal a:hover { color: var(--teal); }
.footer-legal a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.footer-copy { padding-bottom: 1.6rem; }
.footer-copy p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.baseline { height: 5px; background: var(--teal); }

/* ── Scroll-Reveal ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w, .creed .w { opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
  .glass-cards, .pillars, .principles { grid-template-columns: 1fr; gap: 1.4rem; }
  .checklist { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 2rem 1.6rem; }
  .contact-person img { width: min(300px, 80%); margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(16, 18, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-line);
    padding: 0.5rem 1.5rem 1.4rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) {
    padding: 0.95rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(126, 136, 152, 0.14);
  }
  .nav-cta { margin-top: 1.1rem; text-align: center; }

  .hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .sec-head { flex-direction: column; gap: 0.4rem; }
  .manifest-facts { gap: 1.8rem 2.5rem; }
  #core { opacity: 0.75; }
}
