@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/assistant-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/assistant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+0300-036F, U+1E00-1EFF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/playfair-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/playfair-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+0300-036F, U+1E00-1EFF;
}

:root {
  color-scheme: light;
  --accent: #9cc026;
  --accent-dark: #5a7010;
  --accent-hover: #4a5e0c;
  --accent-light: #f0f6e4;
  --button-text: #1a2800;
  --text: #2d2d2d;
  --muted: #6b6b6b;
  --bg: #faf8f5;
  --card: #ffffff;
  --border: #e8e4df;
  --topbar: #1a1a18;
  --error: #b42318;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Assistant", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 4px rgba(45, 30, 15, 0.06);
  --shadow-md: 0 2px 12px rgba(45, 30, 15, 0.08);
  --shadow-lg: 0 8px 24px rgba(45, 30, 15, 0.14);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -120px;
  z-index: 10000;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  background: var(--topbar);
  color: #c8c8c4;
  font-size: 0.8125rem;
}

.topbar-inner,
.header-inner,
.page-shell {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-label {
  color: #8d8d88;
}

.topbar a {
  color: #e7e7df;
  font-weight: 700;
}

.topbar a:hover {
  color: var(--accent);
  text-decoration: none;
}

.topbar-sep {
  color: #52524d;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-weight: 700;
}

.site-branding strong,
.site-branding small {
  display: block;
}

.site-branding strong {
  font-weight: 800;
  line-height: 1.2;
}

.site-branding small {
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1.2;
}

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

.nav-menu a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-menu a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.page-shell {
  padding: clamp(28px, 6vw, 72px) 0 72px;
}

.hero {
  min-height: clamp(440px, 58vh, 610px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  padding: clamp(58px, 8vw, 96px) 0 clamp(50px, 7vw, 80px);
  border-bottom: 1px solid var(--border);
}

.hero__content {
  max-width: 760px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.kicker::before {
  content: "";
  width: 3px;
  height: 34px;
  background: var(--accent);
  border-radius: 3px;
}

h1,
h2,
legend {
  font-family: var(--font-heading);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 13.5ch;
  color: var(--text);
  font-size: clamp(3.2rem, 5.6vw, 5rem);
  font-style: italic;
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero p:not(.kicker),
.hero-note p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__content > p {
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0%, rgba(156, 192, 38, 0.18), transparent 42%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-note::before {
  content: "";
  width: 62px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--accent);
  border-radius: 3px;
}

.hero-note span {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-note strong {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.2;
}

.notice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: clamp(38px, 6vw, 70px) 0;
}

.notice > div {
  padding-top: 18px;
  border-top: 3px solid var(--accent);
}

.notice strong {
  font-size: 1.05rem;
}

.notice p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-intro {
  padding: clamp(30px, 5vw, 54px) clamp(28px, 5vw, 52px) clamp(26px, 4vw, 40px);
  background:
    radial-gradient(circle at 100% 0%, rgba(156, 192, 38, 0.16), transparent 38%),
    var(--card);
  border-bottom: 1px solid var(--border);
}

.form-intro h1 {
  max-width: 100%;
  font-size: clamp(2.45rem, 6vw, 4.5rem);
}

.form-intro p:not(.kicker) {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.anchor-target {
  position: absolute;
  top: -120px;
}

.progress {
  height: 8px;
  background: var(--border);
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 220ms ease;
}

.form-section {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: clamp(28px, 4vw, 44px);
}

.form-section:last-of-type {
  border-bottom: 0;
}

legend {
  width: 100%;
  margin: 0 0 28px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--accent), var(--border) 35%);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(156, 192, 38, 0.22);
}

.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.11);
}

.error-text {
  color: var(--error);
  font-size: 0.83rem;
  font-weight: 800;
}

.checks {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.check {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}

.check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.message {
  display: grid;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 26px clamp(28px, 4vw, 44px) clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.btn:hover,
.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary,
.button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

.btn--primary:hover,
.button:hover {
  background: #88a820;
  border-color: #88a820;
  color: var(--button-text);
  box-shadow: 0 4px 16px rgba(90, 112, 16, 0.28);
}

.btn--outline,
.button--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn--outline:hover,
.button--ghost:hover {
  background: var(--accent);
  color: var(--button-text);
}

.btn--topbar {
  min-height: 34px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text) !important;
  font-size: 0.82rem;
}

.result {
  max-width: 960px;
  margin: 28px auto 0;
  background: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 35%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
}

.result h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.result p {
  color: var(--muted);
}

.result dl {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 18px;
  margin: 20px 0 0;
}

.result dt {
  color: var(--accent-dark);
  font-weight: 800;
}

.result dd {
  margin: 0;
}

.result[data-state="pending"] {
  border-left-color: #d4a017;
  background: #fdf6e3;
}

.result[data-state="error"] {
  border-left-color: #c0392b;
  background: #fdecea;
}

.result[data-state="success"] {
  border-left-color: #2e7d32;
  background: #ebf6ec;
}

.result__actions {
  display: none;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--accent), transparent 60%);
}

.result[data-state="preview"] .result__actions,
.result[data-state="error"] .result__actions {
  display: flex;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-note {
    max-width: 540px;
  }
}

@media (max-width: 680px) {
  .topbar-inner,
  .header-inner,
  .page-shell {
    width: min(100% - 24px, var(--container));
  }

  .topbar-inner,
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .btn--topbar {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

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

  .form-section {
    padding: 24px 18px;
  }

  .form-intro {
    padding: 28px 18px 26px;
  }

  .form-intro h1 {
    font-size: clamp(2rem, 8vw, 2.35rem);
  }

  .actions {
    flex-direction: column-reverse;
    padding: 22px 18px 28px;
  }

  .button,
  .btn {
    width: 100%;
  }

  .result dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .result[data-state="preview"] .result__actions,
  .result[data-state="error"] .result__actions {
    flex-direction: column-reverse;
  }

  .result__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Legal pages (Impressum / Datenschutz) ---------------------------------- */
.legal {
  max-width: 860px;
  margin: clamp(28px, 5vw, 56px) auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal__head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal__head h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-style: italic;
  margin: 6px 0 12px;
}

.legal__head .kicker {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.legal__head .muted {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.legal__toc {
  margin: 0 0 36px;
  padding: 18px 22px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}

.legal__toc-heading {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-dark);
}

.legal__toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 28px;
}

.legal__toc li {
  break-inside: avoid;
  margin: 4px 0;
}

.legal__section {
  margin: 36px 0 0;
}

.legal__section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.legal__section h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--accent-dark);
}

.legal__section p,
.legal__section ul,
.legal__section ol {
  margin: 0 0 12px;
}

.legal__section ul,
.legal__section ol {
  padding-left: 22px;
}

.legal__section li {
  margin: 4px 0;
}

.legal__section address {
  font-style: normal;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: #f7f5f0;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.legal__section code {
  background: #f0eee8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.legal__data {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 6px 24px;
  margin: 0 0 12px;
}

.legal__data dt {
  font-weight: 700;
  color: var(--accent-dark);
}

.legal__data dd {
  margin: 0;
}

.legal__hint {
  margin: 6px 0 0;
  color: #b42318;
  font-weight: 700;
  font-size: 0.9rem;
}

.legal__back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal .muted {
  color: var(--muted);
}

@media (max-width: 720px) {
  .legal__data {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal__data dt {
    margin-top: 10px;
  }
  .legal__toc ol {
    columns: 1;
  }
}

/* Site-Footer ------------------------------------------------------------ */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer nav a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-footer nav a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.site-footer nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.site-footer__version {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
