/* ==========================================================================
   TOSA Informatik GmbH – Stylesheet
   ========================================================================== */

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff") format("woff");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben, Abstände, Formen ---------- */
:root {
  --navy-900: #0A1420;
  --navy-800: #0E1B2A;
  --navy-700: #16283B;
  --navy-600: #263B52;
  --navy-500: #3A4E64;

  --petrol: #22809A;
  --petrol-dark: #1F5866;
  --petrol-darker: #163F49;
  --cyan: #8FD3E4;
  --amber: #F2B661;

  --ink: #13202E;
  --text: #33424F;
  --muted: #4A5868;
  --soft: #5D6B78;
  --line: #DCE3E1;
  --line-strong: #C9D6D3;
  --bg: #F4F6F5;
  --bg-tint: #E3EFEC;
  --white: #FFFFFF;

  --on-dark: #C7D1DC;
  --on-dark-muted: #A9B6C4;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 71px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  overflow-wrap: break-word;
  hyphens: manual;
}

p, ul, ol, figure, blockquote { margin: 0; }

a { color: var(--petrol-dark); }
a:hover { color: var(--petrol-darker); }

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

[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */
.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 96px; }
.section--flush-top { padding-top: 0; }

.stack { display: flex; flex-direction: column; }
.stack--4 { gap: 4px; }
.stack--12 { gap: 12px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
}

/* ---------- Typografie-Bausteine ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol-dark);
}
.kicker--light { color: var(--cyan); }

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: 40px;
}
.section-head--wide { max-width: none; }
.section-head p { color: var(--muted); }

.lead { font-size: 19px; color: var(--on-dark); max-width: 34rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn--lg { min-height: 52px; padding: 0 28px; }
.btn--primary { background: var(--petrol); color: var(--white); }
.btn--primary:hover { background: #1C6F86; color: var(--white); }
.btn--ghost { background: var(--navy-800); border-color: #4A5B6E; color: var(--white); font-weight: 500; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.self-start { align-self: flex-start; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 27, 42, 0);
  border-bottom: 1px solid rgba(143, 211, 228, 0);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header--overlay { margin-bottom: calc(-1 * var(--header-h)); }
.site-header.is-solid,
.site-header--solid {
  background: rgba(14, 27, 42, 0.94);
  border-bottom-color: rgba(143, 211, 228, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav__link {
  padding: 10px 0;
  color: #DDE4EC;
  text-decoration: none;
}
.nav__link:hover { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); }
.nav .btn { min-height: 44px; padding: 0 20px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--navy-500);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.burger svg { margin: auto; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .site-header { background: var(--navy-800); }
  .site-header--overlay { margin-bottom: 0; }
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--navy-800);
    border-bottom: 1px solid var(--navy-600);
    font-size: 17px;
  }
  .nav:not(.is-open) { display: none; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--navy-700); }
  .nav__link:hover { box-shadow: none; }
  .nav .btn { margin-top: 16px; min-height: 48px; }
}

/* ---------- Bereiche mit Netz-Bild ---------- */
.dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--white);
}
.dark__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Netz-Bild bleibt beim Scrollen stehen, der Inhalt gleitet darüber.
   Läuft direkt im Browser (ohne JavaScript beim Scrollen) und ist darum ruckelfrei.
   Das Bild ist überall bildschirmhoch – dadurch überall gleich gross. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .dark { view-timeline-name: --netz; view-timeline-inset: 0px; }
    .dark__bg {
      top: 0;
      bottom: auto;
      height: 100vh;
      height: 100lvh;
      animation: netz-fest linear both;
      animation-timeline: --netz;
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes netz-fest {
  from { transform: translateY(-100vh); }
  to { transform: translateY(var(--sec-h, 0px)); }
}
.dark__bg--quote { object-position: 50% 30%; }
.dark__shade { position: absolute; inset: 0; background: rgba(14, 27, 42, 0.45); }
.dark__shade--strong { background: rgba(14, 27, 42, 0.6); }
.dark > .container,
.dark > figure { position: relative; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 96px) 0 112px; }
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero { padding-top: 72px; }
}

