/* =========================================================
   Black Forest RMS GmbH
   Neuer kompletter CSS-Aufbau
   Datei: style_neu.css

   Hinweis:
   - Diese Datei kann deine bisherige style.css ersetzen.
   - Die bestehenden HTML-Klassen bleiben unterstützt.
   - Google Maps, Cookie-Hinweis, Navigation, Kontaktkarten,
     rechtliche Seiten und mobile Darstellung sind enthalten.
   ========================================================= */


/* =========================
   1. Grundvariablen
   ========================= */
:root{
  --bg:#070b12;
  --bg-soft:#0d141d;
  --bg-card:#151c25;
  --bg-card-2:#111923;

  --text:#f4f7fb;
  --text-soft:rgba(244,247,251,.78);
  --text-muted:rgba(244,247,251,.62);

  --line:rgba(255,255,255,.12);
  --line-strong:rgba(255,255,255,.20);

  --accent:#77d38a;
  --accent-2:#dce8ff;

  --shadow:0 22px 70px rgba(0,0,0,.42);
  --shadow-soft:0 14px 42px rgba(0,0,0,.28);

  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:10px;

  --max:1180px;
  --topbar-height:86px;
}


/* =========================
   2. Reset / Basis
   ========================= */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  background:var(--bg);
}

html,
body{
  margin:0;
  padding:0;
  min-height:100%;
}

body{
  font-family:"Inter","Manrope","Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 560px at 12% -6%, rgba(119,211,138,.11), transparent 58%),
    radial-gradient(800px 520px at 90% 12%, rgba(160,190,255,.10), transparent 60%),
    linear-gradient(180deg, #071019 0%, #0a1018 48%, #071019 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img,
picture,
svg,
canvas,
iframe{
  display:block;
  max-width:100%;
}

iframe{
  width:100%;
}

a{
  color:var(--accent);
  text-decoration:none;
  transition:color .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}

a:hover{
  color:#a2efaf;
  text-decoration:underline;
  text-underline-offset:4px;
}

p{
  margin-top:0;
}

ul{
  margin-top:0;
}

::selection{
  background:rgba(119,211,138,.28);
  color:#fff;
}


/* =========================
   3. Hilfsklassen
   ========================= */
.container{
  width:min(calc(100% - 48px), var(--max));
  margin-inline:auto;
}

.page{
  position:relative;
  z-index:1;
}

.section{
  position:relative;
  padding:92px 0;
}

.section-dark-accent{
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
}

.section-head{
  max-width:880px;
  margin:0 0 34px;
}

.section-head h1,
.section-head h2,
.legal-page h1{
  margin:0 0 14px;
  font-family:"Space Grotesk","Manrope","Inter",sans-serif;
  font-size:clamp(34px, 4.4vw, 54px);
  line-height:1.02;
  font-weight:650;
  letter-spacing:-.035em;
  color:#fff;
}

.section-sub{
  margin:0;
  max-width:860px;
  color:var(--text-soft);
  font-size:clamp(16px, 1.5vw, 19px);
  line-height:1.65;
}

.muted,
.small-location-text,
.company-text-inner p,
.text-columns p,
.textpad p,
.contact-main-inner p{
  color:var(--text-soft);
  line-height:1.75;
}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}


/* =========================
   4. Hintergrund-Effekte
   ========================= */
.grain{
  pointer-events:none;
  position:fixed;
  inset:0;
  z-index:0;
  opacity:.06;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size:42px 42px;
  mix-blend-mode:screen;
}

.cursor-spot,
.cursor-dot{
  display:none;
}


/* =========================
   5. Topbar / Navigation
   ========================= */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:2000;
  padding:10px 0 8px;
  background:
    linear-gradient(180deg, rgba(7,11,18,.92), rgba(7,11,18,.70) 72%, rgba(7,11,18,0));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* unterstützt auch ältere Struktur: <div class="topbar container"> */
.topbar.container{
  left:50%;
  right:auto;
  transform:translateX(-50%);
  width:min(calc(100% - 48px), var(--max));
}

.topbar .container,
.topbar-inner{
  width:min(calc(100% - 24px), 1280px);
  margin-inline:auto;
}

.topbar-inner{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.topbar-row{
  display:flex;
  align-items:center;
}

.topbar-row-1{
  justify-content:space-between;
  gap:20px;
}

.topbar-row-2{
  justify-content:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.logo{
  width:52px;
  height:52px;
  object-fit:contain;
  flex:0 0 auto;
  border-radius:15px;
  padding:7px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 34px rgba(0,0,0,.28);
}

.brand-text{
  min-width:0;
  line-height:1.12;
}

.brand-name{
  font-size:15px;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
}

.brand-sub{
  margin-top:3px;
  font-size:11px;
  color:var(--text-muted);
  white-space:nowrap;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.navigation{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-wrap:wrap;
}

.menu-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  min-height:34px;
  border-radius:999px;
  color:#fff !important;
  font-size:14px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  text-decoration:none !important;
  border:1px solid transparent;
}

.menu-link:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.08);
}

.menu-link.button{
  background:rgba(119,211,138,.16);
  border-color:rgba(119,211,138,.30);
}

.lang-switch,
.desktop-lang-switch,
.mobile-lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}

