/* ============================================================
   Wasserzeit – style.css
   Wasser · Natur · Expertise
   ============================================================ */

/* ── 1. Custom Properties – Light Mode ─────────────────────── */
:root {
  --c-bg:           #F0F8FF;
  --c-bg-alt:       #E3F0FA;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #EAF4FC;
  --c-text:         #0D2137;
  --c-text-muted:   #3A5A78;
  --c-text-light:   #6A8CA8;
  --c-accent:       #1B6FA8;
  --c-accent-h:     #145680;
  --c-accent-light: #4A9FD4;
  --c-accent-bg:    rgba(27, 111, 168, 0.09);
  --c-secondary:    #0E9AA7;
  --c-secondary-bg: rgba(14, 154, 167, 0.09);
  --c-border:       rgba(27, 111, 168, 0.18);
  --c-border-lt:    rgba(27, 111, 168, 0.10);
  --c-shadow-sm:    0 2px 8px  rgba(13, 33, 55, 0.08);
  --c-shadow-md:    0 4px 24px rgba(13, 33, 55, 0.13);
  --c-shadow-lg:    0 8px 48px rgba(13, 33, 55, 0.18);
  --c-header-bg:    rgba(240, 248, 255, 0.93);
  --c-hero-ov:      rgba(4, 20, 40, 0.58);

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Lato', system-ui, -apple-system, sans-serif;

  --max-w:   1200px;
  --pad-x:   clamp(1rem, 5vw, 2rem);
  --sec-py: clamp(2.5rem, 5vw, 4.5rem);

  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   36px;
  --r-full: 9999px;

  --tr:        0.3s ease;
  --tr-slow:   0.65s ease;
  --tr-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 2. Dark Mode – Dunkelblau ──────────────────────────────── */
html[data-theme="dark"] {
  --c-bg:           #040D1A;
  --c-bg-alt:       #071525;
  --c-surface:      #0C1E35;
  --c-surface-2:    #102340;
  --c-text:         #CDE4F7;
  --c-text-muted:   #7AAAC8;
  --c-text-light:   #4A7A9B;
  --c-accent:       #4A9FD4;
  --c-accent-h:     #6BB8E8;
  --c-accent-light: #6BB8E8;
  --c-accent-bg:    rgba(74, 159, 212, 0.13);
  --c-secondary:    #1DBCCA;
  --c-secondary-bg: rgba(29, 188, 202, 0.13);
  --c-border:       rgba(74, 159, 212, 0.22);
  --c-border-lt:    rgba(74, 159, 212, 0.12);
  --c-shadow-sm:    0 2px 8px  rgba(0,0,0,0.35);
  --c-shadow-md:    0 4px 24px rgba(0,0,0,0.48);
  --c-shadow-lg:    0 8px 48px rgba(0,0,0,0.60);
  --c-header-bg:    rgba(4, 13, 26, 0.93);
  --c-hero-ov:      rgba(2, 8, 18, 0.65);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --c-bg:           #040D1A;
    --c-bg-alt:       #071525;
    --c-surface:      #0C1E35;
    --c-surface-2:    #102340;
    --c-text:         #CDE4F7;
    --c-text-muted:   #7AAAC8;
    --c-text-light:   #4A7A9B;
    --c-accent:       #4A9FD4;
    --c-accent-h:     #6BB8E8;
    --c-accent-light: #6BB8E8;
    --c-accent-bg:    rgba(74, 159, 212, 0.13);
    --c-secondary:    #1DBCCA;
    --c-secondary-bg: rgba(29, 188, 202, 0.13);
    --c-border:       rgba(74, 159, 212, 0.22);
    --c-border-lt:    rgba(74, 159, 212, 0.12);
    --c-shadow-sm:    0 2px 8px  rgba(0,0,0,0.35);
    --c-shadow-md:    0 4px 24px rgba(0,0,0,0.48);
    --c-shadow-lg:    0 8px 48px rgba(0,0,0,0.60);
    --c-header-bg:    rgba(4, 13, 26, 0.93);
    --c-hero-ov:      rgba(2, 8, 18, 0.65);
  }
}

