/* Color palette and fonts sourced from digitaler-pflegeantrag.de:
   headings use 'Source Serif Pro', body/buttons use 'Roboto', brand colors
   are navy #162B4B and gold #C2A159. Their site pairs gold text/buttons on
   white, which measures ~2.5:1 contrast (fails WCAG AA); we keep gold as a
   decorative accent (borders, icon fills, badges) and use navy wherever
   text needs to stay legible for older users. */
:root {
  --navy-900: #162b4b;
  --navy-800: #0f2036;
  --navy-700: #1f3d63;
  --gold: #c2a159;
  --gold-light: #f3ead6;
  --ink: #3a3a3a;
  --ink-soft: #4b4f58;
  --border: #d6d2c7;
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --success: #0f6b34;
  --success-bg: #e9f7ef;
  --success-border: #8fd3ac;
  --error: #a01e15;
  --error-bg: #fbeceb;
  --error-border: #e39a93;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(22, 43, 75, 0.1);
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base instead of 16px, for easier reading */

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 14px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 26px;
  min-height: 56px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease, background-color .15s ease;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 43, 75, 0.35);
}
.btn-primary:hover { background: var(--navy-800); }
.btn:disabled {
  background: #b7bdc8;
  color: #f0f1f3;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-lg { padding: 18px 34px; font-size: 20px; min-height: 60px; }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 16px;
  min-height: 48px;
}
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }

.btn:focus-visible,
.link-btn:focus-visible,
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--navy-900);
  outline-offset: 2px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}
.logo {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--navy-900);
}
.logo span { color: var(--gold); font-weight: 600; }
.partner-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .partner-logo { height: 20px; }
}

/* Hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); text-align: center; }
.eyebrow {
  display: inline-block;
  background: var(--bg);
  color: var(--navy-900);
  border: 2px solid var(--gold);
  font-size: 16px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 34px; color: var(--navy-900); max-width: 780px; margin: 0 auto 14px; }
.lead { color: var(--ink-soft); font-size: 19px; max-width: 740px; margin: 0 auto 22px; }

.info-chips { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 17px;
  color: var(--ink-soft);
}
.chip strong { color: var(--navy-900); }

/* Sections generic */
.section-title {
  text-align: center;
  font-size: 28px;
  color: var(--navy-900);
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 18px;
}

/* Path sections / forms */
.path-section { padding: 20px 0 72px; }

.switch-prompt {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 36px;
}
.link-btn {
  display: inline-block;
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 8px;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.link-btn:hover { background: var(--gold-light); border-color: var(--navy-900); }

.care-form {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.field { display: flex; flex-direction: column; margin-bottom: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}
.req { color: #c62828; }
.field input[type="text"],
.field input[type="date"] {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 19px;
  min-height: 54px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}
.field input:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 4px rgba(22, 43, 75, 0.16);
}
.field input[readonly] {
  background: #f1efe9;
  color: var(--ink-soft);
}

/* Signature */
.signature-field { margin-top: 16px; }
.signature-wrap {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}
#signaturePad {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
  cursor: crosshair;
}
.signature-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #7a7568;
  font-size: 17px;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
}
.signature-field .btn-ghost { margin-top: 14px; }

.field-date { max-width: 320px; margin-top: 26px; }
.field-hint {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.form-footer { margin-top: 34px; }
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 28px;
}
.checkbox-line input {
  margin-top: 2px;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  accent-color: var(--navy-900);
}
.form-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.success-banner, .error-banner {
  max-width: 780px;
  margin: 20px auto 0;
  border-radius: 12px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}
.success-banner {
  background: var(--success-bg);
  color: var(--success);
  border: 2px solid var(--success-border);
}
.error-banner {
  background: var(--error-bg);
  color: var(--error);
  border: 2px solid var(--error-border);
}

@media (max-width: 640px) {
  .care-form { padding: 28px; }
  .hero h1 { font-size: 28px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-soft); text-decoration: underline; }
.footer-links a:hover { color: var(--navy-900); }