.lang-switch a,
.desktop-lang-switch a,
.mobile-lang-switch a{
  color:#fff !important;
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  text-decoration:none !important;
  opacity:.7;
}

.lang-switch a.active,
.desktop-lang-switch a.active,
.mobile-lang-switch a.active{
  opacity:1;
}

.lang-switch span,
.desktop-lang-switch span,
.mobile-lang-switch span{
  color:rgba(255,255,255,.45);
}

.mobile-nav{
  display:none;
}

.mobile-nav select{
  width:180px;
  max-width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.38);
  color:#fff;
  font-weight:750;
  outline:none;
}


/* =========================
   6. Hero
   ========================= */
.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:#03060a;
  padding-top:var(--topbar-height);
}

.header-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  opacity:.98;
  transition:opacity .7s ease;
}

#hero3d{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  pointer-events:none;
  opacity:.35;
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(90deg, rgba(4,7,12,.88) 0%, rgba(4,7,12,.60) 38%, rgba(4,7,12,.18) 100%),
    linear-gradient(180deg, rgba(4,7,12,.24) 0%, rgba(4,7,12,.16) 44%, rgba(7,11,18,.92) 100%);
}

.hero-content{
  position:relative;
  z-index:3;
  min-height:calc(100vh - var(--topbar-height));
  display:flex;
  align-items:flex-end;
  padding:54px 0 78px;
}

.hero-content.container{
  width:min(calc(100% - 48px), var(--max));
  margin-inline:auto;
}

.hero-content .container{
  display:flex;
  justify-content:flex-start;
}

.hero-copy{
  width:min(100%, 790px);
}

.headline{
  margin:0 0 24px;
  font-family:"Manrope","Space Grotesk","Inter",sans-serif;
  font-size:clamp(48px, 7vw, 96px);
  line-height:.94;
  font-weight:800;
  letter-spacing:-.055em;
  color:#fff;
  text-wrap:balance;
  text-shadow:0 16px 48px rgba(0,0,0,.36);
}

.hero-statement,
.hero-lead-main,
.lead{
  max-width:760px;
}

.hero-lead-main,
.lead{
  margin:0;
  color:rgba(255,255,255,.90);
  font-size:clamp(18px, 2vw, 29px);
  line-height:1.36;
  font-weight:500;
  text-wrap:balance;
  text-shadow:0 8px 30px rgba(0,0,0,.30);
}

.hero-lead-soft{
  margin-top:12px;
  max-width:720px;
  color:rgba(255,255,255,.68);
  font-size:17px;
  line-height:1.7;
}


/* =========================
   7. Karten / Panels
   ========================= */
.card{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-xl);
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.card::before{
  content:"";
  pointer-events:none;
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(140deg, rgba(255,255,255,.11), transparent 28%, transparent 72%, rgba(119,211,138,.07));
  opacity:.9;
}

