/* ======================================================
   BASIS / VARIABLEN
====================================================== */

:root {
  --primary: #0b1b3a;
  --accent: #f5a200;
  --dark: #0f1a33;
  --light: #f7f7f7;
  --text: #1a1a1a;
  --muted: #6b7280;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
}

section {
  scroll-margin-top: 90px;
}

/* ======================================================
   TYPOGRAFIE
====================================================== */

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #111827;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
  color: #444;
}

.text-muted {
  color: var(--muted) !important;
}

/* ======================================================
   NAVIGATION
====================================================== */

.bg-primary {
  background-color: var(--primary) !important;
}

.navbar-brand img {
  max-height: 52px;
}

.nav-icon i {
  font-size: 1.25rem;
  color: #fff;
  transition: color .2s ease;
}

.nav-icon:hover i {
  color: var(--accent);
}

/* ======================================================
   HERO / SLIDER
====================================================== */

.hero-slider img {
  height: 42vh;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(11, 27, 58, 0.75);
  padding: 1.5rem;
  border-radius: var(--radius);
  max-width: 720px;
  margin: auto;
}

.carousel-caption h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: .3rem;
}

.carousel-caption p {
  margin: 0;
  font-size: 1.05rem;
}

/* ======================================================
   BOXEN / KARTEN
====================================================== */

.portfolio-box,
.solution-box,
.offer-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: all .25s ease;
}

.portfolio-box:hover,
.solution-box:hover,
.offer-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* ======================================================
   ICON-PLATZHALTER (keine Bilder!)
====================================================== */

.portfolio-icon,
.offer-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5a200, #ffd27a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

/* ======================================================
   FORMULAR
====================================================== */

form .form-control,
form .form-select {
  padding: .75rem;
  border-radius: 10px;
}

.btn-accent {
  background: var(--accent);
  color: #000;
  border: none;
  padding: .8rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
}

.btn-accent:hover {
  background: #e0a000;
}

/* ======================================================
   FOOTER
====================================================== */

footer {
  font-size: .9rem;
}

footer a:hover {
  text-decoration: underline;
}

/* ======================================================
   COOKIE CONSENT – FINAL VERSION
====================================================== */

.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
}

.consent-modal {
  width: 100%;
  background: var(--dark);
  color: #e8eefc;
  border-radius: 22px 22px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .consent-backdrop {
    align-items: center;
  }
  .consent-modal {
    max-width: 900px;
    border-radius: 22px;
  }
}

.consent-header {
  padding: 18px 22px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.consent-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.badge {
  display: inline-block;
  margin-top: 6px;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #cbd5ff;
}

.consent-body {
  padding: 16px 22px;
  overflow-y: auto;
  flex: 1;
  font-size: .9rem;
  color: #c7d2fe;
}

.consent-settings-toggle {
  background: none;
  border: none;
  color: #7aa2ff;
  font-weight: 600;
  padding: 6px 0 12px;
}

.consent-settings {
  display: none;
  margin-top: 12px;
}

.panel {
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 14px;
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  margin-bottom: 10px;
}

.toggle small {
  display: block;
  font-size: .75rem;
  opacity: .8;
}

.switch {
  width: 46px;
  height: 26px;
  position: relative;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.3);
  border-radius: 999px;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.switch input:checked + .slider {
  background: #4f8cff;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.consent-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-btn-primary {
  background: linear-gradient(135deg,#4f8cff,#6aa5ff);
  color: #061022;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.consent-btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 14px;
  padding: 13px;
}

.consent-btn-reject {
  background: none;
  border: none;
  color: #ffb3bd;
  font-size: .85rem;
  text-decoration: underline;
}
.portfolio-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem;
  background-image: url("../graphics/icons_portfolio.png");
  background-size: 200% 200%;
  background-repeat: no-repeat;
}

/* oben links */
.icon-energie {
  background-position: 0% 0%;
}

/* oben rechts */
.icon-heizen {
  background-position: 100% 0%;
}

/* unten links */
.icon-sanierung {
  background-position: 0% 100%;
}

/* unten rechts */
.icon-smart {
  background-position: 100% 100%;
}
.offer-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem;
  background-image: url("../graphics/icons_leistungen.png");
  background-size: 200% 200%;
  background-repeat: no-repeat;
}

/* oben links */
.icon-beratung {
  background-position: 0% 0%;
}

/* oben rechts */
.icon-umsetzung {
  background-position: 100% 0%;
}

/* unten links */
.icon-modernisierung {
  background-position: 0% 100%;
}

/* unten rechts */
.icon-optimierung {
  background-position: 100% 100%;
}
.carousel-caption {
  color: #ffffff !important;
}
.hero-slider .carousel-caption {
  color: #ffffff;
}

.hero-slider .carousel-caption h1,
.hero-slider .carousel-caption p {
  color: #ffffff;
}
/* ======================================================
   SOCIAL MEDIA ICONS FIX
====================================================== */

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons .nav-link {
  padding: 8px;
  margin: 0;
}

.social-icons .nav-link i {
  font-size: 1.25rem;
  line-height: 1;
}
.bg-primary,
.bg-primary p,
.bg-primary a {
  color: #ffffff !important;
}
.text-primary-icons i {
  color: #0B1B3A;
  font-size: 2.6rem;
}

.text-primary-icons a:hover i {
  color: #F5A200;
}
