/* Schriften vom eigenen Server (keine Verbindung zu Google) – Lizenz: SIL Open Font License, siehe /fonts */
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 300; font-display: swap; src: url(/fonts/nunito-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(/fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(/fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(/fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Farben aus dem Logo: Dunkelblau, Grün, Graublau */
  --dark: #1B2B4B;
  --deep: #14213A;
  --green: #22A06B;
  --green-text: #17804F;   /* dunkleres Grün für Schrift/Knöpfe auf Weiß (gut lesbar) */
  --green-light: #4CC790;  /* helleres Grün für Schrift auf Dunkelblau */
  --blue: #8FA0BF;
  --light: #F3F5F9;
  --line: #E1E6EF;
  --text: #1B2B4B;
  --muted: #55627A;
  --r: 14px;
  --r-s: 8px;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --header-h: 105px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.75; color: var(--text); background: #fff; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.big { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.01em; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Knöpfe */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 10px 28px; border: 2px solid transparent; border-radius: var(--r-s); text-decoration: none; transition: background .2s, color .2s, border-color .2s; line-height: 1.6; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--green-text); color: #fff; }
.btn-outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--green-text); }
.btn .soc { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

/* Kopfzeile */
.site-header { background: var(--dark); color: #fff; height: var(--header-h); position: relative; z-index: 20; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; min-width: 0; }
.brand .logo-main { height: 52px; width: auto; display: block; flex: none; }
.brand .logo-img { max-width: 140px; max-height: 64px; object-fit: contain; flex: none; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: .02em; }
.brand-tag { font-size: 15px; font-weight: 400; line-height: 1.3; color: #C9D2E3; }
.brand .brand-tag { border-left: 1px solid #3A4E78; padding-left: 16px; }
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a, .nav-mobile nav a { color: #fff; text-decoration: none; font-weight: 400; font-size: 18px; }
.nav-desktop a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s; }
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); }
.nav-mobile nav a.active { color: var(--green-light); }
.nav-mobile { display: none; }

/* Titelbild */
.hero { position: relative; min-height: 520px; height: calc(100vh - var(--header-h)); max-height: 820px; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Video erst zeigen, wenn es wirklich läuft – sonst (z.B. iPhone im Stromsparmodus, Autoplay gesperrt) bleibt das
   Standbild darunter sichtbar und Safari zeigt keinen Play-Knopf hinter dem Text */
.hero-video { opacity: 0; transition: opacity .8s; pointer-events: none; }
.hero-video.laeuft { opacity: 1; }
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 43, 75, .50), rgba(27, 43, 75, .72)); }
.hero-content { position: relative; text-align: center; padding: 60px 24px 40px; max-width: 1100px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); margin-bottom: .55em; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.hero h1::after { content: ""; display: block; width: 64px; height: 6px; border-radius: 3px; background: var(--green); margin: 22px auto 0; }
.hero p { font-size: 17px; max-width: 500px; margin: 0 auto 1em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hero .btn { margin-top: 24px; min-width: 138px; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } html { scroll-behavior: auto; } }

/* Abschnitte */
.section { padding: 90px 0; }
.section p { color: var(--text); }
/* Überschriften: kurzer grüner Balken wie die Server-Balken im Logo */
.big::after { content: ""; display: block; width: 48px; height: 6px; border-radius: 3px; background: var(--green); margin: 18px 0 0; }
.center .big::after { margin-left: auto; margin-right: auto; }
.adv .narrow p { max-width: 560px; margin-left: auto; margin-right: auto; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 50px auto 50px; }
.adv-item { display: flex; flex-direction: column; align-items: center; gap: 22px; font-size: 20px; font-weight: 400; text-align: center; }
.adv-item .icon { width: 88px; height: 88px; padding: 20px; border-radius: 20px; background: var(--light); color: var(--dark); box-shadow: inset 0 0 0 1px var(--line); }

.why-wrap { padding-top: 40px; }
.why { display: grid; grid-template-columns: 1.9fr 1fr; padding: 0 24px; }
.why-text { background: var(--dark); color: #fff; border-radius: var(--r) 0 0 var(--r); padding: 70px 60px 50px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.why-text h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 30px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 520px; margin: 0 auto; }
.why-list h3 { font-size: 18px; margin: 0 0 4px; color: #fff; }
.why-list p { color: #DCE3EF; font-size: 15px; margin: 0; }
.why-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 0 var(--r) var(--r) 0; }

.services-home { padding-bottom: 70px; }
.services-home .narrow p { margin-bottom: .8em; }
.services-home .narrow p:last-child { margin-bottom: 0; }
.band { position: relative; margin: 50px 0; padding: 20px 0 0; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55%; background: url(/img/band.jpg?v=3) center 70% / cover; opacity: .22; }
.band .wrap { position: relative; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--dark); color: #fff; border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(27, 43, 75, .22); }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.img-empty { background: #DDE3EC; }
.card-img.img-empty { aspect-ratio: 4 / 3; }
.card-body { padding: 24px 24px 30px; min-height: 120px; }
.card-body h3 { font-size: 17px; margin: 0 0 8px; }
.card-body h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: 2px; }
.card-body p { color: #DCE3EF; font-size: 15px; margin: 0; line-height: 1.6; }
.services-page { padding-top: 0; margin-top: -60px; }
.services-page .card { background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(27, 43, 75, .06); }
.services-page .card-body p { color: var(--muted); }
.services-page .card-body { min-height: 190px; }

/* Tutorials */
.tut-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.tut-thumb .card-img, .tut-blank { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.tut-blank { display: flex; align-items: center; justify-content: flex-start; padding: 0 12%; background: linear-gradient(135deg, var(--dark), var(--n2, #24385F)); }
.tut-blank svg { width: 48%; opacity: .8; }
.tut-thumb .play { position: absolute; right: 18px; bottom: 16px; width: 56px; height: 56px; color: var(--green); filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); transition: transform .2s; }
.tut-card:hover .play { transform: scale(1.08); }
.tutorial-detail { padding-top: 70px; }
.tutorial-detail h1 { font-size: clamp(28px, 4vw, 42px); }
.tut-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); margin: 10px 0 30px; }
.tutorial-detail .text { font-size: 17px; }
.tut-hilfe { margin-top: 30px; padding: 18px 22px; background: var(--light); border-radius: var(--r-s); }
.tut-hilfe a { color: var(--green-text); font-weight: 600; }

/* Seitenkopf */
.page-head { background: var(--light); padding: 90px 0 110px; }
.page-head p { color: var(--text); margin-bottom: .8em; }
.page-head p:last-child { margin-bottom: 0; }

/* Über uns */
.about-blocks { margin-top: -50px; padding-bottom: 0; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; border-radius: var(--r); overflow: hidden; margin-bottom: 28px; }
.about-text { background: var(--light); padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.about-text h2 { font-size: clamp(24px, 2.6vw, 30px); }
.about-row.dark .about-text { background: var(--dark); color: #fff; }
.about-row.dark .about-text p { color: #DCE3EF; }
.about-row.rev .about-text { order: 2; }
.about-img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.about-blocks + * { margin-top: 0; }

/* Dienstleistung */
.service-detail { padding-top: 70px; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.crumb a { text-decoration: none; color: var(--muted); font-size: 15px; }
.crumb a:hover { color: var(--green-text); }
.service-detail h1 { font-size: clamp(30px, 4vw, 46px); }
.service-detail .text { margin-bottom: 30px; font-size: 17px; }
.detail-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.more { background: var(--light); padding: 70px 0; }
.more h2 { font-size: 26px; margin-bottom: 30px; }

/* Kontakt */
.contact-box { max-width: 720px; }
.c-item { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 400; }
.c-item .icon { width: 52px; height: 52px; padding: 11px; border-radius: 12px; background: var(--light); flex: none; color: var(--green-text); }
.c-item a { text-decoration: none; }
.c-item a:hover { color: var(--green-text); }
.c-item p { margin: 0; }
.c-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; justify-content: center; }

/* Rechtliches */
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal h3, .legal h4 { font-size: 18px; margin-top: 1.4em; }
.legal a { word-break: break-word; }

/* Fußzeile */
.site-footer { background: var(--deep); color: #fff; padding: 80px 0 50px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; align-items: start; }
.brand-footer { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; color: #fff; text-decoration: none; }
.brand-footer .logo-main { height: 58px; width: auto; display: block; }
.brand-footer .logo-img { max-width: 110px; max-height: 70px; object-fit: contain; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-social a, .footer-legal a, .to-top { color: #fff; text-decoration: none; font-weight: 400; font-size: 15px; }
.footer-nav a.active, .footer-nav a:hover, .footer-social a:hover, .footer-legal a:hover, .to-top:hover { color: var(--green-light); }
.footer-social a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 8px; align-items: center; }
.footer-social .soc { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; flex-wrap: wrap; gap: 16px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top .up { width: 22px; height: 22px; }

/* Tablet */
@media (max-width: 900px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .why { grid-template-columns: 1fr; }
  .why-img { min-height: 300px; max-height: 420px; border-radius: 0 0 var(--r) var(--r); }
  .why-text { border-radius: var(--r) var(--r) 0 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-grid .detail-img { order: -1; }
}
/* Schmale Bildschirme mit Menüleiste: Untertitel ausblenden, Menü enger */
@media (min-width: 761px) and (max-width: 1060px) {
  .brand .brand-tag { display: none; }
  .nav-desktop { gap: 20px; }
  .nav-desktop a { font-size: 16px; }
}
/* Handy */
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .brand { gap: 10px; }
  .brand .logo-main { height: 34px; }
  .brand .logo-img { max-width: 80px; max-height: 44px; }
  .brand-name { font-size: 13px; }
  .brand .brand-tag { font-size: 12px; padding-left: 10px; }
  .wrap { padding: 0 16px; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-mobile[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
  .nav-mobile[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-mobile nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--dark); display: flex; flex-direction: column; padding: 40px 24px 26px; box-shadow: 0 12px 24px rgba(20, 33, 58, .35); }
  .nav-mobile nav a { padding: 12px 0; font-size: 20px; text-align: right; border-bottom: 1px solid #2C3F66; }
  .hero { height: auto; min-height: 560px; }
  .hero-content { padding-top: 90px; }
  .hero p { font-size: 16px; }
  .section { padding: 64px 0; }
  .adv-grid { margin: 40px auto; }
  .adv-item { font-size: 18px; gap: 14px; }
  .why { padding: 0 16px; }
  .why-text { padding: 50px 22px 40px; }
  .cards { grid-template-columns: 1fr; }
  .card-body { min-height: 0; }
  .services-page .card-body { min-height: 0; }
  .page-head { padding: 110px 0 90px; }
  .about-row { grid-template-columns: 1fr; min-height: 0; }
  .about-row.rev .about-text { order: 0; }
  .about-text { padding: 44px 22px; }
  .about-img { min-height: 240px; max-height: 340px; }
  .service-detail { padding-top: 90px; }
  .tutorial-detail { padding-top: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-footer { grid-column: 1 / -1; justify-self: start; }
  .c-item { font-size: 16px; gap: 16px; }
}

/* Wartungsseite im Notbetrieb (db.json beschädigt) */
.wartung { max-width: 640px; margin: 15vh auto; padding: 0 16px; text-align: center; }
