/* ============================================
   PflegePuls – styles.css
   Farben: #1a8cc7 (Blau), #0f6494 (Dunkelblau), #d9effc (Hellblau)
   Senior-Friendly: 18px Base, 50px Buttons, hoher Kontrast
   Mobile First, Responsive
   ============================================ */

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a8cc7;
  --primary-dark: #0f6494;
  --primary-light: #d9effc;
  --primary-lighter: #edf6fd;
  --text: #1b1b1b;
  --text-muted: #555;
  --bg-light: #f5fafd;
  --white: #fff;
  --success: #10b981;
  --danger: #dc2626;
  --border: #c8e6f7;
  --shadow: 0 4px 20px rgba(26,140,199,0.12);
  --shadow-lg: 0 8px 32px rgba(26,140,199,0.18);
  --radius: 12px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-white { background: var(--white); color: var(--primary-dark); border-color: var(--white); }
.btn-white:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn-lg { min-height: 58px; padding: 16px 36px; font-size: 1.1rem; }

/* --- Header & Navigation --- */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.header nav {
  white-space: nowrap;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }

.hamburger {
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}
.nav-links.active { display: flex; }
.nav-indicator { display: none; }

.nav-links a {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-lighter);
}

/* --- Section Scroll-Offset & full-page height --- */
section[id] { scroll-margin-top: var(--header-h); }

.leistungen-section,
.why-us,
.testimonials,
.about-section,
.wissen-section,
.faq-section,
.kontakt-section {
  min-height: 100vh;
  box-sizing: border-box;
  /* padding-bottom: header-h verschiebt den Mittelpunkt nach oben,
     sodass der Inhalt im sichtbaren Bereich (unterhalb des sticky Headers) zentriert erscheint */
  padding-bottom: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient: links lesbarer blauer Bereich, rechts läuft transparent aus → Bildfarben sichtbar */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 55, 90, 0.82) 0%,
    rgba(10, 55, 90, 0.55) 40%,
    rgba(10, 55, 90, 0.15) 65%,
    transparent 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 520px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-logo-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-big {
  width: 420px;
  max-width: 45vw;
  height: auto;
  filter: brightness(0) invert(1);
  drop-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.hero-badge {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  opacity: 0.6;
  cursor: pointer;
  color: var(--white);
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.2s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll svg { animation: bounce 1.5s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Trust Section --- */
.trust-section { background: var(--primary-light); padding: 1.5rem 0; }

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.trust-icon { font-size: 1.5rem; flex-shrink: 0; }

/* --- Leistungen (Booking Cards) --- */
.leistungen-section {
  height: 100vh;
  height: 100dvh;
  min-height: unset;
  box-sizing: border-box;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.leistungen-section .section-title { margin-bottom: 0.4rem; }
.leistungen-section .section-subtitle { font-size: 0.88rem; margin-bottom: 0; }

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.booking-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.booking-card-icon { font-size: 2rem; margin-bottom: 0.4rem; }

.booking-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.booking-card ul { margin: 0.25rem 0 1rem; flex: 1; }
.booking-card ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.booking-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.booking-card .btn { width: 100%; margin-top: auto; }

/* --- Modals --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
}
.modal-header h2 { font-size: 1.2rem; color: var(--primary-dark); }

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--danger); }

/* Modal Erfolgs-State */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  animation: kfFadeIn 0.35s ease both;
}
.modal-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  margin-bottom: 1rem;
}
.modal-success h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.modal-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Forms --- */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.95rem; }
.form-group label .req { color: var(--danger); }

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,140,199,0.15);
}

textarea.form-control { resize: vertical; min-height: 90px; }

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 130px; }

/* --- Toast --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Why Us --- */
.why-section { background: var(--bg-light); padding: 4rem 0; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-4px); }

.why-icon { width: 68px; height: 68px; margin: 0 auto 1rem; object-fit: contain; }

.why-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.95rem; color: var(--text-muted); }

/* --- Testimonials --- */
.testimonials-section { padding: 4rem 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--primary-lighter);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--primary);
}

