/* =====================================================================
   Tech4Tournaments – Website
   Designsprache wie das Dashboard: Navy-Akzent, gleiche Schrift, Karten
   mit sanftem Schatten. Hell + Dunkel sorgfältig ausgearbeitet.
   ===================================================================== */

:root {
  --akzent: #1F3A5F;         /* Navy */
  --akzent-2: #2e5687;
  --akzent-hell: #EAF0F6;
  --orange: #e08a1e;
  --orange-text: #b56a10;
  --grau: #5c6774;
  --rahmen: #dce1e8;
  --gruen: #1f7a44;

  --bg: #f4f7fb;
  --karte: #ffffff;
  --karte-2: #ffffff;
  --text: #1c2430;
  --text-weich: #4a5563;
  --schatten: 0 1px 3px rgba(16,32,56,0.07);
  --schatten-hoch: 0 14px 34px rgba(16,32,56,0.14);
  --hero-grad: linear-gradient(135deg, #1F3A5F 0%, #2e5687 55%, #3a6aa5 100%);
}

[data-theme="dark"] {
  --akzent: #6ea6e8;         /* helleres Blau – lesbar auf Dunkel */
  --akzent-2: #3a6aa5;
  --akzent-hell: #1a2735;
  --orange: #eaa243;
  --orange-text: #eaa243;
  --grau: #93a1b2;
  --rahmen: #2b3745;
  --gruen: #6fcf97;

  --bg: #0e1319;
  --karte: #161d26;
  --karte-2: #1b2531;
  --text: #e7ebf1;
  --text-weich: #b3becb;
  --schatten: 0 1px 3px rgba(0,0,0,0.35);
  --schatten-hoch: 0 16px 40px rgba(0,0,0,0.55);
  --hero-grad: linear-gradient(135deg, #0d141d 0%, #16273a 55%, #1f3a5a 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

a { color: var(--akzent); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }

/* ---------- Kopfzeile ---------- */
.topbar {
  background: var(--akzent-2);
  color: #fff;
  height: 62px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
[data-theme="dark"] .topbar { background: #10171f; border-bottom: 1px solid #1e2731; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.2px; }
.brand-sub { font-weight: 400; font-size: 0.72rem; opacity: 0.9; letter-spacing: 0.2px; margin-top: 1px; }

.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
  color: #fff; text-decoration: none; font-size: 0.96rem; opacity: 0.9;
  padding: 8px 12px; border-radius: 8px;
}
.top-nav a:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.top-nav a.cta {
  background: #fff; color: var(--akzent); font-weight: 600; opacity: 1; margin-left: 6px;
}
.top-nav a.cta:hover { background: var(--akzent-hell); }
[data-theme="dark"] .top-nav a.cta { background: var(--akzent); color: #06101c; }

.theme-btn {
  background: rgba(255,255,255,0.14); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 6px;
}
.theme-btn:hover { background: rgba(255,255,255,0.26); }

.nav-toggle {
  display: none; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 1.7rem; line-height: 1; padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-grad);
  color: #fff;
  padding: 82px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -130px; top: -130px;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,138,30,0.30), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 780px; }
.kicker {
  display: inline-block; background: rgba(255,255,255,0.14);
  color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.05rem); line-height: 1.14; margin: 0 0 18px; color: #fff; }
.hero h1 .hl { color: #f3c07f; }
.hero p.sub { font-size: 1.18rem; opacity: 0.95; margin: 0 0 30px; max-width: 640px; }
.hero-aktionen { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 13px 26px; border-radius: 11px; cursor: pointer; border: none;
  transition: transform .08s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primaer { background: var(--orange); color: #fff; }
.btn-primaer:hover { opacity: 0.93; }
.btn-hell { background: #fff; color: var(--akzent); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Abschnitte ---------- */
section { padding: 70px 0; }
.abschnitt-kopf { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.abschnitt-kopf .label {
  color: var(--orange-text); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.abschnitt-kopf h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); color: var(--akzent); margin: 8px 0 12px; }
.abschnitt-kopf p { color: var(--text-weich); font-size: 1.05rem; margin: 0; }

/* ---------- Leistungs-Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px; }
.karte {
  background: var(--karte); border: 1px solid var(--rahmen); border-radius: 16px;
  padding: 30px 26px; box-shadow: var(--schatten);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  position: relative;
}
.karte:hover { border-color: var(--akzent); transform: translateY(-4px); box-shadow: var(--schatten-hoch); }
.karte-icon {
  width: 54px; height: 54px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--akzent-hell); font-size: 1.7rem; margin-bottom: 18px;
}
.karte h3 { margin: 0 0 10px; color: var(--akzent); font-size: 1.22rem; }
.karte > p { margin: 0 0 14px; color: var(--text-weich); font-size: 0.98rem; }
.karte ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 0.95rem; }
.karte ul li { margin: 5px 0; }
.karte ul li.mehr { list-style: none; margin-left: -18px; margin-top: 8px; color: var(--text-weich); font-style: italic; }
.karte .hinweis {
  display: inline-block; margin-top: 14px; font-size: 0.8rem; color: var(--text-weich);
  background: var(--akzent-hell); padding: 5px 11px; border-radius: 999px;
}

/* ---------- Ablauf ---------- */
.ablauf-bg { background: var(--akzent-hell); }
[data-theme="dark"] .ablauf-bg { background: #121922; }
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.schritt { text-align: center; }
.schritt .nr {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--akzent); color: #fff; font-weight: 700; font-size: 1.18rem;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .schritt .nr { color: #06101c; }
.schritt h3 { color: var(--akzent); font-size: 1.06rem; margin: 0 0 6px; }
.schritt p { color: var(--text-weich); font-size: 0.94rem; margin: 0; }

/* ---------- Über uns ---------- */
.ueber { display: grid; grid-template-columns: 1fr 1.4fr; gap: 46px; align-items: center; }
.ueber-bild {
  border-radius: 18px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; padding: 30px;
  background: var(--hero-grad);
}
.ueber-bild img { max-width: 78%; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
.ueber .label { color: var(--orange-text); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.82rem; }
.ueber h2 { color: var(--akzent); font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 8px 0 16px; }
.ueber p { color: var(--text-weich); margin: 0 0 14px; }
.ueber .fakten { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.ueber .fakt .zahl { font-size: 1.55rem; font-weight: 700; color: var(--akzent); }
.ueber .fakt .txt { font-size: 0.85rem; color: var(--text-weich); }

/* ---------- Warum wir (Vorteile) ---------- */
.vorteile-bg { background: var(--akzent-hell); }
[data-theme="dark"] .vorteile-bg { background: #121922; }
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.vorteil {
  background: var(--karte); border: 1px solid var(--rahmen); border-radius: 14px;
  padding: 26px 22px; text-align: center; box-shadow: var(--schatten);
  transition: transform .12s ease, box-shadow .15s ease;
}
.vorteil:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.v-ic {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--karte-2); border: 1px solid var(--rahmen); font-size: 1.7rem;
}
.vorteil h3 { color: var(--akzent); font-size: 1.06rem; margin: 0 0 8px; }
.vorteil p { color: var(--text-weich); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* ---------- Kontakt + Formular ---------- */
.kontakt-bg { background: var(--akzent); color: #fff; }
[data-theme="dark"] .kontakt-bg { background: #10171f; }
.kontakt-bg .abschnitt-kopf h2 { color: #fff; }
.kontakt-bg .abschnitt-kopf p { color: rgba(255,255,255,0.85); }

.kontakt-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; align-items: start; }
.kontakt-info { display: flex; flex-direction: column; gap: 16px; }
.kontakt-karte {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px; padding: 20px 22px; text-decoration: none; color: #fff;
  display: flex; align-items: center; gap: 16px; transition: background .15s ease;
}
a.kontakt-karte:hover { background: rgba(255,255,255,0.15); }
.kontakt-karte .ic { font-size: 1.5rem; }
.kontakt-karte .lbl { display: block; font-size: 0.76rem; opacity: 0.72; letter-spacing: .5px; }
.kontakt-karte .val { display: block; font-weight: 600; word-break: break-word; }

/* Formular-Karte */
.form-karte {
  background: var(--karte); color: var(--text); border-radius: 18px;
  padding: 30px 28px; box-shadow: var(--schatten-hoch); border: 1px solid var(--rahmen);
}
.form-karte h3 { margin: 0 0 4px; color: var(--akzent); font-size: 1.25rem; }
.form-karte .form-sub { margin: 0 0 20px; color: var(--text-weich); font-size: 0.94rem; }

.form-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .opt { color: var(--text-weich); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--rahmen); border-radius: 10px; background: var(--bg); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(31,58,95,0.14);
}
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field textarea:focus { box-shadow: 0 0 0 3px rgba(110,166,232,0.22); }
.field.invalid input, .field.invalid textarea { border-color: #d33; box-shadow: 0 0 0 3px rgba(211,51,51,0.14); }

/* Leistungs-Auswahl (Chips) */
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border: 1px solid var(--rahmen); border-radius: 999px;
  cursor: pointer; font-size: 0.92rem; user-select: none; background: var(--bg);
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check:hover { border-color: var(--akzent); }
.check:has(input:checked) { background: var(--akzent); border-color: var(--akzent); color: #fff; }
[data-theme="dark"] .check:has(input:checked) { color: #06101c; }
.service-select.invalid { outline: 2px solid #d33; outline-offset: 4px; border-radius: 12px; }
.check-sub { opacity: 0.75; font-size: 0.85em; }
.check:has(input:checked) .check-sub { opacity: 0.9; }

.onsite-hinweis {
  margin: 12px 0 0; padding: 11px 14px; font-size: 0.86rem; line-height: 1.5;
  color: var(--orange-text); background: rgba(224,138,30,0.10);
  border: 1px solid rgba(224,138,30,0.35); border-radius: 10px;
}
[data-theme="dark"] .onsite-hinweis { background: rgba(234,162,67,0.10); border-color: rgba(234,162,67,0.35); }
.onsite-hinweis strong { color: var(--orange-text); }

/* Einwilligung */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-weich); }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--akzent); }
.consent.invalid { color: #d33; }
.consent a { color: var(--akzent); }

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

.form-status { margin-top: 14px; font-size: 0.92rem; padding: 0; min-height: 1px; }
.form-status.ok { color: var(--gruen); background: rgba(31,122,68,0.10); padding: 12px 14px; border-radius: 10px; }
.form-status.err { color: #d33; background: rgba(211,51,51,0.10); padding: 12px 14px; border-radius: 10px; }

.form-karte button[type="submit"] { width: 100%; margin-top: 6px; }
.form-karte button[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Fußzeile ---------- */
.fusszeile { background: var(--bg); border-top: 1px solid var(--rahmen); padding: 40px 0 34px; }
.fz-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.fz-brand { display: flex; align-items: center; gap: 12px; }
.fz-brand img { height: 34px; }
.fz-brand .name { font-weight: 700; color: var(--text); }
.fz-brand .claim { font-size: 0.82rem; color: var(--text-weich); }
.fz-links { display: flex; gap: 22px; flex-wrap: wrap; }
.fz-links a { color: var(--text-weich); text-decoration: none; font-size: 0.9rem; }
.fz-links a:hover { color: var(--akzent); text-decoration: underline; }
.fz-copy { width: 100%; text-align: center; color: var(--text-weich); font-size: 0.82rem; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rahmen); }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; margin: 40px auto 60px; }
.legal h1 { color: var(--akzent); }
.legal h2 { color: var(--akzent); font-size: 1.2rem; margin-top: 30px; }
.legal p, .legal li { color: var(--text-weich); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--akzent); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .kontakt-layout { grid-template-columns: 1fr; gap: 24px; }
  .ueber { grid-template-columns: 1fr; }
  .ueber-bild { max-width: 240px; margin: 0 auto; }
}

@media (max-width: 720px) {
  section { padding: 54px 0; }
  .hero { padding: 60px 0 66px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .top-nav {
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--akzent-2); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px; box-shadow: 0 12px 24px rgba(0,0,0,0.28);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease;
  }
  [data-theme="dark"] .top-nav { background: #10171f; }
  .top-nav.open { max-height: 400px; opacity: 1; pointer-events: auto; }
  .top-nav a { padding: 13px 14px; border-radius: 10px; }
  .top-nav a.cta { margin: 6px 4px; text-align: center; }
  .theme-btn { margin: 6px 4px; width: auto; height: 42px; }
  .form-zeile { grid-template-columns: 1fr; gap: 0; }
  .hero-aktionen .btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .karte:hover { transform: none; }
}
