.page-body {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background: linear-gradient(145deg, #f2f7f6, #e8f0f1);
}
.embedded-page { width: 100%; }
.embedded-page .page-heading { padding: 4px 4px 0; }
.side-panel .embedded-page .page-heading h1 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.side-panel .page-card { padding: clamp(17px, 2vw, 24px); }
.side-panel .page-form-grid { grid-template-columns: 1fr; }
.side-panel .page-form-grid .wide { grid-column: auto; }
.impressum-content { padding: 4px; }
.impressum-content > h1 {
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 650;
}
.impressum-copy { padding: 0; background: transparent; }
.help-list {
  margin: 0;
  padding-left: 1.25rem;
  font-weight: 400;
}
.help-list li {
  padding-left: .2rem;
  line-height: 1.6;
}
.help-list li + li { margin-top: 9px; }
.page-shell {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-rows: 1fr auto;
}
.page-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) 0;
}
.page-heading { margin-bottom: 26px; }
.page-heading h1 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.page-heading p {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}
.page-card {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
}
.page-card h2,
.page-card h3 { font-weight: 650; }
.form-section + .form-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.form-section h2 { margin-bottom: 16px; }
.page-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.page-form-grid .wide { grid-column: 1 / -1; }
.page-form label {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  font-weight: 400;
}
.page-form input,
.page-form select,
.page-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(8,45,57,.14);
  border-radius: 13px;
  padding: 12px 13px;
  background: #f8fbfb;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.page-form select { min-height: 47px; }
.page-form textarea { min-height: 120px; resize: vertical; }
.page-form input:focus,
.page-form select:focus,
.page-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(87,211,199,.15);
  background: #fff;
}
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .76rem; font-weight: 400; }
.page-captcha { margin-top: 8px; }
.page-form .captcha-question { font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.choice-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfa;
}
.choice-grid input { width: auto; margin: 0; }
.form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 24px;
}
.form-actions button,
.form-actions .page-link-button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 16px;
  border-radius: 13px;
  font: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.page-link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(13,125,119,.15);
  border-radius: 13px;
}
.form-message { margin-top: 18px; }
.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 15px max(16px, calc((100vw - 980px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(244,249,248,.98);
  color: var(--muted);
  font-size: .78rem;
}
.page-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.page-footer a,
.page-footer a:hover { color: inherit; font-weight: 400; text-decoration: none; }
.page-footer a:hover { color: inherit; }
.legal-copy { color: #294149; font-weight: 400; }
.legal-copy section + section { margin-top: 28px; }
.legal-copy h2 { margin-bottom: 8px; }
.example-warning {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #e7d289;
  border-radius: 14px;
  background: #fff8df;
  color: #5f4300;
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
@media (max-width: 700px) {
  .topbar { height: 70px; }
  .page-shell { min-height: calc(100svh - 70px); }
  .page-main { width: min(100% - 22px, 980px); padding: 28px 0 40px; }
  .page-card { border-radius: 18px; padding: 18px; }
  .page-form-grid { grid-template-columns: 1fr; }
  .page-form-grid .wide { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-actions > * { flex: 1 1 100%; }
  .page-footer { flex-direction: column; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); }
}
