/* ============================================
   SCHREINEREI SCHWENGER – Hauptstylesheet
   Farben: Dunkelblau-Grün #2a6b7c / Grün #5ab03a
   ============================================ */

:root {
  --blue:       #2a6b7c;
  --blue-dark:  #1e5363;
  --blue-light: #3a8298;
  --green:      #5ab03a;
  --green-dark: #459030;
  --green-light:#6dc94a;
  --white:      #ffffff;
  --off-white:  #f5f7f5;
  --gray-light: #e8ece8;
  --gray:       #6b7280;
  --dark:       #1a1a1a;
  --text:       #2d2d2d;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 6px 32px rgba(0,0,0,0.14);
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ====== CONTAINER ====== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90,176,58,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-full { width: 100%; display: block; }

/* ====== SECTION TITLES ====== */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 12px;
}
.section-title.white { color: var(--white); }

.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.section-sub.white { color: rgba(255,255,255,0.85); }

/* ==============================
   HEADER
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: var(--white);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-block {
  flex-shrink: 0;
}

.logo-name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--white);
}

.logo-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--green-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.18s;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.header-cta {
  flex-shrink: 0;
  text-align: right;
}

.admin-login-btn {
  color: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  transition: color 0.18s;
  margin-left: 4px;
}
.admin-login-btn:hover {
  color: rgba(255,255,255,0.6);
}
.cta-label {
  display: block;
  font-size: 0.72rem;
  color: var(--green-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.cta-number {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

/* ==============================
   HERO
   ============================== */
.hero {
  min-height: 540px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(90,176,58,0.15) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  width: 100%;
  padding: 80px 0;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==============================
   WERU BANNER
   ============================== */
.weru-banner {
  background: var(--green);
  color: var(--white);
  padding: 18px 0;
}

.weru-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.weru-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.weru-bold {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.weru-cta {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}
.weru-cta a {
  color: var(--white);
  font-size: 1.05rem;
  margin-left: 6px;
}
.weru-cta a:hover { text-decoration: underline; }

/* ==============================
   LEISTUNGEN
   ============================== */
.leistungen {
  padding: 80px 0;
  background: var(--off-white);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.leistung-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform 0.2s, box-shadow 0.2s;
}
.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

a.leistung-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
}

a.leistung-card p {
  flex: 1;
}

.leistung-mehr {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.3px;
}

/* ==============================
   LEISTUNGS-UNTERSEITEN
   ============================== */

.leistung-page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 60px 0 50px;
  color: var(--white);
}

.leistung-page-hero .breadcrumb {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.leistung-page-hero .breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.leistung-page-hero .breadcrumb a:hover {
  color: var(--green-light);
}

.leistung-page-hero .page-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.leistung-page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.leistung-page-hero .hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

.leistung-page-content {
  padding: 64px 0;
}

.leistung-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.leistung-content-grid.reverse {
  direction: rtl;
}

.leistung-content-grid.reverse > * {
  direction: ltr;
}

.leistung-text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.leistung-text p {
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.7;
}

.leistung-text ul {
  list-style: none;
  margin: 14px 0 20px;
}

.leistung-text ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.leistung-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.leistung-image-slot {
  position: relative;
  background: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.88rem;
  text-align: center;
  border: 2px dashed #c8cfc8;
  gap: 10px;
}

.leistung-image-slot .slot-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.leistung-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leistung-gallery {
  margin-top: 56px;
}

.leistung-gallery h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-slot {
  position: relative;
  background: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.83rem;
  text-align: center;
  border: 2px dashed #c8cfc8;
  gap: 8px;
}

.gallery-slot .slot-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leistung-image-slot img,
.gallery-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  z-index: 1;
}

.leistung-image-slot.has-image,
.gallery-slot.has-image {
  border: none;
}

.leistung-page-cta {
  background: var(--blue-dark);
  padding: 56px 0;
  text-align: center;
  color: var(--white);
}

.leistung-page-cta h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.leistung-page-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  font-size: 1rem;
}

.leistung-page-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .leistung-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .leistung-content-grid.reverse {
    direction: ltr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .leistung-page-hero h1 {
    font-size: 1.7rem;
  }
}

.leistung-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.leistung-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.leistung-card p {
  font-size: 0.93rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ==============================
   PARTNER SECTION
   ============================== */
.highlight-green { color: var(--green); }

.partner-section {
  padding: 80px 0;
  background: var(--white);
}

.partner-carousel-wrapper {
  overflow: hidden;
  margin-top: 48px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partner-carousel-wrapper:hover .partner-carousel-track {
  animation-play-state: paused;
}

.partner-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: partner-scroll 30s linear infinite;
}

@keyframes partner-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 200px;
  height: 110px;
  background: var(--off-white);
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--blue-dark);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
  padding: 16px;
  overflow: hidden;
}

