html {
  scroll-behavior: smooth;
}

:root {
  --bg: #ffffff;              /* leichtes blauweiß */
  --bg-alt: #ffffff;
  --accent: #0078A8;          /* Haupt-Blau aus Logo */
  --accent-dark: #3c8fad;     /* dunkleres Blau */
  --text: #243039;            /* dunkles Graublau */
  --muted: #6c7a85;           /* gedämpftes Graublau */
  --line: #d4e4ec;            /* helle Linie */
  --shadow: 0 8px 24px rgba(0,0,0,0.07);
  --radius: 16px;
  --max-width: 1080px;
}

/* Grundlayout */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / Navigation */

header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}




.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 84px;         /* passt sich der Höhe an */
  height: 84px;        /* füllt die Höhe der Button-Bar */
  flex-shrink: 0;      /* verhindert Verzerren */
}

.logo-icon img {
  height: 100%;
  width: auto;         /* Bild bleibt proportional */
  object-fit: contain; /* Bild wird nicht beschnitten */
}

/* optional: auf Handy etwas kleiner */
@media (max-width: 600px) {
  .logo-icon {
    width: 64px;
    height: 64px;
      color:#f4f9fc;
  }
}


nav ul {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  font-size: 1.1rem;
  flex-wrap: nowrap;
}

nav a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

nav a:hover {
  background: var(--accent);

  color:#f4f9fc;
  text-decoration: none;
}

.nav-phone {
  font-size: 0.9rem;
  white-space: nowrap;
  display: none; /* auf Handy einblenden */
}

/* Hero */

.hero {
  padding: 2.2rem 1.2rem 2.8rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-left {
  max-width: 640px;
}

.hero-tag {
  font-size: clamp(1.2rem);
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: none;     /* falls du keine Uppercase willst */
  letter-spacing: normal;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-highlight {
  color: var(--accent-dark);
}

.no-wrap {
  white-space: nowrap;
}

.hero-text {
  font-size: 0.35rem;
  color: var(--muted);
  margin-bottom: 3.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: #e0f1fb;
  text-decoration: none;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.hero-right {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.hero-aside-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-aside-list {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-aside-list li + li {
  margin-top: 0.2rem;
}

/* Sections allgemein */

section {
  padding: 3rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e0f1fb;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

.section-title {
  font-size: 1.6rem;
  margin-top: 0.5rem;
}

/* Layout: zwei Spalten */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--muted);
}



/* Services */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

/* --- Finaler, sauberer Service-Card Style inkl. Hover --- */
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: rgba(0,120,168,0.25);
}

/* Textstile */
.service-card h3 {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 600;
}

.service-card p {
  color: var(--muted);
}

/* Kleine, ruhige Icons in den Leistungskarten */

.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7f4fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}

/* HIER verkleinern wir die SVGs wirklich */
.service-icon svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 1.8;
}

/* Bewegungen reduzieren für Nutzer mit "prefers reduced motion" */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::before,
  .service-card::after {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


/* Bewegungen abschwächen für Nutzer mit reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::before,
  .service-card::after {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  .service-card, .service-card::after, .service-card::before {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* Alternierende Sektionen */

.section-alt {
  background: #ffffff;
}

/* Wohnungsunternehmen */

.sub-heading {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-list {
  margin-left: 1.1rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-list li + li {
  margin-top: 0.2rem;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  align-items: center;
}

.link-strong {
  font-weight: 500;
}

/* Spachteltechnik-Bildslider */
.tech-slider {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #dfeaf3;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;          /* Verhältnis 4:3, kannst du anpassen */
}

.tech-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.tech-slide.active {
  opacity: 1;
}

.tech-slider-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Nur der sichtbare Slide darf Klicks annehmen */
.tech-slide {
  pointer-events: none;
}

.tech-slide.active {
  pointer-events: auto;
}

/* Slider / Referenzen */

.section-subtext {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Filter-Leiste */
.ref-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1.2rem;
}

.ref-filter {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  background: #f3f9fd;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ref-filter:hover {
  border-color: var(--accent);
}

.ref-filter.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Grid für Bilder */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.ref-item {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 1;
  transform: scale(1);
  transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ref-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.ref-item figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
}

.ref-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

/* versteckte Items beim Filtern */
.ref-item.is-hidden {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

/* Responsiv */
@media (max-width: 1100px) {
  .ref-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ref-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Großer Referenz-Slider */

.photo-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}

.photo-slider-track {
  display: flex;
  transition: transform 400ms ease-in-out;
}

.photo-slide {
  min-width: 100%;
  position: relative;
  background: #000;
  color: #fff;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* Bild IMMER komplett sichtbar */
  background: #000;        /* schwarze Balken = gewollt, sauber */
}




/* Textbereich unten */
.photo-slide-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1rem 0.9rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.35),
    transparent
  );
  font-size: 0.9rem;
}

.photo-slide-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.photo-slide-text {
  font-size: 0.8rem;
  color: #e6edf2;
}

/* Pfeile links/rechts */
.photo-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-dark);
  transition: background 0.15s ease, transform 0.1s ease;
}

