﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

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

/* Hintergrund*/
body {
  margin: 0;
  color: #e5e7eb;
  overflow-x: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.15)
    ),
    url("hintergrundbild2.png") center/cover no-repeat fixed;

  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: pageIn 0.4s ease;
}

/*Hero*/
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.85));
  z-index: 0;
  pointer-events: none;
}

/* CURSOR */
.cursor {
  position: fixed;
  width: 220px;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(250,204,21,0.22), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: soft-light;
}

body.neon-theme .cursor,
body.developer-mode .cursor {
  background: radial-gradient(circle, rgba(34,211,238,0.28), rgba(244,114,182,0.18), transparent 70%);
}

body.neon-theme .hero::before,
body.developer-mode .hero::before {
  background: radial-gradient(circle at center,
    rgba(34,211,238,0.18),
    rgba(0,0,0,0.82));
}

body.neon-theme .tool-panel,
body.neon-theme .card,
body.neon-theme .build-card,
body.neon-theme .process-step,
body.neon-theme .trust-grid,
body.neon-theme .price-result,
body.neon-theme .faq-list details,
body.developer-mode .advisor-result {
  border-color: rgba(34,211,238,0.45);
  box-shadow: 0 0 34px rgba(34,211,238,0.16), 0 20px 60px rgba(0,0,0,0.28);
}

/* LOGO */
.logo {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(40px);
}

.logo img {
  width: 450px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(250,204,21,0.6));
}

.headline {
  margin-top: 20px;
  font-size: 3.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(255,255,255,0.4),
               0 0 40px rgba(250,204,21,0.2);
  animation: fadeSlideIn 1s ease, floatText 4s ease-in-out infinite;
}

.subheadline {
  margin-top: 10px;
  font-size: 2.1rem;
  color: #facc15;
  letter-spacing: 2px;
  animation: fadeSlideIn 1.4s ease, floatText 5s ease-in-out infinite;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 2.2rem;
  color: #facc15;
  font-weight: 800;
  animation: fadeSlideIn 1.4s ease, floatText 5s ease-in-out infinite;
}

.hero-copy {
  max-width: 640px;
  margin: 18px auto 0;
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 1rem;
}

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

.hero-actions .btn {
  text-decoration: none;
}

.btn-secondary {
  background: rgba(17,24,39,0.75);
  color: #fff7cc;
  border: 1px solid rgba(250,204,21,0.5);
  box-shadow: 0 0 20px rgba(0,0,0,0.45);
}

/* Leiste unter Hero*/
.hero-trust {
  max-width: 1120px;
  margin: -55px auto 0;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 3;
  background: rgba(17,24,39,0.86);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
}

.hero-trust div {
  padding: 10px 12px;
  border-left: 2px solid rgba(250,204,21,0.7);
}

.hero-trust strong,
.hero-trust span {
  display: block;
}

.hero-trust strong {
  color: #fff7cc;
  margin-bottom: 6px;
}

