/* =====================================================================
   ComService Herberg – Website
   Design angelehnt an die CSH Communication Suite (CSH-DESIGN-Web.md):
   Suite-Blau #1e3a7a, Branding-Orange #e06820, Header-Gradient,
   Karten mit Kopfzeile, CSH-Blass-Gelb für Info-/Hinweisboxen.
   ===================================================================== */
:root {
  --blue:       #1e3a7a;   /* Primärfarbe */
  --blue-h:     #162d62;   /* Hover */
  --blue-light: #3a5faa;   /* Sekundärblau / Gradient-Ende */
  --orange:     #e06820;   /* Akzentfarbe */
  --orange-h:   #c45810;   /* Hover */
  --bg:         #f0f4fb;   /* Seitenhintergrund */
  --card:       #ffffff;
  --card-head:  #f7f9fd;
  --border:     #dde3f0;
  --text:       #111827;
  --muted:      #5a6a8a;
  --info-bg:    #fdf4d5;   /* CSH-Blass-Gelb */
  --info-line:  #f0e3b2;
  --radius:     10px;
  --shadow:     0 1px 6px rgba(30,58,122,.07);
  --max:        1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header (wie Suite-Header) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  box-shadow: 0 3px 12px rgba(30,58,122,.35);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo {
  background: #fff; border-radius: 7px; padding: 4px 10px;
  display: inline-flex; align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.logo img { height: 46px; width: auto; }
/* Startseite: Logo-Video statt Logo-Bild – gleiche Stelle, gleiche Breite wie das Logo (274 px) */
.logo-video { padding: 3px; }
.logo-video video { display: block; width: 274px; height: auto; border-radius: 5px; object-fit: contain; }
.nav:has(.logo-video) { height: 100px; }
html:has(.logo-video) { scroll-padding-top: 112px; }
.nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.nav a.link {
  display: block; color: rgba(255,255,255,.88); text-decoration: none;
  font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28); transition: background .15s;
}
.nav a.link:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav a.link.active { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.5); box-shadow: inset 0 -2px 0 var(--orange); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; font-size: 1.4rem; line-height: 1; padding: 6px 10px; cursor: pointer; color: #fff; }

/* ---------- Buttons (Suite: Radius 6 px, fett) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; transition: background .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-h); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-h); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: #eef2fc; color: var(--blue); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff; padding: 88px 0 84px;
  border-bottom: 4px solid var(--orange);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 300px; opacity: .13;
  background: url("../img/netz.svg") no-repeat center / contain;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: #ffc29a; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 18px; max-width: 760px; }
.hero h1 em { font-style: normal; color: #ffa86a; }
.hero p { font-size: 1.12rem; max-width: 640px; opacity: .93; margin: 0 0 30px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; color: var(--blue); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.4px; font-size: .78rem; color: var(--orange); font-weight: 700; margin: 0 0 8px; }
h2 { color: var(--blue); }

/* ---------- Karte mit Kopfzeile (Suite: .card / .card-head) ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card, .res-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s;
  padding-bottom: 20px;
}
.card:hover, .res-item:hover { box-shadow: 0 8px 24px rgba(30,58,122,.13); transform: translateY(-2px); }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; background: var(--card-head); border-bottom: 1px solid var(--border);
  margin-bottom: 16px; border-left: 3px solid var(--orange);
}
.card > :not(.card-head), .res-item > :not(.card-head) { margin-left: 22px; margin-right: 22px; }
.card-head .icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--blue); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.card-head .icon svg { width: 22px; height: 22px; }
.card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--blue); line-height: 1.3; }
.card p, .res-item p { margin-top: 0; margin-bottom: 12px; color: var(--muted); }
.res-item p { margin-bottom: 0; }
.card ul { margin-top: 0; margin-bottom: 0; padding-left: 0; list-style: none; font-size: .95rem; }
.card li { padding-left: 18px; position: relative; margin-bottom: 5px; color: #3c4a63; }
.card li::before { content: "\25B8"; position: absolute; left: 0; top: 0; color: var(--orange); }
.card .sub-head { margin: 14px 22px 6px; font-weight: 700; color: var(--blue); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; }
.card b { color: var(--blue); }

/* ---------- Badges / Pills (Radius 99 px) ---------- */
.badge { display: inline-block; background: var(--orange); color: #fff; font-size: .76rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; letter-spacing: .4px; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 30px; }
.pills span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 4px 13px; border-radius: 99px; font-size: .86rem; font-weight: 600; }
.soon { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--orange); border-radius: 99px; padding: 2px 10px; text-transform: uppercase; letter-spacing: .4px; }
.soon.planned { background: var(--blue); }
.soon.new { background: #16a34a; }   /* Suite-Erfolgsgrün */

/* Abschnitt "Highlights" der Communication Suite */
.v2 { background: linear-gradient(180deg, #fff6ef 0%, var(--bg) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.v2-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.v2-item { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--orange); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.v2-item strong { display: block; color: var(--blue); font-size: 1.05rem; margin: 0 0 8px; }
.v2-item ul { margin: 0; padding-left: 0; list-style: none; font-size: .93rem; }
.v2-item li { padding-left: 18px; position: relative; margin-bottom: 4px; color: #3c4a63; }
.v2-item li::before { content: "\25B8"; position: absolute; left: 0; top: 0; color: var(--orange); }

/* ---------- Info-/Hinweisboxen: CSH-Blass-Gelb ---------- */
.info-box, .highlight {
  background: var(--info-bg); border: 1px solid var(--info-line); border-left: 3px solid var(--orange);
  border-radius: 7px;
}
.info-box { padding: 24px 26px; }
.info-box h3 { margin-top: 0; color: var(--blue); }
.highlight { padding: 12px 16px; font-weight: 600; color: var(--blue); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 12px; }
.placeholder { background: var(--info-bg); border: 1px solid var(--info-line); padding: 0 4px; border-radius: 3px; }

/* ---------- Startseite: Suite-Teaser ---------- */
.suite { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.suite-wrap { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.suite h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 14px; }
.suite h2 span { color: var(--orange); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 7px; padding: 16px 18px; box-shadow: var(--shadow); }
.feature strong { display: block; color: var(--blue); margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: .92rem; }
.suite-title { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.suite-title img { width: 90px; height: auto; flex: 0 0 auto; }
.suite-title h2 { margin: 0; }
.suite-title .badge { margin-bottom: 6px; }
.suite-more { margin-left: 14px; font-weight: 700; text-decoration: none; }

/* ---------- Unterseite Communication Suite ---------- */
.hero-suite .badge { margin-bottom: 18px; }
.hero-suite::after { display: none; }
.hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: 100%; max-width: 320px; justify-self: center; filter: drop-shadow(0 16px 36px rgba(0,0,0,.35)); }

.benefits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.benefit { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 7px; padding: 16px 20px; box-shadow: var(--shadow); }
.benefit strong { display: block; color: var(--blue); margin-bottom: 4px; }
.benefit span { color: var(--muted); font-size: .93rem; }

.layers { display: grid; gap: 10px; max-width: 900px; margin: 0 auto; }
.layer { border-radius: var(--radius); padding: 16px 22px; text-align: center; box-shadow: var(--shadow); }
.layer strong { display: block; font-size: 1.08rem; }
.layer span { font-size: .92rem; }
.layer-top { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; }
.layer-top span { opacity: .9; }
.layer-own { background: var(--orange); color: #fff; }
.layer-oss { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layer-oss div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.layer-oss strong { display: block; color: var(--blue); }
.layer-oss .alt-oss { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85em; }
.layer-oss span { color: #2b3a55; font-size: .9rem; font-weight: 600; }

.deploy { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.deploy-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.deploy-card.featured { border: 2px solid var(--orange); }
.deploy-card h3 { margin: 6px 0 10px; font-size: 1.3rem; color: var(--blue); }
.deploy-card p { color: var(--muted); }
.deploy-card .tag, .location .tag { font-size: .75rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .6px; }

.scale { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; }
.scale-item { background: #fff; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; border-top: 4px solid var(--blue); box-shadow: var(--shadow); }
.scale-item.accent { border-top-color: var(--orange); }
.scale-item strong { display: block; font-size: 3rem; line-height: 1; color: var(--blue); }
.scale-item.accent strong { color: var(--orange); }
.scale-item span { display: block; font-weight: 700; margin: 8px 0 12px; }
.scale-item p { color: var(--muted); margin: 0; }

.resilience { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; }
.res-item .card-head .icon { background: var(--orange); }

.roadmap { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.road { border: 1px dashed #b9c6e0; border-radius: var(--radius); padding: 20px 22px; background: var(--card-head); }
.road strong { display: block; color: var(--blue); font-size: 1.05rem; margin: 8px 0 6px; }
.road p { margin: 0; color: var(--muted); font-size: .94rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; counter-increment: s; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; color: var(--blue); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .94rem; }

.cta { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; text-align: center; border-top: 4px solid var(--orange); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; color: #fff; }
.cta p { opacity: .9; margin: 0 0 26px; }

/* Abschnitt "Das Herzstück": Kommunikationssystem */
.kommsys { background: #fff; border-bottom: 1px solid var(--border); }
.kommsys-wrap { display: grid; gap: 44px; grid-template-columns: 1.05fr 1fr; align-items: center; }
.kommsys h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 14px; }
.kommsys p { color: var(--muted); }
.benefits-2 { grid-template-columns: 1fr 1fr; }
.benefits-3 { grid-template-columns: repeat(3, 1fr); }
.layer-oss { grid-template-columns: repeat(5, 1fr); }
.layer-oss > div { min-width: 0; }
.layer-oss strong { hyphens: auto; overflow-wrap: break-word; }

/* ---------- Über uns ---------- */
.about { display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.about h2 { margin-top: 0; }
.checks { padding-left: 0; list-style: none; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 9px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--border); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
.timeline li:last-child::before { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.timeline strong { display: block; color: var(--blue); font-size: 1.08rem; }
.timeline span { color: var(--muted); }

/* ---------- Standorte & Kontakt ---------- */
.locations { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
.location { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.location h3 { margin: 2px 0 6px; color: var(--blue); }
.location p { margin: 8px 0 0; color: var(--muted); }

.contact { display: grid; gap: 40px; grid-template-columns: 1fr 1.2fr; }
.contact-info { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); align-self: start; }
.contact-info p { margin: 0 0 16px; }
.contact-info p:last-child { margin-bottom: 0; }
.contact-info strong { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.contact-info a, .contact-info .email { text-decoration: none; font-weight: 700; color: var(--blue); }

/* Formular wie Suite (.field) */
form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
input, textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 6px;
  font: inherit; font-size: .95rem; background: #fafbfd; color: var(--text);
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(30,58,122,.1); }
textarea { min-height: 140px; resize: vertical; }
label.hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .85rem; color: var(--muted); }
input[type=checkbox] { width: auto; accent-color: var(--blue); }

/* ---------- Footer (Suite: hell, Rahmen oben) ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); color: var(--muted); padding: 22px 0; font-size: .85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--blue); font-weight: 600; text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--orange); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 48px 16px; max-width: 860px; }
.legal-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; }
.legal h1 { margin-top: 0; color: var(--blue); }
.legal h2 { margin-top: 1.8em; font-size: 1.15rem; }
.license { background: var(--info-bg); border: 1px solid var(--info-line); border-left: 3px solid var(--orange); border-radius: 7px; padding: 10px 16px; font-size: .82rem; color: var(--muted); }
.license summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: .9rem; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .about, .contact, .suite-wrap, .locations, .deploy, .scale, .hero-split, .resilience, .features, .kommsys-wrap, .benefits-2, .benefits-3 { grid-template-columns: 1fr; }
  .steps, .layer-oss { grid-template-columns: 1fr 1fr; }
  .hero-logo { max-width: 130px; order: -1; justify-self: start; }
  .menu-toggle { display: block; }
  .nav { height: 64px; }
  .logo img { height: 36px; }
  .logo-video video { width: 214px; }
  .nav:has(.logo-video) { height: 80px; }
  .nav:has(.logo-video) ul { top: 80px; }
  .nav ul {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 6px; padding: 12px 16px;
    background: var(--blue); box-shadow: 0 6px 14px rgba(30,58,122,.35);
  }
  .nav ul.open { display: flex; }
  .btn-ghost { margin: 12px 0 0; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 60px; }
  .hero::after { display: none; }
  .legal-card { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  h1, h2, h3, strong { overflow-wrap: break-word; hyphens: auto; }
}