.status {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-lg);
}
.status__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark-muted);
}
.status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy-800);
  border-radius: var(--radius);
}
.status__state { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }
.status__state--busy { color: var(--amber); }
.status__note { margin-top: 4px; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Kurzübersicht ---------- */
.facts {
  position: relative;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: -48px;
  padding: 28px;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(14, 27, 42, 0.08);
}
.facts strong { display: block; font-family: var(--font-display); font-size: 18px; }
.facts span { font-size: 15px; color: var(--muted); }

/* ---------- Angebote (Reiter) ---------- */
.tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 36px;
  padding: 6px;
  background: #E3EAE8;
  border-radius: var(--radius-lg);
}
.tab {
  min-width: 0;
  min-height: 48px;
  padding: 6px 24px;
  line-height: 1.2;
  text-align: center;
  hyphens: manual;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--navy-800); color: var(--white); font-weight: 600; }

.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.offer__img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.offer__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 48px); }
.offer__title { font-weight: 800; font-size: 28px; line-height: 1.15; }
.offer__body > p { color: var(--text); }
.offer__more { margin-top: -6px; padding-left: 32px; font-style: italic; color: var(--muted) !important; }
.offer__body .btn { margin-top: auto; }
/* Alle Angebote gleich hoch: übereinander gestapelt, nur das gewählte sichtbar */
.offers { display: grid; }
.offers > .offer { grid-area: 1 / 1; }
.offers > .offer[hidden] { display: grid !important; visibility: hidden; }

.checklist { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 4px; color: var(--petrol-dark); }
.checklist--light { gap: 12px; color: #DDE4EC; }
.checklist--light svg { color: var(--cyan); }

/* ---------- Leistungen ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card__icon { color: var(--petrol-dark); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }

/* ---------- Supportpakete ---------- */
.packages {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  margin-top: 48px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
}
.packages__text { display: flex; flex-direction: column; gap: 16px; }
.packages__title { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.packages__note { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.packages__note svg { flex: none; margin-top: 3px; color: var(--petrol-dark); }
.packages__list { display: grid; gap: 12px; padding: 0; list-style: none; }
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
}
.package--best { border-color: var(--petrol); border-left-color: var(--petrol); }
.package__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
.package__desc { color: var(--muted); }
.package__short { display: none; }
.text-short { display: none; }
.package__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 10px;
  background: var(--petrol);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Websites ---------- */
.websites {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  margin-top: 48px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.websites__text { display: flex; flex-direction: column; gap: 16px; }
.websites__title { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.websites__text p { color: var(--on-dark); }

.refs {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--navy-600);
}
.refs h3 { font-weight: 700; font-size: 18px; }
.refs--note { flex-direction: row; gap: 16px; align-items: flex-start; }
.refs--note svg { flex: none; color: var(--cyan); }
.refs--note p { margin-top: 4px; color: var(--on-dark); }
.refs--note a { color: var(--cyan); font-weight: 600; }

/* ---------- Produkte (Laufband) ---------- */
.products { margin-top: 48px; }
.products__label { font-size: 15px; font-weight: 600; color: var(--muted); }

.marquee {
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: 72px; padding: 0 72px 0 0; list-style: none; }
.marquee__list li {
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #9AA6B2;
  cursor: default;
  transition: color 0.3s ease;
}
.marquee__list li:hover { color: var(--petrol-dark); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Zitat ---------- */
.quote { padding-block: 88px; }
.quote figure {
  max-width: 820px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.quote blockquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; }
.quote figcaption { font-size: 15px; color: var(--on-dark-muted); }
.quote p { margin-top: 8px; color: var(--on-dark); }

/* ---------- Firmengeschichte ---------- */
.milestones { --min: 260px; padding: 0; list-style: none; }
.milestone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 28px 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.milestone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--line-strong);
}
.milestone--latest::before { background: var(--petrol); }
.milestone__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.milestone__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--petrol-dark);
}
.milestone__count { font-family: var(--font-mono); font-size: 13px; color: var(--soft); }
.milestone h3 { margin-top: 4px; font-weight: 700; font-size: 20px; line-height: 1.25; }
.milestone p { font-size: 16px; color: var(--muted); }