.hero-trust span {
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Container begrenzt Breite der Inhaltsbereiche, gleichmäßige Abstände*/
.container {
  max-width: 1000px;
  margin: auto;
  padding: 100px 20px;
}

/*Maus scrollen mit Abschnitten*/
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.container,
section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.site-footer {
  scroll-snap-align: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll .card,
.reveal-on-scroll .process-step,
.reveal-on-scroll .build-card,
.reveal-on-scroll .quality-grid span,
.reveal-on-scroll .faq-list details {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

.reveal-on-scroll.is-visible .card,
.reveal-on-scroll.is-visible .process-step,
.reveal-on-scroll.is-visible .build-card,
.reveal-on-scroll.is-visible .quality-grid span,
.reveal-on-scroll.is-visible .faq-list details {
  opacity: 1;
  transform: translateY(0);
}

/* zwei Spalten Kartenlayout, align-items lässt Nachbarkarten klein*/
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Service-Karten: Glas-Look, Hover-Vergrößerung*/
.card {
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  transition: .3s;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-12px) scale(1.035);
  box-shadow: 0 0 40px rgba(250,204,21,0.2);
  transition-timing-function: cubic-bezier(.2, 1.4, .35, 1);
}

.card h3 {
  color: #facc15;
  margin-bottom: 10px;
}

.card .btn {
  margin-top: 0;
  padding: 4px 14px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.card .mini-btn {
  margin-top: 12px;
  padding: 7px 16px;
  font-size: 0.88rem;
}

/* Versteckter Kartentext, Hover -> weich aufklappen*/
.card-details {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
}

.card:hover .card-details,
.card:focus-within .card-details {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
}

.card-details p {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Abschnittsüberschriften*/
.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading p {
  color: #facc15;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: 2rem;
  color: #fff;
}

/* Panel Basis, Glas-Look: Tools, Prozesskarten, Galerie & faq */
.tool-panel,
.process-step,
.build-card,
.trust-grid,
.price-result,
.faq-list details {
  background: rgba(17,24,39,0.68);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

/* Tool-Panels  Konfigurator und Preisrechner*/
.tool-panel {
  padding: 28px;
  border-radius: 18px;
}

/* Tool-Formulare konfigurater und rechner */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #facc15;
  font-weight: bold;
}

.tool-grid select,
.budget-slider {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.48);
  color: #fff;
  outline: none;
}

.tool-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #facc15 50%),
    linear-gradient(135deg, #facc15 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.tool-grid select option,
.contact-form select option {
  background: #171306;
  color: #fff7cc;
}

.tool-grid select option:checked,
.contact-form select option:checked {
  background: #facc15;
  color: #171306;
}

.budget-slider {
  position: relative;
  padding-bottom: 16px;
}

.budget-slider::after {
  content: "";
  position: absolute;
  left: 15.6%;
  bottom: 44px;
  width: 2px;
  height: 18px;
  background: #facc15;
  box-shadow: 0 0 14px rgba(250,204,21,0.8);
}

.budget-slider input {
  width: 100%;
  accent-color: #facc15;
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #d1d5db;
  font-size: 0.82rem;
}

.budget-scale output {
  color: #fff7cc;
  font-weight: 900;
}

/* Ergebnisboxen gelb hervorheben */
.advisor-result,
.price-result {
  margin-top: 22px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(250,204,21,0.12);
  border: 1px solid rgba(250,204,21,0.35);
}

.advisor-result span,
.price-result span {
  display: inline-block;
  color: #171306;
  background: #facc15;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: bold;
}

.advisor-result h3 {
  margin: 14px 0 8px;
  color: #fff7cc;
}

.advisor-result p,
.process-step p,
.build-card p,
.trust-grid span,
.price-result p,
.faq-list p {
  color: #d1d5db;
  line-height: 1.55;
}

/* Info-Raster mehrere SPalten Ablauf, Galerie, Trust-Bereich und Qualitätscheck*/
.process-grid,
.build-gallery,
.trust-grid,
.quality-grid {
  display: grid;
  gap: 18px;
}

/* Ablaufbereich drei gleich breite Schritte von Anfrage bis Übergabe*/
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
  padding: 24px;
  border-radius: 16px;
}

.process-step span {
  color: #facc15;
  font-size: 2rem;
  font-weight: 900;
}

.process-step h3,
.build-card h3 {
  margin: 12px 0 8px;
  color: #fff7cc;
}

/* Build Galerie, Beispielprojekte*/
.build-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.build-card {
  overflow: hidden;
  border-radius: 16px;
}

/*Gallery Größe*/
.build-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #020617;
}

.build-card div {
  padding: 18px;
}

/* Vertrauensbereich vier Spalten*/
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 24px;
  border-radius: 18px;
}

.trust-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-grid strong {
  color: #facc15;
}

/* Preisrechner, Eingaben links, Ergebnis rechts*/
.calculator-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}

.calculator-panel .tool-grid {
  grid-template-columns: 1fr;
}

.price-result {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-result strong {
  display: block;
  margin: 10px 0;
  font-size: 2.3rem;
  color: #fff;
}

.calc-inquiry {
  align-self: flex-start;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 0.86rem;
}

.calc-services {
  color: #d1d5db;
  line-height: 1.55;
  list-style-position: inside;
}

/* Qualitätscheck*/
.quality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quality-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(250,204,21,0.28);
  background: rgba(0,0,0,0.42);
  color: #fff7cc;
  text-align: center;
  font-weight: bold;
}

/* FAQ*/
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 24px;
}

.faq-list summary {
  color: #fff7cc;
  cursor: pointer;
  font-weight: bold;
}

.faq-list p {
  margin-top: 12px;
}

/* Zweispaltige Abschnitte, Text/Heading und Tool/Inhalt stehen auf Desktop nebeneinander*/
.build-advisor,
.price-calculator,
.quality-section,
.faq-section {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: center;
}

