:root{--green:#063f2a;--green-soft:#0f5a3d;--text:#111827;--heading:#0f172a;--muted:#64748b;--body-muted:#475569;--line:#e5e7eb;--bg:#f8fafc;--card:#fff;--white:#fff;--radius:24px;--header-bg:rgba(255,255,255,.88);--shadow:rgba(15,23,42,.14)}
body.dark{--green:#4fb37d;--green-soft:#7cc99e;--text:#e5e7eb;--heading:#f8fafc;--muted:#94a3b8;--body-muted:#cbd5e1;--line:#1f2937;--bg:#0f172a;--card:#111827;--white:#020617;--header-bg:rgba(2,6,23,.86);--shadow:rgba(0,0,0,.32)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--white)}a{color:inherit;text-decoration:none}.container{width:min(1480px,calc(100% - 56px));margin:0 auto}.site-header{position:sticky;top:0;z-index:10;background:var(--header-bg);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.nav{height:84px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:14px;margin-right:auto}.brand-icon{width:78px;color:var(--green)}.brand-icon svg{width:100%;display:block;fill:none;stroke:currentColor;stroke-width:7;stroke-linecap:square;stroke-linejoin:miter}.brand-text{display:flex;flex-direction:column;line-height:1}.brand-text strong{font-size:24px;letter-spacing:-.04em;color:var(--green)}.brand-text span{margin-top:5px;font-size:13px;letter-spacing:.22em;text-transform:uppercase;color:var(--green-soft)}.desktop-nav{display:flex;align-items:center;gap:24px;font-size:15px;color:var(--body-muted)}.desktop-nav a:hover{color:var(--green)}.language-switch{display:flex;gap:4px;padding:4px;background:var(--bg);border:1px solid var(--line);border-radius:999px}.language-switch button{border:0;background:transparent;color:var(--muted);font-weight:700;font-size:12px;padding:8px 10px;border-radius:999px;cursor:pointer}.language-switch button.active{background:var(--green);color:var(--white)}.menu-button{display:none;border:0;background:var(--green);color:white;border-radius:10px;padding:10px 13px;font-size:18px}.mobile-nav{display:none;border-top:1px solid var(--line);padding:16px 20px 22px;background:var(--card)}.mobile-nav a{display:block;padding:10px 0;color:var(--body-muted)}.hero{padding:88px 0 70px;background:radial-gradient(circle at top right,rgba(6,63,42,.16),transparent 34%),linear-gradient(180deg,var(--white) 0%,var(--bg) 100%)}.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:56px;align-items:center}.eyebrow,.section-label{margin:0 0 14px;font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--green-soft)}h1,h2,h3,p{margin-top:0}h1{margin-bottom:22px;font-size:clamp(44px,7vw,76px);line-height:.95;letter-spacing:-.06em;color:var(--heading)}h2{font-size:clamp(32px,4vw,48px);line-height:1.03;letter-spacing:-.05em;margin-bottom:18px}h3{margin-bottom:10px;font-size:21px;letter-spacing:-.03em}.hero-text{font-size:20px;line-height:1.65;color:var(--body-muted);max-width:620px}.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0 26px}.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:14px 22px;font-weight:800;transition:transform .18s ease,box-shadow .18s ease}.btn:hover{transform:translateY(-2px)}.btn.primary{color:white;background:var(--green);box-shadow:0 16px 34px rgba(6,63,42,.22)}.btn.secondary{color:var(--green);background:var(--card);border:1px solid #d6ded9}.trust-row{display:flex;flex-wrap:wrap;gap:12px;color:var(--body-muted);font-weight:650;font-size:14px}.hero-card{position:relative}.image-placeholder{min-height:230px;display:grid;place-items:center;border-radius:var(--radius);color:var(--muted);background:linear-gradient(135deg,rgba(6,63,42,.16),rgba(6,63,42,.04)),repeating-linear-gradient(45deg,#f1f5f9,#f1f5f9 12px,#e9eef3 12px,#e9eef3 24px);border:1px solid #d8e0e5;text-align:center;padding:24px}.image-placeholder.large{min-height:520px}.floating-card{position:absolute;left:26px;right:26px;bottom:26px;padding:22px;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.75);border-radius:20px;box-shadow:0 20px 60px rgba(15,23,42,.14)}.floating-card strong,.floating-card span{display:block}.floating-card strong{margin-bottom:6px;color:var(--green);font-size:18px}.floating-card span{color:var(--body-muted);line-height:1.5}.section{padding:86px 0}.intro-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:start}.intro p:last-child,.region-box p,.contact p{color:var(--body-muted);font-size:18px;line-height:1.7}.section-head{max-width:720px;margin-bottom:34px}.services,.gallery{background:var(--bg)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{min-height:260px;padding:28px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}.card p,.step p{color:var(--muted);line-height:1.6}.card-icon{width:48px;height:48px;margin-bottom:34px;display:grid;place-items:center;border-radius:14px;background:rgba(6,63,42,.10);color:var(--green);font-weight:900}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.step{position:relative;padding:28px;border-radius:var(--radius);border:1px solid var(--line);background:var(--card)}.step span{display:inline-grid;place-items:center;width:38px;height:38px;margin-bottom:42px;border-radius:50%;background:var(--green);color:white;font-weight:900}.gallery-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.region-box{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;padding:42px;background:var(--green);color:white;border-radius:34px}.region-box .section-label,.region-box p{color:rgba(255,255,255,.78)}.region-tags{display:flex;flex-wrap:wrap;gap:12px}.region-tags span{padding:12px 16px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:white;font-weight:700}.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px}.contact-details{margin-top:28px;padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius)}.contact-details p{margin-bottom:10px;font-size:16px}.contact-form{padding:30px;border:1px solid var(--line);border-radius:30px;box-shadow:0 24px 70px rgba(15,23,42,.08)}.contact-form label{display:block;margin-bottom:16px;color:var(--body-muted);font-weight:750}input,select,textarea{width:100%;margin-top:8px;border:1px solid #d6dde5;border-radius:16px;padding:14px 16px;font:inherit;color:var(--heading);background:var(--card)}textarea{resize:vertical}.contact-form small{display:block;margin-top:14px;color:var(--muted);line-height:1.5}.site-footer{padding:36px 0;border-top:1px solid var(--line);background:var(--bg)}.footer-grid{display:flex;justify-content:space-between;gap:24px;align-items:center}.footer-grid strong{color:var(--green);font-size:20px}.footer-grid p{margin:6px 0 0;color:var(--muted)}.footer-links{display:flex;gap:18px;color:var(--body-muted)}@media(max-width:980px){.desktop-nav,.language-switch{display:none}.menu-button{display:inline-block}.mobile-nav.open{display:block}.hero-grid,.intro-grid,.region-box,.contact-grid{grid-template-columns:1fr}.cards,.timeline{grid-template-columns:repeat(2,1fr)}.gallery-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.container{width:min(100% - 28px,1160px)}.nav{height:76px}.brand-icon{width:58px}.brand-text strong{font-size:20px}.brand-text span{font-size:10px}.hero{padding:58px 0 44px}.hero-actions{flex-direction:column}.btn{width:100%}.cards,.timeline,.gallery-grid{grid-template-columns:1fr}.section{padding:62px 0}.image-placeholder.large{min-height:360px}.footer-grid{align-items:flex-start;flex-direction:column}}

.hero-image {
  width: 100%;
  min-height: 520px;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius);
  border: 1px solid #d8e0e5;
  box-shadow: 0 28px 80px rgba(15,23,42,0.16);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid #d8e0e5;
  background: #e5e7eb;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  color: var(--green);
  font-weight: 800;
  line-height: 1.35;
}

@media(max-width:980px){
  .gallery-item.wide {
    grid-column: span 1;
  }
}

@media(max-width:620px){
  .hero-image {
    height: 360px;
    min-height: 360px;
  }
}


.theme-toggle{
  width:42px;
  height:42px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--green);
  border-radius:999px;
  font-size:18px;
  cursor:pointer;
  font-weight:900;
}

.theme-toggle:hover{
  transform:translateY(-1px);
}

body.dark .brand-text strong,
body.dark .brand-text span,
body.dark .desktop-nav a:hover,
body.dark .card-icon,
body.dark .footer-grid strong,
body.dark .gallery-item figcaption,
body.dark .btn.secondary{
  color:var(--green);
}

body.dark .language-switch{
  background:#111827;
}

body.dark input,
body.dark select,
body.dark textarea{
  background:#020617;
  border-color:#334155;
  color:#e5e7eb;
}

body.dark .hero-image,
body.dark .gallery-item{
  border-color:#243244;
}

.service-cards{
  grid-template-columns:repeat(3,1fr);
}

.service-card{
  min-height:360px;
  display:flex;
  flex-direction:column;
}

.service-media{
  height:150px;
  margin:-8px -8px 24px;
  border-radius:18px;
  overflow:hidden;
}

.placeholder-media{
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:14px;
  font-weight:800;
  background:
    linear-gradient(135deg,rgba(6,63,42,.12),rgba(6,63,42,.03)),
    repeating-linear-gradient(45deg,var(--bg),var(--bg) 12px,rgba(6,63,42,.05) 12px,rgba(6,63,42,.05) 24px);
  border:1px solid var(--line);
}

.timeline-five{
  grid-template-columns:repeat(5,1fr);
}

body.dark .floating-card,
body.dark .gallery-item figcaption{
  background:rgba(17,24,39,.88);
  border-color:rgba(148,163,184,.18);
}

