/* geovindex – Bauwerk- und Geländeüberwachung
   Schriften lokal eingebunden (keine Verbindung zu Google Fonts). */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #1d6687;
  --accent-dark: #134b64;
  --accent-light: #7fb6cf;
  --brand-navy: #0E2A3B;
  --brand-teal: #2A6F8A;
  --brand-sky: #7CC3DA;
  --brand-cream: #F3F1EC;
  --brand-orange: #E8833A;
  --ink: #141414;
  --black: #000000;
  --muted: #eff3f5;
  --muted-2: #f5f7f8;
  --text-2: #3a3a3a;
  --text-3: #525252;
  --line: #d3dade;
  --warn: #f0b429;
  --alarm: #d9534f;
  --ok: #7fb24a;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-top: 80px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--black); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.stack { display: flex; flex-direction: column; }

/* ---------- Wortmarke ---------- */
.wordmark { font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif; font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--brand-cream); }
.wordmark .geo { color: var(--brand-sky); font-weight: 500; }
.wordmark-dark { color: var(--brand-navy); }
.wordmark-dark .geo { color: var(--brand-teal); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--black); color: #fff; border-bottom: 1px solid #262626; }
.site-header nav { max-width: 1240px; margin: 0 auto; padding: 16px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .wordmark { font-size: 26px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav-links a:not(.btn-light) { color: #d4d4d4; text-decoration: none; }
.nav-links a:not(.btn-light):hover, .nav-links a:not(.btn-light)[aria-current="page"] { color: #fff; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: 0.06em; }
.lang-switch span { color: #525252; }
.nav-links .lang-switch a { color: #a3a3a3; text-decoration: none; padding: 4px 2px; }
.nav-links .lang-switch a:hover { color: #fff; }
.nav-links .lang-switch a[aria-current] { color: #fff; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn, .btn-outline, .btn-light, .btn-outline-dark {
  display: inline-block; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.55;
  text-decoration: none; border: none; cursor: pointer; padding: 15px 26px;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 1px solid #525252; background: transparent; color: #fff; padding: 14px 26px; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-light { background: #fff; color: var(--black); font-size: 15px; padding: 12px 20px; }
.btn-light:hover { background: #e5e5e5; color: var(--black); }
.btn-outline-dark { padding: 14px 24px; background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ---------- Typo ---------- */
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.h1-hero { font-weight: 900; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; }
.h2 { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; text-transform: uppercase; }
.h1-page { font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.h3 { font-size: 26px; font-weight: 700; line-height: 1.25; }
.lead { font-size: 19px; color: var(--text-2); }
.caption { font-size: 14px; color: var(--text-3); }
.upper { text-transform: uppercase; letter-spacing: 0.04em; }
.muted { color: var(--text-3); }
.small { font-size: 15px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* ---------- Sections ---------- */
.sec { padding: 112px 0 96px; }
.sec-muted { background: var(--muted); }
.sec-dark { background: var(--black); color: #fff; }

/* Hero */
.hero-grid { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; padding: 96px 0 64px; display: flex; flex-direction: column; gap: 28px; }
.hero-text .kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a3a3; }
.hero-text .sub { font-size: 22px; font-weight: 300; color: #e2e2e2; max-width: 36rem; }
.hero-visual { flex: 1 1 520px; min-width: 0; padding: 0 0 48px; }
.hero-visual figure { position: relative; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; padding: 32px 0 8px; }
.hero-visual svg { display: block; width: 100%; height: auto; }
.hero-visual .flag { position: absolute; top: 10px; left: 58.5%; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); }

.domains { border-top: 1px solid #262626; }
.domains .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; padding-top: 40px; padding-bottom: 56px; }
.domain { border: 1px solid #333; padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.domain .lbl { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a3a3; }
.domain p { font-size: 17px; color: #f2f2f2; }
.domain-accent { background: var(--accent); border-color: var(--accent); }
.domain-accent .lbl { color: #e6f1f6; }
.domain-accent p { color: #fff; }

/* Grids */
.grid { display: grid; gap: 24px; }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.g-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.g-220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.tiles { gap: 2px; background: var(--line); border: 2px solid var(--line); }
.tile { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.tile .num { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tile strong { font-size: 18px; text-transform: uppercase; }
.tile-accent { background: var(--accent); color: #fff; }
.tile-accent .num { color: #e6f1f6; }
.tile-accent .muted { color: #eef4f7; }
.tile svg.ico { width: 28px; height: 28px; }

.box { background: var(--muted); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.box .num { font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }
.box strong { font-size: 17px; text-transform: uppercase; font-weight: 900; }
.box span:last-child { color: var(--text-2); font-size: 15px; }
.box-accent { background: var(--accent); color: #fff; }
.box-accent .num { color: #e6f1f6; }
.box-accent span:last-child { color: #fff; }

.rule-top { border-top: 3px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { min-width: 0; }

figure.diagram { background: var(--muted-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
figure.diagram svg { display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto; }
figure.diagram.compact svg { max-width: 420px; }
.sec-muted figure.diagram { background: #fff; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips .lbl { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.chip { font-size: 15px; border: 1px solid #c4ccd0; padding: 6px 14px; background: #fff; }

/* Datenkette mit Pfeilen */
.chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.chain .tile { flex: 1 1 200px; }
.chain .arrow { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); min-width: 28px; }
.chain .arrow svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .chain { flex-direction: column; }
  .chain .tile { flex: 1 1 auto; }
  .chain .arrow { flex-direction: row; min-height: 28px; }
  .chain .arrow svg { transform: rotate(90deg); }
}

/* Feature-Liste mit Icons */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; }
.feature { display: flex; gap: 18px; }
.feature .ico { flex: none; width: 52px; height: 52px; background: #fff; display: flex; align-items: center; justify-content: center; }
.feature .ico svg { width: 26px; height: 26px; }
.feature strong { display: block; font-size: 17px; text-transform: uppercase; font-weight: 900; }
.feature span { color: var(--text-2); }
.points { display: flex; flex-direction: column; gap: 22px; flex: 1 1 340px; }
.points strong { display: block; text-transform: uppercase; font-weight: 900; }
.points span { color: var(--text-2); }

/* Kennzahlen */
.stat-big { padding: 32px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.stat-big b { font-size: 56px; font-weight: 300; line-height: 1; color: var(--accent); }
.stat-big .lbl { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.stat-big span:last-child { color: var(--text-2); }
.stat-accent { background: var(--accent); color: #fff; }
.stat-accent b { color: #fff; }
.stat-accent .lbl { color: #e6f1f6; }
.stat-accent span:last-child { color: #fff; }

/* Ablauf */
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.flow li { background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.badge { flex: none; width: 40px; height: 40px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Portal-Mockups ---------- */
.portal { border: 1px solid var(--line); background: #fff; }
.portal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 18px; border-bottom: 1px solid #e3e8eb; }
.portal-bar .wordmark { font-size: 18px; letter-spacing: -0.02em; }
.portal-bar .wordmark small { font-family: 'Rubik', sans-serif; font-weight: 400; font-size: 14px; color: #4a4a4a; letter-spacing: 0; margin-left: 4px; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #4a4a4a; }
.portal-tabs .on { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.portal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 16px 18px 18px; }
.portal-map { background: #eef2e9; min-height: 200px; }
.portal-map svg { display: block; width: 100%; height: 100%; }
.gauges { align-content: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gauge { background: var(--muted-2); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); }
.gauge svg { width: 100%; max-width: 120px; height: auto; }
.gauge .ok { color: #2f6b1f; }
.gauge .warn { color: #8a5a00; }
.hub-status { grid-column: 1 / -1; background: var(--muted-2); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.hub-status > span:first-child { color: var(--text-2); }
.hub-status .vals { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin: 0 4px 1px 2px; }
@media (max-width: 720px) {
  .portal-body { grid-template-columns: 1fr; }
  .portal-map { min-height: 160px; }
}

/* Tabellen */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix, .tickets { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix { border: 1px solid var(--line); min-width: 520px; background: #fff; }
.matrix thead th { background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 16px; text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix td { padding: 12px 16px; border-top: 1px solid #e3e8eb; text-align: center; }
.matrix tbody th { font-weight: 400; text-align: left; padding: 12px 16px; border-top: 1px solid #e3e8eb; white-space: nowrap; }
.matrix tbody tr:nth-child(even) > * { background: #f8fafb; }
.matrix .yes { color: var(--accent); font-weight: 700; }
.matrix .no { color: #9a9a9a; }
.lvl { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.lvl-warn { background: var(--warn); }
.lvl-alarm { background: var(--alarm); }
.lvl-sys { background: #6b7c85; }
.tickets { min-width: 560px; }
.tickets th { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #4a4a4a; text-align: left; padding: 10px 18px 8px; }
.tickets td { padding: 11px 18px; border-top: 1px solid #eef1f3; }
.pill { display: inline-block; font-size: 13px; padding: 3px 9px; }
.pill-open { background: #fbe3e2; color: #9b2a26; }
.pill-work { background: #fdf0d3; color: #7a5200; }
.pill-done { background: #e3efe0; color: #2f5f22; }

/* CTA */
.cta { background: var(--accent); color: #fff; padding: 104px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.02; }
.cta p { font-size: 19px; color: #eef4f7; max-width: 36rem; }
.cta .btn-light { font-size: 16px; padding: 16px 24px; text-align: center; overflow-wrap: anywhere; }

/* ---------- Kontaktseite ---------- */
.page { padding: 96px 0 112px; }
.aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; align-self: flex-start; }
.addr { background: var(--muted); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.addr h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.addr p { color: var(--text-2); }
.osm-map { margin: 0; }
.osm-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.osm-map figcaption { margin-top: 10px; font-size: 15px; color: var(--text-3); }
.form-card { flex: 999 1 560px; background: var(--muted); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-card h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #8a8a8a; background: #fff; color: var(--ink); border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b42318; font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
button[disabled] { opacity: .6; cursor: progress; }
.contact-success { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; font-size: 18px; }
.contact-success:focus { outline: none; }
@media (max-width: 640px) { .form-card { padding: 24px; } }

/* Footer */
.site-footer { background: var(--black); color: #a3a3a3; font-size: 14px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.site-footer .brand .wordmark { font-size: 20px; }
.site-footer a { color: #d4d4d4; }
.site-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .wrap, .hero-grid, .site-header nav { padding-left: 16px; padding-right: 16px; }
  .hero-text { padding: 64px 0 40px; }
  .sec { padding: 72px 0 64px; }
  .page { padding: 56px 0 72px; }
  figure.diagram { padding: 12px; }
  .stat-big b { font-size: 44px; }
  .site-header { position: static; }
  .site-header nav { padding-top: 12px; padding-bottom: 12px; }
  .brand .wordmark { font-size: 22px; }
  .nav-links { gap: 8px 18px; }
}
