/* ==========================================================================
   IT-Solutions Jan Pusztai – Stylesheet (Darkmode)
   Design-Tokens oben, danach Basis, Layout, Sektionen.
   ========================================================================== */

/* Schriften: lokal gehostet (kein Google Fonts → DSGVO-freundlich) */
@font-face { font-family: "Adventor"; src: url("../assets/fonts/adventor-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Adventor"; src: url("../assets/fonts/adventor-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  /* Farben */
  --nacht: #060C18;        /* Seitenhintergrund */
  --flaeche: #0C1628;      /* Kacheln */
  --flaeche-2: #111E36;    /* Kacheln hervorgehoben */
  --linie: rgba(148, 178, 255, 0.12);
  --linie-stark: rgba(148, 178, 255, 0.24);
  --text: #E9EFFA;
  --text-2: #9DB0D0;       /* Nebentext */
  --text-3: #6E82A6;
  --blau: #0C74C4;         /* Markenblau aus dem Logo (#0F7DCE), minimal dunkler für lesbare weiße Schrift */
  --blau-hell: #6CB4EE;
  --cyan: #38D4F2;         /* Zweitfarbe für Verläufe */
  --gruen: #34D399;        /* nur Status "erreichbar" */
  --orange: #F5B54A;       /* nur Status "nicht erreichbar" */

  --verlauf: linear-gradient(120deg, var(--blau) 0%, var(--cyan) 100%);

  /* Schrift */
  --font-display: "Adventor", "TeX Gyre Adventor", "Century Gothic", "Avenir Next", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.55rem;
  --t-2xl: clamp(2rem, 4vw, 3.1rem);
  --t-hero: clamp(2.7rem, 6.4vw, 5.2rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 26px;
}

/* --- Basis --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--nacht); overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-text); font-size: var(--t-base); line-height: 1.6;
  color: var(--text); background: var(--nacht); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blau-hell); text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 1em; max-width: 65ch; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Hintergrund-Raster, nach unten ausblendend */
.bg-grid {
  position: absolute; inset: 0 0 auto 0; overflow: hidden; height: 1100px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--linie) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem; font: 600 var(--t-base)/1.2 var(--font-text);
  color: #fff; background: var(--blau); border: 1px solid transparent; border-radius: var(--r-s);
  text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-glow { background: var(--verlauf); box-shadow: 0 8px 30px -8px rgba(15, 125, 206, 0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-glow:hover { box-shadow: 0 12px 40px -6px rgba(56, 212, 242, 0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--linie-stark); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-light { background: #fff; color: var(--nacht); }
.btn-small { padding: 0.55rem 1rem; font-size: var(--t-sm); }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 12, 24, 0.7); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand-logo { height: 48px; width: auto; }
@media (max-width: 480px) { .brand-logo { height: 40px; } }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-name span { font-weight: 400; color: var(--text-2); }
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.main-nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: block; font: 600 var(--t-sm) var(--font-text); color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--linie-stark); border-radius: var(--r-s); padding: 0.5rem 0.9rem; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(6, 12, 24, 0.97); border-bottom: 1px solid var(--linie); padding: 0.5rem var(--gutter) 1.25rem; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--linie); color: var(--text); }
  .main-nav .btn { margin-top: 1rem; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 700px; right: -200px; top: -200px;
  background: radial-gradient(closest-side, rgba(15, 125, 206, 0.35), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(56, 212, 242, 0.18), transparent 70%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  font-size: var(--t-sm); font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--linie-stark); border-radius: 999px; margin-bottom: 1.6rem;
}
.hero-title {
  font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; margin-bottom: 0.4em;
  background: linear-gradient(180deg, #FFFFFF 30%, #A9C2FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--text-2); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }
.hero-points { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: var(--text-2); font-size: var(--t-sm); }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2334D399' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Status-Punkte */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; display: inline-block; }
.dot-live, .help-status.is-open .dot { background: var(--gruen); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2.2s infinite; }
.help-status.is-closed .dot { background: var(--orange); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Live-Support-Konsole */
.console {
  position: relative; border-radius: var(--r-l); padding: 1px;
  background: linear-gradient(160deg, rgba(108, 180, 238, 0.55), rgba(56, 212, 242, 0.15) 40%, rgba(148, 178, 255, 0.08));
  box-shadow: 0 40px 100px -30px rgba(15, 125, 206, 0.55);
}
.console > * { background: rgba(10, 19, 36, 0.92); }
.console-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.1rem; border-radius: calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0 0; border-bottom: 1px solid var(--linie); }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2A3A57; }
.lights i:nth-child(1) { background: #FF6B6B; } .lights i:nth-child(2) { background: #F5B54A; } .lights i:nth-child(3) { background: #34D399; }
.console-name { font: 500 0.8rem var(--font-mono); color: var(--text-3); white-space: nowrap; }
.help-status { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-2); white-space: nowrap; }
.console-screen { padding: 1.1rem 1.2rem; min-height: 13.5rem; }
.log { list-style: none; margin: 0; padding: 0; font: 0.84rem/1.75 var(--font-mono); color: var(--text-2); }
.log li { display: flex; gap: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .p { color: var(--blau-hell); }
.log .ok { color: var(--gruen); }
.log .hl { color: #fff; }
.log .caret { display: inline-block; width: 0.55em; height: 1.05em; background: var(--cyan); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-help { padding: 1.2rem; border-top: 1px solid var(--linie); border-radius: 0 0 calc(var(--r-l) - 1px) calc(var(--r-l) - 1px); }
.console-help h2 { font-size: var(--t-lg); margin-bottom: 0.8rem; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.help-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.9rem; text-decoration: none; color: var(--text);
  background: rgba(255,255,255,0.03); border: 1px solid var(--linie); border-radius: var(--r-s); transition: border-color 0.2s, background-color 0.2s;
}
.help-item:hover { border-color: var(--linie-stark); background: rgba(255,255,255,0.06); }
.help-item svg { width: 22px; height: 22px; flex: none; color: var(--blau-hell); }
.help-item span { display: grid; min-width: 0; }
.help-item strong { font-family: var(--font-display); font-size: 1rem; }
.help-item small { color: var(--text-3); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-main { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(15, 125, 206,0.22), rgba(56,212,242,0.1)); border-color: rgba(108, 180, 238,0.35); }
.help-main svg { color: var(--cyan); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-title { max-width: 14ch; } }
@media (max-width: 420px) { .help-grid { grid-template-columns: 1fr; } .help-status span:last-child { display: none; } }

/* --- Laufband -------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--linie); background: rgba(255,255,255,0.015); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 1.3rem 0; }
.marquee li { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text-3); padding: 0 2.4rem; white-space: nowrap; position: relative; }
.marquee li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--linie-stark); transform: translateY(-50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Sektionen ------------------------------------------------------------- */
.section { padding: var(--section) 0; position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-2); }
.muted-head { color: var(--text-3); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* --- Bento-Kacheln --------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 1rem; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 1.8rem; border-radius: var(--r-m);
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(15, 125, 206, 0.12), transparent 40%), var(--flaeche);
  border: 1px solid var(--linie);
  transition: border-color 0.25s;
}
.tile::before { /* leuchtender Rand, folgt der Maus */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(108, 180, 238, 0.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s;
}
.tile:hover::before { opacity: 1; }
.tile-xl { grid-column: span 2; grid-row: span 2; background: radial-gradient(600px circle at var(--mx) var(--my), rgba(15, 125, 206, 0.16), transparent 45%), linear-gradient(160deg, #0F1D38, var(--flaeche) 60%); }
.tile-tall { grid-row: span 2; }
.tile-icon {
  width: 46px; height: 46px; padding: 11px; border-radius: 12px; margin-bottom: 1.4rem; color: #fff;
  background: var(--verlauf); box-shadow: 0 10px 30px -10px rgba(15, 125, 206, 0.8);
}
.tile h3 { font-size: var(--t-xl); margin-bottom: 0.5rem; }
.tile-xl h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tile p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 0.4rem 0 1.5rem; display: grid; gap: 0.5rem; color: var(--text-2); position: relative; z-index: 1; }
.ticks li { display: flex; gap: 0.6rem; align-items: center; }
.ticks li::before { content: ""; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6.2' fill='none' stroke='%2338D4F2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); position: relative; z-index: 1; }
.price { font-size: var(--t-sm); color: var(--text-3); }
.tile-link { font-weight: 600; font-size: var(--t-sm); color: #fff; text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--linie-stark); transition: background-color 0.2s; }
.tile-link:hover { background: rgba(15, 125, 206, 0.35); }

/* Visual in der großen Kachel: Bildschirm mit Fernwartungs-Cursor */
.remote-visual { position: absolute; right: -30px; bottom: 95px; width: 240px; height: 160px; opacity: 0.9; pointer-events: none; }
.rv-screen { position: absolute; inset: 0; border-radius: 14px; border: 1px solid var(--linie-stark); background: linear-gradient(160deg, rgba(15, 125, 206,0.18), rgba(12,22,40,0.9)); padding: 22px; display: grid; gap: 12px; align-content: start; }
.rv-screen span { height: 10px; border-radius: 5px; background: rgba(148,178,255,0.18); }
.rv-screen span:nth-child(1) { width: 70%; } .rv-screen span:nth-child(2) { width: 45%; } .rv-screen span:nth-child(3) { width: 58%; background: rgba(56,212,242,0.4); }
.rv-cursor { position: absolute; width: 22px; height: 22px; left: 40%; top: 40%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3l15 7-6.5 2L10 19z' fill='%23fff' stroke='%230C1628' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(56,212,242,0.6)); animation: cursor-move 7s ease-in-out infinite; }
@keyframes cursor-move { 0%,100% { transform: translate(0,0); } 25% { transform: translate(80px,-30px); } 50% { transform: translate(40px,40px); } 75% { transform: translate(-50px,10px); } }
.tile-xl > :not(.tile-visual) { position: relative; z-index: 1; max-width: 30rem; }
.tile-xl > .tile-foot { max-width: none; }

/* Wellen in der Telefonie-Kachel */
.waves { display: flex; align-items: center; gap: 5px; height: 90px; margin: 0.5rem 0 1.5rem; }
.waves i { flex: 1; border-radius: 4px; background: var(--verlauf); height: 30%; animation: wave 1.4s ease-in-out infinite; opacity: 0.85; }
.waves i:nth-child(2n) { animation-delay: -0.3s; } .waves i:nth-child(3n) { animation-delay: -0.6s; } .waves i:nth-child(4n) { animation-delay: -0.9s; } .waves i:nth-child(5n) { animation-delay: -1.1s; }
@keyframes wave { 0%,100% { height: 22%; } 50% { height: 95%; } }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-xl { grid-column: span 2; grid-row: auto; }
  .tile-tall { grid-row: auto; }
}
@media (max-width: 1100px) { .remote-visual { display: none; } .tile-xl > :not(.tile-visual) { max-width: none; } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-xl { grid-column: auto; }
  .remote-visual { display: none; }
}

/* --- Zeitstrahl ------------------------------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: linear-gradient(90deg, var(--blau), var(--cyan), rgba(56,212,242,0.1)); }
.timeline li { position: relative; }
.t-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.4rem; position: relative;
  font: 700 1.4rem/1 var(--font-display); color: #fff; background: var(--nacht);
  border: 2px solid var(--blau); box-shadow: 0 0 0 6px var(--nacht), 0 0 30px rgba(15, 125, 206,0.5);
}
.timeline p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--blau), var(--cyan)); }
  .timeline li { padding-left: 80px; }
  .t-num { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* --- Über uns -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.portrait { margin: 0; }
.portrait-frame { padding: 2px; border-radius: var(--r-l); background: var(--verlauf); box-shadow: 0 30px 80px -30px rgba(15, 125, 206,0.7); }
.portrait-placeholder, .portrait img { aspect-ratio: 4 / 5; border-radius: calc(var(--r-l) - 2px); background: linear-gradient(160deg, #13234A, var(--flaeche)); object-fit: cover; width: 100%; }
.portrait img { object-position: 50% 15%; height: auto; }
.portrait-placeholder { display: grid; place-items: center; text-align: center; color: var(--text-3); font-family: var(--font-display); font-size: var(--t-lg); }
.portrait figcaption { margin-top: 1rem; color: var(--text-2); font-size: var(--t-sm); display: flex; gap: 0.6rem; }
.portrait figcaption strong { color: #fff; }
.about-copy p { color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 2rem; }
.facts div { padding: 1rem 1.1rem; border-radius: var(--r-s); background: var(--flaeche); border: 1px solid var(--linie); display: grid; gap: 0.2rem; }
.facts span { font-size: 0.8rem; color: var(--text-3); }
.facts strong { font-weight: 600; font-size: 0.95rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 340px; } .facts { grid-template-columns: 1fr; } }

/* --- CTA ------------------------------------------------------------------- */
.cta-band { padding: 0 0 var(--section); }
.cta-box {
  position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-radius: var(--r-l); background: radial-gradient(ellipse at 50% 0%, rgba(56,212,242,0.35), transparent 60%), linear-gradient(135deg, #1A4FE0, #0B2A7A 60%, #0A1A40);
  border: 1px solid rgba(108, 180, 238,0.35);
}
.cta-box::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { max-width: 20ch; margin: 0 auto 0.5em; }
.cta-box p { margin: 0 auto 2rem; color: #C8D8FF; }

/* --- Kontakt --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info > p { color: var(--text-2); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }
.c-card { padding: 1.1rem; border-radius: var(--r-s); background: var(--flaeche); border: 1px solid var(--linie); display: grid; gap: 0.25rem; }
.c-card span { font-size: 0.8rem; color: var(--text-3); }
.c-card strong { font-weight: 600; font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.c-card a { color: #fff; text-decoration: none; }
.c-card a:hover { color: var(--blau-hell); }

.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r-l); background: linear-gradient(160deg, rgba(17,30,54,0.9), rgba(12,22,40,0.9)); border: 1px solid var(--linie-stark); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.45rem; font-size: var(--t-sm); font-weight: 500; color: var(--text-2); }
.opt { color: var(--text-3); font-weight: 400; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%; font: 400 var(--t-base) var(--font-text); color: var(--text);
  background: rgba(6, 12, 24, 0.7); border: 1px solid var(--linie-stark); border-radius: var(--r-s);
  padding: 0.8rem 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239DB0D0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; }
.contact-form option { background: var(--flaeche); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(15, 125, 206,0.25); }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form [aria-invalid="true"] { border-color: var(--orange); }
.contact-form .check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; font-weight: 400; }
.contact-form .check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--blau); }
.contact-form .btn { justify-self: start; }
.form-msg { margin: 0; min-height: 1.5em; color: #fff; font-weight: 500; }
@media (max-width: 860px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contact-cards { grid-template-columns: 1fr; } }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--linie); color: var(--text-3); padding: 2.5rem 0; font-size: var(--t-sm); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-brand { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 700; line-height: 1.4; }
.footer-brand span { font-family: var(--font-text); font-weight: 400; color: var(--text-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { margin: 0; }

/* --- Einblenden beim Scrollen ---------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .console { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --- Unterseiten (Impressum, Datenschutz) ---------------------------------- */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
.legal h1 { font-size: var(--t-2xl); }
.legal h2 { font-size: var(--t-lg); margin-top: 2.25rem; }
.legal p { color: var(--text-2); }
.todo { background: rgba(245, 181, 74, 0.1); border-left: 4px solid var(--orange); padding: 0.9rem 1.1rem; border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--text) !important; }

/* --- Fernwartungs-Seite ---------------------------------------------------- */
.rp-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.rp-title { max-width: 16ch; }
.rp-steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rp-steps li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--r-m); background: var(--flaeche); border: 1px solid var(--linie); }
.rp-steps .t-num { flex: none; margin: 0; width: 48px; height: 48px; font-size: 1.2rem; box-shadow: 0 0 24px rgba(15, 125, 206,0.45); }
.rp-steps h2 { font-size: var(--t-lg); margin: 0.2rem 0 0.3rem; }
.rp-steps p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.rp-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.muted { color: var(--text-3); }

.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dl-card {
  --mx: 50%; --my: 0%; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.8rem; border-radius: var(--r-m); border: 1px solid var(--linie);
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(15, 125, 206, 0.12), transparent 40%), var(--flaeche);
}
.dl-card h3 { font-size: var(--t-xl); margin-bottom: 0.4rem; }
.dl-card p { color: var(--text-2); font-size: 0.95rem; }
.dl-card .btn { margin-top: auto; width: 100%; text-align: center; }
.dl-alt { display: block; margin-top: 0.9rem; font-size: 0.82rem; color: var(--text-3); line-height: 1.45; }
.dl-alt:hover { color: var(--blau-hell); }
.dl-card.is-mine { border-color: rgba(108, 180, 238,0.6); box-shadow: 0 30px 80px -30px rgba(15, 125, 206,0.7); background: radial-gradient(500px circle at var(--mx) var(--my), rgba(15, 125, 206, 0.2), transparent 45%), linear-gradient(160deg, #11224A, var(--flaeche) 70%); }
.dl-badge { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 0.75rem; font-weight: 600; color: #fff; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--verlauf); }
.dl-badge[hidden] { display: none; }
.codeline { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0.55rem 0.55rem 0.55rem 0.8rem; border-radius: var(--r-s); background: rgba(6,12,24,0.8); border: 1px solid var(--linie); }
.codeline code { font: 0.8rem var(--font-mono); color: var(--cyan); overflow-x: auto; white-space: nowrap; flex: 1; }
.copy-btn { flex: none; font: 600 0.75rem var(--font-text); color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--linie-stark); border-radius: 999px; padding: 0.35rem 0.7rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.copy-btn:hover { background: rgba(15, 125, 206,0.35); }
.copy-btn.done { background: rgba(52,211,153,0.2); border-color: rgba(52,211,153,0.5); color: var(--gruen); }
.notice { margin-top: 1.5rem; padding: 1.2rem 1.4rem; border-radius: var(--r-m); background: rgba(245,181,74,0.07); border: 1px solid rgba(245,181,74,0.3); }
.notice strong { color: var(--orange); }
.notice p { margin: 0.3rem 0 0; color: var(--text-2); max-width: none; }

.server-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.howto { margin: 1.5rem 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; color: var(--text-2); }
.howto li::marker { color: var(--blau-hell); font-weight: 700; }
.howto strong { color: var(--text); }
.os-tips p { font-size: 0.92rem; color: var(--text-2); padding: 0.9rem 1rem; border-radius: var(--r-s); background: var(--flaeche); border: 1px solid var(--linie); }
.os-tips strong { color: var(--text); }
.server-card { border-radius: var(--r-l); overflow: hidden; background: rgba(10,19,36,0.92); border: 1px solid rgba(108, 180, 238,0.35); box-shadow: 0 40px 100px -30px rgba(15, 125, 206,0.55); }
.server-values { margin: 0; padding: 0.6rem 1.2rem; }
.server-values div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.8rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--linie); }
.server-values dt { color: var(--text-3); font-size: 0.85rem; }
.server-values dd { margin: 0; display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.server-values code { font: 0.86rem var(--font-mono); color: #fff; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.server-values code.key { color: var(--cyan); font-size: 0.8rem; }
.server-hint { margin: 0; padding: 1rem 1.2rem 1.3rem; font-size: 0.85rem; color: var(--text-2); }

.session-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.call-box { padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--r-l); position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 0%, rgba(56,212,242,0.3), transparent 60%), linear-gradient(135deg, #1A4FE0, #0B2A7A 65%, #0A1A40); border: 1px solid rgba(108, 180, 238,0.35); }
.call-box p { color: #C8D8FF; }
.call-btn { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--r-m); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; text-decoration: none; transition: background-color 0.2s; }
.call-btn:hover { background: rgba(255,255,255,0.18); }
.call-btn svg { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: #fff; color: #1A4FE0; flex: none; }
.call-btn small { display: block; font-size: 0.8rem; color: #C8D8FF; }
.call-btn strong { font: 700 clamp(1.4rem, 3vw, 1.8rem)/1.1 var(--font-display); letter-spacing: -0.01em; }
.call-status { margin: 1.2rem 0 0; color: #C8D8FF; font-size: 0.85rem; white-space: normal; }
.safety { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.safety li { padding: 1.1rem 1.2rem 1.1rem 3.2rem; border-radius: var(--r-m); background: var(--flaeche); border: 1px solid var(--linie); color: var(--text-2); position: relative; }
.safety li::before { content: ""; position: absolute; left: 1.1rem; top: 1.2rem; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52,211,153,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2334D399' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.safety strong { display: block; color: var(--text); margin-bottom: 0.15rem; }
.coop-note { margin-top: 2.5rem; font-size: var(--t-sm); color: var(--text-3); }

@media (max-width: 960px) {
  .rp-steps, .dl-grid { grid-template-columns: 1fr; }
  .server-grid, .session-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .server-values div { grid-template-columns: 1fr; gap: 0.3rem; } }

/* --- Rechtstexte (Impressum, Datenschutz, AGB) ----------------------------- */
.legal-wrap { max-width: 860px; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal ul, .legal ol { color: var(--text-2); padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--blau-hell); overflow-wrap: anywhere; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; color: var(--text-2); }
.legal td, .legal th { border: 1px solid var(--linie); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.legal-toc ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.4rem; }
.legal-box { margin: 1.25rem 0; padding: 1.2rem 1.4rem; border: 1px solid var(--linie); border-radius: var(--r-m); background: var(--flaeche); }
.legal-box p { margin: 0.5rem 0; }

/* --- Partner & Netzwerk (wird im Admin-Bereich gepflegt) ------------------- */
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.partner-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.6rem; border-radius: var(--r-m); background: var(--flaeche); border: 1px solid var(--linie); transition: border-color 0.2s, transform 0.2s; }
.partner-card:hover { border-color: var(--linie-stark); transform: translateY(-2px); }
/* Logo-Feld nutzt die ganze Kartenbreite, damit auch breite Logos (Schriftzüge) gut lesbar sind */
.partner-logo { height: 104px; border-radius: 14px; overflow: hidden; margin-bottom: 0.9rem; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px 14px; }
.partner-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* ohne Logo: kleines Feld mit Anfangsbuchstaben */
.partner-logo:has(.partner-initials) { width: 64px; height: 64px; padding: 0; background: var(--flaeche-2); }
.partner-initials { font-family: var(--font-display); font-size: 1.4rem; color: var(--blau-hell); }
.partner-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.partner-card h3 { font-size: var(--t-lg); margin: 0; }
.partner-card p { margin: 0.2rem 0 0; color: var(--text-2); font-size: 0.95rem; }
.partner-link { margin-top: auto; padding-top: 0.8rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.partner-link:hover { text-decoration: underline; }
.main-nav a[hidden] { display: none; }

/* Kontaktformular: Spamschutz-Feld und Rückmeldung */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-ok { color: var(--gruen); }
.form-msg.is-err { color: var(--orange); }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }

/* --- Team (wird im Admin-Bereich gepflegt) --------------------------------- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.team-card { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1rem 1.4rem; border-radius: var(--r-m); background: var(--flaeche); border: 1px solid var(--linie); }
.team-photo { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--r-m) - 6px); overflow: hidden; margin-bottom: 0.8rem; background: linear-gradient(160deg, #13234A, var(--flaeche)); display: grid; place-items: center; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.team-initials { font-family: var(--font-display); font-size: 2.4rem; color: var(--blau-hell); }
.team-card h3 { font-size: var(--t-lg); margin: 0; padding: 0 0.3rem; }
.team-role { font-size: 0.85rem; color: var(--blau-hell); padding: 0 0.3rem; }
.team-card p { margin: 0.4rem 0 0; color: var(--text-2); font-size: 0.95rem; padding: 0 0.3rem; }
.team-contact { font-size: 0.88rem !important; }
.team-contact a { text-decoration: none; }
