:root {
  --bg: #0b0d10;
  --bg-elevated: #12161c;
  --surface: #1a212b;
  --surface-soft: rgba(26, 33, 43, 0.74);
  --text: #ede7dd;
  --muted: #9ba6b2;
  --accent: #0e5a64;
  --accent-strong: #16707d;
  --accent-gold: #b88a44;
  --border: rgba(237, 231, 221, 0.18);
  --ring: #b88a44;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 580px at 8% -8%, rgba(14, 90, 100, 0.25) 0%, transparent 62%),
    radial-gradient(900px 520px at 92% 112%, rgba(184, 138, 68, 0.18) 0%, transparent 63%),
    var(--bg);
}

.font-display {
  font-family: "Playfair Display", Georgia, serif;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header {
  position: relative;
  z-index: 200;
  border-bottom: 1px solid rgba(184, 138, 68, 0.22) !important;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.88), rgba(11, 13, 16, 0.64)) !important;
  backdrop-filter: blur(8px);
}

.page-header details {
  position: relative;
}

.page-header details[open] {
  z-index: 260;
}

.page-footer {
  border-top: 1px solid rgba(184, 138, 68, 0.2) !important;
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.88), rgba(11, 13, 16, 0.94)) !important;
}

.section-card {
  position: relative;
  background: linear-gradient(160deg, rgba(26, 33, 43, 0.92), rgba(18, 22, 28, 0.96));
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(237, 231, 221, 0.07);
}

.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(184, 138, 68, 0.08);
}

.hero-frame {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(184, 138, 68, 0.3);
  background:
    linear-gradient(110deg, rgba(11, 13, 16, 0.84) 20%, rgba(11, 13, 16, 0.4) 70%),
    url("../img/didgeman-house-4212707_1920.jpg") center/cover no-repeat;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
}

.hero-frame.energieausweis {
  background:
          linear-gradient(110deg, rgba(11, 13, 16, 0.84) 20%, rgba(11, 13, 16, 0.4) 70%),
          url("../img/kul2r-house-3150464_1920.jpg") center/cover no-repeat;
}

.hero-signature {
  background: rgba(11, 13, 16, 0.58);
  border: 1px solid rgba(237, 231, 221, 0.17);
}

.credential-strip {
  border: 1px solid rgba(184, 138, 68, 0.28);
  background: linear-gradient(180deg, rgba(26, 33, 43, 0.76), rgba(18, 22, 28, 0.8));
}

.process-timeline {
  border-left: 2px solid rgba(184, 138, 68, 0.48);
  padding-left: 1rem;
}

.process-timeline > li {
  position: relative;
}

.process-timeline > li::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 1.5rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 68, 0.25);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(184, 138, 68, 0.44);
  background: rgba(184, 138, 68, 0.14);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  color: #dec49b;
  font-size: 0.93rem;
}

.cta-primary {
  display: inline-block;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #edf5f6;
  border: 1px solid rgba(14, 90, 100, 0.9);
  padding: 0.74rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(14, 90, 100, 0.34);
  cursor: pointer;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 90, 100, 0.44);
}

.cta-secondary {
  display: inline-block;
  border-radius: 0.75rem;
  background: rgba(11, 13, 16, 0.4);
  color: var(--text);
  border: 1px solid rgba(184, 138, 68, 0.36);
  padding: 0.74rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  border-color: rgba(184, 138, 68, 0.76);
  background: rgba(184, 138, 68, 0.14);
  color: #f8efe2;
}

.headline {
  letter-spacing: 0.1px;
  line-height: 1.12;
  text-wrap: balance;
}

.lead {
  color: #c1ccd6;
  font-size: 1.12rem;
  line-height: 1.6;
}

.reveal {
  animation: fade-up 0.65s ease both;
}

.faq-trigger {
  cursor: pointer;
  color: #f1ece3;
}

[data-accordion-panel] {
  color: #c1ccd6 !important;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
  border: 1px solid rgba(184, 138, 68, 0.28) !important;
  background: rgba(11, 13, 16, 0.58) !important;
  color: #ece6dc !important;
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
  color: #8c98a5;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
  border-color: rgba(184, 138, 68, 0.76) !important;
  box-shadow: 0 0 0 2px rgba(184, 138, 68, 0.2);
  outline: none;
}

.message-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 10, 14, 0.68);
  backdrop-filter: blur(3px);
}

.message-panel {
  width: min(94vw, 480px);
  border-radius: 1rem;
  border: 1px solid rgba(237, 231, 221, 0.22);
  padding: 1.1rem 1.1rem 1rem;
  background: linear-gradient(160deg, rgba(26, 33, 43, 0.98), rgba(18, 22, 28, 0.98));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.message-panel.is-success {
  border-color: rgba(15, 133, 112, 0.58);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(15, 133, 112, 0.24);
}

.message-panel.is-error {
  border-color: rgba(181, 92, 92, 0.62);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(181, 92, 92, 0.28);
}

.message-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #f6f1e9;
}

.message-text {
  margin: 0.65rem 0 1rem;
  color: #c6d1dd;
  line-height: 1.55;
}

.message-close {
  border-radius: 0.7rem;
  border: 1px solid rgba(184, 138, 68, 0.45);
  background: rgba(184, 138, 68, 0.14);
  color: #f5ebdc;
  padding: 0.58rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.message-close:hover,
.message-close:focus-visible {
  background: rgba(184, 138, 68, 0.24);
  border-color: rgba(184, 138, 68, 0.72);
}

nav[data-menu-panel] {
  border-top: 1px solid rgba(184, 138, 68, 0.22);
  padding-top: 0.8rem;
}

nav[data-menu-panel] a {
  display: block;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(184, 138, 68, 0.2);
  border-radius: 0.65rem;
  background: rgba(18, 22, 28, 0.9);
}

body .text-slate-700,
body .text-slate-600 {
  color: #c1ccd6 !important;
}

body .border-stone-200,
body .border-stone-300,
body .border-stone-300\/70 {
  border-color: rgba(237, 231, 221, 0.16) !important;
}

body .bg-stone-50,
body .bg-white,
body .bg-white\/80,
body .bg-white\/85 {
  background: rgba(18, 22, 28, 0.62) !important;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hero-frame {
    background-position: 56% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
