/* ==========================================================================
   Werringloer Komponentenmanagement – Website
   Basis-Stylesheet (kein Framework, kein Build-Schritt)
   ========================================================================== */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1b2430;
  --color-text-muted: #55606e;
  --color-border: #e2e6ea;
  --color-primary: #0b3d5c;
  --color-primary-dark: #072a40;
  --color-accent: #297041;
  --color-accent-dark: #1a4228;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 61, 92, 0.08);
  --max-width: 1120px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Skip Link (Barrierefreiheit) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  height: 36px;
  width: auto;
  display: block;
  flex: none;
  object-fit: contain;
  image-rendering: auto;
  filter: contrast(1.14) saturate(1.06) drop-shadow(0 1px 1px rgba(8, 31, 18, 0.28));
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(11, 61, 92, 0.08);
  color: var(--color-primary-dark);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
}
.nav-cta:hover {
  background: var(--color-accent-dark) !important;
}

.nav-collapse {
  display: contents;
}

.theme-toggle {
  width: 44px;
  height: 40px;
  margin-left: 12px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 138, 82, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(47, 138, 82, 0.14);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-accent);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(41, 112, 65, 0.08);
  box-shadow: 0 0 0 3px rgba(41, 112, 65, 0.14);
  outline: none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-accent-dark);
  position: relative;
  border-radius: 2px;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* --- Hero --- */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite;
}
.hero::before {
  width: 720px;
  height: 480px;
  top: -220px;
  right: -160px;
  background: radial-gradient(closest-side, rgba(41, 112, 65, 0.16), transparent);
}
.hero::after {
  width: 620px;
  height: 460px;
  top: -140px;
  left: -220px;
  background: radial-gradient(closest-side, rgba(11, 61, 92, 0.14), transparent);
  animation-delay: -9s;
  animation-direction: reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 24px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(41, 112, 65, 0.10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}

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

.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: contents;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 10px 24px rgba(41, 112, 65, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(11, 61, 92, 0.04);
  box-shadow: 0 8px 18px rgba(11, 61, 92, 0.1);
}

/* --- Scroll-Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Sections --- */
section {
  padding: 64px 0;
}

.section-head {
  max-width: 62ch;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--color-primary-dark);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- Card Grid --- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 61, 92, 0.18);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 61, 92, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}
.card ul li { margin-bottom: 6px; }

/* --- Process / Steps --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.steps h3 { margin: 0 0 8px; font-size: 1rem; color: var(--color-primary-dark); }
.steps p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* --- Tags / Tools row --- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color 0.25s var(--ease);
}
.faq-item[open] {
  border-color: rgba(41, 112, 65, 0.35);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(41, 112, 65, 0.1);
  color: var(--color-accent-dark);
  font-size: 1.1rem;
  line-height: 22px;
  text-align: center;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Preisrahmen / Pricing --- */
.price-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}
.price-card .price-sub {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.price-tag {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.price-tag span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: none;
  margin-top: 3px;
}
.price-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.price-card ul li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.price-card ul li::before {
  content: "✓";
  color: var(--color-accent-dark);
  font-weight: 700;
  flex: none;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
}
.price-note {
  margin: 32px auto 0;
  max-width: 60ch;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}
.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --- Page header (Unterseiten) --- */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.page-header h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--color-primary-dark);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.page-header p {
  color: var(--color-text-muted);
  max-width: 65ch;
  font-size: 1.05rem;
  margin: 0;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-muted); }

/* --- Two column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-check li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.list-check li:last-child { border-bottom: none; }
.list-check li::before {
  content: "✓";
  color: var(--color-accent-dark);
  font-weight: 700;
  flex: none;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--color-text);
}

.hero-note {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: .9rem;
}

@media (min-width: 820px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Contact --- */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}
.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}
.contact-detail strong {
  color: var(--color-text);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-field label span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.96rem;
  background: #fff;
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-field input[type="date"],
.form-field select {
  color-scheme: light;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-accent-dark) 50%),
    linear-gradient(135deg, var(--color-accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
  filter: sepia(1) saturate(2) hue-rotate(70deg);
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: -8px;
  margin-bottom: 18px;
}
.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: rgba(41, 112, 65, 0.1);
  color: var(--color-accent-dark);
}
.form-status.error {
  background: rgba(190, 40, 40, 0.08);
  color: #a02222;
}

/* --- Legal pages (Impressum/Datenschutz) --- */
.legal-content h2 {
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  margin: 36px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
}
.legal-content ul { padding-left: 20px; }
.callout {
  background: #fff7e6;
  border: 1px solid #f0d99a;
  border-radius: 8px;
  padding: 14px 18px;
  color: #7a5c00;
  font-size: 0.92rem;
  margin: 16px 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-accent-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.footer-grid p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  max-width: 40ch;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 8px; }
.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Responsive --- */
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { order: -1; }
}

