:root {
  --base-primary: #57ebd2;
  --base-secondary: #4dc8b4;
  --base-accent: #D3D3D3;
  --base-green: #89E597;
  --text-color: #000000;
  --text-on-dark: #ffffff;

  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 24px rgba(0,0,0,0.12);
  --shadow-strong: 0 14px 34px rgba(0,0,0,0.18);
}

/* === Global === */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background: #fff;

  /* ✅ verhindert “zu breit / verschoben” durch transform im Coverflow */
  overflow-x: hidden;
}

/* ✅ Platz für fixed Header (wird in Media angepasst) */
main { padding-top: 92px; }

/* === Header (Sticky + Apple Glass Pill) === */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: transparent;
  padding: 0.75rem 1rem;

  /* ✅ zentriert die Pill sauber */
  display: flex;
  justify-content: center;
}

/* Die "Pill" ist jetzt der Container, nicht der ganze Header */
.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  /* ✅ wichtig: damit Tablet/Mobile nicht abgeschnitten wird */
  flex-wrap: wrap;
  min-width: 0;

  /* Glass Look */
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  border-radius: 24px; /* pill */
  padding: 0.55rem 1rem;
}

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  padding-left: 0.25rem;
  max-width: 100%;
}

.site-header .logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Nav Layout */
.main-nav {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;           /* enger wie Apple */
  list-style: none;
  margin: 0;
  padding: 0;

  /* ✅ falls wenig Platz, umbrechen statt abschneiden */
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Pills pro Link */
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 0.9rem;
  border-radius: 9999px;

  text-decoration: none;
  font-weight: 600;
  color: var(--text-color);

  /* Subtle background, damit es wie "floating pills" wirkt */
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);

  transition:
    background 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
}

/* "Focus was ausgewählt wird beim click" */
.nav-link:active { transform: translateY(1px); }

/* Tastatur-Focus */
.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

/* Optionaler Active-State */
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  color: #111;
}

/* === HERO AUSSEN === */
.hero {
  width: 90%;
  margin: 20px auto;
}

/* Gemeinsamer Rahmen */
.hero-frame {
  display: flex;
  align-items: stretch; /* beide Spalten gleich hoch */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(120deg, var(--base-primary), var(--base-secondary));
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  color: #fff;
}

