/* ==========================================================================
   Prevonis – Code & Event Services
   Design-Tokens & Themes
   ========================================================================== */

:root {
  --grad: linear-gradient(135deg, #9CA8B8, #5C6B7E);
  --ink: #1A1F26;
  --steel: #5C6B7E;
}

/* Dunkles Theme (Standard) */
html[data-theme="dark"] {
  --bg:      #1A1F26;
  --panel:   #212832;
  --text:    #EFEDE6;
  --muted:   #9CA8B8;
  --line:    rgba(156, 168, 184, 0.14);
  --line-2:  rgba(156, 168, 184, 0.42);
  --hover:   rgba(156, 168, 184, 0.06);
  --nav-bg:  rgba(26, 31, 38, 0.82);
}

/* Helles Theme (Paper) */
html[data-theme="light"] {
  --bg:      #EFEDE6;
  --panel:   #E7E3D8;
  --text:    #1A1F26;
  --muted:   #5C6B7E;
  --line:    rgba(92, 107, 126, 0.20);
  --line-2:  rgba(92, 107, 126, 0.50);
  --hover:   rgba(92, 107, 126, 0.06);
  --nav-bg:  rgba(239, 237, 230, 0.82);
}

/* ==========================================================================
   Basis
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  position: relative;
}

::selection { background: var(--steel); color: #EFEDE6; }

img { display: block; }

/* ==========================================================================
   Wasserzeichen
   ========================================================================== */

.watermark {
  position: fixed;
  top: 50%;
  right: -14vw;
  transform: translateY(-50%);
  width: 70vw;
  max-width: 900px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Navigation (sticky, schrumpft beim Scrollen)
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.35s ease;
}

.nav.is-scrolled .nav__inner { padding: 12px 32px; }

.nav__brand { display: inline-flex; align-items: center; text-decoration: none; }

.nav__brand .logo {
  height: 128px;
  width: auto;
  transition: height 0.35s ease;
}

.nav.is-scrolled .nav__brand .logo { height: 64px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

/* Logo-Varianten je nach Theme */
.logo--ink { display: none; }
html[data-theme="light"] .logo--cream { display: none; }
html[data-theme="light"] .logo--ink { display: block; }

/* ==========================================================================
   Theme-Umschalter
   ========================================================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}

.theme-toggle__knob {
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Aktiver Knopf = aktuelles Theme */
html[data-theme="dark"] .theme-toggle__knob--moon,
html[data-theme="light"] .theme-toggle__knob--sun {
  background: var(--grad);
  color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 70px 32px 110px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  margin-bottom: 40px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  animation: prv-pulse 2s ease-in-out infinite;
}

.badge__text {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__text {
  margin: 30px 0 0;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.accent-bar {
  height: 3px;
  width: 100%;
  max-width: 620px;
  margin-top: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, #9CA8B8, #5C6B7E, #9CA8B8);
  background-size: 200% 100%;
  animation: prv-shimmer 4s linear infinite;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  color: var(--ink);
  background: var(--grad);
  box-shadow: 0 8px 30px rgba(92, 107, 126, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 10px 38px rgba(92, 107, 126, 0.55);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn--ghost:hover { background: var(--hover); }

.btn--lg { padding: 17px 34px; font-size: 18px; }

/* ==========================================================================
   Sektionen
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.section__head--center { justify-content: center; margin-bottom: 24px; }

.section__index {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Leistungs-Karten
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  padding: 34px 30px 38px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}

.card__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-panel {
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
}

.contact-panel__text {
  margin: 0 auto 34px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* ==========================================================================
   Impressum
   ========================================================================== */

.imp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 780px;
}

.imp-label {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.imp-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.imp-note {
  margin: 28px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 780px;
  font-style: italic;
}

.link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.link:hover { color: var(--text); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand { display: inline-flex; align-items: center; text-decoration: none; }
.footer__brand .logo { height: 30px; width: auto; opacity: 0.85; }

.footer__copy {
  margin: 0;
  font-size: 14px;
  color: var(--steel);
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes prv-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes prv-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .badge__dot, .accent-bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .nav__inner { padding: 18px 20px; }
  .nav.is-scrolled .nav__inner { padding: 10px 20px; }
  .nav__brand .logo { height: 48px; }
  .nav.is-scrolled .nav__brand .logo { height: 32px; }
  .nav__links { gap: 16px; }
  .nav-link { display: none; }           /* Auf kleinen Screens nur Logo + Umschalter */
  .hero { padding: 40px 20px 80px; }
  .section { padding: 30px 20px 70px; }
}
