/* EMNOVA – gemeinsame Gestaltung für Startseite und Unterseiten.
   Schriften liegen als eigene Dateien in /schriften/ (keine externen Anfragen, DSGVO). */

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

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/schriften/syne-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/schriften/syne-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/schriften/syne-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/schriften/syne-800.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/schriften/dm-sans-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/schriften/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/schriften/dm-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/schriften/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/schriften/dm-sans-300-italic.woff2') format('woff2');
}

/* ── „Zum Inhalt springen“: für Tastatur-Nutzer, erscheint erst beim Ansteuern mit Tab ── */
.sprung-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: #0a0c14; font-weight: 600;
  padding: 0.6rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.sprung-link:focus { top: 0.75rem; }
#inhalt:focus { outline: none; } /* Ziel des Sprungs: kein Rahmen um die ganze Seite */

:root {
  --bg:        #0a0c14;
  --bg-2:      #0f1220;
  --surface:   #141828;
  --surface-2: #1a1f32;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);
  --accent:    #e8ff47;
  --accent-soft: rgba(232,255,71,0.12);
  --text:      #eef0f5;
  --text-dim:  #b6bac7;
  --muted:     #7a8099;
  --font-display: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'DM Sans', ui-sans-serif, system-ui, sans-serif;

  --maxw: 1280px;
  --radius: 6px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0c14; }

.container { max-width: var(--maxw); margin: 0 auto; }

/* ── NOISE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.logo .logo-text { line-height: 1; }
.logo .logo-text span { color: var(--accent); }

.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--text);
  flex-shrink: 0;
  overflow: visible;
}

/* Outer hex container */
.logo-hex {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: hex-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
  transform-origin: 24px 24px;
}
/* Inner chevron — the “M” / mountain peak */
.logo-chevron {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: chevron-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
}
/* Four-point burst at apex */
.logo-burst {
  transform-origin: 24px 14px;
  transform: scale(0) rotate(-45deg);
  animation: burst-ignite 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards,
             burst-pulse 3.2s ease-in-out 2s infinite;
}
/* Tip dot */
.logo-tip {
  transform-origin: 24px 14px;
  transform: scale(0);
  animation: tip-ignite 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.25s forwards;
}
/* Hover: full flare */
.logo:hover .logo-burst {
  animation: burst-flare 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-hex {
  animation: hex-spin 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hex-draw   { to { stroke-dashoffset: 0; } }
@keyframes chevron-draw { to { stroke-dashoffset: 0; } }
@keyframes hex-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(60deg); }
}
@keyframes burst-ignite {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes burst-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 3px var(--accent)); }
  50%      { transform: scale(1.12) rotate(0deg); filter: drop-shadow(0 0 8px var(--accent)); }
}
@keyframes burst-flare {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.55) rotate(45deg); filter: drop-shadow(0 0 14px var(--accent)); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes tip-ignite {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0a0c14 !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(232,255,71,0.18);
}

/* Ausklappmenü „Leistungen“: Maus (hover) und Tastatur (focus-within); auf dem Handy als Unterpunkte */
.nav-gruppe {
  position: relative;
  padding-bottom: 0.9rem;   /* Brücke zum Menü, damit es beim Hinfahren nicht zuklappt */
  margin-bottom: -0.9rem;
}
.nav-pfeil { font-size: 0.7em; margin-left: 0.2rem; opacity: 0.7; }
.nav-unter {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 15rem;
  list-style: none;
  padding: 0.5rem 0;
  background: rgba(10, 12, 20, 0.97);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.nav-gruppe:hover .nav-unter,
.nav-gruppe:focus-within .nav-unter { display: block; }
.nav-unter a {
  display: block;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}
.nav-unter a:hover, .nav-unter a:focus-visible { color: var(--accent); background: rgba(255,255,255,0.03); }

/* ── SECTION LAYOUT ── */
.section-head {
  max-width: 780px;
  margin-bottom: 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.section-sub {
  color: var(--text-dim);
  max-width: 60ch;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
#hero .container {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow::before,
.hero-glow::after,
.hero-glow .blob {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  will-change: transform;
  mix-blend-mode: screen;
}
.hero-glow::before {
  width: 560px; height: 560px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(232,255,71,0.38) 0%, rgba(232,255,71,0) 65%);
  animation: blob-float-a 18s ease-in-out infinite alternate;
}
.hero-glow::after {
  width: 640px; height: 640px;
  bottom: -180px; left: -120px;
  background: radial-gradient(circle, rgba(90,140,255,0.28) 0%, rgba(90,140,255,0) 65%);
  animation: blob-float-b 22s ease-in-out infinite alternate;
}
.hero-glow .blob {
  width: 480px; height: 480px;
  top: 30%; left: 35%;
  background: radial-gradient(circle, rgba(255,120,200,0.18) 0%, rgba(255,120,200,0) 65%);
  animation: blob-float-c 26s ease-in-out infinite alternate;
}

@keyframes blob-float-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, 60px) scale(1.12); }
  100% { transform: translate(40px, -40px) scale(0.95); }
}
@keyframes blob-float-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(120px, -70px) scale(1.15); }
  100% { transform: translate(-50px, 40px) scale(0.92); }
}
@keyframes blob-float-c {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-140px, -80px) scale(1.2); }
  100% { transform: translate(80px, 100px) scale(0.9); }
}

