/* style.css — Smart Gaszähler (Backup-Look + kleine Fixes)
   Ziel: keine Querstreifen / kein „Menü“-Pill auf Desktop / sauberes Zoomen
*/

:root{
  --bg: #0b1220;
  --surface: #0f1a2e;
  --card: #0f1a2e;
  --muted: rgba(255,255,255,.72);
  --text: rgba(255,255,255,.92);
  --soft: rgba(255,255,255,.12);
  --soft2: rgba(255,255,255,.08);
  --primary: #0B5FFF;
  --primary2: #66A3FF;
  --accent: #FFB020;
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(11,95,255,.28), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(255,176,32,.18), transparent 55%),
    linear-gradient(180deg, #060A12 0%, #0b1220 55%, #060A12 100%);
  color: var(--text);
  line-height:1.65;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration:none; }
code{ font-family: var(--mono); font-size: .95em; }
pre{ margin:0; }

/* Utilities */
.container{ width: min(var(--max), calc(100% - 40px)); margin:0 auto; }
.section{ padding: 42px 0; }
.section.alt{
  /* wichtig: kein „Zwischenstreifen“ */
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.muted{ color: var(--muted); }

/* Spacer (wird in angebot.html verwendet) */
.section-spacer{ height: 18px; }

/* Media */
.media-card{
  border-radius: var(--radius);
  border: 1px solid var(--soft);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
  width: 100%;
  height: auto;
  display: block;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px; top:8px;
  background:#fff; color:#000;
  padding:10px 12px; border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left:12px; }

/* Header + Nav */
.site-header{
  position: sticky;
  top:0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(6,10,18,.72);
  border-bottom: 1px solid var(--soft2);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px; /* mehr Abstand zwischen Logo und Text */
  min-width: 220px;
}
.brand-mark{
  width: 48px; height: 48px;
  display:grid; place-items:center;
  border-radius: 16px;
  background: none;
  border: none;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.18; }
.brand-name{ display:block; font-weight: 780; letter-spacing: .2px; font-size: 1.24rem; }
.brand-tagline{ display:block; font-size: 1.05rem; color: var(--muted); }
/* Akzentfarbe bewusst etwas heller, damit sie auf dunklem Header klar erkennbar ist */
.brand-accent{ color:#4EA3FF; }

.site-nav{ display:flex; align-items:center; }
.nav-toggle{
  display:none; /* Desktop: definitiv aus -> kein „Menü“-Pill */
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}
.nav-toggle:focus-visible{ outline: 3px solid rgba(102,163,255,.55); outline-offset: 2px; }
.nav-toggle-icon{
  width: 18px; height: 12px; position:relative; display:inline-block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position:absolute; left:0; right:0;
  height:2px; border-radius: 2px;
  background: rgba(255,255,255,.9);
}
.nav-toggle-icon::before{ top:0; }
.nav-toggle-icon::after{ bottom:0; }
.nav-toggle-label{ font-weight: 650; font-size: .95rem; }

.nav-menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 6px;
  padding:0;
  margin:0;
}
.nav-menu li{ position: relative; }
.nav-menu a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.86);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
  font-weight: 600;
  font-size: .95rem;
}
.nav-menu a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.nav-menu a.active{
  background: rgba(11,95,255,.22);
  border-color: rgba(102,163,255,.45);
  color: #fff;
}

/* Dropdown (desktop) */
.nav-menu .has-sub{
  padding-bottom: 10px; /* stabiler Hover-Bereich */
}
.nav-menu .has-sub > a{
  padding-right: 30px;
}
.nav-menu .has-sub > a::after{
  content:"▾";
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-52%);
  font-size: .85rem;
  opacity: .85;
}
.sub-menu{
  list-style:none;
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 8px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,10,18,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 80;
  display:none;
}
.sub-menu a{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
  font-size: .95rem;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu{
  display:block;
}

/* Main */
.site-main{ padding-bottom: 24px; }

/* Hero */
.hero{ padding: 46px 0 10px; }
.page-hero{ padding: 46px 0 10px; }
.page-hero .lead{ max-width: 80ch; }
.page-title.with-icon{
  display:flex;
  align-items:center;
  gap:.6rem;
}
.page-title .title-icon{
  width: 1.15em;
  height: 1.15em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  opacity: .92;
}
.page-title .title-icon svg{
  width: 1.15em;
  height: 1.15em;
  display:block;
  fill:none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 28px;
  align-items:center;
}
.eyebrow{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-weight: 650;
  font-size: .9rem;
}
h1{ font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.1; margin: 12px 0; letter-spacing: -.3px;}
.lead{ color: var(--muted); font-size: 1.1rem; margin: 0 0 16px; }

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 16px 0 10px;
}
/* Wunsch: mehr Abstand zwischen Buttons und Badges */
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}

.badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  font-weight: 650;
  font-size: .9rem;
}

.hero-media{ position:relative; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-color: rgba(102,163,255,.55);
}
.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
}
.btn.small{ padding: 9px 12px; border-radius: 12px; font-weight: 700; }

/* Cards / Layout */
.grid{ display:grid; gap: 14px; }
.cards-3{ grid-template-columns: repeat(3, 1fr); }
.cards-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.card-title{ margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.2px; }
.text-link{ color: rgba(102,163,255,.95); font-weight: 700; }
.text-link:hover{ text-decoration: underline; }

/* Buttons in cards */
.card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}

