.legal-page main {
  min-height: 68vh;
  background:
    radial-gradient(circle at 86% 2%, rgba(215, 101, 69, 0.08), transparent 28rem),
    var(--bg);
}

.site-header--legal .header-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  color: var(--brand-forest);
  background: rgba(234, 219, 207, 0.42);
  border: 1px solid var(--header-line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.legal-back-link:hover {
  color: var(--brand-forest-dark);
  background: #f1e5dc;
  border-color: #cdb8a8;
}

.legal-back-link > span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

.legal-back-short { display: none; }

.legal-hero {
  padding: 76px 0 66px;
  border-bottom: 1px solid rgba(203, 185, 171, 0.72);
}

.legal-hero-inner { max-width: 900px; }

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #745448;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-breadcrumb a {
  color: var(--brand-forest);
  text-decoration: none;
}

.legal-hero h1 {
  max-width: 820px;
  color: #3f4b46;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  letter-spacing: -0.04em;
}

.legal-hero p:last-child {
  max-width: 680px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.legal-main { padding: 70px 0 96px; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 76px);
}

.legal-layout > * { min-width: 0; }

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding-top: 5px;
}

.legal-toc h2 {
  margin-bottom: 13px;
  color: #784b3a;
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-toc nav { display: grid; gap: 3px; }

.legal-toc a {
  position: relative;
  display: block;
  padding: 8px 8px 8px 17px;
  color: #6c625b;
  border-radius: 9px;
  font-size: 0.85rem;
  line-height: 1.3;
  text-decoration: none;
}

.legal-toc a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 5px;
  height: 5px;
  background: #bfaa9b;
  border-radius: 50%;
  transform: translateY(-50%);
}

.legal-toc a:hover {
  color: var(--brand-forest);
  background: rgba(251, 247, 243, 0.62);
}

.legal-toc a:hover::before { background: var(--brand-coral); }

.legal-content {
  padding: clamp(30px, 5vw, 58px);
  background: rgba(251, 247, 243, 0.94);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(75, 54, 42, 0.08);
}

.legal-section {
  padding: 0 0 40px;
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

.legal-section + .legal-section {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-section:last-child { padding-bottom: 0; }

.legal-section h2 {
  margin-bottom: 17px;
  color: #3f4b46;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  hyphens: manual;
}

.legal-section h3 {
  margin: 24px 0 9px;
  color: var(--brand-forest);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-section p,
.legal-section li {
  color: #5d5957;
  line-height: 1.72;
}

.legal-section p + p { margin-top: 13px; }

.legal-section ul {
  display: grid;
  gap: 7px;
  margin: 13px 0 0 20px;
}

.legal-section a { overflow-wrap: anywhere; }

.legal-address {
  display: grid;
  gap: 2px;
  max-width: 520px;
  padding: 20px 22px;
  color: #4f514f;
  background: #f4e9e0;
  border: 1px solid #dfcec1;
  border-left: 4px solid var(--brand-coral);
  border-radius: 14px;
  font-style: normal;
  line-height: 1.6;
}

.legal-address strong {
  margin-bottom: 3px;
  color: var(--brand-forest);
  font-size: 1.02rem;
}

.legal-contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 570px;
  padding: 17px 19px;
  background: #e9f0ec;
  border: 1px solid #ccddd4;
  border-radius: 14px;
}

.legal-contact-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--brand-forest);
  border-radius: 13px;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-contact-card small {
  display: block;
  color: #56615c;
  font-size: 0.75rem;
}

.legal-contact-card a {
  color: var(--brand-forest);
  font-weight: 700;
}

.legal-note {
  margin-top: 18px;
  padding: 15px 17px;
  color: #625b56;
  background: #f7eee7;
  border: 1px solid #dfd0c5;
  border-radius: 12px;
  font-size: 0.86rem;
}

.legal-source-note {
  color: #77706b !important;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .site-header--legal .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .legal-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 760px) {
  .legal-back-long { display: none; }
  .legal-back-short { display: inline; }
  .legal-back-link { min-height: 42px; padding-inline: 13px; }
  .legal-hero { padding: 54px 0 46px; }
  .legal-main { padding: 44px 0 70px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; padding: 0; }
  .legal-toc nav { display: flex; flex-wrap: wrap; gap: 7px; }
  .legal-toc h2 { margin-bottom: 10px; }
  .legal-toc a {
    padding: 8px 12px;
    background: rgba(251, 247, 243, 0.7);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
  }
  .legal-toc a::before { display: none; }
  .legal-content { padding: 28px 20px; border-radius: 21px; }
  .legal-section { padding-bottom: 32px; }
  .legal-section + .legal-section { padding-top: 32px; }
}

@media (max-width: 380px) {
  .site-header--legal .brand-claim { display: none; }
  .legal-back-link > span:first-child { display: none; }
  .legal-contact-card { grid-template-columns: 1fr; }
}

/* ---------- Kontaktformular (/kontakt) ---------- */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.contact-form .cf-field { display: grid; gap: 7px; }

.contact-form label {
  color: var(--brand-forest);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form label small {
  color: var(--text-dim);
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: #3f4b46;
  background: #ffffff;
  border: 1px solid #d9c8bb;
  border-radius: 12px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-forest);
  box-shadow: 0 0 0 3px rgba(22, 79, 66, 0.12);
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form .btn-primary {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: default;
}

.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 700;
}

.cf-status.is-ok { color: #2e7d4f; }
.cf-status.is-error { color: #b3371f; }
