/* =========================================================
   RHEINISCH DIGITAL — zentrales Stylesheet
   Gilt für die Startseite (.hero) und alle Unterseiten (.page)
   ========================================================= */

/* Lokal gehostete Schriften (statt Google Fonts CDN) — DSGVO-konform,
   da keine Verbindung zu Google-Servern beim Seitenaufruf entsteht.
   Dateien liegen unter assets/fonts/, Lizenzen siehe dort. */
@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/monoton-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-700.woff2') format('woff2');
}

:root{
  --bg: #0a0a14;
  --bg-deep: #050508;
  --pink: #ff2e88;
  --cyan: #00e5ff;
  --violet: #7b2ff7;
  --amber: #ffb020;
  --ink: #f4f0ff;
  --ink-dim: #b8b0d8;
}

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

html, body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

/* ---------- LAYOUT SHELLS ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 60% at 50% 8%, rgba(123,47,247,0.25), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, #12081f 100%);
  isolation: isolate;
}

.page{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(123,47,247,0.18), transparent 60%),
    var(--bg);
}

.page main{ flex: 1; }

/* ---------- NAV ---------- */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 24px clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
  row-gap: 12px;
}

.nav-mark{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.nav-dot{
  width:8px; height:8px;
  border-radius:50%;
  background: var(--amber);
  box-shadow: 0 0 8px 2px var(--amber);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{ opacity:1; transform: scale(1); }
  50%{ opacity:0.4; transform: scale(0.75); }
}

.nav-logo{
  font-family: 'Monoton', cursive;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 30px var(--violet);
}

.nav-logo span{
  color: var(--cyan);
  text-shadow: 0 0 6px #fff, 0 0 14px var(--cyan), 0 0 30px var(--violet);
}

.nav-menu{
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-menu-link{
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}

.nav-menu-link:hover, .nav-menu-link:focus-visible{
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,229,255,0.5);
  outline: none;
}

.nav-link{
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(244,240,255,0.25);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}

.nav-link:hover, .nav-link:focus-visible{
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,229,255,0.35);
  outline: none;
}

/* ---------- HOME: HERO CONTENT ---------- */
.content{
  flex: 1;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 0;
  position: relative;
  z-index: 5;
}

.eyebrow{
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
  text-shadow: 0 0 12px rgba(255,176,32,0.6);
  text-wrap: balance;
}

.eyebrow::before, .eyebrow::after{
  content: '—';
  color: rgba(255,176,32,0.5);
  margin: 0 10px;
}

.logo{
  font-family: 'Monoton', cursive;
  font-weight: 400;
  font-size: clamp(40px, 13vw, 148px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
  word-break: break-word;
  /* layered glow reads like real neon tubing */
  text-shadow:
    0 0 6px #fff,
    0 0 16px var(--pink),
    0 0 34px var(--pink),
    0 0 70px var(--violet),
    0 0 110px var(--violet);
  animation: flicker-in 2.4s linear 1;
}

.logo span{
  color: var(--cyan);
  text-shadow:
    0 0 6px #fff,
    0 0 16px var(--cyan),
    0 0 34px var(--cyan),
    0 0 70px var(--violet),
    0 0 110px var(--violet);
}

@keyframes flicker-in{
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  6%   { opacity: 0.2; }
  8%   { opacity: 1; }
  10%  { opacity: 0.3; }
  12%  { opacity: 1; }
  20%  { opacity: 0.4; }
  22%  { opacity: 1; }
  55%  { opacity: 1; }
  57%  { opacity: 0.5; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

/* short re-flicker, triggered randomly by JS after the initial load */
.logo.flicker{
  animation: flicker-again 0.55s linear 1;
}

@keyframes flicker-again{
  0%   { opacity: 1; }
  8%   { opacity: 0.25; }
  16%  { opacity: 1; }
  24%  { opacity: 0.15; }
  30%  { opacity: 1; }
  45%  { opacity: 1; }
  52%  { opacity: 0.4; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

.tagline{
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
}

.tagline strong{
  color: var(--ink);
  font-weight: 600;
}

/* ---------- BUTTONS (shared) ---------- */
.ctas{
  margin-top: 40px;
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
}

.btn:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary{
  background: linear-gradient(90deg, var(--pink), var(--violet));
  color: #fff;
  box-shadow: 0 0 24px rgba(255,46,136,0.45), 0 0 0px transparent;
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255,46,136,0.75);
}

.btn-primary .dot{
  width:7px; height:7px;
  border-radius: 50%;
  background:#fff;
  animation: pulse 1.4s ease-in-out infinite;
}

.btn-ghost{
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.5);
}

.btn-ghost:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.06);
}

/* ---------- HOME: DATA NETWORK ---------- */
.network-wrap{
  position: relative;
  height: clamp(220px, 34vh, 340px);
  margin-top: 56px;
  overflow: hidden;
  z-index: 3;
}

#network{
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
}

.network-fade{
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 96%);
  pointer-events: none;
}

.network-caption{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.55;
  z-index: 4;
  white-space: nowrap;
}

/* ---------- SUBPAGES: PAGE HERO ---------- */
.page-hero{
  text-align: center;
  padding: 64px clamp(20px, 5vw, 64px) 40px;
}

.page-hero h1{
  display: inline-block;
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.1;
  padding-bottom: 18px;
}

.page-hero h1::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 84px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 10px rgba(255,46,136,0.6), 0 0 10px rgba(0,229,255,0.6);
}

.page-hero .intro{
  max-width: 60ch;
  margin: 28px auto 0;
  color: var(--ink-dim);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
}