.stars { font-size: 1.1rem; color: #f59e0b; margin-bottom: 0.75rem; letter-spacing: 2px; }

.testimonial-card blockquote {
  font-style: italic;
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author { font-weight: 700; font-size: 0.88rem; color: var(--primary-dark); }

/* --- Über uns --- */
.about-section {
  background: var(--bg-light);
  padding-top: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image-wrap img { width: 100%; height: 280px; object-fit: cover; }

.about-text h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); margin: 1rem 0 0.4rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--text-muted); margin-bottom: 0.6rem; font-size: 0.93rem; line-height: 1.65; }

/* --- Wissenswertes --- */
.wissen-section {
  background: var(--white);
  padding-top: 1rem;
}

.wissen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Featured Card */
.wissen-featured {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
}

.wissen-featured-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wissen-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.wissen-featured-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.4rem; }
.wissen-featured-info > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.wissen-list { list-style: none; margin: 0.3rem 0 0.6rem; }
.wissen-list li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 2px 0 2px 16px;
  position: relative;
}
.wissen-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-size: 0.75rem; }

.wissen-exceptions { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem !important; }
.wissen-source { font-size: 0.75rem; color: var(--primary); text-decoration: none; }
.wissen-source:hover { text-decoration: underline; }

.wissen-featured-cta {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.wissen-cta-icon { font-size: 1.5rem; }
.wissen-featured-cta p { font-size: 0.85rem; color: var(--primary-dark); line-height: 1.5; }

/* Info-Karten */
.wissen-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
  transition: transform 0.2s;
}
.wissen-card:hover { transform: translateY(-3px); }
.wissen-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.35rem; }
.wissen-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* --- FAQ --- */
.faq-section {
  background: var(--bg-light);
  padding-top: 1rem;
  height: 100vh;
  height: 100dvh;
  min-height: unset;
  overflow: hidden;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1.25rem;
  overflow-y: auto;
  max-height: calc(100dvh - 195px);
  padding-right: 2px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
  gap: 1rem;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question {
  background: var(--primary-lighter);
}
.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid transparent;
  transition: max-height 0.35s ease, padding 0.35s ease, border-top-color 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0.75rem 1.25rem 1rem;
  border-top-color: var(--border);
}

/* --- Kontakt --- */
.kontakt-section {
  padding: 4rem 0;
  background: var(--white);
  position: relative;
}


.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

a.kontakt-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.k-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.k-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.k-info strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.k-info span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Kontakt Layout */
.kontakt-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.kontakt-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kontakt-right {
  flex-shrink: 0;
}

/* Formular-Karte */
.kontakt-form-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.kontakt-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.kontakt-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.kontakt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* Feedback */
.kf-feedback {
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0;
  transition: all 0.2s;
}

.kf-feedback.success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.kf-feedback.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.kf-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.kf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ─── Kontakt Danke-Popup ─── */
@keyframes kfFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kf-ty-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.kf-ty-overlay.active {
  display: flex;
}

.kf-ty-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: kfFadeIn 0.35s ease both;
}

.kf-ty-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 0;
  border-radius: 4px;
  transition: color 0.2s;
}
.kf-ty-close:hover { color: var(--text); }

.kf-ty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #059669;
}

.kf-ty-title {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.kf-ty-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.kf-ty-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.kf-ty-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--primary-light);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.kf-ty-phone {
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}
.kf-ty-phone:hover { color: var(--primary); }