.card > *{
  position:relative;
  z-index:1;
}

.company-text-inner,
.contact-main-inner,
.location-card-inner,
.textpad{
  padding:32px;
}

.company-text-flow{
  padding:12px 4px 6px;
}

.company-text-inner h3,
.services-column h3,
.textpad h3,
.contact-main-inner h3,
.location-head h3{
  margin:0 0 18px;
  color:#fff;
  font-family:"Space Grotesk","Manrope","Inter",sans-serif;
  font-size:clamp(22px, 2.1vw, 28px);
  font-weight:600;
  letter-spacing:-.025em;
}

.company-text-inner p{
  margin:0 0 18px;
}

.intro-line{
  max-width:930px;
  margin:0 0 28px;
  color:var(--text-soft);
  font-size:clamp(18px, 1.7vw, 22px);
  line-height:1.65;
}

.intro-line-strong{
  color:#fff;
  font-weight:550;
}

.text-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}

.text-columns p{
  margin:0 0 18px;
}


/* =========================
   8. Engineering
   ========================= */
.engineering-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
}

.engineering-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(280px, .9fr);
  gap:34px;
  align-items:start;
  padding:32px;
}

.engineering-main p{
  margin:0 0 18px;
  color:var(--text-soft);
  line-height:1.78;
}

.engineering-highlight{
  color:#fff !important;
  font-size:clamp(18px, 1.8vw, 24px);
  line-height:1.5 !important;
  font-weight:600;
}

.engineering-points{
  display:grid;
  gap:14px;
}

.engineering-point{
  padding:18px;
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
}

.engineering-label{
  display:inline-block;
  margin-bottom:8px;
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.engineering-point p{
  margin:0;
  color:var(--text-soft);
  line-height:1.65;
}


/* =========================
   9. Leistungen / Bilder
   ========================= */
.services-bg{
  overflow:hidden;
  background:#071019;
}

.services-slider{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.services-slider .slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.04);
  animation:servicesFade 24s infinite;
  filter:saturate(.92) contrast(1.02);
}

.services-slider .slide-1{background-image:url("img/spiegel1.jpg"); animation-delay:0s;}
.services-slider .slide-2{background-image:url("img/spiegel2.jpg"); animation-delay:8s;}
.services-slider .slide-3{background-image:url("img/spiegel3.jpg"); animation-delay:16s;}

.services-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg, rgba(7,11,18,.84), rgba(7,11,18,.70) 45%, rgba(7,11,18,.90)),
    radial-gradient(800px 480px at 50% 40%, rgba(255,255,255,.06), transparent 65%);
}

.services-bg .container{
  position:relative;
  z-index:2;
}

@keyframes servicesFade{
  0%,100%{opacity:0;}
  8%,30%{opacity:.26;}
  38%{opacity:0;}
}

.services-card,
.project-links-card{
  padding:32px;
}

.services-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}

.services-list{
  margin:0;
  padding-left:20px;
}

.services-list li{
  margin:0 0 10px;
  color:var(--text-soft);
  line-height:1.7;
}

.services-list strong{
  display:block;
  margin:20px 0 10px;
  color:#fff;
}

.services-images{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:30px;
}

.project-links-card .services-images{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.service-image-card{
  position:relative;
  min-height:240px;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  box-shadow:var(--shadow-soft);
}

.service-image-card a{
  display:block;
  width:100%;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.service-image-card img{
  width:100%;
  height:100%;
  min-height:240px;
  object-fit:cover;
  transition:transform .45s ease, filter .45s ease;
}

.service-image-card:hover img{
  transform:scale(1.055);
  filter:brightness(1.06);
}

.service-image-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:38px 18px 18px;
  color:#fff;
  font-weight:700;
  line-height:1.35;
  background:linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,0));
}

.service-image-caption small{
  color:rgba(255,255,255,.74);
  font-weight:600;
}


/* =========================
   10. Split / Video
   ========================= */