@media(max-width:1180px){
  .timeline-five{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:980px){
  .theme-toggle{
    display:inline-grid;
  }
  .service-cards{
    grid-template-columns:repeat(2,1fr);
  }
  .timeline-five{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:620px){
  .container{
    width:min(100% - 28px,1480px);
  }
  .service-cards,
  .timeline-five{
    grid-template-columns:1fr;
  }
}




/* Update 4: restored refined green accent */
body:not(.dark) .btn.primary {
  color: #ffffff;
}

body:not(.dark) .region-box {
  background: linear-gradient(135deg, #063f2a 0%, #082f20 58%, #041f16 100%);
}

body.dark .btn.primary {
  color: #ffffff;
  background: #2f8a61;
  box-shadow: 0 16px 34px rgba(47,138,97,.28);
}

body.dark .region-box {
  background: linear-gradient(135deg, #041f16 0%, #082f20 58%, #020617 100%);
}

body.dark .brand-icon,
body.dark .brand-text strong,
body.dark .brand-text span {
  color: #4fb37d;
}


/* Update 5: service layout for five corrected services */
@media(max-width:1320px){
  .service-cards{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:980px){
  .service-cards{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:620px){
  .service-cards{
    grid-template-columns:1fr;
  }
}


/* Update 6: form button and refined dark-mode green */
.contact-form .submit-btn,
.contact-form .btn.primary {
  border: 0 !important;
  outline: none;
}

.contact-form .submit-btn {
  cursor: pointer;
  font-family: inherit;
}

body.dark .contact-form .submit-btn {
  background: #2f8a61;
  color: #ffffff;
}

body.dark .card-icon {
  background: rgba(79,179,125,.14);
}

body.dark .theme-toggle {
  color: #4fb37d;
}

/* Update 7: stable layout, centered service cards, better process cards */

/* Anchor scroll spacing: keeps section headings from sitting directly under header */
section[id] {
  scroll-margin-top: 118px;
}

/* Einzugsgebiet: no permanently dark block */
.region-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eef5f1 100%) !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(15,23,42,0.07);
}

.region-box .section-label {
  color: var(--green-soft) !important;
}

.region-box h2 {
  color: var(--heading) !important;
}

.region-box p {
  color: var(--body-muted) !important;
}

.region-tags span {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--green) !important;
}

body.dark .region-box {
  background: linear-gradient(135deg, #111827 0%, #0b1f18 100%) !important;
  color: var(--text) !important;
  border-color: #243244;
  box-shadow: none;
}

body.dark .region-box h2 {
  color: var(--heading) !important;
}

body.dark .region-tags span {
  background: #020617 !important;
  border-color: #243244 !important;
  color: #4fb37d !important;
}

/* Leistungen: 3 cards top row, 2 cards centered below */
.service-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.service-card {
  grid-column: span 2;
  min-height: 410px;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* Ablauf: 3 cards top row, 2 centered below; cards have enough width */
.timeline-five {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 22px;
}

.timeline-five .step {
  grid-column: span 2;
  min-height: 270px;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 32px;
}

.timeline-five .step:nth-child(4) {
  grid-column: 2 / span 2;
}

.timeline-five .step:nth-child(5) {
  grid-column: 4 / span 2;
}

.timeline-five .step span {
  margin-bottom: 28px;
}

/* Reduce language-switch layout jumps */
.hero-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
}

.hero-text {
  min-height: 104px;
}

.desktop-nav {
  min-width: 530px;
  justify-content: flex-end;
}

.desktop-nav a {
  min-width: 86px;
  text-align: center;
}

.desktop-nav a[href="#ueber-uns"] {
  min-width: 96px;
}

.language-switch button {
  min-width: 34px;
}

.section-head h2 {
  min-height: 104px;
}

.card h3 {
  min-height: 58px;
  display: flex;
  align-items: flex-end;
}

.card p {
  min-height: 96px;
}

.step h3 {
  min-height: 34px;
}

.step p {
  min-height: 112px;
}

/* make form button consistent */
.contact-form .btn.primary,
.contact-form .submit-btn {
  border: 0 !important;
  outline: none !important;
}

/* Slightly brighter, but still refined green in dark mode */
body.dark {
  --green: #4fb37d;
  --green-soft: #7cc99e;
}

body.dark .btn.primary {
  background: #2f8a61;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(47,138,97,.26);
}

body.dark .brand-icon,
body.dark .brand-text strong,
body.dark .brand-text span,
body.dark .theme-toggle {
  color: #4fb37d;
}

body.dark .card-icon {
  background: rgba(79,179,125,.14);
}

@media(max-width:1320px){
  .service-cards,
  .timeline-five {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .timeline-five .step,
  .timeline-five .step:nth-child(4),
  .timeline-five .step:nth-child(5) {
    grid-column: auto;
  }

  .service-card:nth-child(5),
  .timeline-five .step:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 720px;
    width: 100%;
    justify-self: center;
  }

  .hero-copy h1 {
    min-height: 190px;
  }

  .desktop-nav {
    min-width: 500px;
  }
}

@media(max-width:980px){
  section[id] {
    scroll-margin-top: 98px;
  }

  .desktop-nav {
    min-width: 0;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-copy h1,
  .hero-text,
  .section-head h2,
  .card h3,
  .card p,
  .step h3,
  .step p {
    min-height: 0;
  }
}

@media(max-width:620px){
  section[id] {
    scroll-margin-top: 88px;
  }

  .service-cards,
  .timeline-five {
    grid-template-columns: 1fr !important;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .timeline-five .step,
  .timeline-five .step:nth-child(4),
  .timeline-five .step:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }

  .step {
    padding: 28px;
  }
}

/* Update 8: fix process text wrapping after multilingual spans */

/* Only the direct number circle in each process card should get circle styling */
.step > span {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 28px !important;
  border-radius: 50% !important;
  background: var(--green) !important;
  color: white !important;
  font-weight: 900 !important;
}

/* Text spans inside paragraphs must behave like normal text */
.step p span,
.card p span,
.contact p span,
.region-box p span,
.gallery-item figcaption span,
.footer-grid p span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
}

/* Give process cards comfortable text layout */
.timeline-five .step p {
  max-width: none !important;
  width: 100% !important;
  line-height: 1.65 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.timeline-five .step {
  overflow: hidden;
}

/* Update 9: five process cards side by side */
.timeline-five {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px;
}

.timeline-five .step,
.timeline-five .step:nth-child(4),
.timeline-five .step:nth-child(5) {
  grid-column: auto !important;
  max-width: none !important;
  width: auto !important;
  justify-self: stretch !important;
  min-height: 390px;
  padding: 28px 24px;
}

.timeline-five .step p {
  min-height: 210px;
  line-height: 1.62 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.timeline-five .step h3 {
  min-height: 34px;
}

@media(max-width:1320px){
  .timeline-five {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .timeline-five .step,
  .timeline-five .step:nth-child(4),
  .timeline-five .step:nth-child(5) {
    grid-column: auto !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
}

@media(max-width:1100px){
  .timeline-five {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .timeline-five .step {
    min-height: 270px;
  }

  .timeline-five .step p {
    min-height: 110px;
  }

  .timeline-five .step:nth-child(5) {
    grid-column: 1 / -1 !important;
    max-width: 720px !important;
    width: 100% !important;
    justify-self: center !important;
  }
}

@media(max-width:620px){
  .timeline-five {
    grid-template-columns: 1fr !important;
  }

  .timeline-five .step,
  .timeline-five .step:nth-child(5) {
    grid-column: auto !important;
    max-width: none !important;
    min-height: auto;
  }

  .timeline-five .step p {
    min-height: 0;
  }
}

/* Update 10: brand and intentional section backgrounds */

/* Ruhiger Hintergrund-Rhythmus:
   Hervorhebung nur für Leistungen und Galerie, weil dort Karten/Bilder stehen. */
body:not(.dark) .intro,
body:not(.dark) .process,
body:not(.dark) .regions,
body:not(.dark) .contact {
  background: #ffffff !important;
}

body:not(.dark) .services,
body:not(.dark) .gallery {
  background: #f8fafc !important;
}

body.dark .intro,
body.dark .process,
body.dark .regions,
body.dark .contact {
  background: #020617 !important;
}

body.dark .services,
body.dark .gallery {
  background: #0f172a !important;
}

/* Einzugsgebiet als ruhige Karte statt starkem Farbbalken */
.region-box {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 18px 55px rgba(15,23,42,0.07);
}

body.dark .region-box {
  background: #111827 !important;
  border-color: #243244 !important;
  box-shadow: none !important;
}

/* Brandname im Header */
.brand-text strong {
  font-size: 22px;
  white-space: nowrap;
}

.brand-text span {
  letter-spacing: 0.32em;
}

@media(max-width:620px){
  .brand-text strong {
    font-size: 18px;
  }

  .brand-text span {
    font-size: 9px;
    letter-spacing: 0.24em;
  }
}

/* Update 11: remove dark mode and spacing refinements */

/* Hide/remove dark mode and force one clean light theme */
.theme-toggle {
  display: none !important;
}

body,
body.dark {
  --green: #063f2a;
  --green-soft: #0f5a3d;
  --text: #111827;
  --heading: #0f172a;
  --muted: #64748b;
  --body-muted: #475569;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --white: #ffffff;
  --header-bg: rgba(255,255,255,.88);
  background: #ffffff !important;
  color: var(--text) !important;
}

body.dark .intro,
body.dark .process,
body.dark .regions,
body.dark .contact,
body.dark .services,
body.dark .gallery {
  background: inherit !important;
}

/* Consistent section backgrounds */
.intro,
.process,
.regions,
.contact {
  background: #ffffff !important;
}

.services,
.gallery {
  background: #f8fafc !important;
}

.site-header,
.mobile-nav,
.card,
.step,
.contact-form,
.contact-details,
.region-box {
  background: var(--card) !important;
  color: var(--text) !important;
}

/* Über uns: align right text with main heading height */
.intro-grid {
  align-items: start !important;
}

.intro-grid > p {
  margin-top: 34px;
}

/* Section spacing: reduce excessive gap between heading and content */
.section-head {
  margin-bottom: 24px !important;
}

.process .section-head,
.gallery .section-head,
.services .section-head {
  margin-bottom: 22px !important;
}

.section-head h2 {
  min-height: 0 !important;
  margin-bottom: 0;
}

/* Services: reduce gap between number/media and title/text */
.service-card {
  min-height: 360px !important;
}

.service-media {
  margin-bottom: 16px !important;
}

.card-icon {
  margin-bottom: 18px !important;
}

.card h3 {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.card p {
  min-height: 0 !important;
}

/* Process: avoid ugly hyphenated breaks and make text more readable */
.timeline-five .step {
  min-height: 360px !important;
  padding: 28px 22px !important;
  overflow: hidden;
}

.timeline-five .step p {
  min-height: 0 !important;
  line-height: 1.58 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.step p span {
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.step h3 {
  min-height: 0 !important;
}

/* Keep the number circle correct */
.step > span {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 24px !important;
  border-radius: 50% !important;
  background: var(--green) !important;
  color: white !important;
  font-weight: 900 !important;
}

/* Dropdown arrow moved inward */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 32px) 52%,
    calc(100% - 24px) 52%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

/* Contact form button: no border, consistent button look */
.contact-form .btn.primary,
.contact-form .submit-btn {
  border: 0 !important;
  outline: none !important;
}

/* Legal pages spacing */
.legal-box,
.back-link {
  margin-top: 32px !important;
}

.back-link {
  display: block;
}

/* Smaller layout shifts between languages */
.hero-copy h1,
.hero-text,
.card h3,
.card p,
.step h3,
.step p {
  min-height: 0 !important;
}

.desktop-nav {
  min-width: 530px;
}

.desktop-nav a {
  min-width: 86px;
  text-align: center;
}

@media(max-width:1320px){
  .timeline-five .step {
    min-height: 300px !important;
  }
}

@media(max-width:1100px){
  .timeline-five .step {
    min-height: 250px !important;
  }
}

@media(max-width:980px){
  .intro-grid > p {
    margin-top: 0;
  }
}

/* Update 12: logo and project photos */
.brand {
  min-width: 310px;
}

.brand-logo {
  display: block;
  width: 310px;
  max-height: 74px;
  object-fit: contain;
}

.service-media {
  width: calc(100% + 16px);
  height: 150px;
  margin: -8px -8px 16px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg);
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item.wide {
  grid-column: span 2;
}

@media(max-width:980px){
  .brand {
    min-width: 240px;
  }

  .brand-logo {
    width: 240px;
    max-height: 62px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:620px){
  .brand {
    min-width: 185px;
  }

  .brand-logo {
    width: 185px;
    max-height: 54px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }
}

/* Update 13: logo size, service crop, file upload */

/* Header logo: make it more readable, especially the small service line */
.brand {
  min-width: 420px !important;
}

.brand-logo {
  width: 420px !important;
  max-height: 96px !important;
  object-fit: contain !important;
}

/* Service image crop adjustments */
.service-media {
  height: 170px !important;
}

.service-img-ueberdachung {
  object-position: center 68% !important;
}

.service-img-markisen {
  object-position: center 70% !important;
}

.service-img-wintergarten {
  object-position: center 58% !important;
  object-fit: cover !important;
}

/* File upload field */
.file-input {
  cursor: pointer;
  padding: 12px 14px !important;
}

.file-input::file-selector-button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 800;
  padding: 10px 14px;
  margin-right: 12px;
  cursor: pointer;
}

/* More space for logo on medium screens */
@media(max-width:1200px){
  .brand {
    min-width: 340px !important;
  }

  .brand-logo {
    width: 340px !important;
    max-height: 82px !important;
  }

  .desktop-nav {
    min-width: 440px !important;
  }
}

@media(max-width:980px){
  .brand {
    min-width: 280px !important;
  }

  .brand-logo {
    width: 280px !important;
    max-height: 72px !important;
  }
}

@media(max-width:620px){
  .brand {
    min-width: 210px !important;
  }

  .brand-logo {
    width: 210px !important;
    max-height: 58px !important;
  }
}

/* Update 14: larger logo and taller service images */

/* Header logo nochmal größer */
.brand {
  min-width: 500px !important;
}

.brand-logo {
  width: 500px !important;
  max-height: 115px !important;
  object-fit: contain !important;
}

/* Leistungsbilder höher, damit die Konstruktionen besser sichtbar sind */
.service-media {
  height: 240px !important;
  object-fit: cover !important;
}

/* Bildausschnitte passend zu den höheren Bildern */
.service-img-ueberdachung {
  object-position: center 55% !important;
}

.service-img-markisen {
  object-position: center 55% !important;
}

.service-img-wintergarten {
  object-position: center 50% !important;
}

/* Karten entsprechend höher, damit alles sauber wirkt */
.service-card {
  min-height: 465px !important;
}

@media(max-width:1320px){
  .brand {
    min-width: 410px !important;
  }

  .brand-logo {
    width: 410px !important;
    max-height: 98px !important;
  }
}

@media(max-width:1100px){
  .brand {
    min-width: 340px !important;
  }

  .brand-logo {
    width: 340px !important;
    max-height: 82px !important;
  }

  .service-media {
    height: 220px !important;
  }
}

@media(max-width:980px){
  .brand {
    min-width: 285px !important;
  }

  .brand-logo {
    width: 285px !important;
    max-height: 72px !important;
  }
}

@media(max-width:620px){
  .brand {
    min-width: 220px !important;
  }

  .brand-logo {
    width: 220px !important;
    max-height: 60px !important;
  }

  .service-media {
    height: 210px !important;
  }
}

/* Update 15: image crop higher and larger logo */

/* Logo nochmal etwas größer */
.brand {
  min-width: 560px !important;
}

.brand-logo {
  width: 560px !important;
  max-height: 125px !important;
  object-fit: contain !important;
}

/* Bildausschnitte in den Leistungskarten weiter nach oben */
.service-img-ueberdachung {
  object-position: center 22% !important;
}

.service-img-wintergarten {
  object-position: center 38% !important;
}

.service-img-markisen {
  object-position: center 38% !important;
}

@media(max-width:1400px){
  .brand {
    min-width: 480px !important;
  }

  .brand-logo {
    width: 480px !important;
    max-height: 112px !important;
  }
}

@media(max-width:1200px){
  .brand {
    min-width: 390px !important;
  }

  .brand-logo {
    width: 390px !important;
    max-height: 92px !important;
  }
}

@media(max-width:980px){
  .brand {
    min-width: 300px !important;
  }

  .brand-logo {
    width: 300px !important;
    max-height: 74px !important;
  }
}

@media(max-width:620px){
  .brand {
    min-width: 225px !important;
  }

  .brand-logo {
    width: 225px !important;
    max-height: 62px !important;
  }
}

/* Update 16: final service image crop adjustment */

/* Terrassenüberdachung nur einen Tick höher */
.service-img-ueberdachung {
  object-position: center 18% !important;
}

/* Wintergarten und Markise etwas stärker nach oben */
.service-img-wintergarten {
  object-position: center 28% !important;
}

.service-img-markisen {
  object-position: center 28% !important;
}

/* Update 17: service images much higher */
.service-img-ueberdachung {
  object-position: center 8% !important;
}

.service-img-wintergarten {
  object-position: center 14% !important;
}

.service-img-markisen {
  object-position: center 14% !important;
}

/* Update 18: Alu Garden rebrand, dark mode, languages, services */
:root {
  --green: #063f2a;
  --green-soft: #0f5a3d;
  --accent: #ffe373;
  --button-text: #111111;
  --dark-bg: #2f2f2f;
  --dark-card: #3a3a3a;
  --dark-line: #505050;
}

.theme-toggle {
  display: inline-flex !important;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--green);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

body.dark {
  --text: #f8fafc;
  --heading: #ffffff;
  --muted: #cbd5e1;
  --body-muted: #d1d5db;
  --line: var(--dark-line);
  --bg: var(--dark-bg);
  --card: var(--dark-card);
  --header-bg: rgba(47,47,47,.92);
  background: var(--dark-bg) !important;
  color: var(--text) !important;
}

body.dark .site-header,
body.dark .mobile-nav {
  background: var(--header-bg) !important;
  border-color: var(--dark-line);
}

body.dark .intro,
body.dark .process,
body.dark .regions,
body.dark .contact {
  background: var(--dark-bg) !important;
}

body.dark .services,
body.dark .gallery {
  background: #383838 !important;
}

body.dark .card,
body.dark .step,
body.dark .contact-form,
body.dark .contact-details,
body.dark .region-box,
body.dark input,
body.dark textarea,
body.dark select {
  background: var(--dark-card) !important;
  color: var(--text) !important;
  border-color: var(--dark-line) !important;
}

body.dark .placeholder-media {
  background: #444 !important;
  color: #d1d5db !important;
}

body.dark .brand-logo.logo-light {
  content: url("assets/alu-garden-logo-gold.png");
}

body.dark .theme-toggle {
  background: #3a3a3a;
  border-color: var(--dark-line);
  color: var(--accent);
}

.btn.primary,
.contact-form .btn.primary,
.contact-form .submit-btn,
.language-switch button.active {
  background: var(--accent) !important;
  color: var(--button-text) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 16px 34px rgba(255,227,115,.28) !important;
}

.btn.primary:hover,
.contact-form .btn.primary:hover {
  filter: brightness(.97);
  color: var(--button-text) !important;
}

.card-icon,
.step > span {
  background: var(--accent) !important;
  color: var(--button-text) !important;
}

.language-switch {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.language-switch button {
  min-width: 34px;
  color: var(--green);
  border: 1px solid var(--line);
  background: var(--card);
}

body.dark .language-switch button {
  background: #3a3a3a;
  color: #f8fafc;
  border-color: var(--dark-line);
}

.brand {
  min-width: 560px !important;
}

.brand-logo {
  width: 560px !important;
  max-height: 125px !important;
  object-fit: contain !important;
}

.service-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.service-card {
  grid-column: span 2;
  min-height: 465px !important;
}

.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6) {
  grid-column: span 2;
}

.service-img-ueberdachung {
  object-position: center 8% !important;
}

.service-img-markisen,
.service-img-jalousien {
  object-position: center 14% !important;
}

.service-img-wintergarten {
  object-position: center 14% !important;
}

.legal-page {
  padding-top: 110px;
}

.legal-page h1,
.legal-page h2 {
  color: var(--green);
}

body.dark .legal-page h1,
body.dark .legal-page h2 {
  color: var(--accent);
}

@media(max-width:1400px){
  .brand { min-width: 480px !important; }
  .brand-logo { width: 480px !important; max-height: 112px !important; }
}

@media(max-width:1200px){
  .brand { min-width: 390px !important; }
  .brand-logo { width: 390px !important; max-height: 92px !important; }
}

@media(max-width:980px){
  .brand { min-width: 300px !important; }
  .brand-logo { width: 300px !important; max-height: 74px !important; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6) { grid-column: auto !important; }
}

@media(max-width:620px){
  .brand { min-width: 225px !important; }
  .brand-logo { width: 225px !important; max-height: 62px !important; }
  .service-cards { grid-template-columns: 1fr !important; }
}

/* Update 19: strict requested light dark theme */

/* Light mode: white background, dark green accents, green logo */
body:not(.dark) {
  --green: #063f2a;
  --green-soft: #0f5a3d;
  --accent: #063f2a;
  --button-text: #ffffff;
  --text: #111827;
  --heading: #0f172a;
  --muted: #64748b;
  --body-muted: #475569;
  --line: #e5e7eb;
  --bg: #ffffff;
  --card: #ffffff;
  --header-bg: rgba(255,255,255,.92);
  background: #ffffff !important;
  color: var(--text) !important;
}

/* Dark mode: ChatGPT-like dark gray background, gold accents, gold logo */
body.dark {
  --green: #ffe373;
  --green-soft: #ffe373;
  --accent: #ffe373;
  --button-text: #111111;
  --text: #f5f5f5;
  --heading: #ffffff;
  --muted: #d1d5db;
  --body-muted: #e5e7eb;
  --line: #505050;
  --bg: #2f2f2f;
  --card: #3a3a3a;
  --header-bg: rgba(47,47,47,.94);
  background: #2f2f2f !important;
  color: var(--text) !important;
}

/* Exact logo switching */
.brand-logo-dark {
  display: none !important;
}

.brand-logo-light {
  display: block !important;
}

body.dark .brand-logo-light {
  display: none !important;
}

body.dark .brand-logo-dark {
  display: block !important;
}

/* Header and sections */
body:not(.dark) .site-header,
body:not(.dark) .mobile-nav {
  background: rgba(255,255,255,.92) !important;
}

body.dark .site-header,
body.dark .mobile-nav {
  background: rgba(47,47,47,.94) !important;
  border-color: #505050 !important;
}

body:not(.dark) .intro,
body:not(.dark) .process,
body:not(.dark) .regions,
body:not(.dark) .contact,
body:not(.dark) .hero {
  background: #ffffff !important;
}

body:not(.dark) .services,
body:not(.dark) .gallery {
  background: #f8fafc !important;
}

body.dark .intro,
body.dark .process,
body.dark .regions,
body.dark .contact,
body.dark .hero,
body.dark .services,
body.dark .gallery,
body.dark section {
  background: #2f2f2f !important;
}

body.dark .card,
body.dark .step,
body.dark .contact-form,
body.dark .contact-details,
body.dark .region-box,
body.dark input,
body.dark textarea,
body.dark select {
  background: #3a3a3a !important;
  color: #f5f5f5 !important;
  border-color: #505050 !important;
}

body.dark .placeholder-media {
  background: #444444 !important;
  color: #f5f5f5 !important;
  border-color: #505050 !important;
}

/* Accent rules: everything that used green follows --green.
   In dark mode --green is #ffe373, so all former green accents become gold. */
.section-label,
.nav a:hover,
.desktop-nav a:hover,
.mobile-nav a:hover,
h1, h2, h3,
.card h3,
.step h3,
.region-box strong,
.legal-page h1,
.legal-page h2,
.brand-text strong,
.brand-text span,
.contact-details strong,
.footer-grid strong,
.site-footer a {
  color: var(--green) !important;
}

.btn.primary,
.contact-form .btn.primary,
.contact-form .submit-btn,
.language-switch button.active,
.card-icon,
.step > span {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--button-text) !important;
}

body.dark .btn.primary,
body.dark .contact-form .btn.primary,
body.dark .contact-form .submit-btn,
body.dark .language-switch button.active,
body.dark .card-icon,
body.dark .step > span {
  color: #111111 !important;
}

.btn.secondary {
  color: var(--green) !important;
  border-color: var(--green) !important;
}

body.dark .btn.secondary {
  background: transparent !important;
  color: #ffe373 !important;
  border-color: #ffe373 !important;
}

.theme-toggle {
  display: inline-flex !important;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green) !important;
  background: var(--card) !important;
  color: var(--green) !important;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.language-switch button {
  color: var(--green) !important;
  border-color: var(--green) !important;
}

body.dark .language-switch button:not(.active) {
  background: #3a3a3a !important;
  color: #ffe373 !important;
  border-color: #ffe373 !important;
}

/* Service layout with Jalousien */
.service-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.service-card {
  grid-column: span 2 !important;
}

.service-img-ueberdachung {
  object-position: center 8% !important;
}

.service-img-jalousien {
  object-position: center 14% !important;
}

.service-img-wintergarten {
  object-position: center 14% !important;
}

/* Keep brand size from current version */
.brand {
  min-width: 560px !important;
}

.brand-logo {
  width: 560px !important;
  max-height: 125px !important;
  object-fit: contain !important;
}

@media(max-width:1400px){
  .brand { min-width: 480px !important; }
  .brand-logo { width: 480px !important; max-height: 112px !important; }
}

@media(max-width:1200px){
  .brand { min-width: 390px !important; }
  .brand-logo { width: 390px !important; max-height: 92px !important; }
}

@media(max-width:980px){
  .brand { min-width: 300px !important; }
  .brand-logo { width: 300px !important; max-height: 74px !important; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .service-card { grid-column: auto !important; }
}

@media(max-width:620px){
  .brand { min-width: 225px !important; }
  .brand-logo { width: 225px !important; max-height: 62px !important; }
  .service-cards { grid-template-columns: 1fr !important; }
}

/* Update 20: requested corrections */

/* Make dark mode button clearly visible in the top bar */
.theme-toggle {
  display: inline-flex !important;
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid var(--green) !important;
  background: var(--card) !important;
  color: var(--green) !important;
  cursor: pointer !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  z-index: 20;
}

/* Region country buttons */
.region-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 16px;
}

.region-tabs button {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
}

.region-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

.region-city-box {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  max-width: 980px;
}

.region-city-box h3 {
  margin: 0 0 10px;
  color: var(--green);
}

.region-city-box p {
  margin: 0;
  color: var(--body-muted);
  line-height: 1.8;
}

body.dark .region-city-box {
  background: #3a3a3a !important;
  border-color: #505050 !important;
}

body.dark .region-city-box h3,
body.dark .region-tabs button:not(.active) {
  color: #ffe373 !important;
}

body.dark .region-tabs button:not(.active) {
  border-color: #ffe373 !important;
  background: #3a3a3a !important;
}

/* Legal pages: reduce gap between header/logo bar and title */
.legal-page {
  padding-top: 82px !important;
}

.legal-page .section {
  padding-top: 28px !important;
}

/* Keep all green accents gold in dark mode */
body.dark .section-label,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark .card h3,
body.dark .step h3,
body.dark .region-box strong,
body.dark .contact-details strong,
body.dark .footer-grid strong,
body.dark .site-footer a,
body.dark .legal-page h1,
body.dark .legal-page h2 {
  color: #ffe373 !important;
}

body.dark .btn.primary,
body.dark .contact-form .btn.primary,
body.dark .contact-form .submit-btn,
body.dark .language-switch button.active,
body.dark .card-icon,
body.dark .step > span,
body.dark .region-tabs button.active {
  background: #ffe373 !important;
  border-color: #ffe373 !important;
  color: #111111 !important;
}

/* Jalousien card visibility and layout */
.service-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.service-card {
  grid-column: span 2 !important;
}

.service-img-jalousien {
  object-position: center 14% !important;
}

@media(max-width:980px){
  .region-tabs {
    gap: 8px;
  }

  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .service-card {
    grid-column: auto !important;
  }
}

@media(max-width:620px){
  .legal-page {
    padding-top: 70px !important;
  }

  .region-tabs button {
    padding: 9px 13px;
  }

  .service-cards {
    grid-template-columns: 1fr !important;
  }
}

/* Update 21: final requested fixes */

/* Logo alignment: cropped logo asset + smaller brand width pushes it to the left edge of the content */
.brand {
  min-width: 380px !important;
  margin-right: auto !important;
}

.brand-logo {
  width: 380px !important;
  max-height: 82px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.brand-logo-dark { display: none !important; }
.brand-logo-light { display: block !important; }
body.dark .brand-logo-light { display: none !important; }
body.dark .brand-logo-dark { display: block !important; }

/* Dark mode button: visible next to language buttons */
.theme-toggle {
  display: inline-flex !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid var(--green) !important;
  background: var(--card) !important;
  color: var(--green) !important;
  cursor: pointer !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  padding: 0 !important;
}

body.dark .theme-toggle {
  border-color: #ffe373 !important;
  color: #ffe373 !important;
  background: #3a3a3a !important;
}

/* Legal page spacing: remove the large white gap */
.legal-body .legal-page {
  padding-top: 0 !important;
}

.legal-body .legal-page .section {
  padding-top: 26px !important;
}

.legal-body .section-label {
  margin-top: 0 !important;
}

/* Country buttons and city box */
.region-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 16px;
}

.region-tabs button {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
}

.region-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

.region-city-box {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  max-width: 980px;
}

.region-city-box h3 {
  margin: 0 0 10px;
  color: var(--green);
}

.region-city-box p {
  margin: 0;
  color: var(--body-muted);
  line-height: 1.8;
  overflow-wrap: normal;
  word-break: normal;
}

body.dark .region-city-box {
  background: #3a3a3a !important;
  border-color: #505050 !important;
}

body.dark .region-city-box h3,
body.dark .region-tabs button:not(.active) {
  color: #ffe373 !important;
}

body.dark .region-tabs button:not(.active) {
  border-color: #ffe373 !important;
  background: #3a3a3a !important;
}

/* Six service cards incl. Jalousien */
.service-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.service-card {
  grid-column: span 2 !important;
}

.service-img-ueberdachung { object-position: center 8% !important; }
.service-img-wintergarten { object-position: center 14% !important; }
.service-img-jalousien { object-position: center 14% !important; }

/* Dark mode: every former green accent becomes #ffe373 */
body.dark {
  --green: #ffe373 !important;
  --green-soft: #ffe373 !important;
  --accent: #ffe373 !important;
  --button-text: #111111 !important;
  --bg: #2f2f2f !important;
  --card: #3a3a3a !important;
  --line: #505050 !important;
  --text: #f5f5f5 !important;
  --heading: #ffffff !important;
  --muted: #d1d5db !important;
  --body-muted: #e5e7eb !important;
  background: #2f2f2f !important;
}

body.dark .site-header,
body.dark .mobile-nav,
body.dark section {
  background: #2f2f2f !important;
}

body.dark .card,
body.dark .step,
body.dark .contact-form,
body.dark .contact-details,
body.dark .region-box,
body.dark input,
body.dark textarea,
body.dark select {
  background: #3a3a3a !important;
  color: #f5f5f5 !important;
  border-color: #505050 !important;
}

body.dark .section-label,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark .card h3,
body.dark .step h3,
body.dark .contact-details strong,
body.dark .footer-grid strong,
body.dark .site-footer a,
body.dark .legal-page h1,
body.dark .legal-page h2 {
  color: #ffe373 !important;
}

body.dark .btn.primary,
body.dark .submit-btn,
body.dark .language-switch button.active,
body.dark .card-icon,
body.dark .step > span,
body.dark .region-tabs button.active {
  background: #ffe373 !important;
  border-color: #ffe373 !important;
  color: #111111 !important;
}

body.dark .btn.secondary {
  color: #ffe373 !important;
  border-color: #ffe373 !important;
}

/* Light mode remains white + dark green */
body:not(.dark) {
  --green: #063f2a !important;
  --green-soft: #0f5a3d !important;
  --accent: #063f2a !important;
  --button-text: #ffffff !important;
  --bg: #ffffff !important;
  --card: #ffffff !important;
  background: #ffffff !important;
}

body:not(.dark) .hero,
body:not(.dark) .intro,
body:not(.dark) .process,
body:not(.dark) .regions,
body:not(.dark) .contact {
  background: #ffffff !important;
}

@media(max-width:1200px){
  .brand { min-width: 330px !important; }
  .brand-logo { width: 330px !important; max-height: 72px !important; }
}

@media(max-width:980px){
  .brand { min-width: 260px !important; }
  .brand-logo { width: 260px !important; max-height: 62px !important; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .service-card { grid-column: auto !important; }
}

@media(max-width:620px){
  .brand { min-width: 210px !important; }
  .brand-logo { width: 210px !important; max-height: 56px !important; }
  .service-cards { grid-template-columns: 1fr !important; }
  .legal-body .legal-page .section { padding-top: 18px !important; }
}

/* Update 22: legal header spacing, hero eyebrow, no dark button glow */

/* Legal pages: header should breathe more and align logo with page content */
.legal-body .site-header {
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
}

.legal-body .site-header .nav-wrap {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 18px 48px !important;
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
}

.legal-body .brand {
  margin-left: 0 !important;
  min-width: 380px !important;
}

.legal-body .brand-logo {
  width: 380px !important;
  max-height: 82px !important;
}

/* Keep the legal title close to the header, but not squeezed into it */
.legal-body .legal-page {
  padding-top: 0 !important;
}

.legal-body .legal-page .section {
  padding-top: 34px !important;
}

/* Main header logo should not be too far left after the crop */
body:not(.legal-body) .site-header .nav-wrap {
  padding-left: 68px !important;
  padding-right: 68px !important;
}

/* Remove gold glow/spill in dark mode buttons */
body.dark .btn.primary,
body.dark .submit-btn,
body.dark .language-switch button.active,
body.dark .card-icon,
body.dark .step > span,
body.dark .region-tabs button.active {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Remove any inherited glow from all primary buttons in both modes unless explicitly set later */
.btn.primary,
.submit-btn {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Dark mode button surfaces should be flat, not glowing */
body.dark .theme-toggle,
body.dark .btn.secondary,
body.dark .region-tabs button {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Smooth but flat hover state */
body.dark .btn.primary:hover,
body.dark .submit-btn:hover {
  filter: brightness(.96) !important;
  box-shadow: none !important;
}

@media(max-width:980px){
  body:not(.legal-body) .site-header .nav-wrap {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }

  .legal-body .site-header .nav-wrap {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
}

@media(max-width:620px){
  .legal-body .site-header {
    min-height: 82px !important;
  }

  .legal-body .site-header .nav-wrap {
    min-height: 82px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .legal-body .brand {
    min-width: 250px !important;
  }

  .legal-body .brand-logo {
    width: 250px !important;
    max-height: 62px !important;
  }

  .legal-body .legal-page .section {
    padding-top: 24px !important;
  }
}


/* Update 23: legal header alignment, refreshed logos, roomier legal content */

/* Legal header should align exactly with content column */
.legal-body .site-header {
  min-height: 108px !important;
}

.legal-body .site-header .nav-wrap {
  width: min(1480px, calc(100% - 56px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 18px 0 !important;
  min-height: 108px !important;
  display: flex !important;
  align-items: center !important;
}

.legal-body .brand {
  margin: 0 !important;
  min-width: 0 !important;
  width: auto !important;
}

.legal-body .brand-logo {
  width: 520px !important;
  max-width: 100% !important;
  max-height: 116px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Pull legal page content closer to header but keep it breathable */
.legal-body .legal-page {
  padding-top: 0 !important;
}

.legal-body .legal-page .section {
  padding-top: 28px !important;
  padding-bottom: 72px !important;
}

.legal-body .section-label {
  margin-bottom: 12px !important;
}

.legal-body .legal-page h1 {
  margin-bottom: 26px !important;
}

/* More breathing room inside legal box */
.legal-body .legal-box,
.legal-body .contact-details.legal-box {
  margin-top: 24px !important;
  padding: 34px 26px 38px !important;
  background: var(--card) !important;
}

.legal-body .legal-box h2 {
  margin-top: 18px !important;
  margin-bottom: 14px !important;
  font-size: clamp(28px, 3.5vw, 54px) !important;
  line-height: 1.08 !important;
}

.legal-body .legal-box p {
  margin-bottom: 28px !important;
  font-size: 17px !important;
  line-height: 1.68 !important;
  max-width: 1000px !important;
}

.legal-body .legal-box p:last-child {
  margin-bottom: 0 !important;
}

.legal-body .back-link {
  margin-top: 28px !important;
}

@media (max-width: 980px) {
  .legal-body .site-header {
    min-height: 92px !important;
  }

  .legal-body .site-header .nav-wrap {
    width: min(1480px, calc(100% - 40px)) !important;
    min-height: 92px !important;
    padding: 14px 0 !important;
  }

  .legal-body .brand-logo {
    width: 360px !important;
    max-height: 86px !important;
  }

  .legal-body .legal-page .section {
    padding-top: 22px !important;
  }

  .legal-body .legal-box,
  .legal-body .contact-details.legal-box {
    padding: 28px 22px 30px !important;
  }
}

@media (max-width: 620px) {
  .legal-body .site-header .nav-wrap {
    width: min(1480px, calc(100% - 28px)) !important;
  }

  .legal-body .brand-logo {
    width: 250px !important;
    max-height: 64px !important;
  }

  .legal-body .legal-page .section {
    padding-top: 18px !important;
    padding-bottom: 52px !important;
  }

  .legal-body .legal-box h2 {
    font-size: clamp(24px, 8vw, 42px) !important;
  }

  .legal-body .legal-box p {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }
}
/* Update 24: legal sizing, persistent theme on legal, two new services */

/* Datenschutzerklärung/Impressum: Unterüberschriften kleiner und luftiger */
.legal-body .legal-box,
.legal-body .contact-details.legal-box {
  padding-top: 26px !important;
}

.legal-body .legal-box h2,
.legal-body .contact-details.legal-box h2 {
  font-size: clamp(24px, 2.65vw, 40px) !important;
  line-height: 1.12 !important;
  margin-top: 30px !important;
  margin-bottom: 12px !important;
}

/* 1. Verantwortlicher direkt weiter oben im Kasten */
.legal-body .legal-box h2:first-child,
.legal-body .contact-details.legal-box h2:first-child {
  margin-top: 0 !important;
}

.legal-body .legal-box p,
.legal-body .contact-details.legal-box p {
  font-size: 16.5px !important;
  line-height: 1.72 !important;
  margin-bottom: 22px !important;
}

/* Dark Mode auf Legal-Seiten übernimmt localStorage aus der Hauptseite */
.legal-body.dark .site-header,
.legal-body.dark .legal-page,
.legal-body.dark .section {
  background: #2f2f2f !important;
}

.legal-body.dark .legal-box,
.legal-body.dark .contact-details.legal-box {
  background: #3a3a3a !important;
  border-color: #505050 !important;
}

.legal-body.dark .legal-box p,
.legal-body.dark .contact-details.legal-box p {
  color: #f5f5f5 !important;
}

/* Leistungen: 8 Karten als 4er Grid auf Desktop */
.service-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.service-card {
  grid-column: auto !important;
}

@media(max-width:1200px){
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media(max-width:620px){
  .service-cards {
    grid-template-columns: 1fr !important;
  }

  .legal-body .legal-box h2,
  .legal-body .contact-details.legal-box h2 {
    font-size: clamp(23px, 7.5vw, 34px) !important;
  }
}

/* Update 25: new uploaded project images */
.hero-image {
  object-position: center 52% !important;
}

.service-media {
  width: calc(100% + 16px) !important;
  object-fit: cover !important;
  display: block !important;
}

.service-img-carport {
  object-position: center 45% !important;
}

.service-img-wintergarten {
  object-position: center 50% !important;
}

.service-img-vordach {
  object-position: center 45% !important;
}

.service-img-solarmodul {
  object-position: center 47% !important;
}


/* Update 26: bigger logo + configurator + multilingual legal */
body:not(.legal-body) .brand-logo {
  width: 460px !important;
  max-height: 104px !important;
}
body:not(.legal-body) .brand { min-width: 460px !important; }
@media(max-width:1200px){
  body:not(.legal-body) .brand-logo{width:380px!important;max-height:88px!important;}
  body:not(.legal-body) .brand{min-width:380px!important;}
}
@media(max-width:760px){
  body:not(.legal-body) .brand-logo{width:250px!important;max-height:64px!important;}
  body:not(.legal-body) .brand{min-width:250px!important;}
}

.legal-actions{display:flex;align-items:center;gap:10px;margin-left:auto;}
.legal-body .legal-box p[data-i18n]{white-space:pre-line;}

.configurator{background:var(--card);border:1px solid var(--line);border-radius:28px;box-shadow:0 24px 70px var(--shadow);overflow:hidden;align-self:start;}
.configurator-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px 28px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,rgba(6,63,42,.06),transparent);}
.configurator-head h3{margin:0;color:var(--heading);font-size:clamp(24px,2.4vw,36px);letter-spacing:-.04em;}
.configurator-head p{margin:8px 0 0;color:var(--body-muted);line-height:1.55;}
.config-badge,.config-block-title span{display:inline-flex;align-items:center;border-radius:999px;padding:6px 12px;background:var(--bg);border:1px solid var(--line);color:var(--green);font-weight:900;font-size:12px;white-space:nowrap;}
.config-form{padding:0;}
.config-block{padding:26px 28px;border-bottom:1px solid var(--line);}
.config-block:last-of-type{border-bottom:0;}
.required-block{background:rgba(6,63,42,.025);}
.config-block-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.config-block-title h4{margin:0;font-size:20px;color:var(--heading);letter-spacing:-.03em;}
.config-note{margin:-6px 0 16px;color:var(--muted);font-size:14px;}
.config-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.config-service-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));}
.option-pill,.color-option,.material-card{position:relative;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:18px;padding:13px 14px;background:var(--card);cursor:pointer;font-weight:800;color:var(--text);transition:border-color .18s, transform .18s, background .18s;}
.option-pill:hover,.color-option:hover,.material-card:hover{border-color:var(--green);transform:translateY(-1px);}
.option-pill input,.color-option input,.material-card input{accent-color:var(--green);}
.dimension-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.dimension-control{border:1px solid var(--line);border-radius:20px;padding:16px;background:var(--card);}
.dimension-control label{font-weight:900;color:var(--heading);display:block;margin-bottom:12px;}
.dimension-control input[type=range]{width:100%;accent-color:var(--green);}
.number-wrap{margin-top:12px;display:flex;align-items:center;gap:8px;}
.number-wrap input{width:110px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--white);color:var(--text);font-weight:800;}
.color-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;}
.swatch{width:34px;height:20px;border-radius:6px;border:1px solid rgba(0,0,0,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);}
.swatch.black{background:#050505}.swatch.gray{background:#8a8f93}.swatch.anthracite{background:#293133}.swatch.cream{background:#eadfc8}.swatch.white{background:#fff}
.material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.material-grid.small.three{grid-template-columns:repeat(3,minmax(0,1fr));}
.material-card{align-items:center;min-height:86px;}
.material-thumb{margin-left:auto;width:104px;height:64px;border-radius:12px;background:linear-gradient(135deg,rgba(6,63,42,.12),rgba(6,63,42,.03));border:1px dashed var(--line);display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-size:12px;font-weight:800;order:2;}
.material-card span:last-child:not(.material-thumb){flex:1;}
.contact-mini label{display:flex;flex-direction:column;gap:7px;font-weight:900;color:var(--heading);margin-bottom:14px;}
.contact-mini input,.contact-mini textarea{border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:var(--white);color:var(--text);font:inherit;}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.config-submit{width:calc(100% - 56px);margin:24px 28px 12px;justify-content:center;border-radius:16px;font-size:18px;}
.config-footnote{display:block;margin:0 28px 28px;color:var(--muted);line-height:1.5;}
.is-hidden{display:none!important;}

body.dark .configurator,body.dark .option-pill,body.dark .color-option,body.dark .material-card,body.dark .dimension-control{background:#3a3a3a!important;border-color:#505050!important;}
body.dark .configurator-head{background:#343434!important;border-color:#505050!important;}
body.dark .required-block{background:#333!important;}
body.dark .material-thumb{background:#444!important;border-color:#5a5a5a!important;color:#e5e7eb!important;}
body.dark .contact-mini input,body.dark .contact-mini textarea,body.dark .number-wrap input{background:#2f2f2f!important;border-color:#505050!important;color:#f5f5f5!important;}
body.dark .config-badge,body.dark .config-block-title span{background:#2f2f2f!important;border-color:#ffe373!important;color:#ffe373!important;}
body.dark input{accent-color:#ffe373;}

@media(max-width:980px){.contact-grid{grid-template-columns:1fr!important}.config-service-grid,.dimension-grid,.material-grid,.material-grid.small.three,.mini-grid{grid-template-columns:1fr!important}.color-options{grid-template-columns:repeat(2,minmax(0,1fr));}.material-thumb{width:92px;height:58px}.legal-actions{gap:8px;}.legal-actions .language-switch{max-width:340px;overflow:auto;}}
@media(max-width:620px){.configurator-head,.config-block{padding:22px 18px}.config-submit{width:calc(100% - 36px);margin-left:18px;margin-right:18px}.config-footnote{margin-left:18px;margin-right:18px}.color-options{grid-template-columns:1fr}.material-card{align-items:flex-start;flex-wrap:wrap}.material-thumb{margin-left:0;order:0;width:100%;}.legal-actions{display:none;}}


/* Update 27: tighter section spacing and adaptive configurator */
section[id] { scroll-margin-top: 86px !important; }
.section { padding-top: 46px !important; padding-bottom: 78px !important; }

/* Service choices are full buttons; native dots/boxes stay hidden */
.config-service-grid .option-pill input,
.material-card input,
.color-option input { position:absolute !important; opacity:0 !important; pointer-events:none !important; }
.option-pill:has(input:checked),
.material-card:has(input:checked),
.color-option:has(input:checked) {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 32%, transparent) !important;
  background: color-mix(in srgb, var(--green) 7%, var(--card)) !important;
}
body.dark .option-pill:has(input:checked),
body.dark .material-card:has(input:checked),
body.dark .color-option:has(input:checked) {
  border-color: #ffe373 !important;
  box-shadow: 0 0 0 2px rgba(255,227,115,.28) !important;
  background: #41403a !important;
}
.service-buttons .option-pill { justify-content:center; min-height:54px; text-align:center; }

/* No required badges or required visual treatment */
.config-badge, .config-block-title > span { display:none !important; }
.required-block { background:transparent !important; }

/* Larger image placeholders for better visibility */
.material-card { min-height:122px !important; padding:16px !important; }
.material-thumb { width:156px !important; height:94px !important; flex:0 0 156px !important; font-size:13px !important; }
.extras-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }

@media(max-width:980px){
  .section { padding-top:40px !important; padding-bottom:68px !important; }
  .material-thumb { width:140px !important; height:86px !important; flex-basis:140px !important; }
}
@media(max-width:620px){
  section[id] { scroll-margin-top:76px !important; }
  .section { padding-top:34px !important; padding-bottom:58px !important; }
  .material-thumb { width:100% !important; height:132px !important; flex-basis:auto !important; }
  .extras-grid { grid-template-columns:1fr !important; }
}


/* Update 28 */
.about-copy p{margin-top:0;color:var(--body-muted);font-size:18px;line-height:1.75}
.about-strengths{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
.about-strengths span{padding:10px 14px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-weight:850;color:var(--green)}

.social-links{display:flex;gap:10px;align-items:center}
.social-links a{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:var(--card);color:var(--green);transition:.2s}
.social-links a:hover{transform:translateY(-2px);border-color:var(--green)}
.social-links svg{width:20px;height:20px;fill:currentColor;stroke:currentColor;stroke-width:1.6}
.social-links svg .play{fill:var(--card);stroke:none}
.footer-social{margin-left:auto}
.footer-grid{flex-wrap:wrap}

.reviews{background:var(--bg)}
.reviews-intro{color:var(--body-muted);font-size:18px;line-height:1.7}
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.review-card{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.review-stars{color:#f6b800;letter-spacing:3px;font-size:20px}
.review-card p{color:var(--body-muted);line-height:1.65}
.review-card span{display:block;margin-top:5px;color:var(--muted);font-size:14px}
.reviews-link{margin-top:22px}

.configurator{min-width:0}
.contact-grid{grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)}
.config-service-grid.compact,.material-grid.small.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.material-card{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:14px;align-items:center;overflow:hidden}
.material-card input{position:absolute;opacity:0;pointer-events:none}
.material-card > span:last-child{min-width:0;overflow-wrap:anywhere}
.material-thumb{margin-left:0;width:132px;height:82px;justify-self:end;flex:none}
.option-pill input:checked + span,.color-option input:checked ~ span:last-child{font-weight:900}
.option-pill:has(input:checked),.color-option:has(input:checked),.material-card:has(input:checked){border-color:var(--green);box-shadow:inset 0 0 0 2px var(--green)}
body.dark .option-pill:has(input:checked),body.dark .color-option:has(input:checked),body.dark .material-card:has(input:checked){border-color:#ffe373;box-shadow:inset 0 0 0 2px #ffe373}

.routing-note{margin:14px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.config-submit-status{margin:14px 28px 0;padding:12px 14px;border-radius:14px;background:var(--bg);color:var(--body-muted);display:none}
.config-submit-status.show{display:block}

.service-img-wintergarten{object-position:center 50%!important}
.service-img-solarmodul{object-position:center 50%!important}

@media(max-width:1120px){
  .contact-grid{grid-template-columns:1fr}
  .reviews-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .material-grid,.material-grid.small.three,.config-service-grid.compact{grid-template-columns:1fr}
  .material-card{grid-template-columns:minmax(0,1fr) 120px}
  .material-thumb{width:120px;height:76px}
  .reviews-grid{grid-template-columns:1fr}
  .footer-social{margin-left:0}
}

/* Update 29 */
.config-thumb-image {
  display: block;
  object-fit: cover;
  object-position: center;
  padding: 0 !important;
  color: transparent;
}

.material-card img.material-thumb {
  border: 1px solid var(--line);
  background: var(--bg);
}

.material-grid.small.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media(max-width: 900px) {
  .material-grid.small.three {
    grid-template-columns: 1fr !important;
  }
}


/* Update 30: review spacing, cleaner configurator cards, single side-wall choice */
.reviews .section-head h2 {
  margin-bottom: 18px !important;
}

.reviews-intro {
  margin-top: 0 !important;
  margin-bottom: 26px !important;
}

/* Prevent narrow text columns and awkward word breaks in option cards */
.material-grid.small.three {
  gap: 18px !important;
}

.material-grid.small.three .material-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  min-height: 210px !important;
  padding: 16px !important;
}

.material-grid.small.three .material-card .material-thumb {
  order: 1 !important;
  width: 100% !important;
  height: 118px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.material-grid.small.three .material-card > span:last-child {
  order: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}

.config-block[data-config-section="left-wall"],
.config-block[data-config-section="right-wall"],
.config-block[data-config-section="front"] {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

@media (max-width: 1100px) {
  .material-grid.small.three {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .material-grid.small.three {
    grid-template-columns: 1fr !important;
  }
}


/* Update 31: neue Projektbilder und einheitliches Konfigurator-Kartenlayout */

/* Neue Leistungsbilder */
.service-img-wintergarten {
  object-position: center 48% !important;
}
.service-img-jalousien {
  object-position: center 48% !important;
}
.service-img-vordach {
  object-position: center 50% !important;
}
.service-img-solarmodul {
  object-position: center 52% !important;
}

/* Alle bildbasierten Konfigurator-Karten: Bild oben, Text darunter */
.material-grid .material-card,
.extras-grid .material-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  min-width: 0 !important;
  min-height: 218px !important;
  padding: 16px !important;
}

.material-grid .material-card .material-thumb,
.extras-grid .material-card .material-thumb {
  order: 1 !important;
  width: 100% !important;
  height: 128px !important;
  min-width: 0 !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px !important;
}

.material-grid .material-card > span:last-child,
.extras-grid .material-card > span:last-child {
  order: 2 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  line-height: 1.38 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}

/* Leistungsauswahl ebenfalls als Bildkarte */
.service-image-buttons {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.service-choice-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 14px !important;
  min-height: 190px !important;
  text-align: left !important;
}

.service-choice-card img,
.service-choice-placeholder {
  width: 100% !important;
  height: 116px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  background: var(--bg) !important;
}

.service-choice-placeholder {
  display: grid !important;
  place-items: center !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.service-choice-card > span:last-child {
  width: 100% !important;
  line-height: 1.35 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.service-choice-card:has(input:checked) {
  border-color: var(--green) !important;
  box-shadow: inset 0 0 0 2px var(--green) !important;
}

body.dark .service-choice-card:has(input:checked) {
  border-color: #ffe373 !important;
  box-shadow: inset 0 0 0 2px #ffe373 !important;
}

@media (max-width: 1120px) {
  .service-image-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .service-image-buttons {
    grid-template-columns: 1fr !important;
  }

  .material-grid .material-card,
  .extras-grid .material-card {
    min-height: 205px !important;
  }
}

/* Update 32 */
.hero-slideshow{position:relative!important;overflow:hidden!important;min-height:520px!important;border-radius:30px!important;background:var(--bg)!important}
.hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;opacity:0!important;transition:opacity .8s ease!important}
.hero-slide.active{opacity:1!important}
.hero-slide-dots{position:absolute!important;z-index:4!important;left:50%!important;bottom:18px!important;transform:translateX(-50%)!important;display:flex!important;gap:8px!important;padding:8px 12px!important;border-radius:999px!important;background:rgba(0,0,0,.28)!important;backdrop-filter:blur(6px)!important}
.hero-slide-dots span{width:8px!important;height:8px!important;border-radius:50%!important;background:rgba(255,255,255,.55)!important}
.hero-slide-dots span.active{background:#fff!important}
.gallery-grid-new{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.gallery-grid-new .gallery-item{margin:0!important;border-radius:22px!important;overflow:hidden!important;background:var(--card)!important;border:1px solid var(--line)!important;aspect-ratio:3/2!important}
.gallery-grid-new .gallery-item img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important;transition:transform .3s ease!important}
.gallery-grid-new .gallery-item:hover img{transform:scale(1.025)!important}
.gallery-grid-new figcaption{display:none!important}
@media(max-width:980px){.hero-slideshow{min-height:430px!important}.gallery-grid-new{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.hero-slideshow{min-height:320px!important}.gallery-grid-new{grid-template-columns:1fr!important}}


/* Update 33: refreshed service/configurator/roof images */
.service-img-ueberdachung,
.service-img-carport,
.service-img-jalousien { object-position: center 50% !important; }

[data-config-section="roof"] .material-card .material-thumb {
  object-fit: cover !important;
  object-position: center !important;
}

/* Update 34 */
.hero-slide-dots {
  display: none !important;
}

/* Update 36: Glasoptionen für Vorderseite und Seitenwände */
.wall-glass-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 760px !important;
  gap: 18px !important;
}

.wall-glass-card {
  min-height: 0 !important;
  padding: 16px !important;
}

.wall-glass-card .wall-option-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px !important;
}

.wall-glass-card > span:last-child {
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

@media (max-width: 700px) {
  .wall-glass-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}

/* Update 37: explicit 3:4 portrait images and parenthesized labels */
.wall-glass-card {
  min-height: 0 !important;
  padding: 16px !important;
}

.wall-glass-card .wall-option-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px !important;
}

.wall-glass-card > span:last-child {
  margin-top: 2px !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* Update 38: tatsächliches 3:4-Hochformat für Glasschiebewand-Bilder */

/* Frühere allgemeine Querformat-Regeln vollständig überschreiben */
.wall-glass-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 760px !important;
  gap: 20px !important;
}

.wall-glass-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 18px !important;
  min-height: 440px !important;
}

.wall-glass-card .wall-option-image,
.material-grid .wall-glass-card .material-thumb.wall-option-image {
  display: block !important;
  flex: none !important;
  width: 270px !important;
  height: 360px !important;
  max-width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
}

.wall-glass-card > span:last-child {
  width: 270px !important;
  max-width: 100% !important;
  margin-top: 14px !important;
  text-align: left !important;
}

@media (max-width: 700px) {
  .wall-glass-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }

  .wall-glass-card {
    min-height: 0 !important;
  }

  .wall-glass-card .wall-option-image,
  .material-grid .wall-glass-card .material-thumb.wall-option-image {
    width: min(100%, 300px) !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
  }

  .wall-glass-card > span:last-child {
    width: min(100%, 300px) !important;
  }
}

/* Update 39 */
.front-options-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}.front-option-card{min-height:0!important;padding:16px!important}.front-option-card .front-option-image{width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;object-position:center!important;border-radius:14px!important}.front-option-card>span:last-child{margin-top:12px!important;font-size:16px!important;font-weight:850!important;line-height:1.35!important}.service-img-markise,.service-img-screens,.service-img-insektenschutztuer{object-fit:cover!important;object-position:center!important}@media(max-width:980px){.front-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:620px){.front-options-grid{grid-template-columns:1fr!important}}

/* Update 40: unified 4:3 configurator cards */
.config-43-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.config-43-card {
  min-height: 0 !important;
  padding: 16px !important;
}

.config-43-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px !important;
  display: block !important;
}

.config-43-card > span:last-child,
.extra-select-label > span:last-child {
  margin-top: 12px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

.extra-quantity-card {
  padding: 16px !important;
}

.extra-select-label {
  display: block !important;
  cursor: pointer !important;
}

.extra-select-label input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.extra-select-label:has(input:checked) {
  outline: 2px solid var(--accent) !important;
  outline-offset: 4px !important;
  border-radius: 14px !important;
}

.quantity-control {
  display: grid !important;
  grid-template-columns: 42px 1fr 42px !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 14px !important;
}

.quantity-control input {
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
  padding: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--card) !important;
  color: var(--text) !important;
}

.qty-btn {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--accent) !important;
  color: var(--accent-contrast, #000) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

@media(max-width: 980px) {
  .config-43-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media(max-width: 620px) {
  .config-43-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Update 41: roof options as two rows with two items each */
.roof-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 900px !important;
}

@media (max-width: 620px) {
  .roof-options-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}

/* Extras must remain visible for Terrassenüberdachungen. */
[data-config-section="extras"] {
  display: block;
}

/* Update 42: guaranteed extras visibility for relevant services */
.config-extras-section.is-service-visible {
  display: block !important;
}

.config-extras-section[hidden] {
  display: none !important;
}

/* Update 43: Extras 2x2, cleaner selection and visible quantities */
.extras-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  max-width: 920px !important;
}

.extra-quantity-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px !important;
  min-height: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--card) !important;
  overflow: visible !important;
}

.extra-select-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  cursor: pointer !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.extra-select-label:has(input:checked) {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.extra-quantity-card:has(.extra-select-label input:checked) {
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
}

.extra-select-label .config-43-image {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.extra-select-label > span:last-child {
  display: block !important;
  margin-top: 20px !important;
  padding-top: 0 !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

.quantity-control {
  display: grid !important;
  grid-template-columns: 46px minmax(86px, 1fr) 46px !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

.quantity-value-wrap {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

.quantity-value-wrap input[type="number"] {
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 42px 10px 12px !important;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: var(--text) !important;
}

.quantity-value {
  position: absolute !important;
  right: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  pointer-events: none !important;
}

.qty-btn {
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.qty-btn:hover,
.qty-btn:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  filter: brightness(0.96);
}

@media (max-width: 700px) {
  .extras-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}

/* Update 44: Extras ohne Mengenwahl, Text wieder unter dem Bild */
.extras-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  max-width: 920px !important;
}

.extra-card-clean {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--card) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
}

.extra-card-clean input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.extra-card-clean:has(input:checked) {
  border: 2px solid var(--accent) !important;
  outline: none !important;
  box-shadow: none !important;
}

.extra-card-clean .config-43-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 14px !important;
}

.extra-card-clean > span:last-child {
  display: block !important;
  margin-top: 16px !important;
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  text-align: left !important;
}

/* Alte Mengensteuerung vollständig deaktivieren */
.quantity-control,
.quantity-value-wrap,
.quantity-value,
.qty-btn {
  display: none !important;
}

@media (max-width: 700px) {
  .extras-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}

/* Update 46 */

/* Einzugsgebiet title always uses active accent */
.regions [data-i18n="regionsTitle"],
.regions [data-region-title] {
  color: var(--accent) !important;
}

/* Equal spacing between main navigation items */
.desktop-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 42px !important;
}
.desktop-nav a {
  margin: 0 !important;
}

/* Cube service image */
.service-img-cube {
  object-fit: cover !important;
}

/* Front options as 2 x 2 */
.front-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 900px !important;
}

/* Side wall rows */
.side-wall-layout {
  display: grid !important;
  gap: 20px !important;
}
.side-wall-glass-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
.side-wall-fixed-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: min(68%, 760px) !important;
  margin-inline: auto !important;
}

/* Lighting: 3 cards */
.lighting-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.led-strip-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--surface-soft), var(--card)) !important;
  border: 1px dashed var(--line) !important;
  color: var(--muted) !important;
}

/* Phone display */
#dynamicPhoneLink {
  color: var(--accent) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .desktop-nav { gap: 24px !important; }
  .side-wall-glass-row,
  .lighting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .side-wall-fixed-row { width: 100% !important; }
}

@media (max-width: 620px) {
  .front-grid-2x2,
  .side-wall-glass-row,
  .side-wall-fixed-row,
  .lighting-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
}

/* Update 47 */
.desktop-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
  justify-content: flex-start !important;
  gap: 40px !important;
  flex: 0 1 auto !important;
}
.language-switch {
  margin-left: 42px !important;
  flex-shrink: 0 !important;
}
.regions-main-title {
  color: var(--accent) !important;
}
.service-img-cube,
.service-choice-card img[src*="cube-wintergarden-new"] {
  object-fit: cover !important;
  object-position: center !important;
}

/* Update 48: exact accent color for Einzugsgebiet main title */
.regions-main-title,
#einzugsgebiet .regions-main-title,
.regions .regions-main-title,
section[id*="einzugs"] .regions-main-title {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}

/* Light mode: green accent */
html:not([data-theme="dark"]) .regions-main-title,
body:not(.dark-mode) .regions-main-title,
body.light-mode .regions-main-title {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}

/* Dark mode: gold accent */
html[data-theme="dark"] .regions-main-title,
body.dark-mode .regions-main-title,
.dark .regions-main-title,
[data-theme="dark"] .regions-main-title {
  color: #ffe373 !important;
  -webkit-text-fill-color: #ffe373 !important;
}

/* Update 49: Vorderseite exakt im 4:3-Format */
.front-options-grid,
.front-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 900px !important;
}

.front-option-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 16px !important;
}

.front-option-card .front-option-image,
.front-options-grid .material-thumb,
.front-grid-2x2 .material-thumb {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  flex: none !important;
  border-radius: 14px !important;
}

/* Seitenwände: zwei Reihen mit je drei Spalten */
.side-wall-grid-3x2 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.side-wall-grid-3x2 .config-43-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  .side-wall-grid-3x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .front-options-grid,
  .front-grid-2x2,
  .side-wall-grid-3x2 {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}

/* Update 50: Vorderseite wirklich 4:3 und vollständiges Instagram-Icon */

/* Entfernt frühere flache Thumbnail-Höhen und erzwingt 4:3 */
.front-options-grid,
.front-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 900px !important;
}

.front-option-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: 0 !important;
  padding: 16px !important;
}

.front-option-card .front-option-image,
.front-option-card img.material-thumb,
.front-options-grid img,
.front-grid-2x2 img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
}

/* Zusätzliche Absicherung für Browser/ältere Regeln */
@supports not (aspect-ratio: 4 / 3) {
  .front-option-card .front-option-image {
    height: 0 !important;
    padding-bottom: 75% !important;
    background-size: cover !important;
  }
}

/* Vollständiges Instagram-Logo */
.social-icon-svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  color: currentColor !important;
  fill: none;
}

.instagram-icon {
  overflow: visible !important;
}

.social-links a,
.social-icons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Update 51: vollständige Mobile-Optimierung */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 980px) {
  .container,
  .section .container,
  .site-header .container,
  .header-inner,
  .header-content {
    width: min(100% - 32px, 100%) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .site-header {
    position: relative !important;
  }

  .header-inner,
  .header-content,
  .site-header .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .desktop-nav {
    order: 3 !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 24px !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }

  .desktop-nav::-webkit-scrollbar {
    display: none !important;
  }

  .language-switch {
    margin-left: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
  }

  .language-switch::-webkit-scrollbar {
    display: none !important;
  }

  .hero,
  .hero-grid,
  .contact-grid,
  .about-grid,
  .regions-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  .services-grid,
  .gallery-grid,
  .gallery-grid-new,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .service-card,
  .gallery-item,
  .review-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .configurator,
  .config-form,
  .config-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .config-service-grid,
  .material-grid,
  .front-options-grid,
  .front-grid-2x2,
  .roof-options-grid,
  .extras-grid,
  .lighting-grid,
  .side-wall-grid-3x2,
  .wedge-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .dimension-grid,
  .mini-grid {
    grid-template-columns: 1fr !important;
  }

  .service-choice-card,
  .option-pill,
  .material-card,
  .front-option-card,
  .extra-card-clean {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Smartphone */
@media (max-width: 700px) {
  body {
    font-size: 16px !important;
  }

  .section {
    padding-block: 54px !important;
  }

  .container,
  .section .container,
  .site-header .container,
  .header-inner,
  .header-content {
    width: calc(100% - 28px) !important;
    padding-inline: 0 !important;
  }

  .brand,
  .logo,
  .site-logo {
    max-width: 145px !important;
    flex-shrink: 0 !important;
  }

  .theme-toggle {
    margin-left: auto !important;
  }

  .desktop-nav {
    order: 4 !important;
    gap: 20px !important;
    padding: 8px 0 2px !important;
    font-size: 14px !important;
  }

  .language-switch {
    order: 3 !important;
    width: 100% !important;
    margin-left: 0 !important;
    display: flex !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }

  .language-switch button {
    flex: 0 0 auto !important;
  }

  h1 {
    font-size: clamp(38px, 11vw, 58px) !important;
    line-height: 1.02 !important;
  }

  h2 {
    font-size: clamp(30px, 8vw, 42px) !important;
    line-height: 1.08 !important;
  }

  h3 {
    font-size: 23px !important;
  }

  .hero,
  .hero-grid,
  .services-grid,
  .gallery-grid,
  .gallery-grid-new,
  .reviews-grid,
  .contact-grid,
  .about-grid,
  .regions-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-media,
  .hero-image,
  .hero img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  .service-card,
  .gallery-item,
  .review-card,
  .region-card,
  .process-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }

  .service-media,
  .gallery-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  .configurator {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .config-block {
    padding: 22px 0 !important;
  }

  .config-service-grid,
  .material-grid,
  .front-options-grid,
  .front-grid-2x2,
  .roof-options-grid,
  .extras-grid,
  .lighting-grid,
  .side-wall-grid-3x2,
  .side-wall-glass-row,
  .side-wall-fixed-row,
  .wedge-options-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
  }

  .option-pill,
  .service-choice-card,
  .material-card,
  .front-option-card,
  .extra-card-clean {
    width: 100% !important;
    max-width: 100% !important;
  }

  .option-pill img,
  .service-choice-card img,
  .material-card img,
  .front-option-card img,
  .extra-card-clean img,
  .config-43-image,
  .front-option-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  .contact-details,
  .region-panel,
  .reviews-panel {
    width: 100% !important;
  }

  .region-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .social-links,
  .social-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  button,
  .btn,
  input,
  select,
  textarea {
    max-width: 100% !important;
  }
}

/* Kleine Smartphones */
@media (max-width: 420px) {
  .container,
  .section .container,
  .site-header .container,
  .header-inner,
  .header-content {
    width: calc(100% - 20px) !important;
  }

  .configurator {
    padding: 14px !important;
  }

  .desktop-nav {
    font-size: 13px !important;
    gap: 18px !important;
  }

  .language-switch button {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
}

/* Update 52 */
.front-config-section .front-options-grid,.front-config-section .front-grid-2x2{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;max-width:900px!important}.front-config-section .front-option-card{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important}.front-config-section .front-option-card img,.front-config-section .front-option-image{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;object-position:center!important;min-height:0!important;max-height:none!important;flex:none!important}.hero-slideshow,.hero-media,.hero-image{overflow:hidden!important;border-radius:24px!important}.hero-slideshow img,.hero-media img,.hero-image img{display:block!important;width:100%!important;border-radius:inherit!important}.section h2,.section h3,.card h3,.service-card h3,.config-block h4{margin-bottom:10px!important}.section h2+p,.section h3+p,.card h3+p,.service-card h3+p,.config-block h4+p{margin-top:0!important}.section-label,.eyebrow,.section-kicker{margin-bottom:10px!important}.section-label+h2,.eyebrow+h2,.section-kicker+h2{margin-top:0!important}
@media(max-width:980px){.desktop-nav{display:none!important}.mobile-menu-toggle,.hamburger,.menu-toggle,.nav-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-left:auto!important}body.dark-mode .mobile-menu-toggle span,body.dark-mode .hamburger span,body.dark-mode .menu-toggle span,body.dark-mode .nav-toggle span,html[data-theme="dark"] .mobile-menu-toggle span,html[data-theme="dark"] .hamburger span,html[data-theme="dark"] .menu-toggle span,html[data-theme="dark"] .nav-toggle span{background:#000!important;border-color:#000!important}}
@media(max-width:700px){.services-grid,.gallery-grid,.gallery-grid-new{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.service-card,.gallery-item{width:100%!important;min-width:0!important;padding:10px!important;border-radius:16px!important}.service-media,.gallery-item img{width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;border-radius:12px!important}.service-card .card-icon{font-size:12px!important;margin:8px 0 4px!important}.service-card h3{font-size:16px!important;line-height:1.2!important;margin:6px 0!important}.service-card p{font-size:13px!important;line-height:1.35!important;margin:0!important}.front-config-section .front-options-grid,.front-config-section .front-grid-2x2{grid-template-columns:1fr!important}.front-config-section .front-option-card img,.front-config-section .front-option-image{aspect-ratio:4/3!important;height:auto!important}}
@media(max-width:420px){.services-grid,.gallery-grid,.gallery-grid-new{gap:8px!important}.service-card,.gallery-item{padding:8px!important}.service-card h3{font-size:14px!important}.service-card p{font-size:12px!important}}

/* Update 53: Vorderseitenbilder im normalen PC-Modus fest auf 4:3 */

/* Desktop: zwei Karten pro Reihe, jede Bildfläche exakt 4:3 */
@media (min-width: 981px) {
  .front-config-section .front-options-grid,
  .front-config-section .front-grid-2x2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    max-width: 900px !important;
    width: 100% !important;
  }

  .front-config-section .front-option-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 16px !important;
  }

  .front-config-section .front-option-card .front-option-image,
  .front-config-section .front-option-card img.material-thumb,
  .front-config-section .front-options-grid img,
  .front-config-section .front-grid-2x2 img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    border-radius: 14px !important;
  }
}

/* Zusätzliche Absicherung gegen alte Regeln mit fester Querformat-Höhe */
@media (min-width: 981px) {
  .front-config-section .front-option-card img[style],
  .front-config-section .front-option-card .config-thumb-image {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
}

/* Update 54 */
.mobile-language-toggle { display:none; }

.hero-slideshow,.slideshow-container,.hero-media,.hero-image {
  overflow:hidden!important; border-radius:24px!important; aspect-ratio:16/9!important;
}
.hero-slideshow img,.slideshow-container img,.hero-media img,.hero-image img,.hero-slide img,.slide img {
  width:100%!important; height:100%!important; object-fit:cover!important; border-radius:inherit!important;
}
.section { padding-block:58px!important; }
.section-label,.eyebrow,.section-kicker { margin-bottom:8px!important; }
.section-label+h2,.eyebrow+h2,.section-kicker+h2 { margin-top:0!important; }
.section h2,.section h3,.card h3 { margin-bottom:10px!important; }
.section h2+p,.section h3+p,.card h3+p { margin-top:0!important; }

@media (max-width:980px) {
  .desktop-nav { display:none!important; }
  .header-inner,.site-header .container {
    display:flex!important; flex-wrap:wrap!important; align-items:center!important; gap:10px!important;
  }
  .mobile-language-toggle,.menu-button {
    display:inline-flex!important; align-items:center!important; justify-content:center!important;
    width:44px!important; height:44px!important; flex:0 0 44px!important; border-radius:12px!important;
  }
  .mobile-language-toggle {
    margin-left:auto!important; border:1px solid var(--accent)!important;
    background:transparent!important; color:var(--accent)!important;
  }
  .mobile-language-toggle svg { width:21px!important; height:21px!important; }
  .mobile-language-panel {
    display:none!important; order:3!important; position:static!important; width:100%!important;
    margin:4px 0 0!important; padding:8px 0 2px!important; flex-wrap:wrap!important; gap:8px!important;
  }
  .mobile-language-panel.is-mobile-open { display:flex!important; }
  .mobile-nav {
    order:4!important; position:static!important; width:100%!important; transform:none!important;
  }
  .section { padding-block:42px!important; }
  .hero { padding-bottom:24px!important; }
  .hero+section,.hero+.section { padding-top:24px!important; }
  .process-grid,.about-grid,.contact-grid,.regions-grid { gap:18px!important; }
  .process-card,.step-card { padding:14px!important; }
  .process-card h3,.step-card h3 { font-size:18px!important; margin-bottom:5px!important; }
  .process-card p,.step-card p { font-size:14px!important; line-height:1.35!important; }
  #einzugsgebiet .container { width:calc(100% - 28px)!important; margin-inline:auto!important; }
  #einzugsgebiet .region-panel,#einzugsgebiet .regions-card { padding:22px!important; }
  .mobile-configurator,.configurator {
    width:calc(100% - 20px)!important; margin-inline:auto!important; padding:16px!important;
  }
}

@media (max-width:700px) {
  .services-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
  .service-card { padding:9px!important; border-radius:14px!important; }
  .service-card .service-media {
    width:100%!important; height:auto!important; aspect-ratio:4/3!important; object-fit:cover!important; border-radius:10px!important;
  }
  .service-card .card-icon { font-size:11px!important; margin:7px 0 3px!important; }
  .service-card h3 { font-size:14px!important; line-height:1.15!important; margin:5px 0!important; }
  .service-card p { font-size:11px!important; line-height:1.3!important; margin:0!important; }

  .gallery-grid,.gallery-grid-new { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:7px!important; }
  .gallery-item { padding:0!important; overflow:hidden!important; border-radius:10px!important; }
  .gallery-item img {
    width:100%!important; height:auto!important; aspect-ratio:4/3!important; object-fit:cover!important; border-radius:10px!important;
  }

  .config-service-grid,.country-buttons,.service-buttons,.material-grid,.front-options-grid,.front-grid-2x2,
  .roof-options-grid,.extras-grid,.side-wall-grid-3x2,.side-wall-glass-row,.side-wall-fixed-row,.wedge-options-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; width:100%!important; max-width:100%!important;
  }
  .lighting-grid { grid-template-columns:1fr!important; }
  .option-pill,.service-choice-card,.material-card,.front-option-card,.extra-card-clean {
    width:100%!important; min-width:0!important; padding:10px!important;
  }
  .option-pill img,.service-choice-card img,.material-card img,.front-option-card img,.extra-card-clean img,
  .config-43-image,.front-option-image {
    width:100%!important; height:auto!important; aspect-ratio:4/3!important; object-fit:cover!important;
  }
  .option-pill span,.service-choice-card span,.material-card span,.front-option-card span,.extra-card-clean span {
    font-size:12px!important; line-height:1.25!important;
  }
}

@media (max-width:420px) {
  .gallery-grid,.gallery-grid-new { gap:5px!important; }
  .mobile-configurator,.configurator { width:calc(100% - 12px)!important; padding:12px!important; }
}

/* Update 55: detailed mobile and legal-page fixes */

/* ALU GARDEN naming is intentional in uppercase; preserve normal paragraph casing. */

/* Full Instagram mark everywhere */
.social-icon-svg.instagram-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  overflow: visible !important;
  color: currentColor !important;
}

/* Mobile header controls in one top row */
@media (max-width: 980px) {
  .header-inner,
  .site-header .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px 44px 44px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .logo,
  .brand,
  .site-logo {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  .theme-toggle {
    grid-column: 2 !important;
    margin: 0 !important;
  }

  .mobile-language-toggle {
    grid-column: 3 !important;
    margin: 0 !important;
  }

  .mobile-menu-toggle,
  .menu-button {
    grid-column: 4 !important;
    margin: 0 !important;
  }

  .mobile-language-row,
  .mobile-language-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: auto !important;
  }

  .mobile-language-panel:not(.is-mobile-open) {
    display: none !important;
  }

  .mobile-language-panel.is-mobile-open {
    display: flex !important;
  }

  .mobile-nav {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    position: static !important;
    width: 100% !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
  }

  /* Black hamburger bars in dark mode */
  body.dark-mode .menu-button span,
  body.dark-mode .mobile-menu-toggle span,
  html[data-theme="dark"] .menu-button span,
  html[data-theme="dark"] .mobile-menu-toggle span {
    background: #000 !important;
    border-color: #000 !important;
  }

  /* Hero slideshow cannot overflow viewport */
  .mobile-hero-slideshow,
  .hero-slideshow,
  .slideshow-container,
  .hero-media {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 22px !important;
  }

  .mobile-hero-slideshow img,
  .hero-slideshow img,
  .slideshow-container img,
  .hero-media img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
  }

  /* Reduce space between About heading and body text */
  #ueber-uns .about-grid,
  #about .about-grid,
  .about-grid {
    gap: 14px !important;
  }

  #ueber-uns h2,
  #about h2 {
    margin-bottom: 10px !important;
  }

  #ueber-uns h2 + p,
  #about h2 + p {
    margin-top: 0 !important;
  }

  /* Compact process cards */
  .process-grid {
    gap: 12px !important;
  }

  .process-card,
  .step-card {
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .process-card .step-number,
  .step-card .step-number,
  .process-card .number,
  .step-card .number {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }

  .process-card h3,
  .step-card h3 {
    font-size: 18px !important;
    margin: 5px 0 !important;
  }

  .process-card p,
  .step-card p {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  /* Region section: keep content away from left/right edges */
  #einzugsgebiet .container,
  .regions .container {
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  #einzugsgebiet .region-panel,
  #einzugsgebiet .regions-card,
  .regions-card,
  .region-panel {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 22px !important;
  }

  #einzugsgebiet .region-buttons,
  .region-buttons {
    margin-top: 12px !important;
    gap: 8px !important;
  }

  #einzugsgebiet .region-details,
  #einzugsgebiet .region-city-list,
  .region-details,
  .region-city-list {
    padding: 14px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* Compact service cards further */
  .services-grid {
    gap: 9px !important;
  }

  .service-card {
    padding: 8px !important;
  }

  .service-card .service-media {
    aspect-ratio: 4 / 3 !important;
    max-height: 150px !important;
  }

  .service-card .card-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 10px !important;
    margin: 7px 0 3px !important;
  }

  .service-card h3 {
    font-size: 13px !important;
  }

  .service-card p {
    font-size: 10.5px !important;
  }

  /* Configurator extras labels must fit */
  .extras-grid .extra-card-clean,
  .extras-grid .material-card {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .extras-grid .extra-card-clean > span:last-child,
  .extras-grid .material-card > span:last-child {
    display: block !important;
    width: 100% !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* Legal pages */
.legal-page .section-label,
.legal-page .eyebrow,
.legal-page .section-kicker {
  display: none !important;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

.legal-page .legal-section {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.privacy-page .local-storage-section {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

@media (max-width: 700px) {
  .legal-page main,
  .legal-page .container,
  .legal-page .legal-content {
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  .legal-page h1 {
    font-size: clamp(29px, 8vw, 38px) !important;
    line-height: 1.08 !important;
  }

  .legal-page h2 {
    font-size: clamp(22px, 6.4vw, 30px) !important;
    line-height: 1.12 !important;
  }

  .legal-page h3 {
    font-size: 19px !important;
  }

  .legal-page p,
  .legal-page li {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .privacy-page .local-storage-section h2 {
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  .privacy-page .local-storage-section p {
    font-size: 13.5px !important;
  }
}

/* Update 56: mobile service cards, spacing and legal-page corrections */

@media (max-width: 700px) {
  /* Services: slightly larger text/number, but much shorter cards */
  .services-grid {
    align-items: start !important;
  }

  .service-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  .service-card .service-media {
    display: block !important;
    width: calc(100% - 4px) !important;
    margin: 2px auto 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 10px !important;
    flex: none !important;
  }

  .service-card.mobile-crop-top .service-media {
    object-position: center 22% !important;
  }

  .service-card .card-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 11.5px !important;
    margin: 10px 0 5px !important;
  }

  .service-card h3 {
    font-size: 14px !important;
    line-height: 1.18 !important;
    margin: 4px 0 5px !important;
    overflow-wrap: anywhere !important;
  }

  .service-card p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  .service-card p:last-child {
    margin-bottom: 0 !important;
  }

  /* Remove inherited fixed/min heights causing empty space */
  .service-card,
  .services-grid .service-card,
  .card.service-card {
    min-height: unset !important;
    max-height: none !important;
  }

  /* About section: reduce heading/body gap */
  #ueber-uns,
  #about {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  #ueber-uns .about-grid,
  #about .about-grid,
  .about-grid {
    display: grid !important;
    gap: 8px !important;
  }

  #ueber-uns h2,
  #about h2 {
    margin-bottom: 4px !important;
  }

  #ueber-uns .about-copy,
  #about .about-copy,
  .about-copy {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Region section: more side padding and tighter vertical spacing */
  #einzugsgebiet {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  #einzugsgebiet .container,
  .regions .container {
    width: calc(100% - 40px) !important;
    margin-inline: auto !important;
  }

  #einzugsgebiet .region-panel,
  #einzugsgebiet .regions-card,
  .region-panel,
  .regions-card {
    padding: 20px !important;
  }

  #einzugsgebiet .region-buttons,
  .region-buttons {
    margin-top: 8px !important;
    margin-bottom: 14px !important;
    gap: 7px !important;
  }

  #einzugsgebiet .region-details,
  #einzugsgebiet .region-city-list,
  .region-details,
  .region-city-list {
    padding: 14px !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }

  /* Extras: restore normal label size, special case insect door */
  .extras-grid .extra-card-clean > span:last-child,
  .extras-grid .material-card > span:last-child {
    font-size: 12px !important;
    line-height: 1.22 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .extras-grid [data-i18n="extraInsectDoor"],
  .extras-grid [data-i18n="optionPlisse"] {
    font-size: 10.8px !important;
    line-height: 1.15 !important;
  }

  /* Legal headings */
  .imprint-page h2 {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .privacy-page .local-storage-section h2 {
    font-size: 22px !important;
    line-height: 1.12 !important;
  }
}

/* Privacy: local-storage section belongs inside the legal content */
.privacy-page .local-storage-section {
  position: static !important;
  display: block !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.privacy-page .local-storage-section h2 {
  margin-top: 0 !important;
}

@media (min-width: 701px) {
  .privacy-page .local-storage-section {
    margin: 30px 0 !important;
  }
}

/* Update 57 */

/* Datenschutz: Punkt 8 bleibt innerhalb der legalen Inhaltskarte */
.privacy-page .local-storage-section {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Exakter zweizeiliger Handelsregister-Titel */
[data-i18n="imprintRegisterTitle"] {
  white-space: pre-line !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

@media (max-width: 980px) {
  /* Hamburger-Linien im Dark Mode zuverlässig schwarz */
  body.dark-mode .menu-button span,
  body.dark-mode .menu-button::before,
  body.dark-mode .menu-button::after,
  body.dark-mode .mobile-menu-toggle span,
  body.dark-mode .mobile-menu-toggle::before,
  body.dark-mode .mobile-menu-toggle::after,
  html[data-theme="dark"] .menu-button span,
  html[data-theme="dark"] .menu-button::before,
  html[data-theme="dark"] .menu-button::after,
  html[data-theme="dark"] .mobile-menu-toggle span,
  html[data-theme="dark"] .mobile-menu-toggle::before,
  html[data-theme="dark"] .mobile-menu-toggle::after {
    background: #000 !important;
    background-color: #000 !important;
    border-color: #000 !important;
    color: #000 !important;
  }

  /* Vordächer: Bildausschnitt weiter nach oben */
  .service-card.mobile-crop-vordach .service-media {
    object-position: center 5% !important;
  }

  /* Über uns: deutlich kleinere Lücke */
  #ueber-uns .about-grid,
  #about .about-grid {
    gap: 0 !important;
  }

  #ueber-uns h2,
  #about h2 {
    margin-bottom: 2px !important;
  }

  #ueber-uns .about-copy,
  #about .about-copy {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Einzugsgebiet garantiert vom linken/rechten Rand lösen */
  #einzugsgebiet {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  #einzugsgebiet > .container,
  #einzugsgebiet .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #einzugsgebiet .region-panel,
  #einzugsgebiet .regions-card,
  #einzugsgebiet .coverage-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }

  #einzugsgebiet .region-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
  }

  #einzugsgebiet .region-buttons button,
  #einzugsgebiet .country-button,
  #einzugsgebiet .region-buttons .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 4px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }

  #einzugsgebiet .region-details,
  #einzugsgebiet .region-city-list,
  #einzugsgebiet .city-list {
    margin-top: 8px !important;
    padding: 12px !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
  }
}

@media (max-width: 700px) {
  .privacy-page .local-storage-section {
    margin-top: 20px !important;
  }

  .privacy-page .local-storage-section h2 {
    font-size: 21px !important;
    line-height: 1.1 !important;
  }
}

/* Update 58: exact fixes requested */

/* Datenschutz: Punkt 8 ohne abweichende Hintergrundfläche */
.privacy-page .local-storage-section,
.legal-body .local-storage-section,
.local-storage-section {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Das Hamburger-Symbol ist das Textzeichen ☰, daher die Farbe direkt am Button setzen */
@media (max-width: 980px) {
  body.dark .menu-button,
  body.dark .mobile-menu-toggle,
  body.dark-mode .menu-button,
  body.dark-mode .mobile-menu-toggle,
  html[data-theme="dark"] .menu-button,
  html[data-theme="dark"] .mobile-menu-toggle {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    text-shadow: none !important;
  }

  /* Vordächer-Bild beginnt am oberen Bildrand */
  .service-card.mobile-crop-vordach .service-media,
  .service-card:has([data-i18n="service7Title"]) .service-media {
    object-position: center top !important;
  }

  /* Über uns: den geerbten 70-px-Grid-Abstand überschreiben */
  #ueber-uns .intro-grid,
  #about .intro-grid,
  .intro-grid {
    row-gap: 10px !important;
    gap: 10px !important;
  }

  #ueber-uns .intro-grid > div:first-child,
  #about .intro-grid > div:first-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #ueber-uns .about-copy,
  #about .about-copy {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 700px) {
  #ueber-uns .intro-grid,
  #about .intro-grid,
  .intro-grid {
    row-gap: 6px !important;
    gap: 6px !important;
  }
}

/* Update 59: restore the former desktop hero/slideshow sizing without changing mobile */
@media (min-width: 981px) {
  .hero .container.hero-grid,
  .hero-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 0.84fr) !important;
    width: min(1480px, calc(100% - 80px)) !important;
    max-width: 1480px !important;
    gap: 48px !important;
    overflow: visible !important;
  }

  .hero-grid > *,
  .hero-card,
  .hero-slideshow,
  .mobile-hero-slideshow {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-slideshow,
  .mobile-hero-slideshow {
    width: 100% !important;
    max-width: 760px !important;
    justify-self: end !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .hero-slideshow .hero-slide,
  .mobile-hero-slideshow .hero-slide {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}


/* Update 60: real mobile region selector, complete RTL layout and phone formatting */
#dynamicPhoneNumber,
html[dir="rtl"] #dynamicPhoneNumber,
html[dir="rtl"] a[href^="tel:"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
  white-space: nowrap !important;
  text-align: left !important;
}

/* Arabic desktop header: move the complete navigation row further right. */
@media (min-width: 981px) {
  html[dir="rtl"] .site-header .nav {
    position: relative !important;
    transform: translateX(64px) !important;
  }
}

@media (min-width: 981px) and (max-width: 1650px) {
  html[dir="rtl"] .site-header .nav {
    transform: translateX(38px) !important;
  }
}

@media (max-width: 700px) {
  /* The region section has no #einzugsgebiet id; target its real classes. */
  html:not([dir="rtl"]) .regions .region-box {
    width: calc(100% - 42px) !important;
    max-width: calc(100% - 42px) !important;
    margin-left: 28px !important;
    margin-right: 14px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }

  html[dir="rtl"] .regions .region-box {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin-left: 18px !important;
    margin-right: 18px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }

  .regions .region-box > div,
  .regions .region-box h2,
  .regions .region-box p,
  .regions .region-box .section-label {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Update 61: desktop navigation placement and language-specific direction */
@media (min-width: 981px) {
  /* LTR languages: move only the section tabs further left. */
  html:not([dir="rtl"]) .site-header .desktop-nav {
    position: relative !important;
    transform: translateX(-58px) !important;
  }

  /* Arabic/RTL: move the section tabs toward the right instead. */
  html[dir="rtl"] .site-header .desktop-nav {
    position: relative !important;
    transform: translateX(42px) !important;
  }
}

@media (min-width: 981px) and (max-width: 1250px) {
  html:not([dir="rtl"]) .site-header .desktop-nav {
    transform: translateX(-24px) !important;
  }

  html[dir="rtl"] .site-header .desktop-nav {
    transform: translateX(20px) !important;
  }
}

/* Update 62: Arabic keeps RTL text, but numbered item sequences remain 1→n from left to right */
html[dir="rtl"] .service-cards,
html[dir="rtl"] .timeline,
html[dir="rtl"] .timeline-five {
  direction: ltr !important;
}

/* Restore RTL text alignment inside each Arabic card */
html[dir="rtl"] .service-card,
html[dir="rtl"] .timeline .step,
html[dir="rtl"] .timeline-five .step {
  direction: rtl !important;
  text-align: right !important;
}

/* Keep number badges visually stable */
html[dir="rtl"] .service-card .card-icon,
html[dir="rtl"] .timeline .step > span,
html[dir="rtl"] .timeline-five .step > span {
  direction: ltr !important;
  text-align: center !important;
}

/* Update 63 */
.conditional-extra-colors{display:grid;gap:18px;margin-top:18px}.conditional-extra-color[hidden]{display:none!important}.conditional-extra-color{padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-sizing:border-box}.extra-color-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}@media(max-width:980px){.conditional-extra-colors{gap:14px;margin-top:14px}.conditional-extra-color{padding:14px;border-radius:16px}.extra-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Update 65: configurator routing contact */
.config-contact-route {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  font-size: 14px;
}
.config-contact-route a {
  font-weight: 800;
  color: var(--green);
}
body.dark .config-contact-route a {
  color: var(--accent);
}

/* Update 66: backend status + live review cards */
.config-submit-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 14px;
}
.config-submit-status.is-success { font-weight: 700; }
.config-submit-status.is-error { font-weight: 700; }

.google-live-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.google-live-review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.google-live-review-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.google-live-review-stars { color: var(--accent, #ffe373); letter-spacing: .05em; }

@media (max-width: 980px) {
  .google-live-reviews { grid-template-columns: 1fr; }
}

/* Update 67 */
.config-contact-route { display: none !important; }

.config-submit-status.is-success {
  margin-top: 14px;
  font-weight: 800;
}

button[type="submit"].is-submitted,
.config-submit.is-submitted,
.submit-btn.is-submitted {
  opacity: .62 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

#contact-route-email {
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

/* Update 69 */
.conditional-extra-color[hidden] {
  display: none !important;
}

.conditional-extra-color {
  margin-top: 16px;
}

.config-submit-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 14px;
}

.config-submit-status.is-success {
  font-weight: 800;
}

.config-submit-status.is-error {
  font-weight: 700;
}

.config-submit.is-submitted {
  opacity: .6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Update 70: hard visibility guarantee */
#awning-color-section[hidden],
#screen-color-section[hidden] {
  display: none !important;
}

#awning-color-section:not([hidden]),
#screen-color-section:not([hidden]) {
  display: block !important;
}

/* Update 71: center conditional extra-color content vertically */
#awning-color-section,
#screen-color-section {
  min-height: 150px !important;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: stretch !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  box-sizing: border-box !important;
}

#awning-color-section[hidden],
#screen-color-section[hidden] {
  display: none !important;
}

#awning-color-section:not([hidden]),
#screen-color-section:not([hidden]) {
  display: flex !important;
}

#awning-color-section .config-block-title,
#screen-color-section .config-block-title {
  margin: 0 0 14px !important;
}

#awning-color-section .extra-color-grid,
#screen-color-section .extra-color-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-items: center !important;
}

/* Confirmation must always remain visible below the submit button */
#config-submit-status {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 0 !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
  font-size: 14px !important;
}

#config-submit-status:empty {
  display: none !important;
}

#config-submit-status.is-loading,
#config-submit-status.is-success,
#config-submit-status.is-error {
  display: block !important;
}

#config-submit-status.is-success {
  font-weight: 800 !important;
}

@media (max-width: 700px) {
  #awning-color-section,
  #screen-color-section {
    min-height: 132px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  #config-submit-status {
    font-size: 13px !important;
  }
}

/* Update 72: true vertical centering + final submit state */
#awning-color-section,
#screen-color-section {
  min-height: 170px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#awning-color-section[hidden],
#screen-color-section[hidden] {
  display: none !important;
}

#awning-color-section:not([hidden]),
#screen-color-section:not([hidden]) {
  display: block !important;
}

#awning-color-section .extra-color-center,
#screen-color-section .extra-color-center {
  min-height: 170px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 20px 18px !important;
  box-sizing: border-box !important;
}

#awning-color-section .config-block-title,
#screen-color-section .config-block-title {
  margin: 0 0 14px !important;
  padding: 0 !important;
}

#awning-color-section .config-block-title h4,
#screen-color-section .config-block-title h4 {
  margin: 0 !important;
  padding: 0 !important;
}

#awning-color-section .extra-color-grid,
#screen-color-section .extra-color-grid,
#awning-color-section .color-options,
#screen-color-section .color-options {
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

#config-submit-status:empty {
  display: none !important;
}

.config-submit.is-submitted,
button.config-submit.is-submitted,
button[type="submit"].is-submitted {
  opacity: .62 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  user-select: none !important;
  transform: none !important;
}

@media (max-width: 700px) {
  #awning-color-section,
  #screen-color-section,
  #awning-color-section .extra-color-center,
  #screen-color-section .extra-color-center {
    min-height: 150px !important;
  }

  #awning-color-section .extra-color-center,
  #screen-color-section .extra-color-center {
    padding: 16px 14px !important;
  }
}

/* Update 74: testing diagnostics */
#config-submit-status.is-error {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  font-size: 13px !important;
}
