@font-face {
  font-family: 'Hagebau-Black';
  font-weight: 400;
  font-style: normal;
  src: url("./fonts/Hagebau-Black.woff") format('woff');
}
@font-face {
  font-family: 'HagebauCondensed-Black';
  font-weight: 400;
  font-style: normal;
  src: url("./fonts/HagebauCondensed-Black.woff") format('woff');
}
@font-face {
  font-family: 'HagebauCondensed-Bold';
  font-weight: 700;
  font-style: normal;
  src: url("./fonts/HagebauCondensed-Bold.woff") format('woff');
}
@font-face {
  font-family: 'HagebauCondensed-Regular';
  font-weight: 400;
  font-style: normal;
  src: url("./fonts/HagebauCondensed-Regular.woff") format('woff');
}
@font-face {
  font-family: 'HagebauOutline-Black';
  font-weight: 400;
  font-style: normal;
  src: url("./fonts/HagebauOutline-Black.woff") format('woff');
}

:root {
  --bs-border-color: #000;
  --primary-color: #009646;
  --primary-color-dark: #005028;
  --hagebau-grey: #f4f1ec;
}

/* Hagebau verwendet 1140px max wie BS4 lg-Breakpoint */
.container,
.container-md,
.container-sm,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 1140px;
}

body {
  font-family: 'HagebauCondensed-Regular','Helvetica Neue',Helvetica,Arial,sans-serif;
  font-size: 18px;
  line-height: 1.42857143;
  color: #3b3030;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: 'HagebauCondensed-Bold','Helvetica Neue',Helvetica,Arial,sans-serif;
}

.navbar-nav .nav-link.active {
  font-family: 'HagebauCondensed-Black','Helvetica Neue',Helvetica,Arial,sans-serif;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: #00378b;
  color: white;
}

#main-content {
  /*margin-top: 200px;*/ 
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  color: var(--primary-color)!important;
}

h1, .h1 { font-size: 39px; }
h2, .h2 { font-size: 32px; }
h3, .h3 { font-size: 26px; }
h4, .h4 { font-size: 19px; }

@media (max-width: 767.98px) {
  h1, .h1 { font-size: 31px; }
  h2, .h2 { font-size: 26px; }
}

h1, .h1, h2, .h2, h3, .h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

img.hover-effect {
  transition: transform 0.5s ease 0s;
}

a {
  color: var(--primary-color);
}

.bg-dynamic {
  background-color: var(--primary-color);
}

.text-color-white {
  color: white;
}

a:hover, a:focus {
 /* color: #23527c;
  text-decoration: underline;*/
}

.page-header {
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 9px;
  margin: 40px 0 20px;
}

img.hover-effect:hover {
  transform: scale(1.05);
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary:hover {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}

.btn-warning {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

.btn-warning:hover {
  background-color: #404040;
  border-color: #404040;
   color: #fff;
   text-decoration: none;
}

.btn-warning:active {
  background-color: #404040;
  border-color: #404040;
}

/* Visuell versteckter Text f�r Screenreader */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Container f�r Zoom-Bilder */
.zoom-wrapper {
  overflow: hidden;
  display: block;
  position: relative;
}

/* Zoom-Bild selbst */
.zoom-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  display: block;
}

/* Zoom bei Hover oder Tastatur-Fokus */
.zoom-wrapper:hover img,
.zoom-wrapper:focus img,
.zoom-wrapper:focus-within img {
transform: scale(1.05);
 /* transform: scale(1.05); /* 5 % gr��er */
}

.footer {
  background-color: #eff2f6;
  border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  border-color: #e7e7e7;
  border-radius: 4px;
  padding-bottom: 20px;
  padding-top: 20px;
}

.bg-grey {
  background-color: #eff2f6;
}

.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.panel-primary {
  border-color: var(--primary-color);
}

.panel-footer {
  padding: 10px 15px;
  background-color: var(--primary-color);
  border-top: 1px solid #ddd;
    border-top-color: rgb(221, 221, 221);
	border-color: var(--primary-color);
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.panel-footer a {
  color: white;
  font-weight: bold;
}
a{
	text-decoration: none;
}

a:hover, a:focus {
  /*color: white;*/
  text-decoration: underline;
}


.logo {
max-height: 100px;
max-width: 250px;
}

@media (max-width: 767.98px) {
  .logo {
    max-height: 65px;
  }
}

.navbar-brand {
  white-space: normal;
  word-break: break-word;
  line-height: 1;
  max-width: 700px;
}

@media (max-width: 767.98px) {
  .navbar-brand {
    max-width: 300px;
  }
}

/*NAVI*/
.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
}
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active {
  background: #fff;
}

.dropdown-menu {
  transition: all 0.2s ease;
}

.dropdown-item {
	color: #000!important;
	padding-top:5px!important;
	padding-bottom:5px!important;	
}

.dropdown-item::before {
  content: "\f054"; /* Unicode f�r fa-chevron-right */
  font-family: FontAwesome;
  display: inline-block;
  margin-right: 6px;
  font-size: 0.9em;
}


.article-divider {
  position: relative;
}

.article-divider::before,
.article-divider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #000;
}