/* Split (bestehend) */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

/* ✅ FIX: Feature Row (für angebot.html „So geht’s weiter“ + Bild rechts) */
.feature-row{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.feature-row > :last-child{
  justify-self: end;           /* Bild rechts an den Rand */
}
.feature-row .media-card{
  max-width: 520px;            /* verhindert Vollbreite */
  width: 100%;
}

/* Lists */
.steps{ padding-left: 20px; color: rgba(255,255,255,.90); }
.steps li{ margin: 10px 0; }

/* Callout (Startfertig) – bewusst „Card“, aber NICHT wie ein Link */
.callout{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.callout-title{
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--accent);
}

/* CTA panel */
.cta-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(11,95,255,.18), rgba(255,176,32,.10));
}
.cta-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--soft2);
  background: rgba(6,10,18,.78);
}
.footer-inner{
  padding: 18px 0 10px;
  display:flex;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
}
.footer-brand{ font-weight: 850; }
.footer-note{ color: var(--muted); max-width: 62ch; }
.footer-right{ display:flex; align-items:center; gap: 10px; color: rgba(255,255,255,.78); }
.footer-link:hover{ text-decoration: underline; }
.footer-bottom{
  padding: 0 0 18px;
  color: rgba(255,255,255,.62);
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner, .split, .feature-row{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr; }
  .feature-row > :last-child{ justify-self: start; }
  .feature-row .media-card{ max-width: 100%; }
}
@media (max-width: 760px){
  .nav-toggle{ display:inline-flex; }
  .nav-menu{
    display:none;
    position:absolute;
    right: 20px;
    top: 66px;
    width: min(420px, calc(100vw - 40px));
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(6,10,18,.92);
    box-shadow: var(--shadow);
  }
  .nav-menu.open{ display:flex; }
  .nav-menu a{ width: 100%; }

  /* Dropdown becomes inline list on mobile */
  .sub-menu{
    position: static;
    display: block;
    min-width: 0;
    padding: 6px 0 0 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-menu .has-sub > a::after{ display:none; }
}

/* Click-to-zoom (Lightbox) – dezent, kein „Fullscreen“ */
.zoomable{ cursor: zoom-in; }
.zoomable:focus{
  outline: 3px solid rgba(11,95,255,.55);
  outline-offset: 4px;
  border-radius: 14px;
}

.lightbox-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox-panel{
  position: relative;
  width: min(1100px, 92vw);
}

.lightbox-img{
  width: 100%;
  height: auto;
  max-height: 84vh; /* dezent(er) als vorher */
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  background: rgba(255,255,255,.04);
}

.lightbox-close{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(20,20,20,.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover{ background: rgba(20,20,20,.85); }

/* =========================================================
   KONTAKTFORMULAR (NEU, passend zu kontakt.html)
   - Zeile 1: Thema + Name (2 Spalten)
   - Zeile 2: E-Mail (Label + Feld nebeneinander, volle Breite)
   - Zeile 3: Nachricht (volle Breite)
   - Buttons: nebeneinander
========================================================= */

#contact-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Zeilen-Wrapper */
#contact-form .form-row{
  display: grid;
  gap: 12px;
}
#contact-form .form-row-2{
  grid-template-columns: 1fr 1fr;
}
#contact-form .form-row-1{
  grid-template-columns: 1fr;
}

/* Felder generell */
#contact-form .field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

#contact-form .label{
  font-weight: 700;
  color: rgba(255,255,255,.88);
}

/* Inputs/Select/Textarea */
#contact-form input,
#contact-form select,
#contact-form textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  outline: none;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus{
  border-color: rgba(102,163,255,.55);
  box-shadow: 0 0 0 3px rgba(11,95,255,.22);
}

/* Zeile 2: Label + Input nebeneinander */
#contact-form .field-inline{
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  column-gap: 12px;
}

#contact-form .field-inline .label{
  margin: 0;
}

/* Zeile 3: Nachricht volle Breite */
#contact-form .field-full{
  width: 100%;
}

/* Buttons nebeneinander */
#contact-form .btn-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile: Inline-Feld untereinander */
@media (max-width: 700px){
  #contact-form .form-row-2{
    grid-template-columns: 1fr;
  }
  #contact-form .field-inline{
    grid-template-columns: 1fr;
    row-gap: 6px;
    align-items: start;
  }
}


/* =========================
   Funktions-Icons – nur Übersichtsseite
========================= */

.page-funktionen .card .icon{
  width:88px;
  height:88px;
  margin-bottom:14px;
}


/* Bildgrößen für Ersteinrichtung */
.media-card.small {
  max-width: 360px;
}

.media-card.large {
  max-width: 520px;
}


/* =========================================
   Einheitlicher Hintergrund für große Systembilder
   ========================================= */
.media-frame{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.media-frame .media-card{
  margin: 0;
  background: transparent;
}


/* Meterstack inline SVG logo sizing */
.brand-mark .ms-logo{ width:48px; height:48px; max-width:48px; max-height:48px; display:block; }

.footer-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px; height:24px;
  overflow:hidden;
  vertical-align:middle;
  margin-right: 0;
}
.footer-mark .ms-logo{ width:24px; height:24px; max-width:24px; max-height:24px; display:block; }

/* Footer: mehr Abstand zwischen Logo und Text */
.footer-title{
  display:inline-flex;
  align-items:center;
  gap:12px;
}