/* grain overlay locally inside hero for extra texture on the gradient */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.9'/%3E%3C/svg%3E");
}
/* ── DOTTED SURFACE CANVAS ── */
#dotted-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.02);
  animation: fadeUp 0.8s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}
.tag-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}
/* Punkt und folgender Begriff bleiben zusammen (sonst stand am Handy ein Punkt allein am Zeilenende) */
.tag-teil {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 18ch;
  animation: fadeUp 0.8s 0.15s ease both;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 56ch;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: #0a0c14;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(232,255,71,0.18);
}
.btn-primary svg { width: 14px; height: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.02);
  transform: translateY(-1px);
}

/* ── TICKER ── */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.1rem 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.ticker {
  display: flex;
  gap: 3.5rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
/* Anhalten, solange die Maus darauf liegt (zum Lesen) */
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker span {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.ticker span::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ── SERVICES ── */
#leistungen {
  padding: 10rem 2rem 8rem;
  scroll-margin-top: 80px;
  position: relative;
}
#leistungen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}
#leistungen .container { max-width: var(--maxw); margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg);
  padding: 2.6rem 2.4rem 2.4rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  cursor: default;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
/* subtle diagonal hatch that reveals on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(232,255,71,0.04) 0 1px,
    transparent 1px 16px
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.service-card:hover {
  background: var(--surface);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon-wrap {
  border-color: var(--accent);
  background: var(--accent);
  transform: rotate(-4deg) scale(1.04);
}
.service-card:hover .service-icon { color: #0a0c14; }
.service-card:hover .service-title { color: var(--accent); }
.service-card:hover .service-num { color: var(--accent); }
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover::after { transform: scaleX(1); }

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.08);
  transition: color 0.35s ease;
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.35s, background 0.35s, transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.service-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: color 0.35s;
}

.service-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
  transition: color 0.35s;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
}

.service-cta {
  display: inline-block;
  margin: 0.9rem 0 0.2rem;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a0c14;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.service-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* „Mehr erfahren →“ zur Unterseite: schlichter Textlink statt Knopf */
.service-mehr {
  align-self: flex-start;
  /* größere Tippfläche am Handy, Abstand optisch wie vorher */
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
}
.service-mehr:hover, .service-mehr:focus-visible { text-decoration: underline; }

.service-tags {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}
.service-card:hover .service-tag {
  color: var(--text-dim);
  border-color: var(--border-hi);
}

/* ── VALUES ── */
#werte {
  padding: 9rem 2rem 10rem;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
  margin-top: -2.5rem;
}
#werte .container { max-width: 960px; margin: 0 auto; }

#werte::before {
  content: 'NOVA';
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  color: rgba(255,255,255,0.018);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.values-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.value-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.value-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-item:hover {
  border-color: rgba(232, 255, 71, 0.35);
  background: var(--surface-2);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(232, 255, 71, 0.05);
}

.value-item:hover::before {
  opacity: 1;
}

.value-item:hover .value-num {
  text-shadow: 0 0 12px var(--accent);
}

.value-item:hover .value-content h3 {
  color: var(--accent);
}

.value-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.15rem;
  transition: text-shadow 0.3s ease;
}

.value-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.value-content p {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
}

.values-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 100px;
}

.stat-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.stat-block:hover,
.stat-block.is-active {
  border-color: var(--border-hi);
  transform: translateX(4px);
}
.stat-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.stat-block:hover::before,
.stat-block.is-active::before { transform: scaleY(1); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 0.5rem;
  font-weight: 300;
  line-height: 1.5;
}