.article-divider::before {
  left: -30px;
}

.article-divider::after {
  right: 30px;
}

/* Optional: Trennung nur auf mittlerem/gr��erem Bildschirm */
@media (max-width: 767.98px) {
  .article-divider::before,
  .article-divider::after {
    display: none;
  }
}

  
.navbar-hagebau {
  background-color: #fff;
}

header.sticky-top {
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar a {
	color:#fff;
	padding-top: 20px;
	padding-bottom: 20px;
}

.nav-link {
	padding-left: 10px;
	padding-right: 10px;
}

.navbar a:hover {
	color:#fff;
}

.navbar-hagebau .nav-link.dropdown-toggle:hover {
  background-color: #fff;
  color: #000 !important;
}

.dropdown-item.active, .dropdown-item:active {
  color: #fff!important;
  text-decoration: none;
  background-color: var(--primary-color);
}

@media (max-width: 991.98px) {
	.logo-wrapper {
			padding-left: 20px;
				padding-right: 20px;
	}
	
  .navbar-hagebau .container {
    background-color: var(--primary-color);
  }
   .container, .container-md, .container-sm {
	 max-width: 1024px;
	}
	
	.navbar-brand{
		padding-left: 10px;
	}
 }
 
 
 .navbar-hagebau .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5); 
}

.navbar-hagebau .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-hagebau .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(200, 200, 200, 0.5);
  outline: none; 
}

.input_plz__gemein_name {
  top: 13px;
}


.energieberater {
  width: 75%;
  margin: 0 auto; /* zentriert innerhalb container */
}

/* Grundstil für alle Artikel-Boxen */
article[role="listitem"] {
  /*border-radius: 12px;       
  transition: box-shadow .2s, outline .2s;*/
}

/* Markierung, wenn der Link im Artikel Fokus hat */
article[role="listitem"]:has(a:focus-visible) {
  /*outline: 3px solid #0d6efd;   
  outline-offset: 4px;
  box-shadow: 0 0 8px rgba(13,110,253,.6);*/
}
/* ============================================================
   Hagebau-Design (übertragen aus alt-System)
   ============================================================ */

/* Navbar grün */
.navbar-hagebau .nav-link {
  color: var(--primary-color) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-left: 1rem;
  padding-right: 1rem;
}
.navbar-hagebau .nav-link:hover,
.navbar-hagebau .nav-link.active {
  color: var(--primary-color-dark) !important;
  text-decoration: underline;
}
.navbar-hagebau .navbar-toggler {
  border-color: var(--primary-color);
}
.navbar-hagebau .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23009646' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero */
.hagebau-hero {
  background: #fff;
}
.hagebau-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Tool-Cards (Energiesparrechner / Fördersuche) */
.hagebau-tool-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.hagebau-tool-card .svg-default { display: block; }
.hagebau-tool-card .svg-hover  { display: none; }
.hagebau-tool-card:hover .svg-default { display: none; }
.hagebau-tool-card:hover .svg-hover  { display: block; }

