/* =========================================================
   IT-Service Kinder – Stylesheet
   Farben, Schriften und Abstände stehen oben als Variablen.
   ========================================================= */

:root {
  --bg:      #14122b;   /* tiefes Nacht-Indigo */
  --bg-2:    #1a1736;   /* abgesetzte Sektionen */
  --panel:   #221e45;   /* Flächen, Karten */
  --line:    #3b3572;   /* Linien, Rahmen */
  --text:    #efecff;   /* Haupttext */
  --muted:   #aaa5d0;   /* Nebentext */
  --cyan:    #4de8ff;   /* Akzent 1: Neon-Cyan */
  --pink:    #ff4f9a;   /* Akzent 2: Neon-Magenta */
  --amber:   #ffc857;   /* Hinweis / "repariert" */

  --font-head: "Bahnschrift", "DIN Alternate", "D-DIN", "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", "SF Mono", monospace;

  --cut: 14px;          /* Größe der abgeschrägten Ecken */
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--bg); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* ---------- Abgeschrägte Ecken: das Erkennungsmerkmal ---------- */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ---------- Buttons ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter .2s, background-color .2s, color .2s;
}
.btn--primary {
  background: linear-gradient(100deg, var(--pink), #ff7a6b);
  color: #1a0b1c;
}
.btn--primary:hover { color: #1a0b1c; filter: brightness(1.12); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { color: var(--cyan); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn:focus-visible { outline: none; filter: brightness(1.15); box-shadow: 0 0 0 3px var(--cyan); }

/* ---------- Kopfleiste ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(20 18 43 / .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(59 53 114 / .6);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand__mark { width: 32px; height: 32px; color: var(--cyan); }
.brand__name { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .01em; }
.brand__name b { color: var(--pink); font-weight: 600; }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 14px;
  font-family: var(--font-head); font-size: 1.02rem;
}
.nav a:hover { color: var(--text); }
.nav .nav__cta {
  color: var(--cyan); margin-left: 8px;
  box-shadow: inset 0 0 0 1.5px var(--cyan);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nav .nav__cta:hover { background: var(--cyan); color: var(--bg); }

.navtoggle { display: none; }

@media (max-width: 860px) {
  .navtoggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1.5px solid var(--line); color: var(--text); cursor: pointer;
  }
  .navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
  }
  .navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
  .navtoggle__bars::before { top: -6px; }
  .navtoggle__bars::after  { top: 6px; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgb(59 53 114 / .5); font-size: 1.15rem; }
  .nav .nav__cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 140px);
  background:
    radial-gradient(60% 50% at 85% 20%, rgb(255 79 154 / .16), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgb(77 232 255 / .10), transparent 70%),
    var(--bg);
}

/* Perspektivisches Raster als "Boden" – der Cyberpunk-Horizont */
.hero__grid {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%;
  background-image:
    linear-gradient(rgb(77 232 255 / .22) 1px, transparent 1px),
    linear-gradient(90deg, rgb(77 232 255 / .22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: .98rem; margin-bottom: 20px;
}
.dot {
  width: 9px; height: 9px; background: #4dffb0; border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(77 255 176 / .15), 0 0 12px #4dffb0;
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(95deg, #ffffff 30%, #c9f7ff 65%, #ffc2dc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 36em; margin-bottom: 32px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  color: var(--muted); font-size: .98rem;
}
.hero__facts strong { color: var(--text); font-weight: 600; }
.hero__facts li { padding-left: 16px; position: relative; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  background: var(--cyan); transform: rotate(45deg);
}

/* ---------- Konsole im Hero ---------- */
.console {
  --cut: 18px;
  position: relative;
  background: linear-gradient(160deg, #241f4c, #19163a);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: .92rem;
}
.console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px);
}
.console__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px 14px 26px; border-bottom: 1px solid var(--line);
}
.console__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console__bar span:first-child { background: var(--pink); }
.console__bar em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .82rem; }

.console__lines { list-style: none; margin: 0; padding: 20px 24px 26px; }
.console__lines li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0; color: var(--text);
}
.console__lines li::before { flex: none; width: 1.4em; font-weight: 700; }
.console__lines li[data-state="ok"]::before   { content: "✓"; color: #4dffb0; }
.console__lines li[data-state="fix"]::before  { content: "!"; color: var(--amber); text-align: center; }
.console__lines li[data-state="done"]::before { content: "›"; color: var(--cyan); }
.console__lines li i {
  margin-left: auto; font-style: normal; color: var(--muted); font-size: .85rem; white-space: nowrap;
}
.console__lines li[data-state="fix"] i { color: var(--amber); }
.console__lines li[data-state="done"] {
  margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--cyan);
}

/* Der eine orchestrierte Moment: Zeilen erscheinen nacheinander */
.js .console__lines li { opacity: 0; transform: translateX(-6px); }
.js .console.is-running .console__lines li {
  animation: line-in .35s ease-out forwards;
  animation-delay: calc(var(--i) * 420ms + 300ms);
}
@keyframes line-in { to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .console { max-width: 520px; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid rgb(59 53 114 / .45); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--muted); font-size: 1.12rem; }

/* ---------- Leistungen: Reiter ---------- */
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }

