:root{
  --bg: #0c1a22;
  --bg-elev: #0f2230;
  --card: #0e2331;
  --text: #eaf5ff;
  --muted: #9bb7cb;
  --brand: #00a2ff;
  --line: #11324a;
  --line-2: #2b455e;
  --mediaH: 300px; /* default media max-height */
}

@media (max-width: 1100px){ :root{ --mediaH: 260px; } }
@media (max-width: 900px){ :root{ --mediaH: 220px; } }
@media (max-width: 560px){ :root{ --mediaH: 200px; } }

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html, body { overflow-x: hidden; } /* verhindert horizontalen Scroll */
body{
  background:var(--bg);
  color:var(--text);
  font-family:"Roboto",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{ color:#7fd0ff; text-decoration:none; }
a:hover{ text-decoration:underline; }

img{ max-width:100%; height:auto; display:block; }

.container{ width:min(1180px,92vw); margin-inline:auto; }
.section{ padding:38px 0; }

h1,h2,h3{ margin:0 0 10px; }
h1{ font-size:34px; letter-spacing:.2px; }
h2.headline{ font-size:28px; font-weight:800; }
.smallsubtitle{ font-size:20px; font-weight:800; }
.subtitle,.kicker{ color:var(--muted); }
.kicker{ font-weight:700; text-transform:uppercase; font-size:12px; letter-spacing:.08em; }

/* =======================
   Header + Navigation
   ======================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;        /* volle Breite */
  z-index: 3000;   /* sicher über Hero/Overlay */
  background: rgba(12,26,34,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

/* Der Seiteninhalt bekommt oben so viel Abstand, wie der Header hoch ist */
body {
  padding-top: var(--headerH, 64px); /* Fallback 64px */
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.brand{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ width:44px; height:44px; object-fit:contain; border-radius:8px; }
/* Larger brand text next to logo */
.brand-text{ color:var(--text); font-weight:900; letter-spacing:.2px; font-size:1.6rem; line-height:1; }
.brand-text .corp{ color:var(--brand); }

.main-nav a{
  display:inline-block;
  color:var(--text);
  margin-left:20px;
  font-weight:700;
  opacity:.9;
  text-decoration:none;
}
.main-nav a:hover{ opacity:1; } /* Textdeko nicht verändern, damit active sichtbar bleibt */

.main-nav a.btn{
  margin-left:24px;
  background:var(--brand);
  color:#04121a;
  padding:8px 14px;
  border-radius:10px;
  border:1px solid #0588d1;
  font-weight:800;
}

/* Aktiver Menüpunkt unterstrichen (Contact nie) */
.main-nav a.active{
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--brand); /* hellblau (#00A2FF) */
}
.main-nav a[data-no-active].active{
  text-decoration: none;
}

/* Scroll progress – IM Header, nicht fixed */
#scroll-track{
  position: relative;
  height: 4px;
  width: 100%;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  z-index: 1; /* innerhalb des Headers */
}
#scroll-progress{
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg,#00a2ff,#7fd0ff);
  box-shadow: 0 0 10px rgba(0,162,255,.6);
  transition: width .08s linear;
}
#scroll-progress::after{
  content:"";
  position:absolute; right:0; top:0; width:14px; height:100%;
  background:radial-gradient(circle at right, rgba(0,162,255,.9) 0%, rgba(0,162,255,0) 70%);
  pointer-events:none;
}

/* =======================
   Hero + Overlay
   ======================= */

.hero{
  position:relative;
  min-height:42vh;
  display:block;
  overflow:hidden;
}

/* Media im Hero (Video ODER Map) bleibt absolut dahinter */
.hero > video,
.hero > .map-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.55);
  z-index: 0; /* hinter Overlay */
}

/* Overlay-Layer (klicksicher) */
.hero .overlay{
  position: absolute; inset: 0;
  display: flex;
  align-items: center; /* vertikal mittig */
  z-index: 1;          /* immer über Media */
  pointer-events: none; /* Inhalt darunter (z.B. Map) bleibt klickbar */
}
.hero .overlay .container,
.hero .overlay .overlay-box,
.hero .overlay a,
.hero .overlay button { pointer-events: auto; }

/* Overlay-Box */
.overlay-box{
  background: rgba(0,0,0,.50);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 24px 28px;
  width: min(600px, 92vw);  /* begrenzte Breite */
}

/* volle Breite (optional) */
.overlay-box--full{ width:100%; max-width:none; padding:24px 28px; }

/* Rechts positioniert: exakt 50px vom rechten Rand, vertikal mittig */
.overlay-box--right{
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  left: auto;
}

/* Mobile: Box nicht absolut, sauber zentriert */
@media (max-width: 900px){
  .overlay-box--right{
    position: static;
    right: auto; left: auto; top: auto;
    transform: none;
    margin: 0 auto;
  }
}

/* =======================
   Karten / Grid / Media
   ======================= */

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
}