#prozess {
  padding: 7rem 2rem;
  scroll-margin-top: 80px;
  position: relative;
}
#prozess .container { max-width: var(--maxw); margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 960px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .process-step:nth-child(2)::before { display: none; }
}
@media (max-width: 580px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; border-bottom: 1px solid var(--border); min-height: auto; }
  .process-step:last-child { border-bottom: none; }
  .process-step::before { display: none; }
}

.process-step {
  padding: 2.4rem 2.2rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.process-step:last-child { border-right: none; }
/* connector arrow between steps on desktop */
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  right: -9px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
  background: var(--bg);
  z-index: 2;
  transition: border-color 0.35s, background 0.35s;
}
/* subtle diagonal hatch reveals on hover */
.process-step .hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(232,255,71,0.04) 0 1px,
    transparent 1px 16px
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.process-step:hover,
.process-step.is-active { background: var(--surface); }
.process-step:hover .hatch,
.process-step.is-active .hatch { opacity: 1; }
.process-step:hover::before,
.process-step.is-active::before { border-color: var(--accent); background: var(--surface); }
.process-step:hover .step-icon-wrap,
.process-step.is-active .step-icon-wrap {
  border-color: var(--accent);
  background: var(--accent);
  transform: rotate(-4deg) scale(1.04);
}
.process-step:hover .step-icon,
.process-step.is-active .step-icon { color: #0a0c14; }
.process-step:hover .step-title,
.process-step.is-active .step-title { color: var(--accent); }
.process-step:hover .step-index,
.process-step.is-active .step-index { color: var(--accent); }
.process-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.process-step:hover::after,
.process-step.is-active::after { transform: scaleX(1); }

/* Fortschritt beim Scrollen (Klassen setzt das Skript):
   is-tracking – Phasen leuchten nacheinander auf, die Linie unten läuft mit.
   is-pinned   – nur Desktop: der Abschnitt bleibt stehen, bis alle Phasen durch sind. */
.process-steps.is-tracking .process-step::after {
  transform: scaleX(var(--fill, 0));
  transition: transform 0.15s linear;
}
.process-steps.is-tracking .process-step > :not(.hatch) {
  transition: opacity 0.6s ease, color 0.35s ease;
}
.process-steps.is-tracking .process-step:not(.is-active):not(:hover) > :not(.hatch) {
  opacity: 0.65; /* noch gut lesbar (Kontrast ca. 4,8:1), Aufleuchten bleibt sichtbar */
}
/* Die Dauer ist sonst gedämpft grau: abgeblendet käme sie nur auf 2,7:1, mit hellerer Farbe auf 4,8:1 */
.process-steps.is-tracking .process-step:not(.is-active):not(:hover) .step-duration {
  color: var(--text-dim);
}
#prozess.is-pinned .process-track { height: var(--track-h, auto); }
#prozess.is-pinned .process-stage {
  position: sticky;
  top: var(--stage-top, 0px);
}

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.35s, background 0.35s, transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.step-icon {
  width: 22px;
  height: 22px;
  color: var(--text);
  transition: color 0.35s;
}

.step-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.08);
  transition: color 0.35s ease;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
  transition: color 0.35s;
}

.step-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
}

.step-duration {
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-duration::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.6;
}

/* ── CONTACT ── */
#kontakt {
  padding: 9rem 2rem 10rem;
  background: linear-gradient(180deg, rgba(232,255,71,0.025) 0%, var(--bg-2) 40%);
  scroll-margin-top: 80px;
  position: relative;
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
  margin-top: -2.5rem;
}
#kontakt .container { max-width: var(--maxw); margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
}
.contact-item:hover {
  border-color: var(--border-hi);
  background: rgba(255,255,255,0.03);
}