.tabs__list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.tabs__list [role="tab"] {
  position: relative;
  text-align: left; background: none; border: 0; cursor: pointer;
  padding: 14px 18px 14px 22px;
  font-family: var(--font-head); font-size: 1.12rem; color: var(--muted);
  transition: color .15s, background-color .15s;
}
.tabs__list [role="tab"]::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px;
  background: transparent; transition: background-color .15s, box-shadow .15s;
}
.tabs__list [role="tab"]:hover { color: var(--text); background: rgb(34 30 69 / .5); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--text); background: var(--panel); }
.tabs__list [role="tab"][aria-selected="true"]::before { background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.tabs__list [role="tab"]:focus-visible { outline-offset: -2px; }

.panel {
  --cut: 22px;
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgb(77 232 255 / .07), transparent 40%),
    var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 320px;
}
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panel-in .25s ease-out; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

.panel__intro h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .6em; }
.panel__intro p { color: var(--muted); font-size: 1.08rem; }

.panel__list { list-style: none; margin: 0; padding: 0; align-self: center; }
.panel__list li {
  padding: 12px 0 12px 28px; position: relative;
  border-bottom: 1px solid rgb(59 53 114 / .7);
}
.panel__list li:last-child { border-bottom: 0; }
.panel__list li::before {
  content: ""; position: absolute; left: 4px; top: 1.25em; width: 8px; height: 8px;
  border: 1.5px solid var(--cyan); transform: rotate(45deg);
}

@media (max-width: 960px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__list {
    flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line);
    scrollbar-width: thin; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  }
  .tabs__list [role="tab"] { white-space: nowrap; padding: 12px 16px; flex: none; }
  .tabs__list [role="tab"]::before { left: 10px; right: 10px; top: auto; bottom: -1px; width: auto; height: 3px; }
  .panel { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: none;
}
.step { position: relative; padding: 0 28px 0 0; }
.step__no {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--bg);
  background: var(--cyan);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative; z-index: 1;
}
.step:last-child .step__no { background: var(--pink); }
.step::before {
  content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgb(77 232 255 / .1));
}
.step:last-child::before { display: none; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding: 0 0 0 76px; }
  .step__no { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before { top: 52px; bottom: -36px; left: 26px; right: auto; width: 1px; height: auto;
    background: linear-gradient(var(--cyan), rgb(77 232 255 / .1)); }
}

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about--solo { grid-template-columns: 1fr; max-width: 980px; }
.about__frame {
  --cut: 24px;
  aspect-ratio: 4 / 5; position: relative;
  display: grid; place-items: center; align-content: center; gap: 10px;
  background:
    linear-gradient(160deg, rgb(255 79 154 / .25), transparent 50%),
    linear-gradient(340deg, rgb(77 232 255 / .2), transparent 50%),
    var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: .95rem;
}
.about__frame svg { width: 45%; fill: none; stroke: var(--line); stroke-width: 3; }
.about__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__lead { font-size: 1.3rem; line-height: 1.5; color: var(--text); }
.about__text > p:not(.about__lead) { color: var(--muted); max-width: 40em; }

.values { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values li { border-top: 2px solid var(--line); padding-top: 16px; }
.values li:first-child { border-top-color: var(--cyan); }
.values h3 { font-size: 1.15rem; margin-bottom: .3em; }
.values p { color: var(--muted); font-size: .98rem; margin: 0; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 300px; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-head); font-size: 1.22rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  color: var(--cyan); font-size: 1.4rem; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .2s;
}
.faq__list details[open] summary::after { content: "–"; color: var(--pink); }
.faq__list summary:hover { color: var(--cyan); }
.faq__list details p { color: var(--muted); padding: 0 52px 22px 4px; margin: 0; max-width: 46em; }

/* ---------- Kontakt ---------- */
.contact {
  background:
    radial-gradient(50% 70% at 0% 100%, rgb(255 79 154 / .12), transparent 70%),
    var(--bg);
}
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__text p { color: var(--muted); font-size: 1.12rem; }
.contact__ways { margin: 36px 0 0; display: grid; gap: 18px; }
.contact__ways div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.contact__ways dt { color: var(--muted); font-size: .95rem; }
.contact__ways dd { margin: 0; font-size: 1.1rem; }
.contact__ways a { color: var(--text); text-decoration-color: var(--pink); }
.contact__ways a:hover { color: var(--pink); }

.form {
  --cut: 22px;
  display: grid; gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .95rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(77 232 255 / .2);
}
.field [aria-invalid="true"] { border-color: var(--pink); }
::placeholder { color: #6f6a9b; }
.form__note { font-size: .88rem; color: var(--muted); margin: 0; }
.form__error { color: var(--pink); margin: 0; font-weight: 500; }
.form .btn { justify-self: start; }

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__ways div { grid-template-columns: 1fr; gap: 2px; }
  .form .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--cyan); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1em; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal .todo {
  background: rgb(255 200 87 / .12); color: var(--amber);
  padding: 2px 6px; font-family: var(--font-mono); font-size: .92em;
}
.legal .hinweis {
  border-left: 3px solid var(--amber); background: rgb(255 200 87 / .06);
  padding: 16px 20px; color: var(--text); margin-bottom: 2em;
}

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .console__lines li { opacity: 1; transform: none; }
}
