/* ---------- Reset & Basics ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

:root {
  --color-bg: #0e1116;
  --color-bg-alt: #f7f6f3;
  --color-dark: #12151b;
  --color-text: #1b1e24;
  --color-text-light: #5b6270;
  --color-white: #ffffff;
  --color-accent: #b08d57;
  --color-accent-light: #d9bb85;
  --color-error: #c1483f;
  --color-border: rgba(20, 20, 30, 0.14);
  --max-width: 1160px;
  --radius: 14px;
  --transition: 0.25s ease;
}

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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 24px -8px rgba(176, 141, 87, 0.6);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.88rem;
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--small:hover {
  background: var(--color-accent-light);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost-dark:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 22px 0;
}

.header.is-scrolled {
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 14px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-accent-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(176, 141, 87, 0.35), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(176, 141, 87, 0.18), transparent 40%),
    linear-gradient(160deg, rgba(20, 23, 31, 0.91) 0%, rgba(14, 17, 22, 0.94) 60%, rgba(10, 12, 16, 0.97) 100%),
    url("../images/hero-fassade.jpg");
  background-repeat: no-repeat;
  background-position: center, center, center, center;
  background-size: auto, auto, auto, cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 40%, transparent 90%);
}

.hero__inner {
  position: relative;
  padding-top: 120px;
  padding-bottom: 100px;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  margin-bottom: 24px;
}

.hero__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Section shared ---------- */
section {
  padding: 110px 0;
}

.section-label {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 56px;
  max-width: 600px;
}

/* ---------- Advantages ---------- */
.advantages {
  background: var(--color-bg-alt);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: 0 2px 6px rgba(20, 20, 30, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px -18px rgba(20, 20, 30, 0.25);
}

.card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(176, 141, 87, 0.12);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Über uns ---------- */
.about {
  background: var(--color-white);
}

.about__inner {
  max-width: 720px;
}

.about__text {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 640px;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--color-bg-alt);
}

.faq__list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.faq__item[open] {
  border-color: rgba(176, 141, 87, 0.35);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  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-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  color: var(--color-text-light);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- Process ---------- */
.process {
  background: var(--color-dark);
  color: var(--color-white);
}

.process .section-title {
  color: var(--color-white);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  position: relative;
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: rgba(176, 141, 87, 0.5);
  transform: translateY(-4px);
}

.step__number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent-light);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

/* ---------- Anspruch / Showcase ---------- */
.showcase {
  background: var(--color-white);
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(20, 20, 30, 0.35);
}

.showcase__content .section-title {
  margin-bottom: 20px;
}

.showcase__content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 480px;
}

/* ---------- Formular ---------- */
.form-section {
  background: var(--color-bg-alt);
}

.form-section__subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: -32px;
  margin-bottom: 48px;
}

.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 30, 0.2);
}

/* Progress */
.form-progress {
  margin-bottom: 40px;
}

.form-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.08);
  overflow: hidden;
}

.form-progress__fill {
  height: 100%;
  width: 16.6667%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.form-progress__label {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
}

/* Steps */
.form-step {
  border: none;
  display: none;
}

.form-step.is-active {
  display: block;
}

.form-step__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding: 0;
}

.field-group-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 32px 0 14px;
}

/* Text / number fields */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-group + .field-group,
.field-group + .field,
.field + .field-group {
  margin-top: 28px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}

.field-group.has-error input,
.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 8px;
  min-height: 0;
}

/* File upload */
input[type="file"] {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px dashed var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}

.field-group.has-error input[type="file"] {
  border-color: var(--color-error);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 16px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.choice-card:hover {
  border-color: var(--color-accent);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice-card input:focus-visible + .choice-card__label {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.choice-card.is-selected {
  border-color: var(--color-accent);
  background: rgba(176, 141, 87, 0.08);
  box-shadow: 0 0 0 1.5px var(--color-accent);
}

.field-group.has-error .choice-grid {
  outline: 1.5px solid var(--color-error);
  outline-offset: 8px;
  border-radius: 12px;
}

.field-group.has-error .checkbox-field {
  outline: 1.5px solid var(--color-error);
  outline-offset: 8px;
  border-radius: 10px;
}

.is-hidden {
  display: none !important;
}

/* Checkbox */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.5;
}

.checkbox-field a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* Navigation */
.form-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.form-nav #btnBack {
  margin-right: auto;
}

/* Success view */
.form-success {
  text-align: center;
  padding: 20px 0 4px;
}

.form-success__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(176, 141, 87, 0.12);
  color: var(--color-accent);
}

.form-success__icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.form-success p {
  color: var(--color-text-light);
  max-width: 460px;
  margin: 0 auto 16px;
}

.form-success__note {
  font-size: 0.88rem;
  background: rgba(176, 141, 87, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  color: var(--color-text);
}

.form-success__id {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Footer ---------- */
.footer {
  background: #0a0c10;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
  margin-top: 12px;
  max-width: 320px;
  font-size: 0.92rem;
}

.logo--footer {
  font-size: 1.2rem;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* ---------- Rechtliche Seiten ---------- */
.legal-page-header {
  background: var(--color-dark);
  padding: 160px 0 64px;
}

.legal-page-header .eyebrow {
  margin-bottom: 16px;
}

.legal-page-header h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal {
  background: var(--color-bg-alt);
}

.legal__content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 30, 0.2);
}

.legal__content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 22px 0 8px;
}

.legal__content p {
  color: var(--color-text-light);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal__content p + p {
  margin-top: 12px;
}

.legal__content ul,
.legal__content ol {
  margin: 12px 0 12px 20px;
  color: var(--color-text-light);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal__content li + li {
  margin-top: 6px;
}

.legal__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__content .btn {
  text-decoration: none;
}

.legal__content .btn--primary {
  color: var(--color-white);
}

.legal__content .btn--ghost-dark {
  color: var(--color-text);
}

.legal__content address {
  font-style: normal;
  color: var(--color-text);
  line-height: 1.75;
}

.legal__meta {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: 1fr;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase__image {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78%, 320px);
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 105;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav .btn--small {
    margin-top: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 76px 0;
  }

  .hero__inner {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .form-card {
    padding: 32px 22px;
    border-radius: 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .form-nav .btn {
    width: 100%;
    text-align: center;
  }

  .form-nav #btnBack {
    margin-right: 0;
  }

  .legal-page-header {
    padding: 120px 0 48px;
  }

  .legal__content {
    padding: 32px 22px;
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }

  .choice-grid,
  .choice-grid--compact {
    grid-template-columns: 1fr;
  }

  .form-section__subtitle {
    margin-top: -20px;
  }
}
