:root {
  --green: #79A83B;
  --blue: #1C00CC;
  --text: #3F3F3F;
  --ink: #3F3F3F;
  --muted: #5C6458;
  --line: #A6A6A6;
  --soft: rgba(166, 166, 166, 0.14);
  --white: #FFFFFF;
  --shadow: 0 18px 54px rgba(22, 29, 35, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  background: #FFFFFF;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(121, 168, 59, 0.18);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.landing-brand strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1;
}

.landing-brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
}

.brand-heart {
  width: 34px;
  height: 31px;
  background:
    radial-gradient(circle at 34% 32%, var(--green) 0 31%, transparent 32%),
    radial-gradient(circle at 68% 32%, var(--blue) 0 31%, transparent 32%),
    linear-gradient(135deg, var(--green) 0 48%, transparent 49%),
    linear-gradient(225deg, var(--blue) 0 48%, transparent 49%);
  clip-path: polygon(50% 100%, 8% 54%, 2% 26%, 20% 4%, 50% 24%, 80% 4%, 98% 26%, 92% 54%);
}

.header-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.header-link:hover,
.primary-button:hover {
  background: #5f8c2c;
}

.hero {
  position: relative;
  min-height: calc(100svh - 60px);
  display: grid;
  align-items: end;
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(246, 248, 242, 0.16)),
    url("/assets/trauerfoyer-eingangshalle-v9.png") center / cover no-repeat;
}

.hero-card {
  position: relative;
  width: min(470px, 100%);
  min-height: 198px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(221, 229, 213, 0.92);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(22, 29, 35, 0.11);
  backdrop-filter: blur(7px);
}

.hero-card p:last-of-type {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.35vw, 1.95rem);
  line-height: 1;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.26rem, 2vw, 1.7rem);
  line-height: 1.16;
}

p {
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.88rem;
}

.subheadline {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.38;
}

.claim {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 22px;
}

.narrow {
  max-width: 760px;
}

.lead {
  color: var(--text);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.72;
}

.intro-section {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.section-heading {
  max-width: 620px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.pill-grid span {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 760;
  box-shadow: 0 8px 22px rgba(22, 29, 35, 0.045);
}

.form-section {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: clamp(32px, 5vw, 58px);
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 110px;
}

.interest-form {
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

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

label {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
}

.check-row a {
  color: var(--blue);
  font-weight: 850;
}

.check-row input {
  width: auto;
  margin-top: 4px;
}

.interest-form .primary-button {
  margin-top: 22px;
  width: 100%;
}

.form-status {
  min-height: 26px;
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 800;
}

.form-status.error {
  color: #9d2f2f;
}

.landing-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.84);
  background: var(--text);
  border-top: 4px solid var(--blue);
}

.landing-footer strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.landing-footer p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.legal-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 82px) 20px;
}

.legal-hero {
  max-width: 720px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-card {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid rgba(121, 168, 59, 0.24);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(22, 29, 35, 0.08);
}

.legal-card h2 {
  font-size: clamp(1.28rem, 2vw, 1.8rem);
}

.legal-card p {
  color: var(--text);
}

.legal-card a {
  color: var(--blue);
  font-weight: 800;
}

.admin-wrap {
  overflow-x: auto;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.landing-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.landing-admin-table th,
.landing-admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

.landing-admin-table th {
  color: var(--ink);
  background: var(--soft);
}

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

.auth-grid .legal-card {
  margin: 0;
}

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

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

  .auth-full {
    grid-column: auto;
  }
  .landing-header,
  .landing-footer,
  .form-section {
    grid-template-columns: 1fr;
  }

  .landing-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 78svh;
    padding: 220px 16px 24px;
    align-items: end;
  }

  .hero-card {
    width: min(360px, 100%);
    min-height: 0;
    padding: 16px;
  }

  h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .pill-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-copy {
    position: static;
  }

  .landing-footer nav {
    justify-content: flex-start;
  }
}