.milestone--cta {
  justify-content: space-between;
  gap: 20px;
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.milestone--cta::before { display: none; }
.milestone--cta .milestone__year { color: var(--cyan); }
.milestone--cta p { color: var(--on-dark); }

/* ---------- Fernwartung ---------- */
.remote {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
}
.remote__text { display: flex; flex-direction: column; gap: 14px; }
.remote__text p { color: var(--text); }
.downloads { display: flex; flex-wrap: wrap; gap: 16px; }
.download {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.download:hover { border-color: var(--petrol); color: var(--ink); }
.download svg { flex: none; color: var(--petrol-dark); }
.download strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
.download span span { font-size: 14px; color: var(--muted); }

/* Fernwartung gibt es nur für Windows und macOS –
   auf Handys und Tablets (Touch ohne Maus) ausblenden */
@media (hover: none) and (pointer: coarse) {
  .desktop-only { display: none !important; }
}

/* ---------- Kontakt ---------- */
.contact { padding-block: 96px; }
.dark__bg--contact { opacity: 0.4; object-position: 50% 80%; }
.contact__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.contact__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__info > p { color: var(--on-dark); }
.contact__list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; padding: 0; list-style: none; }
.contact__list li, .contact__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.contact__list svg { flex: none; color: var(--cyan); }

/* ---------- Formular ---------- */
.form {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--navy-700);
  color: var(--white);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-lg);
}
.form__title { font-weight: 800; font-size: 24px; color: var(--white); }
.form__hint { font-size: 14px; color: var(--on-dark-muted); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot .btn { gap: 12px; }

.choice { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { margin-bottom: 12px; padding: 0; font-size: 16px; font-weight: 700; color: var(--white); }
.choice-row { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.choice-row .choice { flex: 0 1 auto; }

/* Auswahl: Grundform */
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  line-height: 1.25;
  text-align: center;
  border: 1px solid var(--navy-500);
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chip:hover { border-color: var(--cyan); }
.chip[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan); color: var(--navy-800); font-weight: 600; }
.chip:focus-visible { outline: 3px solid rgba(143, 211, 228, 0.45); outline-offset: 2px; }

/* Kacheln mit Symbol (Dienstleistung) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip--tile { flex-direction: column; min-height: 104px; padding: 14px 10px; }
.chip__icon { flex: none; color: var(--cyan); }
.chip[aria-pressed="true"] .chip__icon { color: var(--navy-800); }
.chip--urgent .chip__icon { color: var(--amber); }

/* Kleine Auswahlknöpfe – innerhalb einer Gruppe gleich breit */
.pills { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-self: flex-start; }
.chip--pill { min-height: 44px; padding: 8px 18px; white-space: nowrap; }
.chip--pill svg { display: none; flex: none; }
.chip--pill[aria-pressed="true"] svg { display: block; }

/* Eingabefelder */
.fields { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; color: var(--white); }
.field input,
.field textarea {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--navy-500);
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--white);
  font: inherit;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-muted); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(143, 211, 228, 0.25); }

/* Datei-Upload */
.field__label { font-size: 15px; font-weight: 600; color: var(--white); }
.upload {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 16px 18px;
  border: 1px dashed var(--navy-500);
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--on-dark);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.upload svg { flex: none; color: var(--cyan); }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:hover, .upload.is-drag { border-color: var(--cyan); background: #12253A; }
.upload:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(143, 211, 228, 0.25); }
.upload__text strong { color: var(--cyan); }
.upload__hint { flex-basis: 100%; padding-left: 36px; font-size: 13px; color: var(--on-dark-muted); }
.upload__list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.upload__list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--navy-800); border: 1px solid var(--navy-600); font-size: 14px; }
.upload__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.upload__size { flex: none; color: var(--on-dark-muted); }
.upload__remove { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--on-dark-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.upload__remove:hover { color: var(--amber); }

.checks { display: flex; flex-direction: column; gap: 6px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 32px;
  color: #DDE4EC;
  cursor: pointer;
}
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cyan); }
.check a { color: var(--cyan); }