.build-advisor .section-heading,
.price-calculator .section-heading,
.quality-section .section-heading,
.faq-section .section-heading {
  text-align: left;
  margin-bottom: 0;
}

.build-advisor .section-heading h2,
.price-calculator .section-heading h2,
.quality-section .section-heading h2,
.faq-section .section-heading h2 {
  font-size: 2.35rem;
}

.price-calculator .tool-panel,
.faq-section .faq-list {
  width: 100%;
}

.quality-section {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
}

.quality-section .section-heading {
  order: 2;
}

.quality-section .quality-grid {
  order: 1;
}

/* Preis Popup, Overlay mit Preisliste über Preis Button*/
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.popover {
  width: 300px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  animation: scaleIn .25s ease;
}

.popover h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.popover .close-btn {
  width: 100%;
  margin-top: 22px;
}

.compare-popover {
  width: min(620px, calc(100vw - 32px));
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: #fff7cc;
}

.compare-table th {
  color: #facc15;
  background: rgba(0,0,0,0.28);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.lexicon-term {
  position: relative;
  display: inline;
  border-bottom: 1px dotted rgba(250,204,21,0.75);
  color: #fff7cc;
  cursor: help;
  line-height: inherit;
}

.lexicon-term::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(240px, 70vw);
  padding: 10px 12px;
  border: 1px solid rgba(250,204,21,0.32);
  border-radius: 10px;
  background: rgba(17,24,39,0.96);
  color: #e5e7eb;
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 80;
}

.lexicon-term:hover::after,
.lexicon-term:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* KONTAKTFORMULAR */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-alert {
  max-width: 600px;
  margin: 0 auto 18px;
  padding: 13px 16px;
  border: 1px solid rgba(248,113,113,0.45);
  border-radius: 12px;
  background: rgba(127,29,29,0.78);
  color: #fee2e2;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.checkbox {
  font-size: 1.05rem;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #ccc;
}

.checkbox input {
  accent-color: #facc15;
}

/* Formulargruppen zusammengehörige Fragen in Panels*/
.form-section {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.form-section legend {
  padding: 0 8px;
  color: #facc15;
  font-weight: bold;
}

/* Optionen: Radio- und Checkbox-Karten in zwei Spalten*/
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Auswahl: klickbare Karten*/
.choice-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  color: #e5e7eb;
  cursor: pointer;
  transition: 0.2s;
}

.choice-card:hover {
  border-color: rgba(250,204,21,0.55);
  box-shadow: 0 0 18px rgba(250,204,21,0.14);
  transform: translateY(-2px) scale(1.01);
}

.choice-card:has(input:checked) {
  border-color: rgba(250,204,21,0.85);
  background: rgba(255, 204, 0, 0.16);
  box-shadow: 0 0 24px rgba(250,204,21,0.22);
  color: #fff7cc;
}

.choice-card.is-selected {
  border-color: rgba(250,204,21,0.85);
  background:  rgba(250,204,21,0.85);
  box-shadow: 0 0 24px rgba(250,204,21,0.22);
  color: #fff7cc;
}

.choice-card input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(250,204,21,0.8);
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
}

.choice-card input:checked {
  background: #facc15;
  box-shadow: inset 0 0 0 2px #1f1600;
}

.link-inline {
  color: #facc15;
  text-decoration: underline;
  transition: 0.2s;
}

.link-inline:hover {
  opacity: 0.7;
}

/* Eingabefelder*/
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  outline: none;
  backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250,204,21,0.3);
}

.contact-form select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #facc15 50%),
    linear-gradient(135deg, #facc15 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.contact-form select[name="leistung"] {
  display: none;
}