/* Lead-Text */
.hagebau-lead {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
.hagebau-cta-text {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Footer-Info-Sektion */
.hagebau-footer-info {
  background: #e8f4ec;
  border-top-left-radius: 60px !important;
  border-top-right-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}
@media (max-width: 767.98px) {
  .hagebau-footer-info { border-top-left-radius: 20px !important; }
}
.hagebau-footer-info h3 {
  color: var(--primary-color) !important;
  font-weight: 800;
}
.hagebau-text-dark {
  color: var(--primary-color-dark) !important;
}
.hagebau-list {
  padding-left: 1.2rem;
}
.hagebau-list li {
  margin-bottom: 0.4rem;
}

/* CTA Button */
.hagebau-btn-cta {
  background: #e30613;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
}
.hagebau-btn-cta:hover {
  background: #b30510;
  color: #fff !important;
  text-decoration: none;
}

.btn-termin {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  color: #fff !important;
  padding: 10px 12px;
  flex: 0 0 calc(50% - 7px);
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .btn-termin {
    flex: 1 1 100%;
  }
}

.btn-termin-gruppe {
  max-width: 700px;
}

.btn-termin img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.btn-termin span {
  font-weight: 700;
  line-height: 1.25;
  font-size: 20px;
}

.btn-telefon {
  background: #1A7A3C;
  border-color: #1A7A3C;
}

.btn-telefon:hover,
.btn-telefon:focus {
  background: #166B34;
  border-color: #166B34;
}

/* Kontakt-Karten (Adresse + Ansprechpartner) */
.hagebau-contact-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.hagebau-contact-card h3 {
  font-weight: 700;
  color: #333 !important;
  font-size: 1.2rem;
}

/* Footer Bottom */
.hagebau-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
}
.hagebau-footer a {
  color: var(--primary-color) !important;
  text-decoration: none;
}
.hagebau-footer a:hover {
  text-decoration: underline;
}

/* Sanierungsmaßnahmen Checkboxen — Checkbox direkt neben Label */
.form-check-max-width {
  margin-right: 1.5rem;
}
.form-check-max-width .form-check-label {
  margin-left: 0.3rem;
}

/* Deine Möglichkeiten — Haus-Slider */
.slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 779;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  user-select: none;
  touch-action: none;
  margin-bottom: 36px;
  overflow: visible;
}
.haus-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#haus-innen-layer { clip-path: inset(0 0 0 50%); }
#haus-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}
#haus-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary-color);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 11;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 20px; color: var(--primary-color); font-weight: bold;
}
.slider-wrap .hotspot {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--primary-color);
  color: var(--primary-color);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-size: 22px; font-weight: bold; line-height: 1;
  z-index: 5;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.slider-wrap .hotspot:hover {
  border-color: #e30613;
  color: #e30613;
}
.slider-wrap .hotspot::after {
  content: attr(data-info);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #e30613;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.slider-wrap .hotspot:hover::after { opacity: 1; }
@media (max-width: 991.98px) {
  .slider-wrap .hotspot::after {
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    font-size: 12px;
    padding: 3px 6px;
  }
}
@media (max-width: 767.98px) {
  .slider-wrap .hotspot { width: 22px; height: 22px; font-size: 16px; border-width: 2px; }
  #haus-handle { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 575.98px) {
  .slider-wrap .hotspot { width: 18px; height: 18px; font-size: 13px; border-width: 2px; }
  #haus-handle { width: 34px; height: 34px; font-size: 14px; }
}
.slider-wrap .hotspot.aussen { z-index: 4; }
.slider-wrap .hotspot.innen { z-index: 6; }
.slider-wrap a.hotspot { text-decoration: none; }

/* Gewerk-Seite */
.gewerk-page h1 { color: var(--primary-color); }
.gewerk-hero {
  position: relative;
  overflow: hidden;
}
.gewerk-hero-img {
  display: block;
  width: 100%;
  height: auto;
}
.gewerk-hero-overlay {
  position: absolute;
  padding: 1rem 4%;
  max-width: 65%;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.gewerk-hero-overlay :is(h1, h2, h3) { color: #fff !important; }

.gewerk-hero-overlay h3 { margin-top: 0; margin-bottom: 0.5rem; line-height: 1.1; }
.gewerk-hero-overlay h1 { margin-top: 0; margin-bottom: 0; line-height: 1.0; }

/* 9 Positionen für Header-Text auf Hero */
.gewerk-hero-pos-top-left      { top: 2%;  left: 0;       transform: none; }
.gewerk-hero-pos-top-center    { top: 2%;  left: 50%;     transform: translateX(-50%); text-align: center; }
.gewerk-hero-pos-top-right     { top: 2%;  right: 0;      left: auto; text-align: right; }
.gewerk-hero-pos-middle-left   { top: 50%; left: 0;       transform: translateY(-50%); }
.gewerk-hero-pos-middle-center { top: 50%; left: 50%;     transform: translate(-50%, -50%); text-align: center; }
.gewerk-hero-pos-middle-right  { top: 50%; right: 0;      left: auto; transform: translateY(-50%); text-align: right; }
.gewerk-hero-pos-bottom-left   { bottom: 5%; left: 0;     transform: none; }
.gewerk-hero-pos-bottom-center { bottom: 8%; left: 50%;   transform: translateX(-50%); text-align: center; }
.gewerk-hero-pos-bottom-right  { bottom: 5%; right: 0;    left: auto; text-align: right; }

@media (max-width: 575.98px) {
  .gewerk-hero-overlay { max-width: 90%; padding: 0.6rem 4%; }
  .gewerk-hero-overlay h1 { font-size: 1.35rem; }
  .gewerk-hero-overlay h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .gewerk-hero-overlay { max-width: 80%; }
  .gewerk-hero-overlay h1 { font-size: 1.75rem; }
  .gewerk-hero-overlay h3 { font-size: 1rem; }
}
.gewerk-kachel { background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); color: #333; transition: transform 0.15s, box-shadow 0.15s; }
.gewerk-kachel:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.12); color: var(--primary-color-dark); }
.gewerk-kachel-img { width: 100%; height: auto; border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; }
.gewerk-kachel-ueberschrift { font-weight: 700; color: var(--primary-color); font-size: 1rem; }
.gewerk-kachel-name { font-size: 0.9rem; color: #666; }
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f6f6f6 10px, #f6f6f6 20px);
  border: 1px dashed #bbb;
  border-radius: 6px;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}
.placeholder-img.gewerk-hero { aspect-ratio: 1140 / 380; min-height: 240px; }
.placeholder-img.placeholder-img-sm { aspect-ratio: 3 / 1; min-height: 70px; margin-bottom: 8px; }
.placeholder-img.placeholder-img-md { aspect-ratio: 4 / 3; min-height: 160px; }
.gewerk-product-card { background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.moeglichkeiten-toggle {
  color: var(--primary-color);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.moeglichkeiten-toggle i {
  font-size: 1.6rem;
  vertical-align: middle;
}
.moeglichkeiten-divider {
  display: inline-block;
  width: 1px;
  height: 1.6rem;
  background: var(--primary-color);
  margin: 0 1.2rem;
}
#haus-info {
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  min-height: 50px;
}

/* Floating Quick-Contact Icons */
.floating-icons {
  position: fixed;
  right: 18px;
  top: 30%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}
.floating-icon {
  display: block;
  width: 60px;
  height: 60px;
  line-height: 0;
  transition: transform 0.2s;
}
.floating-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.floating-icon:hover,
.floating-icon:focus {
  transform: scale(1.08);
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .floating-icons {
    right: 4px !important;
    gap: 6px;
    width: auto;
    max-width: 44px;
  }
  .floating-icon {
    width: 36px !important;
    height: 36px !important;
  }
  .floating-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px),
       (orientation: landscape) and (max-height: 500px) {
  .floating-icons {
    max-width: none !important;
    width: auto !important;
  }
  .floating-icon {
    width: 48px !important;
    height: 48px !important;
  }
}
/* body-Overflow-Schutz, damit Icons nicht hinter horizontaler Scrollbar verschwinden */
html, body { overflow-x: hidden; }

/* ============================================================
   Zurück-Navigation auf Gewerk-Seiten
   ============================================================ */
.gewerk-nav-actions .btn-outline-hagebau,
.btn.btn-outline-hagebau {
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  background: #fff !important;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.gewerk-nav-actions .btn-outline-hagebau:hover,
.gewerk-nav-actions .btn-outline-hagebau:focus,
.btn.btn-outline-hagebau:hover,
.btn.btn-outline-hagebau:focus {
  background: var(--primary-color) !important;
  color: #fff !important;
}
.gewerk-nav-actions .btn-outline-hagebau i,
.btn.btn-outline-hagebau i {
  color: inherit;
}

@media (max-width: 767.98px) {
  .gewerk-nav-actions .btn-outline-hagebau,
  .btn.btn-outline-hagebau {
    padding: 0.75rem 1.4rem;
    font-size: 1rem;
  }
  .gewerk-nav-actions.text-center { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .gewerk-nav-actions.text-center .btn-outline-hagebau { flex: 1 1 auto; margin: 0 !important; min-width: 45%; }
}

/* Floating „Nach oben" Button */
a.back-to-top,
.back-to-top {
  position: fixed !important;
  right: 18px !important;
  bottom: 20px !important;
  left: auto !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--primary-color) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.15s;
  z-index: 1050;
  text-decoration: none !important;
}
a.back-to-top i {
  color: #fff;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus {
  background: var(--primary-color-dark, #007a3a);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .back-to-top {
    right: 8px !important;
    bottom: 12px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px;
  }
}

/* ============================================================
   Mobile-Landscape Fixes (Handy quer):
   - Header nicht mehr sticky (nimmt sonst halben Viewport weg)
   - Kopfleiste flacher: Logo & Padding schrumpfen
   - Haus-Slider passt sich an Höhe an, damit er komplett sichtbar bleibt
   Zielt auf Geräte mit querer Ausrichtung UND geringer Höhe.
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  header.sticky-top {
    position: static !important;
    top: auto !important;
  }
  .navbar-hagebau {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .navbar a,
  .navbar-hagebau .nav-link {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .logo {
    max-height: 42px;
    max-width: 160px;
  }
  .navbar-brand img.dein-foerdermittler,
  .navbar-brand img.dein-foerderwerker {
    width: auto;
    height: 32px;
  }
  .slider-wrap {
    height: 70vh;
    width: auto;
    max-width: 100%;
    aspect-ratio: 1600 / 779;
    margin-left: auto;
    margin-right: auto;
  }
  .haus-layer {
    object-fit: contain;
  }
}

.cc-window {
  background: #1a1a1a !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  padding: 1rem 1.25rem !important;
}
.cc-window .cc-message { color: #fff !important; }
.cc-window .cc-link {
  color: #ffe066 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}
.cc-window .cc-link:hover,
.cc-window .cc-link:focus {
  color: #fff !important;
  outline: 2px solid #ffe066;
  outline-offset: 2px;
}
.cc-window .cc-btn {
  background: #005028 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: 2px solid #fff !important;
  border-radius: 4px !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 15px !important;
}
.cc-window .cc-btn:hover { background: #007a3a !important; }
.cc-window .cc-btn:focus {
  outline: 3px solid #ffe066 !important;
  outline-offset: 2px !important;
}
