
:root{
  --bg1:#0a2a44;
  --bg2:#0b3b66;
  --panel:rgba(255,255,255,.92);
  --ink:#0c1a24;
  --muted:#4a5a68;
  --line:rgba(255,255,255,.12);
  --blue:#1677ff;
  --red:#e2333b;
  --ok:#1f9d55;
  --shadow:0 14px 40px rgba(0,0,0,.18);
  --radius:18px;
  --max:1240px;
  --pad:22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink)}
a{color:inherit}
.wrap{max-width:var(--max);margin:0 auto;padding:0 18px}

.bg{
  min-height:100vh;
  background:
    radial-gradient(1000px 620px at 18% -12%, rgba(22,119,255,.78), transparent 62%),
    radial-gradient(860px 560px at 78% 22%, rgba(22,119,255,.46), transparent 62%),
    radial-gradient(520px 420px at 18% 92%, rgba(226,51,59,.20), transparent 62%),
    linear-gradient(180deg, #08223a 0%, #0a3a5c 48%, #08223a 100%);
  position:relative;
  overflow-x:hidden;
}
.bg:before{
  content:"";
  position:absolute;inset:0;
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800'>\
<defs>\
  <linearGradient id='g' x1='0' y1='0' x2='1' y2='1'>\
    <stop offset='0' stop-color='%231677ff' stop-opacity='.55'/>\
    <stop offset='1' stop-color='%23e2333b' stop-opacity='.32'/>\
  </linearGradient>\
</defs>\
<g fill='none' stroke='url(%23g)' stroke-width='3' opacity='.28'>\
  <path d='M120 560 h420 l70 -70 h220'/>\
  <path d='M780 590 h380 l90 -90 h90'/>\
</g>\
<g fill='%23ffffff' opacity='.14' font-family='system-ui,Segoe UI,Arial' font-size='56' font-weight='800' letter-spacing='.5'>\
  <text x='90' y='140'>112</text>\
  <text x='1140' y='190'>110</text>\
  <text x='140' y='720'>RTW</text>\
  <text x='330' y='670'>NEF</text>\
  <text x='520' y='720'>RTH</text>\
  <text x='770' y='660'>FEUERWEHR</text>\
</g>\
<g opacity='.22' stroke='%23ffffff' fill='none' stroke-width='3'>\
  <!-- RTW silhouette -->\
  <path d='M880 340 h240 a18 18 0 0 1 18 18 v70 a18 18 0 0 1-18 18 h-240 a18 18 0 0 1-18-18 v-70 a18 18 0 0 1 18-18 z'/>\
  <path d='M880 382 h240'/>\
  <circle cx='930' cy='450' r='14'/>\
  <circle cx='1055' cy='450' r='14'/>\
  <!-- HLF/Fire silhouette -->\
  <path d='M200 360 h260 l60 40 h90'/>\
  <path d='M240 360 v-54 h90 v54'/>\
  <circle cx='270' cy='402' r='14'/>\
  <circle cx='360' cy='402' r='14'/>\
  <!-- RTH silhouette -->\
  <path d='M980 235 h220'/>\
  <path d='M1030 255 h120 a42 42 0 0 1 42 42 v34 a34 34 0 0 1-34 34 h-150 a34 34 0 0 1-34-34 v-44 a32 32 0 0 1 32-32 z'/>\
  <path d='M1010 325 h230'/>\
  <path d='M900 315 h70'/>\
  <path d='M1230 295 l70 35'/>\
  <path d='M905 305 l-55 -28'/>\
  <path d='M960 295 l-28 -18'/>\
  <path d='M1185 280 l35 -18'/>\
</g>\
</svg>");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  pointer-events:none;
  opacity:.92;
  mix-blend-mode:normal;
}


.site-header{
  position:sticky;top:0;z-index:10;
  background:rgba(6,21,34,.72);
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.header-inner{display:flex;align-items:center;gap:14px;min-height:66px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff}
.brand-mark{width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg,var(--blue),rgba(255,255,255,.15));
  box-shadow:0 10px 26px rgba(0,0,0,.25);
}
.brand-text{font-weight:800;letter-spacing:.2px}
.nav{display:flex;gap:14px;margin-left:auto;align-items:center}
.nav a{color:rgba(255,255,255,.86);text-decoration:none;font-weight:700;font-size:14px;padding:10px 12px;border-radius:12px}
.nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-toggle{display:none;margin-left:auto;background:transparent;border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:10px;padding:8px 10px}

.site-main{padding:26px 0 34px}

.hero{padding:22px 0 10px}
.hero-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:22px;align-items:start}
.hero-copy h1{margin:0 0 12px;color:#fff;font-size:clamp(32px,4.5vw,46px);line-height:1.05}
.lead{color:rgba(255,255,255,.86);font-size:16.5px;line-height:1.6;margin:0 0 14px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 10px}
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;font-weight:700;font-size:13px}
.chip.ok{background:rgba(31,157,85,.18);color:#dff7e7;border:1px solid rgba(31,157,85,.35)}
.chip.build{background:rgba(22,119,255,.16);color:#e7f1ff;border:1px solid rgba(22,119,255,.35)}

.hero-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-card-inner{padding:18px 18px 16px;color:rgba(255,255,255,.92)}
.hero-card-inner p{margin:10px 0;line-height:1.55}
.card-title{font-weight:900;font-size:16px;letter-spacing:.2px;margin-bottom:6px}

.section{padding:18px 0}
.split-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.split-card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.35);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:var(--pad);
}
.split-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.split-card h2{margin:0;font-size:28px}
.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12.5px;font-weight:850}
.badge.ok{background:rgba(31,157,85,.14);color:#13653a;border:1px solid rgba(31,157,85,.25)}
.badge.build{background:rgba(22,119,255,.14);color:#0b3b66;border:1px solid rgba(22,119,255,.25)}

.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{
  background:var(--panel);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:26px 24px;
}
.card h3{margin:0 0 10px;font-size:18px}
.card p{margin:0;color:var(--muted);line-height:1.6}

.btn{min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;border-radius:14px;padding:12px 16px;
  font-weight:850;text-decoration:none;border:1px solid transparent;
  cursor:pointer;user-select:none;
}
.btn.primary{background:linear-gradient(135deg,var(--red),rgba(226,51,59,.85));color:#fff;box-shadow:0 12px 26px rgba(226,51,59,.22)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.18)}
.btn.ghost:hover{background:rgba(255,255,255,.14)}
.btn.disabled{background:rgba(0,0,0,.08);color:rgba(0,0,0,.40);border-color:rgba(0,0,0,.10);cursor:not-allowed;box-shadow:none}

.card-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}

.list{margin:10px 0 0;padding-left:18px}
.list li{margin:6px 0;color:var(--muted)}

.form-card{max-width:920px}
.contact-form{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}
.contact-form label{display:block;margin-bottom:14px}
.contact-form span{display:block;font-weight:850;margin-bottom:6px}
.contact-form input,.contact-form textarea{
  width:100%;padding:12px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.12);
  font:inherit;
}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-actions{margin-top:10px}
.fineprint{margin-top:14px;color:var(--muted);font-size:13.5px;line-height:1.5}
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

.site-footer{margin-top:18px;padding:18px 0;background:rgba(6,21,34,.70);border-top:1px solid rgba(255,255,255,.10)}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.footer-left{display:flex;align-items:center;gap:12px;color:#fff}
.footer-logo{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,var(--blue),rgba(255,255,255,.12))}
.footer-title{font-weight:900}
.footer-sub{color:rgba(255,255,255,.78);font-size:14px}
.footer-links{display:flex;gap:12px;flex-wrap:wrap}
.footer-links a{color:rgba(255,255,255,.82);text-decoration:none;padding:6px 8px;border-radius:10px}
.footer-links a:hover{background:rgba(255,255,255,.08);color:#fff}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .cards3{grid-template-columns:1fr}
  .split-cards{grid-template-columns:1fr}
  .nav{display:none;position:absolute;left:0;right:0;top:66px;background:rgba(6,21,34,.92);padding:10px 18px;border-bottom:1px solid rgba(255,255,255,.10)}
  .nav a{display:block}
  .nav-toggle{display:inline-flex}
  .nav.open{display:block}
  .hero-copy h1{font-size:38px}
  .grid2{grid-template-columns:1fr}
}

/* Readability fixes for dark background pages */
.site-main h1,
.site-main > .wrap.section > h1,
.site-main > section.wrap.section > h1,
.site-main h1:not(.card h1),
.site-main h2:not(.split-card h2),
.site-main p.lead { color: rgba(255,255,255,.96); }

.site-main a { color: rgba(255,255,255,.92); }
.site-main a:hover { color: #ffffff; }

.site-main .split-card, .site-main .card, .contact-form { color: var(--ink); }

/* Gallery */
.gallery-section{margin-top:18px}
.gallery-title{margin:0 0 10px;color:rgba(255,255,255,.96);font-size:22px}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.shot{display:block;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
.shot img{width:100%;height:180px;object-fit:cover;display:block}
@media (max-width:980px){
  .gallery{grid-template-columns:repeat(2,1fr)}
  .shot img{height:160px}
}

/* Lightbox */
.lightbox{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(0,0,0,.78);z-index:9999;padding:18px;
}
.lightbox.open{display:flex}
.lightbox img{max-width:min(1200px,100%);max-height:85vh;border-radius:18px;box-shadow:0 22px 60px rgba(0,0,0,.55)}
.lightbox .close{
  position:absolute;top:14px;right:14px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#fff;
  padding:10px 12px;border-radius:12px;font-weight:900;cursor:pointer;
}

/* Link readability inside white panels */
.card a, .split-card a, .contact-form a { color: var(--blue); }
.card a:hover, .split-card a:hover, .contact-form a:hover { color: #0b3b66; }

/* Legal pages spacing */
.legal .card h3 { margin-top: 22px; }
.legal .card h3:first-of-type { margin-top: 0; }
.legal .card p { margin: 10px 0 16px; }

/* Carousel */
.carousel-block{margin-top:18px}
.carousel-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.carousel-title{margin:0;color:rgba(255,255,255,.96);font-size:22px}
.carousel-meta{color:rgba(255,255,255,.72);font-size:13.5px}

.carousel{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  min-height: 240px;
}
.carousel .track{display:flex;transition: transform .45s ease;will-change: transform;}
.carousel .slide{min-width:100%;aspect-ratio:16/9;background:rgba(0,0,0,.12)}
.carousel img{width:100%;height:100%;object-fit:contain;display:block;background:rgba(0,0,0,.10)}

.carousel .navbtn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(6,21,34,.55);
  color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  font-weight:900;
}
.carousel .navbtn:hover{background:rgba(6,21,34,.72)}
.carousel .prev{left:10px}
.carousel .next{right:10px}

.carousel .dots{
  position:absolute;left:50%;transform:translateX(-50%);bottom:10px;
  display:flex;gap:8px;padding:8px 10px;border-radius:999px;
  background:rgba(6,21,34,.45);border:1px solid rgba(255,255,255,.14);
}
.carousel .dot{width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.40);border:0;cursor:pointer;padding:0}
.carousel .dot.active{background:rgba(255,255,255,.92)}
.carousel .empty{padding:26px;color:rgba(255,255,255,.86)}
@media (max-width:980px){
  .carousel .navbtn{width:42px;height:42px}
  .carousel{min-height:200px}
}