/* ---------- SUBPAGES: NOTICE BANNER (legal placeholder pages) ---------- */
.notice{
  max-width: 70ch;
  margin: 0 auto 44px;
  padding: 14px 18px;
  border: 1px solid rgba(255,176,32,0.35);
  background: rgba(255,176,32,0.06);
  border-radius: 10px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.6;
}

.notice strong{ color: var(--amber); }

/* ---------- SUBPAGES: PROSE (legal text) ---------- */
.prose{
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 20px 110px;
}

.prose h2{
  font-size: 20px;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
  color: var(--ink);
}

.prose h2:first-child{ margin-top: 0; }

.prose p, .prose li{
  color: var(--ink-dim);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 14px;
}

.prose ul{ padding-left: 20px; margin-bottom: 14px; }
.prose a{ color: var(--cyan); }
.prose strong{ color: var(--ink); }

/* ---------- SUBPAGES: GRID / CARDS (Referenzen, Karriere) ---------- */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 110px;
}

.card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(244,240,255,0.09);
  border-radius: 16px;
  padding: 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover{
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,229,255,0.15);
}

.card .tag{
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}

.card h3{ font-size: 20px; margin-bottom: 10px; }

.card p{ color: var(--ink-dim); font-size: 14.5px; line-height: 1.65; }

.card .stat{
  margin-top: 18px;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.card .meta{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card .meta span{
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid rgba(244,240,255,0.18);
  border-radius: 999px;
  padding: 5px 12px;
}

.card .apply{
  margin-top: 20px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

.card .apply:hover{ text-shadow: 0 0 10px rgba(0,229,255,0.6); }

.section-intro{
  max-width: 60ch;
  margin: 0 auto 50px;
  padding: 0 20px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- SUBPAGES: FORM (Kontakt) ---------- */
.contact-wrap{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 110px;
}

.contact-info{
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
  text-align: center;
}

.contact-info div{ min-width: 160px; }

.contact-info .label{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.contact-info a, .contact-info p{
  color: var(--ink-dim);
  font-size: 14.5px;
  text-decoration: none;
}

.contact-info a:hover{ color: var(--cyan); }

form.form{ display: grid; gap: 20px; }

.field{ display: grid; gap: 8px; text-align: left; }

.field label{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field input, .field textarea{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(244,240,255,0.16);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}

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

.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.15);
}

.form-submit{
  justify-self: start;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  border: none;
  padding: 15px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255,46,136,0.45);
  transition: transform .2s ease, box-shadow .3s ease;
}

.form-submit:hover{ transform: translateY(-2px); box-shadow: 0 0 36px rgba(255,46,136,0.75); }
.form-submit:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 3px; }

.form-success{
  display: none;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.35);
  background: rgba(0,229,255,0.08);
  color: var(--ink);
  font-size: 14px;
}

.form-success.visible{ display: block; }

.form-error{
  display: none;
  margin-top: -6px;
  color: var(--pink);
  font-size: 13px;
}

.form-error.visible{ display: block; }

.form-note{
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,176,32,0.3);
  background: rgba(255,176,32,0.06);
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

.form-note.visible{ display: block; }

.form-note .cookie-btn{
  display: block;
  margin-top: 12px;
  width: fit-content;
}

.field-honeypot{
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.cf-turnstile-hidden{
  display: none;
}

.cf-turnstile{ margin-top: 2px; }

/* ---------- COOKIE BANNER (zentral, via script.js injiziert) ---------- */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--bg-deep);
  border-top: 1px solid rgba(244,240,255,0.1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.55);
  transform: translateY(110%);
  transition: transform .4s ease;
}

.cookie-banner::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 10px rgba(255,46,136,0.6), 0 0 10px rgba(0,229,255,0.6);
}

.cookie-banner.visible{ transform: translateY(0); }

.cookie-banner p{
  margin: 0;
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

.cookie-banner a{ color: var(--cyan); }

.cookie-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .3s ease, border-color .2s ease, color .2s ease;
}

.cookie-btn-primary{
  background: linear-gradient(90deg, var(--pink), var(--violet));
  color: #fff;
  box-shadow: 0 0 16px rgba(255,46,136,0.4);
}

.cookie-btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255,46,136,0.6);
}

.cookie-btn-ghost{
  background: transparent;
  color: var(--ink-dim);
  border-color: rgba(244,240,255,0.25);
}

.cookie-btn-ghost:hover{
  color: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 640px){
  .cookie-banner{ flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions{ justify-content: center; }
}

/* ---------- FOOTER (shared) ---------- */
.footer{
  position: relative;
  z-index: 4;
  background: var(--bg-deep);
  border-top: 1px solid rgba(244,240,255,0.08);
  padding: 22px clamp(20px, 5vw, 64px) 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy{
  font-size: 12.5px;
  color: var(--ink-dim);
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.footer-links{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a{
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}

.footer-links a:hover, .footer-links a:focus-visible{
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,229,255,0.5);
  outline: none;
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce){
  .logo, .nav-dot, .btn-primary .dot{
    animation: none !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px){
  .footer{ flex-direction: column; text-align: center; }
  .footer-links{ justify-content: center; }
  .nav{ justify-content: center; text-align: center; }
  .contact-info{ text-align: center; }
}

@media (max-width: 480px){
  .ctas{ flex-direction: column; width: 100%; max-width: 320px; }
  .btn{ justify-content: center; }
  .network-caption{ font-size: 9.5px; letter-spacing: 0.2em; }
  .form-submit{ justify-self: stretch; text-align: center; }
  .eyebrow{ max-width: 260px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 360px){
  .network-caption{ display: none; }
  .tagline{ font-size: 14px; }
}
