/* ============================================================================
   Website V2 (Public-Relaunch) — eigenes Stylesheet, unabhängig vom
   Dokument-Layout (main_layout_abstrakt.css).
   Nur Theme-Variablen aus themes.css (docs/ui_themes_farben.md),
   keine hardcodierten Farben. Dark/Light via .dark/.light auf :root.
   ============================================================================ */

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.website-v2 {
  margin: 0;
  background-color: var(--background-primary);
  color: var(--text-primary);
  font-family: Inter, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  accent-color: var(--accent-primary);
}

/* Anker-Ziele nicht unter dem Sticky-Header verschwinden lassen */
.website-v2 section[id] {
  scroll-margin-top: 5rem;
}

.website-v2 a {
  color: var(--text-link);
  text-decoration: none;
}

.website-v2 a:hover {
  text-decoration: underline;
}

.website-v2 img {
  max-width: 100%;
}

.v2-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Buttons -------------------------------------------------------------- */

.v2-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border-primary);
  border-radius: 0.4rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.v2-btn:hover {
  border-color: var(--accent-primary);
  text-decoration: none;
}

.v2-btn-primary {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-invert);
}

.website-v2 a.v2-btn,
.website-v2 a.v2-btn-primary {
  color: var(--text-primary);
}

.website-v2 a.v2-btn-primary {
  color: var(--text-invert);
}

/* --- Header (sticky) ------------------------------------------------------ */

.v2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background-primary);
  border-bottom: 1px solid var(--border-secondary);
}

.v2-header .v2-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.v2-logo img {
  height: 2.8rem;
  display: block;
}

/* Logo-Variante passend zum Theme (Default ohne Klasse = light).
   Selektoren mit .v2-logo-Prefix, damit sie ".v2-logo img" sicher schlagen. */
.v2-logo .v2-logo-dark {
  display: none;
}

.dark .v2-logo .v2-logo-dark {
  display: block;
}

.dark .v2-logo .v2-logo-light {
  display: none;
}

.v2-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.website-v2 .theme_switch {
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--icon-primary);
  display: flex;
  align-items: center;
}

/* --- Hero (Platzhalter, Ausbau in Schritt 2) ------------------------------ */

.v2-hero {
  padding: 5rem 0 6rem;
}

.v2-kicker {
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.v2-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}

.v2-sub {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 55ch;
}

.v2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

/* --- Sektionen (allgemein) ------------------------------------------------ */

.v2-section {
  padding: 4rem 0;
}

.v2-section-alt {
  background-color: var(--background-secondary);
}

.v2-section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
}

.v2-section-intro {
  margin: 0 0 2.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* --- Leistungs-Karten ------------------------------------------------------ */

.v2-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.v2-card {
  background-color: var(--background-primary);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  padding: 1.25rem 1.25rem 1rem;
}

.v2-section:not(.v2-section-alt) .v2-card {
  background-color: var(--background-secondary);
}

.v2-card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.v2-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.v2-icon {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Über / Vertrauen ------------------------------------------------------ */

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

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

.v2-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.v2-badges li {
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.v2-about-media {
  margin: 0;
}

.v2-about-media img {
  display: block;
  width: 100%;
  height: auto;
}

.v2-about-media figcaption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-top: 0.5rem;
}

/* --- Ablauf (3 Schritte) ---------------------------------------------------- */

.v2-steps {
  list-style: none;
  counter-reset: v2step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.v2-steps li {
  counter-increment: v2step;
}

.v2-steps li::before {
  content: counter(v2step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--text-invert);
  font-weight: 700;
  font-size: 1.2rem;
}

.v2-steps h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.1rem;
}

.v2-steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Einzugsgebiet ----------------------------------------------------------- */

.v2-region {
  padding-top: 4rem;
}

.v2-region-img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
}

/* --- Kontakt-Band ------------------------------------------------------------- */

.v2-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.v2-contact-card {
  display: block;
  background-color: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
  color: var(--text-primary);
}

a.v2-contact-card:hover {
  border-color: var(--accent-primary);
  text-decoration: none;
}

.website-v2 a.v2-contact-card {
  color: var(--text-primary);
}

.v2-contact-card .v2-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.v2-contact-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.v2-contact-card strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

/* --- Navigation (Anker-Links) --------------------------------------------------- */

.v2-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.website-v2 .v2-nav a {
  color: var(--text-primary);
  font-weight: 600;
}

.website-v2 .v2-nav a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

@media (max-width: 700px) {
  .v2-nav {
    display: none;
  }
}

/* --- Footer ---------------------------------------------------------------- */

.v2-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background-color: var(--background-secondary);
  border-top: 1px solid var(--border-secondary);
  color: var(--text-secondary);
}

.v2-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}

/* --- Mobile ----------------------------------------------------------------- */

@media (max-width: 600px) {
  .v2-header-cta {
    padding: 0.4rem 0.8rem;
  }

  .v2-hero {
    padding: 3rem 0 4rem;
  }
}