@media (max-width: 640px) {
  .nav {
    gap: 8px;
  }
  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
  }
  .brand-mark {
    height: 30px;
  }
  .brand {
    text-overflow: ellipsis;
  }
  .theme-toggle {
    margin-left: auto;
    margin-right: 0;
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-collapse {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  /* --- Dark mode --- */
  html[data-theme="dark"] {
    --color-bg: #101b16;
    --color-surface: rgba(28, 45, 35, 0.7);
    --color-text: #e5f1e8;
    --color-text-muted: #b2c6b7;
    --color-border: rgba(190, 230, 201, 0.2);
    --color-primary: #8ed1a0;
    --color-primary-dark: #d8f1dc;
    --color-accent: #70c98a;
    --color-accent-dark: #a3dfb0;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  }

  html[data-theme="dark"] body {
    background:
      radial-gradient(circle at 8% 12%, rgba(50, 116, 72, 0.32), transparent 28rem),
      radial-gradient(circle at 92% 18%, rgba(37, 93, 59, 0.34), transparent 30rem),
      linear-gradient(135deg, #101b16 0%, #17271d 48%, #0e1813 100%);
  }

  html[data-theme="dark"] .site-header {
    background: rgba(15, 30, 21, 0.72);
    border-bottom-color: rgba(190, 230, 201, 0.16);
  }

  html[data-theme="dark"] .brand-mark {
    filter: contrast(1.3) saturate(1.1) brightness(0.88) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72));
  }

  html[data-theme="dark"] .section-alt,
  html[data-theme="dark"] .page-header {
    background: rgba(16, 31, 22, 0.28);
    border-color: rgba(190, 230, 201, 0.14);
  }

  html[data-theme="dark"] .card,
  html[data-theme="dark"] .price-card,
  html[data-theme="dark"] .contact-card,
  html[data-theme="dark"] .steps li,
  html[data-theme="dark"] .faq-item,
  html[data-theme="dark"] .form-field input,
  html[data-theme="dark"] .form-field textarea,
  html[data-theme="dark"] .form-field select,
  html[data-theme="dark"] .tag {
    background: rgba(28, 49, 36, 0.62);
    border-color: rgba(190, 230, 201, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }

  html[data-theme="dark"] .theme-toggle,
  html[data-theme="dark"] .nav-toggle {
    background: rgba(28, 49, 36, 0.72);
    border-color: rgba(142, 209, 160, 0.45);
    color: var(--color-primary-dark);
  }

  html[data-theme="dark"] .nav-collapse {
    background: rgba(15, 30, 21, 0.92);
  }

  html[data-theme="dark"] .btn-secondary {
    background: rgba(28, 49, 36, 0.6);
    color: var(--color-primary-dark);
    border-color: rgba(142, 209, 160, 0.32);
  }

  html[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, rgba(10, 34, 20, 0.94), rgba(7, 24, 15, 0.97));
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px 6px;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after {
    left: 14px;
    right: auto;
    bottom: 5px;
    width: 34px;
  }
  .nav-cta-wrap { padding: 12px 20px 20px; }

  .site-header.is-open .nav-collapse {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { flex-direction: column; text-align: left; padding: 28px 22px; gap: 22px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.45rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .card,
  .price-card,
  .contact-card { padding: 22px 20px; }
  .section-head { margin-bottom: 28px; }
  .two-col { gap: 28px; }
  .form-field input,
  .form-field textarea,
  .form-field select { min-height: 48px; }
}

/* Dark mode overrides apply at every viewport size. */
html[data-theme="dark"] {
  --color-bg: #101b16;
  --color-surface: rgba(28, 45, 35, 0.7);
  --color-text: #e5f1e8;
  --color-text-muted: #b2c6b7;
  --color-border: rgba(190, 230, 201, 0.2);
  --color-primary: #8ed1a0;
  --color-primary-dark: #d8f1dc;
  --color-accent: #70c98a;
  --color-accent-dark: #a3dfb0;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 12%, rgba(50, 116, 72, 0.32), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(37, 93, 59, 0.34), transparent 30rem),
    linear-gradient(135deg, #101b16 0%, #17271d 48%, #0e1813 100%);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 30, 21, 0.72);
  border-bottom-color: rgba(190, 230, 201, 0.16);
}

html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .page-header {
  background: rgba(16, 31, 22, 0.28);
  border-color: rgba(190, 230, 201, 0.14);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .steps li,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .tag {
  background: rgba(28, 49, 36, 0.62);
  border-color: rgba(190, 230, 201, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .nav-toggle {
  background: rgba(28, 49, 36, 0.72);
  border-color: rgba(142, 209, 160, 0.45);
  color: var(--color-primary-dark);
}

html[data-theme="dark"] .nav-collapse {
  background: rgba(15, 30, 21, 0.92);
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(28, 49, 36, 0.6);
  color: var(--color-primary-dark);
  border-color: rgba(142, 209, 160, 0.32);
}

html[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, rgba(10, 34, 20, 0.94), rgba(7, 24, 15, 0.97));
}

/* --- Glassmorphism theme --- */
:root {
  --color-bg: #edf5f0;
  --color-surface: rgba(255, 255, 255, 0.58);
  --color-text: #183326;
  --color-text-muted: #52665a;
  --color-border: rgba(255, 255, 255, 0.78);
  --color-primary: #25633d;
  --color-primary-dark: #173e28;
  --color-accent: #2f8a52;
  --color-accent-dark: #1d5c35;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(32, 84, 53, 0.12);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(107, 190, 132, 0.28), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(153, 211, 177, 0.32), transparent 30rem),
    linear-gradient(135deg, #eff8f2 0%, #e4f0e9 48%, #f4f8f5 100%);
  background-attachment: fixed;
}

.site-header {
  background: rgba(255, 255, 255, 0.52);
  border-bottom-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(35, 87, 55, 0.08);
}

.brand,
.nav-links a,
.section-head h2,
.page-header h1,
.card h3,
.price-card h3,
.contact-card h3,
.steps h3,
.legal-content h2 {
  color: var(--color-primary-dark);
}

.brand-mark {
  border-radius: 8px;
}

.nav-links a {
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: transparent;
  color: var(--color-accent-dark);
  box-shadow: none;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 2px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 0 0 999px 999px;
  box-shadow: 0 2px 5px rgba(47, 138, 82, 0.2);
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(47, 138, 82, 0.55);
  box-shadow: 0 8px 22px rgba(32, 84, 53, 0.1);
}

.hero {
  padding-top: 104px;
}

.hero h1 {
  color: var(--color-primary-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.section-alt,
.page-header {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.62);
}

.card,
.price-card,
.contact-card,
.steps li,
.faq-item,
.form-field input,
.form-field textarea,
.form-field select,
.tag {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(39, 91, 59, 0.08);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.card:hover,
.price-card:hover {
  border-color: rgba(47, 138, 82, 0.38);
  box-shadow: 0 22px 46px rgba(39, 91, 59, 0.16);
}

.card-icon {
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-accent-dark);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(39, 91, 59, 0.09);
}

.btn-primary,
.nav-cta,
.price-badge {
  background: linear-gradient(135deg, #399b5e, #216a3d) !important;
  box-shadow: 0 10px 24px rgba(37, 111, 62, 0.22);
}

.btn-primary:hover,
.nav-cta:hover {
  background: linear-gradient(135deg, #2f8a52, #174b2c) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(47, 138, 82, 0.3);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 20px rgba(39, 91, 59, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  border-color: rgba(47, 138, 82, 0.58);
  background: rgba(255, 255, 255, 0.68);
}

.cta-band {
  background: linear-gradient(135deg, rgba(42, 127, 74, 0.82), rgba(24, 81, 45, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 22px 50px rgba(31, 91, 49, 0.2);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.form-field input,
.form-field textarea,
.form-field select {
  color: var(--color-text);
  box-shadow: inset 0 1px 2px rgba(39, 91, 59, 0.04);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(47, 138, 82, 0.58);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer {
  background: linear-gradient(135deg, rgba(23, 78, 44, 0.9), rgba(15, 57, 33, 0.94));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -18px 40px rgba(30, 79, 48, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 640px) {
  .hero { padding-top: 72px; }
  .nav-collapse {
    background: rgba(244, 250, 246, 0.76);
    border-bottom-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 30px rgba(32, 84, 53, 0.12);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
  }
}

/* Continuous page flow: the shared background remains visible between modules. */
section,
.section-alt,
.page-header {
  background: transparent;
}

.section-alt,
.page-header {
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.page-header {
  padding-bottom: 28px;
}

.site-footer {
  margin-top: 56px;
}

html[data-theme="dark"] section,
html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .page-header {
  background: transparent !important;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 30, 21, 0.84);
  border-bottom-color: rgba(190, 230, 201, 0.12);
}

html[data-theme="dark"] .brand-mark {
  filter: contrast(1.3) saturate(1.1) brightness(0.88) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72));
}

/* --- Baustellen-Hinweis (Pop-up) --- */
.site-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.site-notice-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.site-notice {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 440px;
  width: 100%;
  padding: 28px 26px 24px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s var(--ease);
}
.site-notice-overlay.is-visible .site-notice {
  transform: translateY(0);
}
.site-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(41, 112, 65, 0.12);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.site-notice h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}
.site-notice p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}
.site-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-notice-close:hover,
.site-notice-close:focus-visible {
  background: rgba(11, 61, 92, 0.08);
  color: var(--color-primary-dark);
  outline: none;
}
.site-notice-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
html[data-theme="dark"] .site-notice-icon {
  background: rgba(163, 223, 176, 0.14);
}
@media (max-width: 480px) {
  .site-notice { padding: 24px 20px 20px; }
}
