:root {
  --page-bg: #0f172a;
  --card-bg: #ffffff;
  --card-soft: #f8fafc;
  --text-main: #0f172a;
  --text-soft: #475569;
  --line: #dbe4ee;
  --brand: #10b981;
  --brand-deep: #059669;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 34%),
    linear-gradient(180deg, #e2e8f0 0%, #f8fafc 14%, #ffffff 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: #d1fae5;
  font-size: 0.95rem;
}

.crumbs a {
  color: #ecfdf5;
  text-decoration: none;
}

.crumbs span {
  opacity: 0.75;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)),
    url("/haus-grundriss-zeichnen.jpg") center/cover no-repeat;
  color: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #bbf7d0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero p {
  margin: 0;
  color: rgba(241, 245, 249, 0.92);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #052e1f;
}

.button-primary:hover {
  background: #34d399;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.section {
  margin-top: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.06);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
}

.section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.section + .section {
  margin-top: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-soft);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.checklist,
.link-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-main);
}

.checklist li,
.link-list li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.link-list a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.callout {
  border-left: 4px solid var(--brand);
  padding: 1rem 1.1rem;
  border-radius: 0 18px 18px 0;
  background: #ecfdf5;
  color: #064e3b;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.footer-note {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.95rem;
}

.redirect-shell,
.error-shell {
  width: min(760px, calc(100% - 2rem));
  margin: 6rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 56px rgba(15, 23, 42, 0.08);
}

.redirect-shell h1,
.error-shell h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.redirect-shell p,
.error-shell p {
  color: var(--text-soft);
  line-height: 1.7;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 860px) {
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .redirect-shell,
  .error-shell {
    padding: 1.4rem;
  }

  .page-shell {
    width: min(100% - 1rem, 1100px);
  }
}