.error { font-size: 14px; font-weight: 500; color: var(--amber); }
.field__opt { color: var(--on-dark-muted); font-weight: 400; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--amber); }
.choice[data-invalid="true"] .chip { border-color: var(--amber); }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
}
.notice svg { flex: none; margin-top: 2px; }
.notice a { color: var(--white); font-weight: 600; }
.notice--warn { background: #2A2418; border: 1px solid var(--amber); color: #FBE3BC; }
.notice--warn svg { color: var(--amber); }
.notice--ok { background: var(--navy-800); border: 1px solid var(--cyan); color: var(--cyan); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chip--tile { min-height: 84px; padding: 10px 8px; font-size: 14px; gap: 6px; }
  .choice-row { gap: 20px; }
  .choice-row .choice { flex: 1 1 100%; }
  .pills { display: grid; width: 100%; }
  .chip--pill { padding: 8px 6px; font-size: 14px; white-space: normal; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form__foot .btn { width: 100%; }
  .hide-sm { display: none; }
  .upload__hint { padding-left: 0; }
}
@media (max-width: 360px) {
  .pills--3 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pills--3 > .chip:last-child { grid-column: 1 / -1; }
}

/* ---------- Unterseiten ---------- */
.page { background: var(--white); }
.page main { flex: 1; }
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px; font-size: 15px; text-decoration: none; }

.legal { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-block: 48px 96px; }
.legal__head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.legal__head h1 { font-weight: 800; font-size: 28px; }
.legal__head p { font-size: 15px; color: var(--muted); }
.legal__body { flex: 999 1 560px; min-width: 0; max-width: 48rem; display: flex; flex-direction: column; gap: 28px; font-size: 16px; color: var(--text); }
.legal__body h2 { font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.legal__body section > * + * { margin-top: 8px; }
.legal__body ul { padding-left: 22px; }
.legal__body li + li { margin-top: 4px; }
.legal__cols { flex: 999 1 560px; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.legal__cols address { font-style: normal; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.legal__cols strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }

.not-found { padding-block: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.not-found__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--petrol); }
.not-found p { max-width: 36rem; color: var(--muted); }

/* ---------- Handy: kompaktere Darstellung ---------- */
.swipe-dots { display: none; }

@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .section--flush-top { padding-top: 0; }
  .contact { padding-block: 64px; }
  .quote { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }

  /* Systemstatus ist Dekoration – auf dem Handy ausblenden */
  .status { display: none; }
  .hero { padding-bottom: 96px; }

  /* Kurzübersicht 2 × 2 */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 20px; }
  .facts strong { font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
  .facts span { font-size: 14px; line-height: 1.45; display: block; }

  .offer__img { min-height: 200px; max-height: 220px; }
  .offer__body { gap: 14px; }
  .websites { margin-top: 32px; }
  /* Supportpakete und Websites: auf dem Handy kürzer */
  .text-long { display: none; }
  .text-short { display: block; }
  .packages { margin-top: 32px; gap: 20px; }
  .packages__text { gap: 12px; }
  .packages__note { font-weight: 500; font-size: 15px; }
  .packages__list { gap: 0; }
  .package { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-top-width: 0; }
  .package:first-child { border-top-width: 1px; }
  .package__name { font-size: 17px; }
  .package__desc, .package__badge { display: none; }
  .package__short { display: block; font-size: 15px; color: var(--muted); text-align: right; }
  .package--best .package__short { color: var(--petrol-dark); font-weight: 600; }
  .package--best { border-top-width: 1px; }
  .websites { gap: 20px; }
  .websites__text { gap: 12px; }
  .websites__title br { display: none; }
  .websites__list { display: none; }
  .refs { padding-top: 20px; }
  .products { margin-top: 32px; }
  .form { gap: 22px; }

  /* Angebote: alle drei nebeneinander zum Wischen */
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-bottom: 20px; }
  .tab { padding: 6px 4px; font-size: 15px; }
  .offer__body .btn { align-self: stretch; padding: 0 12px; text-align: center; }
  .offers {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .offers::-webkit-scrollbar { display: none; }
  .offers > .offer { flex: 0 0 85%; grid-template-rows: auto 1fr; scroll-snap-align: start; }
  .offers > .offer[hidden] { display: grid !important; visibility: visible; }

  /* Karten zum Wischen */
  .swipe {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
  .milestone { padding: 24px 22px 26px; }
  .card { padding: 26px 24px; }

  .swipe-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .swipe-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    background: var(--line-strong);
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
  }
  .swipe-dots button[aria-current="true"] { width: 22px; background: var(--petrol); }
  .websites .swipe-dots button { background: var(--navy-500); }
  .websites .swipe-dots button[aria-current="true"] { background: var(--cyan); }
}

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--petrol);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(14, 27, 42, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #1C6F86; color: var(--white); }

/* ---------- Fusszeile ---------- */
.site-footer { padding-block: 32px; background: var(--navy-900); color: var(--on-dark-muted); font-size: 14px; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 28px; height: 28px; padding: 3px; background: var(--white); border-radius: var(--radius-sm); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--white); }
.site-footer__note { margin-top: 16px; font-size: 13px; color: #8A97A6; }