.split{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(300px, .85fr);
  gap:0;
}

.split-left,
.split-right{
  min-width:0;
}

.split-right{
  border-left:1px solid rgba(255,255,255,.10);
}

.youtube,
.video-container iframe{
  width:100%;
  aspect-ratio:16 / 9;
  min-height:320px;
  border:0;
  border-radius:var(--radius-lg);
}

.list{
  display:grid;
  gap:12px;
  margin-top:22px;
}

.li{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:600;
}

.dot{
  width:9px;
  height:9px;
  flex:0 0 9px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 6px rgba(119,211,138,.10);
}


/* =========================
   11. Kontakt / Standort / Maps
   ========================= */
.contact-layout{
  display:grid;
  grid-template-columns:minmax(320px, .86fr) minmax(0, 1.14fr);
  gap:28px;
  align-items:start;
}

.contact-main-card,
.location-card{
  min-width:0;
}

.contact-address{
  margin:0 0 26px;
  color:#fff;
  font-size:18px;
  line-height:1.75;
  font-weight:550;
}

.contact-info-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin:22px 0;
}

.compact-info-grid{
  grid-template-columns:1fr;
}

.mini{
  padding:16px;
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
}

.mini-k{
  margin-bottom:5px;
  color:var(--text-muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.mini-v{
  color:#fff;
  font-size:16px;
  font-weight:650;
  word-break:break-word;
}

.contact-note{
  margin-top:26px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.10);
}

.contact-note h3{
  font-size:22px;
}

.contact-side-stack{
  display:grid;
  gap:28px;
}

.location-card-inner{
  padding:28px;
}

.location-head{
  margin-bottom:20px;
}

.location-head h3{
  margin-bottom:10px;
}

.small-location-text{
  margin:0;
  font-size:16px;
  font-weight:600;
}

.cookie-map-placeholder{
  min-height:312px;
  padding:0;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.location-map,
.map{
  display:block;
  width:100%;
  height:312px;
  border:0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:#0e141d;
}


/* =========================
   12. Cookie Platzhalter / Consent
   ========================= */
.cookie-placeholder{
  position:relative;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:14px;
  padding:28px;
  text-align:center;
  color:var(--text-soft);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(119,211,138,.10), transparent 60%),
    rgba(255,255,255,.045);
}

.cookie-placeholder p{
  max-width:520px;
  margin:0;
  color:var(--text-soft);
  line-height:1.65;
}

.cookie-placeholder button,
.cookie-actions button{
  appearance:none;
  border:1px solid rgba(119,211,138,.36);
  border-radius:999px;
  padding:11px 16px;
  color:#071019;
  background:var(--accent);
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, background .18s ease;
}

.cookie-placeholder button:hover,
.cookie-actions button:hover{
  transform:translateY(-1px);
  opacity:.92;
}

.blocked-media{
  display:none;
}

.cookie-banner[hidden]{
  display:none !important;
}

.cookie-banner{
  position:fixed;
  inset:auto 20px 20px auto;
  z-index:5000;
  width:min(420px, calc(100% - 40px));
}

.cookie-box{
  padding:24px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.16);
  background:rgba(13,20,29,.96);
  box-shadow:0 26px 80px rgba(0,0,0,.52);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.cookie-box h3{
  margin:0 0 10px;
  color:#fff;
  font-size:22px;
}

.cookie-box p{
  margin:0 0 18px;
  color:var(--text-soft);
  line-height:1.6;
}

.cookie-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.cookie-actions button:last-child{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}

.cookie-links{
  display:flex;
  gap:16px;
  margin-top:16px;
  font-size:14px;
}


/* =========================
   13. Footer
   ========================= */
.footer{
  padding:32px 0 46px;
  border-top:1px solid rgba(255,255,255,.10);
  color:var(--text-muted);
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}


/* =========================
   14. Rechtliche Seiten
   ========================= */
.legal-page{
  padding-top:120px;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(119,211,138,.09), transparent 60%),
    linear-gradient(180deg, #071019 0%, #09131d 100%);
}

.legal-page .section{
  padding-top:40px;
}

.legal-page .container{
  max-width:980px;
}

.legal-page h1{
  margin-bottom:34px;
}

.legal-page h3{
  margin:34px 0 12px;
  color:#fff;
  font-family:"Space Grotesk","Manrope","Inter",sans-serif;
  font-size:24px;
  font-weight:650;
  letter-spacing:-.02em;
}

.legal-page p,
.legal-page li{
  color:var(--text-soft);
  line-height:1.75;
}

.legal-page ul{
  padding-left:22px;
}


/* =========================
   15. Reveal Animation
   ========================= */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .65s ease, transform .65s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }

  .reveal{
    opacity:1;
    transform:none;
  }
}