.kf-ty-btn {
  width: 100%;
  font-size: 0.95rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.5rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.wa-btn:hover { background: #1fad56; transform: translateY(-2px); color: var(--white); }

/* --- Back-to-Top --- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,140,199,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--primary-dark); }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: #12263a;
  color: rgba(255,255,255,0.88);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner[hidden] { display: none; }

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

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

.cookie-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  background: #12263a;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}

/* Top: Brand + Nav-Grid */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Brand-Spalte */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-logo-img {
  height: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}


.footer-logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 320px;
  color: rgba(255,255,255,0.6);
}

/* Social icons */
.footer-social {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-social-link:hover { color: var(--primary-light); }

/* Nav-Grid */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.footer-nav-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-nav-col a:hover { color: var(--primary-light); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

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

.footer-legal {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--primary-light); }

/* ============================================
   Responsive – Tablet (min 768px)
   ============================================ */
@media (min-width: 768px) {
  .hamburger { display: none; }

  /* Nav absolut über den gesamten Container spannen → Flexbox zentriert den Inhalt */
  .header nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .header nav .nav-links {
    pointer-events: auto;
  }

  /* ── Tubelight Nav Pill ── */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    border: 1px solid rgba(26,140,199,0.18);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 4px;
    gap: 2px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 9999px;
  }

  /* Sliding background indicator */
  .nav-indicator {
    display: block;
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: rgba(26,140,199,0.13);
    border-radius: 9999px;
    transition: left 0.38s cubic-bezier(0.34,1.56,0.64,1),
                width 0.38s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
    z-index: 0;
  }

  .nav-links li { list-style: none; }

  .nav-links a {
    position: relative;
    z-index: 1;
    display: block;
    border: none !important;
    border-radius: 9999px;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent !important;
    transition: color 0.2s;
    white-space: nowrap;
  }

  .nav-links a:hover { color: var(--primary); }
  .nav-links a.active { color: var(--primary-dark); }

  /* Lamp glow bar on top of active link */
  .nav-links a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 6px 6px;
    box-shadow:
      0 0 8px 2px rgba(26,140,199,0.55),
      0 4px 18px 4px rgba(26,140,199,0.22);
  }

  .hero-content h1 { font-size: 2.6rem; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .booking-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-image-wrap img { height: 420px; }
  /* Featured-Card volle Breite, 3 Info-Karten daneben */
  .wissen-grid { grid-template-columns: repeat(3, 1fr); }
  .wissen-featured { grid-column: 1 / -1; }
  .wissen-featured-inner { flex-direction: row; align-items: stretch; }
  .wissen-featured-cta { flex: 0 0 220px; }

  .kontakt-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt-layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .kontakt-left { flex: 1; }
  .kontakt-right { flex: 0 0 420px; }

  .footer-top { flex-direction: row; align-items: flex-start; }
  .footer-brand { flex: 0 0 300px; }
  .footer-nav-grid { flex: 1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================
   Responsive – Desktop (min 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .hero-content h1 { font-size: 2.9rem; }
  .hero-logo-big { width: 480px; }
  .wissen-featured-cta { flex: 0 0 260px; }
}

/* --- Hero mobile --- */
@media (max-width: 767px) {
  .hero-overlay {
    background: rgba(10, 55, 90, 0.6);
  }
  .hero-inner { flex-direction: column; gap: 1.5rem; }
  .hero-logo-col { order: -1; }
  .hero-logo-big { width: 160px; }
  .hero-content h1 { font-size: 1.7rem; }

  /* Leistungen – kein fixer Viewport auf Mobile */
  .leistungen-section {
    height: auto;
    min-height: unset;
    overflow: visible;
    padding: 2.5rem 0;
  }

  /* Grids → single column */
  .trust-grid,
  .booking-grid,
  .why-grid,
  .testimonials-grid,
  .wissen-grid,
  .kontakt-grid { grid-template-columns: 1fr; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }

  /* Wissenswertes featured */
  .wissen-featured { grid-column: auto; }
  .wissen-featured-inner { flex-direction: column; }
  .wissen-featured-cta { flex: none; }

  /* Kontakt */
  .kontakt-layout { flex-direction: column; gap: 1.5rem; }
  .kontakt-right { flex: none; width: 100%; }

  /* Footer */
  .footer { overflow: hidden; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-brand { flex: none; width: 100%; }
  .footer-nav-grid { flex-direction: column; gap: 1.5rem; width: 100%; }
  .footer-nav-col { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-legal { flex-direction: column; gap: 0.5rem; }

  /* Modals */
  .modal { width: 95vw; max-width: 95vw; margin: 1rem; padding: 1.25rem; }
  .form-row { flex-direction: column; gap: 0; }

  /* Section padding */
  section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* Buttons */
  .btn { font-size: 1rem; padding: 0.75rem 1.25rem; }

  /* Hero CTA buttons stacked */
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