.photo-slider-arrow-left {
  left: 0.75rem;
}

.photo-slider-arrow-right {
  right: 0.75rem;
}

.photo-slider-arrow:hover {
  background: #f3f9fd;
  transform: translateY(-50%) translateY(-1px);
}

/* Punkte unter dem Slider */
.photo-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.photo-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease;
}

.photo-slider-dot.active {
  width: 18px;
  background: var(--accent);
}

/* Mobile: Slider niedriger machen */
@media (max-width: 900px) {
  .photo-slide img {
    height: 240px;
  }
}




/* Referenzen: Thumbnail-Leiste unter dem Slider */

.ref-thumb-wrap {
  margin-top: 1.4rem;
}

.ref-thumb-title {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.ref-thumb-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* Gesamt-Slider (Pfeile + Viewport + Track) */
.ref-thumb-slider {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Sichtbereich */
.ref-thumb-viewport {
  overflow: hidden;
  flex: 1;
}

/* Track mit Thumbs */
.ref-thumb-strip {
  display: inline-flex;
  gap: 0.6rem;
  transition: transform 400ms ease;
}

/* Pfeile */
.ref-thumb-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: background 0.15s ease, transform 0.1s ease;
}

.ref-thumb-arrow:hover {
  background: #f3f9fd;
  transform: translateY(-1px);
}

/* Einzelnes Thumbnail (kannst du lassen wie vorher) */
.ref-thumb {
  flex: 0 0 160px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  background: #fff;
}

.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.ref-thumb:hover img {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .ref-thumb {
    flex: 0 0 140px;
    height: 95px;
  }
}

/* Entfernt den rechten Abstand des letzten Thumbnails */
.ref-thumb-strip {
  padding-right: 0 !important;
}

.ref-thumb-strip > .ref-thumb:last-child {
  margin-right: 0 !important;
}



/* ---------- Lightbox für Bilder ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: min(1000px, 96vw);
  max-height: 96vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;   /* wichtig: nichts wird abgeschnitten */
  border-radius: 10px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #333;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .lightbox-inner {
    max-width: 96vw;
    max-height: 80vh;
  }
}

/* Body-Scroll sperren wenn Lightbox offen */
body.no-scroll {
  overflow: hidden;
}




/* Kontakt Layout */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Karten-Stil für beide Blöcke */
.contact-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
}

/* Linker Block: Extra-Highlight-Liste */
.contact-highlight {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-highlight ul {
  margin-top: 0.3rem;
  padding-left: 1.1rem;
}

.contact-highlight li + li {
  margin-top: 0.15rem;
}

/* Kontakt-Zeilen links */
.contact-row {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.link-strong {
  font-weight: 500;
}

.contact-layout {
  display: flex;
  justify-content: center;
}









/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .card-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-row {
    gap: 0.9rem;
  }

  .hero-right {
    padding-left: 0;
    border-left: none;
  }

  nav ul {
    display: none; /* Desktop-Menü auf Handy ausblenden */
  }

  .nav-phone {
    display: block;
  }

  .photo-slide img {
    height: 220px;
  }

  .mini-gallery {
    flex-direction: column;
  }
  .mini-gallery img {
    max-width: 100%;
    height: 220px;
  }
}




/* --- Impressum Overlay --- */

.impressum-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
}

.impressum-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 9999;
}

.impressum-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.impressum-box {
  background: #ffffff;
  padding: 1.8rem 2rem;
  max-width: 520px;
  width: 90%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.impressum-box h2 {
  margin-bottom: 1rem;
}

.impressum-box p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.close-impressum {
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.close-impressum:hover {
  background: var(--accent-dark);
}




/* Datenschutz Overlay – gleiche Struktur wie Impressum */
.datenschutz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 9999;
}

.datenschutz-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.datenschutz-box {
  background: #ffffff;
  padding: 1.8rem 2rem;
  max-width: 520px;
  width: 90%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.datenschutz-box h2 {
  margin-bottom: 1rem;
}

.datenschutz-box p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}


/* --- Hochformat-Anzeige für Bilder im großen Slider --- */
.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* Bild komplett sichtbar, nicht abgeschnitten */
  background: #000;       /* sorgt für elegante schwarze Balken */
}