.partner-logo-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.partner-logo-img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-sub {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ==============================
   ÜBER UNS
   ============================== */
.ueber-uns {
  padding: 80px 0;
  background: var(--off-white);
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ueber-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.ueber-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fact-card {
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
}

.fact-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1.2;
}

.fact-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* ==============================
   REFERENZEN
   ============================== */
.referenzen {
  padding: 80px 0;
  background: var(--white);
}

.ratings-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.google-rating-box {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--off-white);
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.kde-rating-box {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff8f2;
  border: 2px solid #f97316;
  border-radius: 12px;
  padding: 36px 40px;
  flex-wrap: wrap;
}

.kde-icon {
  width: 52px;
  height: 52px;
  background: #f97316;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.btn-kde {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: #c2590a;
  border: 2px solid #f97316;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-kde:hover {
  border-color: #c2590a;
  background: #fff8f2;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.google-rating-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.google-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.rating-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
}

.rating-stars {
  font-size: 1.4rem;
  color: #fbbc05;
  letter-spacing: 2px;
  margin: 4px 0;
}

.rating-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.google-rating-right {
  flex: 1;
  min-width: 240px;
}

.google-rating-right p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--gray-light);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-google:hover {
  border-color: var(--blue);
  background: var(--off-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.reviews-carousel-wrapper {
  overflow: hidden;
  margin-bottom: 40px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-carousel-wrapper:hover .reviews-carousel-track {
  animation-play-state: paused;
}

.reviews-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: carousel-scroll 60s linear infinite;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  background: var(--off-white);
  border-radius: 8px;
  padding: 28px 24px;
  border: 1px solid var(--gray-light);
  transition: box-shadow 0.2s, transform 0.2s;
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.review-stars {
  font-size: 1.1rem;
  color: #fbbc05;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-dark);
}

.review-source {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 1px;
}

.referenzen-cta {
  text-align: center;
}

/* ==============================
   KONTAKT
   ============================== */
.kontakt {
  padding: 80px 0;
  background: var(--blue-dark);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.kontakt-info {
  color: var(--white);
}

.kontakt-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--white);
}

.kontakt-info > p {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 20px;
}

.kontakt-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.88);
  font-size: 0.93rem;
}

.kontakt-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.kontakt-detail strong {
  color: var(--green-light);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.kontakt-detail a {
  color: rgba(255,255,255,0.88);
  transition: color 0.15s;
}
.kontakt-detail a:hover { color: var(--green-light); }

.social-links {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.social-links strong {
  color: var(--green-light);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.social-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: var(--white);
}

.social-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}
.social-instagram:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(253,29,29,0.35);
}

.social-facebook {
  background: #1877f2;
}
.social-facebook:hover {
  background: #0d65d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(24,119,242,0.35);
}

/* Form */
.kontakt-form-block {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.kontakt-form-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 14px;
}

.form-privacy-note a {
  color: var(--green-dark);
  text-decoration: underline;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.18s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.form-success {
  text-align: center;
  padding: 40px 0;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

.form-error {
  text-align: center;
  padding: 16px;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.93rem;
  background: #fdf0ef;
  border-radius: var(--radius);
  margin-top: 12px;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}

.footer-logo-sub {
  font-size: 0.75rem;
  color: var(--green-light);
  font-weight: 600;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: all 0.18s;
}
.footer-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.footer-contact {
  font-size: 0.82rem;
  text-align: right;
  line-height: 1.7;
}
.footer-contact a { color: var(--green-light); }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  padding: 16px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-legal-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ==============================
   IMPRESSUM / DATENSCHUTZ
   ============================== */
.legal-page {
  padding: 64px 0 80px;
  background: var(--off-white);
  min-height: 70vh;
}

.legal-container {
  max-width: 820px;
}

.legal-container h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--green);
}

.legal-container h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 36px 0 10px;
}

.legal-container h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}

.legal-container p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-container a {
  color: var(--blue);
  text-decoration: underline;
}
.legal-container a:hover { color: var(--blue-dark); }

.legal-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-list li {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-date {
  margin-top: 40px;
  color: var(--gray) !important;
  font-size: 0.88rem !important;
}

.legal-back {
  margin-top: 48px;
}

/* ====== HAMBURGER BUTTON ====== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  flex-shrink: 0;
  border-radius: var(--radius);
  transition: background 0.15s;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-toggle .icon-close { display: none; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  /* ---- Header: hamburger menu ---- */
  .nav-toggle { display: flex; }

  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    border-top: 2px solid var(--green);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 200;
    display: none;
    flex: none;
    order: unset;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* ---- Layout stacks ---- */
  .ueber-grid,
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-contact { text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ueber-facts { grid-template-columns: 1fr 1fr; }
  .kontakt-form-block { padding: 24px 20px; }
  .weru-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .google-rating-box { padding: 24px 20px; gap: 20px; }
  .hero-overlay { padding: 60px 0; }
  .leistungen { padding: 56px 0; }
  .section-sub { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .logo-sub, .logo-tagline { display: none; }
  .logo-name { font-size: 1.5rem; }
  .cta-label { display: none; }
  .cta-number { font-size: 0.88rem; }
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--blue-dark);
  border-top: 3px solid var(--green);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cookie-text {
  flex: 1;
}

.cookie-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.cookie-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--green-light);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--white);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 180px;
}

.cookie-actions .btn {
  padding: 10px 24px;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
}

.cookie-custom-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  text-align: center;
}

.cookie-custom-btn:hover {
  border-color: var(--green);
  color: var(--green-light);
}

.cookie-decline-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  text-align: center;
}

.cookie-decline-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
}

/* ====== COOKIE PERSONALISIERUNGS-PANEL ====== */
.cookie-customize-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
}

.cookie-customize-overlay.open {
  display: flex;
}

.cookie-customize-panel {
  background: var(--blue-dark);
  border-top: 3px solid var(--green);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
  animation: slideUpPanel 0.3s ease;
}

@keyframes slideUpPanel {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-customize-panel h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cookie-customize-panel > p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

.cookie-category {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.cookie-category-info span {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin-top: 2px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--green);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-always-on {
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 5px;
}

.cookie-customize-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.cookie-customize-actions .btn {
  padding: 10px 28px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
    min-width: unset;
  }

  .cookie-customize-panel {
    padding: 24px 18px 20px;
    border-radius: 12px 12px 0 0;
  }

  .cookie-customize-actions {
    flex-direction: column;
  }

  .cookie-customize-actions .btn {
    width: 100%;
    text-align: center;
  }
}