/* Gemeinsame Panel-Basis */
.hero-panel {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* LINKS: Text (bestimmt die Höhe!) */
.hero-text {
  flex: 1.1;
  max-width: 650px;
  min-width: 0;
}

/* RECHTS: Bild-Panel */
.hero-media {
  flex: 0.9;
  padding: 0;
  border-left: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* Bild füllt kompletten rechten Block */
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Typografie */
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Button */
.hero-btn {
  align-self: flex-start;
  margin-top: 1.2rem;
  background: #fff;
  color: var(--base-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-btn:hover {
  background: var(--base-primary);
  color: #fff;
}

/* === Blocks === */
.blocks {
  width: 90%;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.block {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.block::before {
  content: "";
  display: block;
  height: 6px;
}

.block--primary::before { background: var(--base-primary); }
.block--accent::before  { background: var(--base-green); }
.block--custom::before  { background: #bfc4c8;}

.block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Nur Hausmeister-Kachel: Bildausschnitt nach unten verschieben */
.block[data-category="hausmeister"] img{
  object-position: center 20%; /* 60–90% testen */
}


.block h2 {
  margin: 1rem 1rem 0.5rem;
  font-size: 1.25rem;
}
.block ul {
  margin: 0 1.25rem 1.25rem;
  padding-left: 1.1rem;
}
.block li {
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.block--primary h2 { color: var(--base-primary); }
.block--accent  h2 { color: #555; }
.block--custom  h2 { color: #1f7f4e; }

/* CTA Button in den Leistungsblöcken */
.block-cta{
  margin: 0 1rem 1.25rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  cursor: pointer;

  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.block-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  background-color: #f6f8fa;
}

.block--primary .block-cta{ border-color: rgba(35,79,136,.25); }
.block--custom  .block-cta{ border-color: rgba(31,127,78,.25); }

/* === Coverflow === */
.coverflow{
  width:90%;
  margin:2.5rem auto 4.5rem;
}

.cf-stage{
  position:relative;
  height:800px;
  display:flex;
  align-items:center;
  justify-content:center;

  /* ✅ ganz wichtig gegen “zu breit/verschoben” */
  overflow: hidden;
  border-radius: var(--radius);
}

.cf-track{
  position:relative;
  width:100%;
  height:100%;
  touch-action:pan-y;
  z-index:1;

  /* ✅ verhindert overflow durch transform */
  overflow: hidden;
}

.cf-card{
  position:absolute;
  left:50%;
  top:50%;
  transform:translateX(-50%) translateY(-50%);
  width:420px;
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .35s ease, opacity .35s ease, box-shadow .2s ease;
  z-index:2;
}

.cf-card.is-center{
  opacity:1;
  box-shadow:var(--shadow-strong);
}

.cf-card img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  display:block;
}

.cf-body{padding:1rem 1.1rem 1.25rem}
.cf-body h3{margin:.2rem 0 .6rem;font-size:1.35rem}
.cf-body p{margin:0 0 .9rem;line-height:1.55;color:#333}

.cf-cta{
  display:inline-block;
  background:var(--base-primary);
  color:#fff;
  text-decoration:none;
  padding:.6rem 1.1rem;
  border-radius:8px;
  font-weight:700
}
.cf-cta:hover{background:var(--base-secondary)}

/* ✅ Pfeile IMMER links/rechts “statisch” */
.cf-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
  font-size:24px;
  line-height:44px;
  text-align:center;
  z-index:10;
  touch-action: manipulation;
}
.cf-prev{left:10px}
.cf-next{right:10px}

/* === Kontakt === */
.contact { width: 90%; margin: 3.5rem auto 2.5rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--base-primary);
  position: absolute;
  left: 0; top: 0; right: 0;
}

.contact-card h2 {
  margin: 0.25rem 0 0.6rem;
  font-size: 1.6rem;
  color: var(--base-primary);
}

.contact-intro { margin: 0 0 1.25rem; line-height: 1.6; color: #333; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: bold; color: #111; }

.field input,
.field select,
.field textarea {
  border: 1px solid #d7dde6;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--base-primary);
  box-shadow: 0 0 0 4px rgba(45, 91, 163, 0.12);
}

.hint { color: #666; font-size: 0.9rem; line-height: 1.4; }

/* Honeypot unsichtbar */
.hp-field{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1.1rem 0 1rem;
  padding-top: 0.25rem;
}

.consent input { margin-top: 0.25rem; width: 18px; height: 18px; }
.consent label { line-height: 1.45; color: #222; }

.consent a {
  color: var(--base-primary);
  text-decoration: none;
  font-weight: bold;
}
.consent a:hover { text-decoration: underline; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-btn {
  border: none;
  cursor: pointer;
  display: inline-block;
  background: var(--base-primary);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.contact-btn:hover {
  background: var(--base-secondary);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.12);
}

.meta { margin: 0; color: #555; }
.meta a { color: var(--base-primary); text-decoration: none; font-weight: bold; }
.meta a:hover { text-decoration: underline; }

.form-status{
  margin: .9rem 0 0;
  font-weight: 700;
}
.form-status.ok{ color: #1f7f4e; }
.form-status.error{ color: #b00020; }

.contact-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.contact-media__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.1rem 1.2rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(17, 54, 117, 0) 0%,
    rgba(17, 54, 117, 0.85) 80%
  );
}

.contact-media__overlay h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.contact-media__overlay p { margin: 0; line-height: 1.5; opacity: 0.95; }

/* === Bewertungen === */
.reviews {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.reviews h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #222;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 420px));
  gap: 30px;
  justify-content: center;
}

.review {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.stars {
  font-size: 20px;
  color: #f5a623;
  letter-spacing: 2px;
}

.rating-summary { font-size: 14px; color: #555; }

.rating-details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.rating-details li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: #333;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.review-author { font-size: 14px; color: #666; font-style: italic; }

.more-reviews { margin-top: 35px; text-align: center; }

.more-reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background-color: #ffffff;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.more-reviews-btn:hover {
  background-color: #f6f8fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.google-label {
  font-size: 12px;
  color: #666;
  background-color: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
}

/* === Footer === */
.site-footer{
  width:100%;
  margin-top: 3rem;
  background: linear-gradient(120deg, var(--base-secondary), #0b1f4a);
  color: #fff;
}
.footer-inner{
  width: 90%;
  margin: 0 auto;
  padding: 3.2rem 0 1.2rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  align-items: start;
}
.footer-col h3{
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.footer-col a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-col a:hover{ color: #fff; }

.footer-social{
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: .25rem;
}
.social-link{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  transition: transform .15s ease, background .2s ease;
}
.social-link:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
}
.social-icon{
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.footer-brand{ display: flex; justify-content: flex-end; }
.brand-row{ display: flex; align-items: center; gap: 1rem; }
.footer-logo{ height: 54px; width: auto; }
.brand-name{ font-size: 1.6rem; font-weight: 800; }
.brand-sub{ font-size: .95rem; color: rgba(255,255,255,.8); margin-top: .2rem; }

.footer-bottom{
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: .95rem;
}

/* =========================================================
   ✅ Responsive: NUR 3 Breakpoints
========================================================= */

/* 1) Tablet/Small Desktop */
@media (max-width: 1024px) {
  .blocks { grid-template-columns: repeat(2, 1fr); }

  /* Header etwas kompakter */
  main { padding-top: 96px; }

  /* Coverflow kleiner */
  .cf-stage{ height: 640px; }
  .cf-card{ width: 380px; }
}

/* 2) Tablet / Large Mobile */
@media (max-width: 768px) {
  /* ✅ Header darf umbrechen -> mehr Platz geben */
  main { padding-top: 138px; }

  .header-container{
    padding: 0.55rem 0.75rem;
    gap: 0.65rem;
    justify-content: center;
  }
  .main-nav{ width: 100%; justify-content: center; }
  .nav-list{ justify-content: center; }

  /* Hero stack */
  .hero-frame { flex-direction: column; }
  .hero-media {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    min-height: 260px;
  }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-btn { align-self: center; }
  .hero-panel { padding: 2rem; }

  /* Blocks 1-spaltig */
  .blocks { grid-template-columns: 1fr; }

  /* Contact 1-spaltig */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-media { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Reviews 1-spaltig */
  .review-list { grid-template-columns: 1fr; }

  /* Footer 2-spaltig */
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ justify-content: flex-start; }

  /* ✅ Carousel: Compact Track Mode (lesbar, nix abgeschnitten) */
  .coverflow.is-compact .cf-stage{
    height: auto;
    min-height: 520px;
    overflow: visible;
  }

  .coverflow.is-compact .cf-track{
    height: auto;
    overflow-x: auto;
    overflow-y: visible;
    display: flex;
    align-items: stretch;
    gap: 14px;

    padding: 0 70px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .coverflow.is-compact .cf-card{
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    width: 78%;
    max-width: 380px;
    flex: 0 0 auto;
    scroll-snap-align: center;

    opacity: 1 !important;
    z-index: 1;
  }

  .coverflow.is-compact .cf-card img{ aspect-ratio: 4/3; }
}

/* 3) Mobile */
@media (max-width: 480px) {
  main { padding-top: 155px; }

  .site-header{ padding: 0.6rem 0.75rem; }
  .site-header .logo { height: 38px; }
  .nav-link { padding: 0.45rem 0.65rem; font-size: 0.95rem; }

  .hero { width: 92%; }
  .hero-panel { padding: 1.6rem; }

  /* ✅ Compact Track noch tighter */
  .coverflow.is-compact .cf-stage{
    min-height: 520px;
  }

  .coverflow.is-compact .cf-track{
    padding: 0 64px 18px;
    gap: 12px;
  }

  .coverflow.is-compact .cf-card{
    width: 86%;
    max-width: 320px;
  }

  .coverflow.is-compact .cf-card img{ aspect-ratio: 1/1; }

  /* Footer 1-spaltig */
  .footer-grid{ grid-template-columns: 1fr; }
}

.social-link i {
  font-size: 18px;
  color: white;
}

/* =========================
   KI-Hinweis auf Bildern
========================= */


/* Badge */
.hero-media::after,
.block::after,
.contact-media::after,
.cf-card::after {
  content: "KI-generiert";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;

  padding: 0.35rem 0.6rem;
  border-radius: 999px;

  font-size: 0.45rem;
  letter-spacing: 0.02em;
  line-height: 1;

  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* Auf kleinen Displays etwas kompakter */
@media (max-width: 480px) {
  .hero-media::after,
  .block::after,
  .contact-media::after,
  .cf-card::after {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }
}