/* ── 3. Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  transition: background-color var(--tr-slow), color var(--tr-slow);
  overflow-x: hidden;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-accent-h); }
ul, ol { list-style: none; }

/* ── 4. Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}

.section-title  { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.1rem; color: var(--c-text-muted); text-align: center; max-width: 640px; margin: 0 auto 1.5rem; }

/* ── 5. Layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); padding-inline: var(--pad-x); margin-inline: auto; }
.section   { padding-block: var(--sec-py); }
.section-header { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* Water-themed divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.divider-wave {
  display: block;
  height: 2px;
  width: clamp(40px, 8vw, 80px);
  background: linear-gradient(to right, transparent, var(--c-accent));
  border-radius: var(--r-full);
}

.section-divider .divider-wave:last-child {
  background: linear-gradient(to left, transparent, var(--c-accent));
}

.divider-icon { color: var(--c-accent); font-size: 1rem; }

/* ── 6. Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr),
              transform var(--tr-spring), box-shadow var(--tr);
}
.btn:active { transform: scale(0.97); }

.btn-primary  { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-h); border-color: var(--c-accent-h); color: #fff; box-shadow: var(--c-shadow-md); }
.btn-outline  { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn-outline:hover { background: var(--c-accent-bg); color: var(--c-accent-h); }
.btn-hero {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  padding: 0.875rem 2.25rem;
  font-size: 1rem;
}
.btn-hero:hover { background: rgba(255,255,255,0.28); color: #fff; border-color: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.btn-sm   { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.btn-send { min-width: 200px; position: relative; overflow: hidden; }
.btn-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-send.loading .btn-text   { opacity: 0; }
.btn-send.loading .btn-loader { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 7. Navigation ───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.45s ease, border-color 0.45s ease,
              box-shadow 0.45s ease, backdrop-filter 0.45s ease;
}

.header.scrolled {
  background: var(--c-header-bg);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--c-border-lt);
  box-shadow: var(--c-shadow-sm);
}

.header:not(.scrolled) .logo-text        { color: rgba(255,255,255,0.95); }
.header:not(.scrolled) .logo-icon        { color: rgba(255,255,255,0.90); }
.header:not(.scrolled) .nav-link         { color: rgba(255,255,255,0.78); }
.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active  { color: #ffffff; }
.header:not(.scrolled) .nav-link::after  { background: rgba(255,255,255,0.85); }
.header:not(.scrolled) .nav-toggle       { border-color: rgba(255,255,255,0.35); }
.header:not(.scrolled) .hamburger-line   { background: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .header:not(.scrolled) .nav-menu.open {
    background: rgba(4, 15, 35, 0.94);
    backdrop-filter: blur(12px);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon { color: var(--c-accent); display: flex; align-items: center; transition: color var(--tr); }
.logo-text {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.01em;
  transition: color var(--tr);
}

.nav-menu { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  position: relative;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--tr);
  border-radius: var(--r-sm);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%; height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
  transition: transform var(--tr-spring);
}
.nav-link:hover,
.nav-link.active              { color: var(--c-accent); }
.nav-link:hover::after,
.nav-link.active::after       { transform: translateX(-50%) scaleX(1); }

/* Lang Switcher + Theme Toggle */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--c-accent-bg);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--f-body);
  color: var(--c-text-muted);
  cursor: pointer;
  border-radius: var(--r-full);
  transition: background var(--tr), color var(--tr);
  letter-spacing: 0.04em;
}
.lang-btn:hover  { color: var(--c-accent); }
.lang-btn.active { background: var(--c-accent); color: #fff; }

.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-bg);
  border: 1px solid var(--c-border-lt);
  border-radius: 50%;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.theme-toggle:hover { color: var(--c-accent); border-color: var(--c-accent); }

html[data-theme="light"]  .icon-moon,
html:not([data-theme="dark"]) .icon-moon { display: none; }
html[data-theme="dark"]   .icon-sun      { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-sun  { display: none; }
  html:not([data-theme="light"]) .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
}
.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text-muted);
  border-radius: var(--r-full);
  transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.nav-toggle.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .header.menu-open {
        background: var(--c-header-bg);
        backdrop-filter: blur(12px) saturate(1.5);
        -webkit-backdrop-filter: blur(12px) saturate(1.5);
        border-bottom: 1px solid var(--c-border-lt);
        box-shadow: var(--c-shadow-sm);
    }
    .header.menu-open:not(.scrolled) .logo-text {
        color: var(--c-accent);
    }
    .header.menu-open:not(.scrolled) .logo-icon {
        color: var(--c-accent);
    }
    .header.menu-open:not(.scrolled) .nav-toggle {
        border-color: var(--c-border);
    }
    .header.menu-open:not(.scrolled) .hamburger-line {
        background: var(--c-text-muted);
    }
}

/* ── 8. Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #040D1A;
}

.hero-canvas,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-canvas { z-index: 1; }
.hero-video  { z-index: 2; opacity: 0; transition: opacity 1s ease; }
.hero-video.loaded { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: var(--c-hero-ov);
}
.hero-content {
  position: relative; z-index: 4;
  text-align: center;
  padding-top: 72px;
}
.hero-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  animation: fadeInDown 1s ease forwards;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero-title-main {
  display: block;
  background: linear-gradient(135deg, #fff 0%, #a8d8f0 40%, #4A9FD4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-author {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-top: 0.25rem;
  animation: fadeInUp 1s ease 0.5s both;
}
.hero-content .btn-hero { animation: fadeInUp 1s ease 0.6s both; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeInUp   { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform: translateY(-20px);} to { opacity:1; transform: translateY(0); } }

/* ── 9. Rund ums Wasser ──────────────────────────────────────── */
.water-section { background: var(--c-bg); }