.contact-form select.has-value,
.contact-form select[data-selected="true"],
.contact-form select:required:valid {
  border-color: rgba(250,204,21,0.9) !important;
  background-color: rgba(250,204,21,0.22) !important;
  background-image:
    linear-gradient(rgba(250,204,21,0.22), rgba(250,204,21,0.22)),
    linear-gradient(45deg, transparent 50%, #facc15 50%),
    linear-gradient(135deg, #facc15 50%, transparent 50%) !important;
  background-position:
    0 0,
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    100% 100%,
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  box-shadow: 0 0 24px rgba(250,204,21,0.28) !important;
  color: #fff7cc !important;
}

/*Datenschutz*/
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.hidden {
  display: none;
}

.modal-box {
  width: 90%;
  max-width: 600px;
  background: rgba(17,24,39,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 25px;
  animation: scaleIn 0.25s ease;
}

.modal-content {
  max-height: 300px;
  overflow-y: auto;
  margin: 15px 0;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-close {
  width: 100%;
}

.link-inline {
  color: #facc15;
  cursor: pointer;
  text-decoration: underline;
}

/* rechtliches Layout Impressum, AGB und Datenschutz*/
.legal-page {
  min-height: calc(100vh - 92px);
  padding: 120px 20px 60px;
  background: rgba(0,0,0,0.65);
}

/* Legal-Fenster */
.legal-content {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 32px;
  background: rgba(17,24,39,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #e5e7eb;
  line-height: 1.65;
}

.legal-content h1 {
  color: #facc15;
  margin-bottom: 24px;
}

.legal-content h3 {
  color: #fff7cc;
  margin: 22px 0 8px;
}

.legal-back-btn {
  display: inline-block;
  margin-top: 28px;
  text-decoration: none;
}

/* Nav fixierte obere Leiste*/
.success-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 80;
  padding: 12px 18px;
  border: 1px solid rgba(34,197,94,0.45);
  border-radius: 999px;
  background: rgba(20,83,45,0.94);
  color: #dcfce7;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  transform: translateX(-50%);
  animation: fadeInScale 0.25s ease;
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  align-items: center;
  gap: 24px;
}

.nav-menu-btn {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(250,204,21,0.35);
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  color: #fff7cc;
  font-size: 1.2rem;
  cursor: pointer;
}

.brand a {
  color: #fff7cc;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-decoration: none;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.links a,
.nav-contact {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-contact {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.links a:hover,
.nav-contact:hover {
  color: #facc15;
}

.links .nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  box-shadow: 0 0 18px rgba(250,204,21,0.35);
}

.links .nav-cta:hover {
  color: #111827;
  transform: translateY(-1px);
}

.contact-popover {
  position: fixed;
  top: 58px;
  right: max(20px, calc((100vw - 1100px) / 2 + 20px));
  z-index: 70;
  padding: 13px 16px;
  border: 1px solid rgba(250,204,21,0.35);
  border-radius: 14px;
  background: rgba(17,24,39,0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  animation: fadeInScale 0.18s ease;
}

.contact-popover strong,
.contact-popover span,
.contact-popover a {
  display: block;
}

.contact-popover strong {
  color: #facc15;
  margin-bottom: 6px;
}

.contact-popover span {
  color: #d1d5db;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.contact-popover a {
  color: #fff7cc;
  font-weight: 800;
  text-decoration: none;
}

/* FOOTER */
footer,
.site-footer {
  display: block;
  width: 100%;
  min-height: 250px;
  position: relative;
  text-align: left;
  padding: 54px 20px 24px;
  background: linear-gradient(180deg, rgba(2,6,23,0.92), #020617);
  border-top: 1px solid rgba(250,204,21,0.18);
  z-index: 10;
  margin-top: 80px;
  scroll-snap-align: end;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3,
.footer-grid h4 {
  color: #facc15;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a {
  color: #d1d5db;
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  margin: 7px 0;
}

.footer-grid a:hover {
  color: #facc15;
}

.helper-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.helper-toggle {
  min-width: 86px;
  min-height: 46px;
  border: 1px solid rgba(250,204,21,0.45);
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #eab308);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(250,204,21,0.48);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.helper-toggle:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 42px rgba(250,204,21,0.78);
}

.helper-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(310px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(250,204,21,0.28);
  background: rgba(17,24,39,0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  animation: fadeInScale 0.18s ease;
}

.helper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #fff7cc;
}

.helper-actions {
  display: flex;
  gap: 8px;
}

.helper-head button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background: rgba(0,0,0,0.32);
  color: #fff7cc;
  cursor: pointer;
}

.helper-head #helper-sound {
  width: auto;
  min-width: 58px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.helper-head #helper-sound.is-active {
  border-color: rgba(250,204,21,0.65);
  background: rgba(250,204,21,0.18);
}

.helper-question {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  color: #e5e7eb;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.helper-question:hover {
  transform: translateX(-3px);
  border-color: rgba(250,204,21,0.5);
  background: rgba(250,204,21,0.1);
}

.helper-panel p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #d1d5db;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1120px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links a {
  position: relative;
  transition: 0.3s;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #facc15;
  transition: 0.3s;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Erfolgs KOntaktformular bei absenden */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.success-overlay.is-visible {
  opacity: 1;
}

.hidden {
  display: none;
}

.success-box {
  background: rgba(17,24,39,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  animation: fadeInScale 0.4s ease;
}

.success-box h2 {
  color: #22c55e;
  margin-top: 15px;
}

.success-box p {
  margin-top: 10px;
  color: #ccc;
}

.checkmark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #22c55e;
  position: relative;
  margin: auto;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 30px;
  width: 18px;
  height: 35px;
  border-right: 4px solid #22c55e;
  border-bottom: 4px solid #22c55e;
  transform: rotate(45deg);
  animation: drawCheck 0.4s ease forwards;
}

/* Buttons bei Start, Absenden, Zurück und Popup schließen*/
.btn {
  position: relative;
  overflow: hidden;
  margin-top: 25px;
  padding: 14px 34px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #eab308);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 0 25px rgba(250,204,21,0.5);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 58%);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  height: 3px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-110%);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(250,204,21,0.9);
  animation: glowPulse 1.2s ease-in-out infinite;
}

.btn:hover::before {
  opacity: 0.35;
  transform: scale(1);
}

.btn.is-loading::after {
  animation: loadingBar 1s ease-in-out infinite;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Animationen bei Seitenwechsel, Hero-Texte und Erfolgs-Checkmark*/
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes drawCheck {
  from { height: 0; width: 0; }
  to { height: 35px; width: 18px; }
}

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

@keyframes floatText {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(250,204,21,0.5); }
  50% { box-shadow: 0 0 58px rgba(250,204,21,0.95); }
}

@keyframes loadingBar {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

/* Mobile Layouts: Desktop-Raster auf kleinen Bildschirmen einspaltig*/
@media (max-width: 640px) {
  .grid,
  .option-grid,
  .tool-grid,
  .process-grid,
  .build-gallery,
  .trust-grid,
  .calculator-panel,
  .build-advisor,
  .price-calculator,
  .quality-section,
  .faq-section,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    transform: translateY(45px);
  }

  .logo img {
    width: 210px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-trust,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    margin: -25px 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .links {
    justify-content: flex-start;
    gap: 10px;
  }

  .links a,
  .nav-contact {
    font-size: 0.82rem;
  }

  .links .nav-cta {
    padding: 7px 12px;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .build-advisor .section-heading,
  .price-calculator .section-heading,
  .quality-section .section-heading,
  .faq-section .section-heading {
    text-align: center;
  }

  .quality-section .section-heading,
  .quality-section .quality-grid {
    order: initial;
  }

  .tool-panel {
    padding: 20px;
  }

  .build-card img {
    height: 210px;
  }

  .helper-widget {
    right: 16px;
    bottom: 16px;
  }
}

/* Handy-Optimierung: verhindert, dass die fixe Navigation, der große Hero oder Desktop-Hovereffekte
   auf kleinen Displays so viel Platz einnehmen, dass die Seite nur teilweise sichtbar wirkt. */
@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  .topnav {
    position: sticky;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 10px;
  }

  .links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: visible;
    padding: 8px 0 4px;
    scrollbar-width: none;
  }

  .links.is-open {
    display: flex;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .links a,
  .nav-contact {
    flex: 0 0 auto;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .nav-contact {
    text-align: left;
  }

  .links .nav-cta {
    padding: 7px 12px;
  }

  .hero {
    min-height: calc(100svh - 92px);
    height: auto;
    padding: 60px 16px 76px;
  }

  .logo {
    transform: none;
  }

  .logo img {
    width: min(230px, 72vw);
  }

  .headline {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    letter-spacing: 1px;
  }

  .subheadline {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .hero-trust {
    width: auto;
    margin: 0 16px;
    grid-template-columns: 1fr;
  }

  .container {
    padding: 70px 16px;
  }

  .grid,
  .option-grid,
  .tool-grid,
  .process-grid,
  .build-gallery,
  .trust-grid,
  .calculator-panel,
  .build-advisor,
  .price-calculator,
  .quality-section,
  .faq-section,
  .quality-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card:hover {
    transform: translateY(-4px);
  }

  .build-advisor .section-heading,
  .price-calculator .section-heading,
  .quality-section .section-heading,
  .faq-section .section-heading {
    text-align: center;
  }

  .quality-section .section-heading,
  .quality-section .quality-grid {
    order: initial;
  }

  .cursor {
    display: none;
  }
}