/* =========================
   16. Responsive
   ========================= */
@media (max-width:1050px){
  :root{
    --topbar-height:78px;
  }

  .navigation{
    gap:2px;
  }

  .menu-link{
    padding-inline:9px;
    font-size:13px;
  }

  .contact-layout{
    grid-template-columns:1fr;
  }

  .contact-side-stack{
    grid-template-columns:1fr 1fr;
  }

  .engineering-grid,
  .split{
    grid-template-columns:1fr;
  }

  .split-right{
    border-left:0;
    border-top:1px solid rgba(255,255,255,.10);
  }
}

@media (max-width:820px){
  .container{
    width:min(calc(100% - 32px), var(--max));
  }

  .topbar{
    padding:8px 0;
  }

  .topbar-inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }

  .topbar-row-1{
    flex:1;
  }

  .topbar-row-2,
  .navigation,
  .desktop-lang-switch{
    display:none;
  }

  .mobile-nav{
    display:flex;
    align-items:center;
    gap:10px;
  }

  .mobile-lang-switch{
    display:flex;
  }

  .brand-sub{
    display:none;
  }

  .logo{
    width:46px;
    height:46px;
  }

  .hero-content{
    padding-bottom:56px;
  }

  .section{
    padding:72px 0;
  }

  .text-columns,
  .services-grid,
  .services-images,
  .project-links-card .services-images,
  .contact-side-stack{
    grid-template-columns:1fr;
  }

  .services-card,
  .project-links-card,
  .engineering-grid,
  .company-text-inner,
  .contact-main-inner,
  .location-card-inner,
  .textpad{
    padding:24px;
  }

  .service-image-card,
  .service-image-card img{
    min-height:220px;
  }

  .cookie-banner{
    left:16px;
    right:16px;
    bottom:16px;
    width:auto;
  }
}