.water-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.water-card {
  flex: 0 1 280px;
  min-width: 240px;
  max-width: 340px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: var(--c-shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}

.water-card:hover {
  box-shadow: var(--c-shadow-md);
  transform: translateY(-4px);
  border-color: var(--c-accent);
}

.water-card-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-bg);
  border-radius: 50%;
  color: var(--c-accent);
  flex-shrink: 0;
}

.water-card-icon svg { width: 32px; height: 32px; }

.water-card-text {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  font-weight: 400;
}

.water-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ── 10. Dienstleistungen ────────────────────────────────────── */
.services-section { background: var(--c-bg-alt); }

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  flex: 0 1 320px;
  min-width: 260px;
  max-width: 380px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  cursor: pointer;
  box-shadow: var(--c-shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}

.service-card:hover {
  box-shadow: var(--c-shadow-md);
  transform: translateY(-5px);
  border-color: var(--c-accent);
}

.service-card:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.service-icon {
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-bg);
  border-radius: 50%;
  color: var(--c-accent);
  transition: background var(--tr), color var(--tr);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: var(--c-accent);
  color: #fff;
}

.service-icon svg { width: 36px; height: 36px; }

.service-name {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-text);
}

.service-short {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.service-details-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-accent);
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--c-accent);
  border-radius: var(--r-full);
  background: none;
  font-family: var(--f-body);
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
  margin-top: auto;
}

.service-details-btn:hover { background: var(--c-accent); color: #fff; }

/* ── 11. Über mich ───────────────────────────────────────────── */
.about-section { background: var(--c-bg); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
}

.about-image-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--c-bg-alt);
  box-shadow: var(--c-shadow-lg);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  background: linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-accent-bg) 100%);
}

.about-subtitle {
  font-size: 1rem;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--c-text);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-section-header {
    text-align: left;
}
.about-section-header .section-title {
    text-align: left;
}
.about-section-header .about-subtitle {
    text-align: left;
}
.about-section-divider {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .about-section-header {
        text-align: center;
    }
    .about-section-header .section-title {
        text-align: center;
    }
    .about-section-header .about-subtitle {
        text-align: center;
    }
    .about-section-divider {
        justify-content: center;
    }
}

/* ── 12. Kontakt ─────────────────────────────────────────────── */
.contact-section { background: var(--c-bg-alt); }

.contact-wrapper { max-width: 640px; margin-inline: auto; }

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--c-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-text);
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-light); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-bg);
  background: var(--c-surface);
}