.contact-icon-wrap {
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-icon-wrap svg { width: 16px; height: 16px; }

.contact-item-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.contact-item-val {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-item-val a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item-val a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}

.form-group textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-group select option { background: var(--surface); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.form-checkbox input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form-checkbox a {
  color: var(--accent);
  /* nicht nur an der Farbe erkennbar (Barrierefreiheit) */
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ── EINSATZGEBIET (Startseite beim Kontakt und Unterseiten) ── */
.einsatzgebiet {
  max-width: 860px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.8rem;
}
.einsatzgebiet h2, .einsatzgebiet h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.einsatzgebiet p { color: var(--text-dim); font-weight: 300; font-size: 0.98rem; line-height: 1.7; }
#kontakt .einsatzgebiet { margin-top: 2.2rem; }

/* ── CAPTCHA ── */
.captcha-row { max-width: 280px; }
.captcha-row input { font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.captcha-q {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2.5rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 32ch; }

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-logo-mark { width: 28px; height: 28px; color: var(--text); }
.footer-logo-text span { color: var(--accent); }

.footer-tag {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bar {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── LEGAL ── */
.page-section { display: none; }
.page-section.active { display: block; }

#page-impressum, #page-datenschutz {
  padding: 8rem 2rem 5rem;
  max-width: 820px;
  margin: 0 auto;
}
/* Sprungziel #impressum/#datenschutz: landet am Anfang des Abschnitts, nicht unter der Navigation */
.sprungmarke { display: block; scroll-margin-top: 8rem; }

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
  /* „Datenschutzerklärung“ ist ein einziges langes Wort: notfalls umbrechen statt über den Rand ragen */
  overflow-wrap: break-word;
}
@media (max-width: 440px) {
  .legal-content h2 { font-size: 6.5vw; }
}
/* Schmale Handys: lange Wörter in Überschriften („Zusammenarbeit“, „Einsatzmöglichkeiten“) mit
   Trennstrich trennen statt über den Rand ragen lassen; ohne Trennung im Gerät notfalls umbrechen */
@media (max-width: 480px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}
/* Die Überschrift bekommt beim Öffnen den Fokus (für Vorleseprogramme), ohne Rahmen */
.legal-content h2:focus { outline: none; }
.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 2.2rem 0 0.7rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.legal-content p, .legal-content li {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.legal-content ul {
  padding-left: 1.3rem;
  margin-bottom: 0.8rem;
}
.legal-content a {
  color: var(--accent);
  /* nicht nur an der Farbe erkennbar (Barrierefreiheit) */
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.legal-highlight {
  background: var(--surface);
  border-left: 2px solid var(--accent);
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.3rem 0;
}
.legal-highlight p {
  color: var(--text) !important;
  margin: 0;
  font-size: 0.88rem;
}

/* ── SCROLL-REVEAL ──
   Ruhiges Hereingleiten wie bei Apple: einmalig und in Leserichtung gestaffelt.
   Die Verzoegerung je Element setzt das Skript (--reveal-delay). */
.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s cubic-bezier(0.25,0.1,0.25,1),
              transform 1.1s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Nutzer mit reduzierter Bewegungspraeferenz: alles sofort sichtbar, keine Auto-Effekte.
   Animationen springen sofort in ihren Endzustand (Logo fertig gezeichnet, Texte sichtbar),
   Laufband und schwebende Flächen stehen still. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  .values-layout, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .values-visual { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bar { text-align: left; }
  nav { padding: 0.85rem 1.2rem; }
  #hero { padding: 7rem 1.2rem 4rem; }
  /* Themen-Pille darf auf schmalen Handys umbrechen (zwischen den Begriffen, nicht im Wort);
     gilt für Startseite und Unterseiten */
  .hero-tag { flex-wrap: wrap; white-space: nowrap; row-gap: 0.35rem; border-radius: 16px; }
  #leistungen { padding: 6rem 1.2rem 5rem; }
  #werte { padding: 6rem 1.2rem 7rem; clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%); margin-top: -1.5rem; }
  #prozess { padding: 5rem 1.2rem; }
  #kontakt { padding: 6rem 1.2rem 7rem; clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%); margin-top: -1.5rem; }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Muss nach der Grundregel .nav-hamburger stehen, sonst gewinnt display:none */
@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .footer-col ul { gap: 0.2rem; }
  .footer-col a { display: inline-block; padding: 0.55rem 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(10, 12, 20, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.2rem 1rem;
    z-index: 99;
    /* Handy quer: Menü ist höher als der Bildschirm → im Menü scrollen */
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open {
    display: flex;
  }
  /* Alle Einträge gleich breit (Trennlinien gleich lang), Text mittig */
  .nav-links { align-items: stretch; }
  .nav-links li { display: block !important; text-align: center; }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }
  /* Knopf „Projekt anfragen“: eigener Innenabstand (die Regel für .nav-links a nimmt ihn sonst weg) */
  .nav-links a.nav-cta { padding: 0.75rem 1.1rem; }
  /* Ausklappmenü im Handy-Menü: Unterpunkte immer sichtbar und eingerückt */
  .nav-gruppe { padding-bottom: 0; margin-bottom: 0; }
  .nav-pfeil { display: none; }
  .nav-gruppe { text-align: center; }
  .nav-unter {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .nav-unter a,
  .nav-links .nav-unter li:last-child a {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 0.5rem 0;
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
}