.video-card video,
.thumb-card img{
  width:100% !important;
  height:auto !important;
  max-height: var(--mediaH) !important;
  aspect-ratio:16 / 9;
  object-fit:cover;
  border-radius:8px;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  transition:transform .18s ease, box-shadow .18s ease;
}
.video-card video:hover,
.thumb-card img:hover{
  transform:translateZ(0) scale(1.02);
  box-shadow:0 0 15px rgba(0,162,255,.35);
}

/* =======================
   Lightbox
   ======================= */

.lightbox{
  display:none; position:fixed; inset:0; z-index:3000;
  background:rgba(0,0,0,.86);
  justify-content:center; align-items:center;
}
.lightbox.active{ display:flex; }
.lightbox img{
  max-width:90%; max-height:90%;
  border-radius:12px; box-shadow:0 0 22px rgba(0,162,255,.5);
}

/* =======================
   Footer
   ======================= */

.footer{
  padding:26px 0 16px;
  border-top:1px solid var(--line);
  background:var(--bg-elev);
}
.partner-logos{
  display:grid;
  grid-template-columns:repeat(8, minmax(80px,1fr));
  gap:16px;
  align-items:center; justify-items:center;
  padding:8px 0 18px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px;
}
.partner-logos img{ width:120px; height:auto; opacity:.9; }
.copy{ text-align:center; color:var(--muted); font-size:13px; margin-top:10px; }

/* =======================
   Responsive
   ======================= */

@media (max-width:1000px){
  .partner-logos{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:900px){
  .grid-2{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .partner-logos{ grid-template-columns:repeat(3,1fr); }
  .brand-text{ font-size:1.3rem; }
}

/* =======================
   Contact Form
   ======================= */

.contact-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form .full{grid-column:1/-1}
.contact-form label{display:block;font-weight:600;margin:6px 0 6px}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#e9f1f7;
}
.contact-form ::placeholder{color:rgba(233,241,247,.6)}
.contact-form :focus{
  outline:none;
  border-color:#48b6ff;
  box-shadow:0 0 0 3px rgba(72,182,255,.25);
}
.contact-form select option{color:#0b141a;background:#ffffff}
.contact-form textarea{min-height:170px;resize:vertical}

.contact-form .form-actions{margin-top:14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.contact-form .agree{display:flex;gap:8px;align-items:center;font-size:.95rem}
.contact-form .agree input{width:18px;height:18px}

/* gleiche Höhe der beiden Karten, sauberes Alignment */
.grid-2{align-items:stretch}
.card{height:100%}

/* =======================
   Privacy Page Layout
   ======================= */

body.privacy .grid-2 { display: block; }
body.privacy .grid-2 > * {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px 0;
}
body.privacy .grid-2 > *:last-child { margin-bottom: 0; }

/* =======================
   Full-bleed Google Map
   ======================= */

.hero--map {
  position: relative;
  width: 100vw;                        /* volle Viewport-Breite */
  left: 50%;
  right: 50%;
  margin-left: -50vw;                  /* bricht aus dem zentrierten Layout aus */
  margin-right: -50vw;
  overflow: hidden;
  background: #0e2a36;                 /* Fallback hinter dem iframe */
}

.hero--map .map-embed {
  display: block;
  width: 100vw !important;             /* Map darf nicht schrumpfen */
  height: clamp(340px, 50vh, 560px) !important;
  border: 0;
}

/* Overlay bleibt wie gehabt */
.hero--map .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero--map .overlay .container { pointer-events: auto; }

/* falls irgendwo max-width auf iframes liegt – neutralisieren */
.container iframe.map-embed,
.container .map-embed{ max-width:none !important; }

/* =======================
   Buttons
   ======================= */

.btn{
  display:inline-block;
  padding:8px 14px;
  border-radius:10px;
  background:var(--brand);
  color:#04121a;
  border:1px solid #0588d1;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; filter:brightness(1.05); }
.btn:focus{ outline:none; box-shadow:0 0 0 3px rgba(0,162,255,.25); }

/* Card-Variante: Inhalt oben, Downloadblock an den unteren Rand drücken */
.card--contact-info {
  display: flex;
  flex-direction: column;
}

/* --- TeamViewer Download Button (final transparent fix) --- */
.teamviewer-download {
  margin-top: auto;          /* schiebt nach unten in der Card */
  padding-top: 18px;
  text-align: center;
}

.teamviewer-download a {
  display: inline-flex;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  align-items: center;
  justify-content: center;

  /* <-- wichtig: KEIN Hintergrund! */
  background: none;
  border: 1px solid #0588d1;
  box-shadow: 0 0 14px rgba(0,162,255,.25);

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.teamviewer-download a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(0,162,255,.45);
  border-color: #00a2ff;
}

.teamviewer-download img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.teamviewer-download p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #9bb7cb;
  font-weight: 500;
}
.teamviewer-download p span {
  color: #eaf5ff;
  font-weight: 700;
}

/* Standalone-Variante des TeamViewer-Blocks auf der Startseite */
.teamviewer-download--standalone{
  margin-top: 24px;      /* Abstand zum Grid */
  padding-top: 0;
  text-align: center;
}