.form-group input.invalid,
.form-group textarea.invalid { border-color: #c0392b; }

.form-error { font-size: 0.82rem; color: #c0392b; display: none; }
.form-error.visible { display: block; }

/* Checkbox */
.form-group-checkbox { gap: 0.75rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr), border-color var(--tr);
  margin-top: 2px;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.checkbox-text a { color: var(--c-accent); font-weight: 700; }

.form-actions { display: flex; justify-content: center; }

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  text-align: center;
}
.form-message.success {
  background: rgba(27, 111, 168, 0.1);
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}
.form-message.error {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

/* ── 13. Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border-lt);
  padding-block: 3rem 2rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand  { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo   { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--c-accent); }
.footer-tagline { font-size: 0.9rem; color: var(--c-text-light); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.footer-nav a { font-size: 0.9rem; color: var(--c-text-muted); transition: color var(--tr); }
.footer-nav a:hover { color: var(--c-accent); }

.footer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-border-lt);
  margin-top: 0.5rem;
}

.footer-controls .lang-switcher { background: var(--c-bg); border-color: var(--c-border); }
.footer-controls .theme-toggle  { background: var(--c-bg); border-color: var(--c-border); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  border-top: 1px solid var(--c-border-lt);
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--c-text-light);
}

/* ── 14. Cookie Banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--c-surface);
  border-top: 2px solid var(--c-accent);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
  padding: 1.25rem 0;
  animation: slideUp 0.4s ease forwards;
}
.cookie-banner[hidden] { display: none; }

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

.cookie-text   { flex: 1; font-size: 0.9rem; color: var(--c-text-muted); min-width: 240px; }
.cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }

@keyframes slideUp   { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(0);    opacity: 1; } to { transform: translateY(100%); opacity: 0; } }

/* ── 15. Service Modal (Bild OBEN) ───────────────────────────── 
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-box--vertical {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--c-shadow-lg);
  width: 100%;
  max-width: 960px;
  max-height: 90svh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border-lt);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(22px);
  transition: opacity 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.is-open .modal-box--vertical  { opacity: 1; transform: scale(1) translateY(0); }
.modal.is-open .modal-backdrop        { opacity: 1; }

.modal-image-top {
  width: 100%;
  height: 240px;
  flex-shrink: 0;
  background: var(--c-bg-alt);
  overflow: hidden;
  position: relative;
}

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

.modal-image-top canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.modal-body--service {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
}

.modal-title { 
  font-size: 1.6rem; 
  font-weight: 700; 
  color: var(--c-text); 
}

.modal-description { 
  color: var(--c-text-muted); 
  line-height: 1.75; 
  font-size: 0.95rem; 
}

.modal-detail-full { 
  color: var(--c-text-muted); 
  line-height: 1.75; 
  font-size: 0.95rem; 
}

.modal-detail-full ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-detail-full ul li {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  list-style: disc;
}

.modal-footer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  backdrop-filter: blur(4px);
}
.modal-close:hover { background: var(--c-accent); border-color: var(--c-accent); } */

/* ── 15. Service Modal (Bild LINKS) ─────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

/* Horizontal modal – Bild links, Text rechts */
.modal-box--vertical {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--c-shadow-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90svh;
  max-height: 90vh;
  display: flex;
  flex-direction: row;          /* ← war: column */
  border: 1px solid var(--c-border-lt);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(22px);
  transition: opacity 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.is-open .modal-box--vertical { opacity: 1; transform: scale(1) translateY(0); }
.modal.is-open .modal-backdrop { opacity: 1; }

/* Bild-Bereich LINKS */
.modal-image-top {
  width: 42%;                   /* ← war: width:100%; height:240px */
  flex-shrink: 0;
  background: var(--c-bg-alt);
  overflow: hidden;
  position: relative;
}

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

.modal-image-top canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Modal-Inhalt RECHTS – nur dieser scrollt */
.modal-body--service {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;             /* ← nur der Text scrollt */
  flex: 1;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-text);
}

.modal-description {
  color: var(--c-text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.modal-detail-full {
  color: var(--c-text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.modal-detail-full ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-detail-full ul li {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  list-style: disc;
}

.modal-footer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Modal-Close (X) – oben rechts, dunkler da kein Bild-Overlay */
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-lt);
  border-radius: 50%;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.modal-close:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ── Mobile: zurück zu Bild oben ────────────────────────────── */
@media (max-width: 640px) {
  .modal-box--vertical { flex-direction: column; }
  .modal-image-top {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
  }
}

/* Einzelspalten-Modal (Datenschutz) */
.modal-box--single {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--c-shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90svh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border-lt);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(22px);
  transition: opacity 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.is-open .modal-box--single { opacity: 1; transform: scale(1) translateY(0); }

.modal-body--full {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.modal-close-btn { align-self: flex-start; margin-top: auto;  }

.privacy-modal-content { display: flex; flex-direction: column; gap: 1rem; }
.privacy-modal-content p  { color: var(--c-text-muted); line-height: 1.8; font-size: 0.95rem; }
.privacy-modal-content h3 { font-size: 1rem; font-weight: 700; color: var(--c-accent); font-family: var(--f-body); letter-spacing: 0.02em; margin-top: 0.5rem; }

/* ── 16. AOS ─────────────────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos][data-aos-delay="100"] { transition-delay: 0.10s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.20s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.30s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.40s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.50s; }
[data-aos][data-aos-delay="600"] { transition-delay: 0.60s; }
[data-aos][data-aos-delay="700"] { transition-delay: 0.70s; }

/* ── 17. Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--c-header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border-lt);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--pad-x) 1.5rem;
    gap: 0.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--tr), opacity var(--tr);
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 0.7rem 0.75rem; font-size: 1rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .water-grid      { gap: 1rem; }
  .water-card      { flex: 0 1 100%; max-width: 100%; }
  .services-grid   { gap: 1.25rem; }
  .service-card    { flex: 0 1 100%; max-width: 100%; }
  .footer-top      { flex-direction: column; }
  .footer-nav      { justify-content: center; }
  .cookie-content  { flex-direction: column; }
  .cookie-buttons  { width: 100%; }
  .cookie-buttons .btn { flex: 1; justify-content: center; }
  .modal-body--service { padding: 1.5rem; }
  .modal-body--full    { padding: 1.5rem 1.25rem; }
}

/* ── 18. Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--c-accent-light); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }

/* ── 19. Focus & Selection ───────────────────────────────────── */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-sm); }
::selection    { background: var(--c-accent-bg); color: var(--c-accent-h); }

/* ── 20. Print ───────────────────────────────────────────────── */
@media print {
  .header, .cookie-banner, .scroll-indicator,
  .theme-toggle, .lang-switcher, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ── Medien-Schutz ─────────────────────────────────────── */
img, video {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

a img, button img, .service-card img, .about-img {
    pointer-events: none;
}