@media (max-width:560px){
  :root{
    --topbar-height:72px;
  }

  .container{
    width:min(calc(100% - 24px), var(--max));
  }

  .brand-name{
    font-size:13px;
  }

  .logo{
    width:42px;
    height:42px;
    border-radius:13px;
  }

  .mobile-nav select{
    width:142px;
    padding:10px 12px;
    font-size:13px;
  }

  .mobile-lang-switch{
    padding:7px 10px;
  }

  .mobile-lang-switch a{
    font-size:12px;
  }

  .headline{
    font-size:clamp(42px, 13vw, 58px);
  }

  .hero-lead-main,
  .lead{
    font-size:18px;
  }

  .section{
    padding:58px 0;
  }

  .section-head h1,
  .section-head h2,
  .legal-page h1{
    font-size:34px;
  }

  .card{
    border-radius:22px;
  }

  .contact-info-grid{
    grid-template-columns:1fr;
  }

  .location-map,
  .map{
    height:280px;
  }

  .cookie-map-placeholder{
    min-height:280px;
  }

  .footer-row{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* =========================================================
   FIX 2026-07-10
   Standortkarten: Produktion und Verwaltung gleicher Kastenhintergrund
   ========================================================= */

.contact-layout .location-card,
.contact-side-stack .location-card,
.contact-side-stack .location-card:nth-child(1),
.contact-side-stack .location-card:nth-child(2){
  background:linear-gradient(180deg, #343c45 0%, #29313a 100%) !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:28px !important;
  box-shadow:0 20px 55px rgba(0,0,0,.32) !important;
  overflow:hidden !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* den zusätzlichen Licht-/Glas-Effekt der allgemeinen .card entfernen,
   damit beide Standortkästen exakt gleich wirken */
.contact-layout .location-card::before,
.contact-side-stack .location-card::before{
  content:none !important;
  display:none !important;
}

.location-card .location-card-inner{
  background:transparent !important;
  padding:30px !important;
}

.location-card .location-head{
  margin-bottom:22px !important;
}

.location-card .location-head h3{
  margin:0 0 12px !important;
  color:#f4f7fb !important;
  font-size:28px !important;
  font-weight:700 !important;
  letter-spacing:-.02em !important;
}

.location-card .small-location-text{
  margin:0 !important;
  color:rgba(244,247,251,.72) !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.55 !important;
}

/* innerer Rahmen der Google-Maps-Box */
.location-card .cookie-map-placeholder{
  min-height:0 !important;
  padding:28px !important;
  border-radius:22px !important;
  border:1px solid rgba(255,255,255,.15) !important;
  background:#202832 !important;
  overflow:hidden !important;
}

.location-card .location-map,
.location-card .map{
  width:100% !important;
  height:310px !important;
  border:0 !important;
  border-radius:18px !important;
  overflow:hidden !important;
  background:#111923 !important;
}

/* mobil etwas niedriger */
@media (max-width:560px){
  .location-card .location-card-inner{
    padding:24px !important;
  }

  .location-card .cookie-map-placeholder{
    padding:18px !important;
  }

  .location-card .location-map,
  .location-card .map{
    height:270px !important;
  }
}

/* Header and mobile navigation: 22 October 2026 */
:root { --topbar-height: 134px; }
.logo { width: 84px; height: 84px; padding: 2px; }
.topbar-actions { flex-shrink: 0; }
.contact-side-stack { grid-template-columns: 1fr; }
.services-slider .slide { animation: none; transition: opacity 1.2s ease; }
.services-slider .slide.is-active { opacity: .26; }
.services-slider .slide:not(.is-active) { opacity: 0; }
@media (max-width: 820px) {
  :root { --topbar-height: 142px; }
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .topbar-row-1 { flex: 0 0 auto; width: 100%; gap: 8px; }
  .brand { gap: 12px; min-width: 0; }
  .brand-name { white-space: normal; font-size: 15px; }
  .logo { width: 68px; height: 68px; padding: 2px; }
  .mobile-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .mobile-nav select { width: auto; min-width: 0; flex: 1 1 0; min-height: 44px; }
  .mobile-lang-switch { flex: 0 0 auto; gap: 6px; padding: 0 8px; min-height: 44px; }
  .mobile-lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; font-size: 13px; }
  .legal-page { padding-top: 150px; }
}

/* Larger brand and fixed mobile language controls */
.topbar .logo { width:120px; height:120px; padding:4px; background:#e7e9e8; border-radius:18px; }
.topbar .brand-name { font-size:18px; }
@media (max-width:820px) {
 .topbar .logo { width:88px; height:88px; flex:0 0 88px; }
 .topbar .brand-name { font-size:16px; }
 .topbar .topbar-inner { display:flex; flex-direction:column; width:calc(100% - 24px); }
 .topbar .mobile-nav { display:grid; grid-template-columns:minmax(0,1fr) 112px; width:100%; gap:12px; }
 .topbar .mobile-nav select { width:100%; min-width:0; }
 .topbar .mobile-lang-switch { width:112px; justify-content:center; padding:0 4px; gap:2px; }
 .topbar .mobile-lang-switch a { min-width:44px; min-height:44px; font-size:15px; }
}
/* Original logo with light background. */
.topbar .logo { background: #e7e9e8; }
.workpiece-photo { display:block; width:100%; height:100%; min-height:280px; object-fit:cover; }

/* Original company name colour. */
.topbar .brand-name { color: #fff; }
