/* ==========================================================================
   A&H Alltagshelfer - Kundenkonto "Meine Pflegebox"
   Zielgruppe 60+ und Angehoerige: grosse Schrift, grosse Tasten, AA-Kontrast.
   ========================================================================== */
.ahk {
  --gold: #CDA272; --gold-hell: #E9D3B3; --gold-tief: #8A6338; --creme: #FAF6F0; --tinte: #2B2724; --leise: #625A54;
  --linie: rgba(43, 39, 36, .14); --rot: #A63A28; --gruen: #2F7A4F; --blau: #2D5B8C;
  --schatten: 0 18px 40px -22px rgba(80, 56, 30, .45), 0 2px 6px rgba(80, 56, 30, .05);
  font: 17px/1.55 "Montserrat", sans-serif; color: var(--tinte); padding: 10px 0 60px;
}
.ahk *, .ahk *::before, .ahk *::after { box-sizing: border-box; }
.ahk [hidden] { display: none !important; }
.ahk h2, .ahk h3, .ahk p, .ahk ol, .ahk ul, .ahk dl, .ahk dd, .ahk blockquote { margin: 0; padding: 0; }
.ahk ol, .ahk ul { list-style: none; }
.ahk li::before { content: none; }
/* Das Theme gibt <small> einen negativen Abstand nach oben: hier neutralisieren */
.ahk small { margin: 0 !important; position: static !important; line-height: 1.4 !important; }

.ahk-karte { padding: 26px 28px; border-radius: 24px; background: #fff; box-shadow: var(--schatten), inset 0 0 0 1px rgba(205, 162, 114, .25); }
.ahk-karte--schmal { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.ahk-karte h2 { font-family: "Playfair Display", Georgia, serif; font-size: 30px; line-height: 1.2; }
.ahk-karte h3 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; margin-bottom: 12px !important; }
.ahk-text { color: var(--leise); }
.ahk-klein { font-size: 15px; color: var(--leise); }
.ahk-klein a { color: var(--gold-tief); font-weight: 600; }
.ahk-hinweis { font-size: 15px; color: var(--leise); margin-bottom: 12px !important; }
.ahk-meldung { padding: 10px 14px; border-radius: 12px; background: #FDF3F1; color: var(--rot); font-weight: 600; font-size: 15px; }
.ahk-gesendet { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--creme); }
.ahk-danke { margin-bottom: 18px !important; padding: 14px 18px; border-radius: 14px; background: #EAF4EE; color: #1E5A36; font-weight: 600; }
.ahk-laden { min-height: 120px; place-items: center; text-align: center; }
.ahk-knopf[disabled] { opacity: .5; cursor: progress; }

.ahk-feld { display: grid; gap: 6px; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ahk input, .ahk textarea, .ahk select {
  width: 100%; min-height: 54px; padding: 12px 16px; margin: 0; border: 0; border-radius: 14px; resize: vertical;
  font: 500 18px/1.35 "Montserrat", sans-serif; color: var(--tinte); background: #fff; box-shadow: inset 0 0 0 2px var(--linie);
  -webkit-appearance: none; appearance: none;
}
.ahk input:focus, .ahk textarea:focus, .ahk select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-tief), 0 0 0 4px rgba(205, 162, 114, .3); }
.ahk-datum { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; }
.ahk-datum input { text-align: center; font-size: 22px; }

.ahk-knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px;
  cursor: pointer; background: var(--gold-tief); color: #fff; font: 700 17px "Montserrat", sans-serif; text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(138, 99, 56, .9); transition: background .2s, transform .15s;
}
.ahk-knopf:hover { background: #7A5630; }
.ahk-knopf:active { transform: translateY(1px); }
/* Ueberschriften, die per Skript den Fokus bekommen (Ansichtswechsel), ohne Rahmen */
.ahk [tabindex="-1"]:focus { outline: none; }
.ahk-knopf:focus-visible, .ahk-chip:focus-visible, .ahk-person:focus-visible, .ahk-mm:focus-visible, .ahk-link:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.ahk-knopf--leise { background: #fff; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie); }
.ahk-knopf--leise:hover { background: var(--creme); }
.ahk-knopf--klein { min-height: 42px; padding: 0 16px; font-size: 15px; }
.ahk-link { border: 0; background: none; padding: 6px 0; cursor: pointer; font: 600 15px "Montserrat", sans-serif; color: var(--leise); text-decoration: underline; text-underline-offset: 3px; }

/* Kopf im Konto */
.ahk-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.ahk-kopf h2 { font-family: "Playfair Display", Georgia, serif; font-size: 32px; line-height: 1.2; }
.ahk-personen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ahk-person { min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; background: #fff; font: 600 16px "Montserrat", sans-serif; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie); }
.ahk-person.ist-aktiv { background: var(--gold-tief); color: #fff; box-shadow: none; }

/* Stand */
.ahk-karte--breit { margin-bottom: 20px; }
.ahk-stufen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px !important; counter-reset: s; }
.ahk-stufen li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 15px; color: var(--leise); }
.ahk-stufen li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 3px; border-radius: 2px; background: #EEE6DA; }
.ahk-stufen li.ist-fertig:not(:last-child)::after { background: var(--gold); }
.ahk-stufen__punkt { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #EEE6DA; font-weight: 700; color: var(--leise); }
.ahk-stufen li.ist-fertig .ahk-stufen__punkt { background: var(--gold); color: #fff; }
.ahk-stufen li.ist-jetzt .ahk-stufen__punkt { background: var(--gold-tief); color: #fff; box-shadow: 0 0 0 6px rgba(205, 162, 114, .3); }
.ahk-stufen li.ist-jetzt { color: var(--tinte); font-weight: 700; }
.ahk-stand { font-size: 19px; font-weight: 600; margin-bottom: 12px !important; }
.ahk-stand--genehmigt { color: var(--gruen); }
.ahk-stand--abgelehnt { color: var(--rot); }
.ahk-stand--rueckfrage { color: var(--blau); }
.ahk-zitat { margin-bottom: 14px !important; padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--creme); font-size: 17px; }

/* Raster der Karten */
.ahk-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ahk-box, .ahk-doku { display: grid; gap: 8px; margin-bottom: 14px !important; }
.ahk-box li, .ahk-doku li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--creme); font-size: 16px; }
.ahk-doku b { display: block; }
.ahk-doku small { display: block; font-size: 14px; color: var(--leise); }
.ahk-daten { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin-bottom: 14px !important; font-size: 16px; }
.ahk-daten dt { color: var(--leise); }
.ahk-daten dd { font-weight: 600; word-break: break-word; }
.ahk-form { display: grid; gap: 4px; margin-top: 8px; }
.ahk-zeile { display: flex; flex-wrap: wrap; gap: 10px; }
.ahk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ahk-chip { min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: #fff; font: 600 15px "Montserrat", sans-serif; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie); }
.ahk-chip.ist-gewaehlt { background: var(--gold-tief); color: #fff; box-shadow: none; }
.ahk-status { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #FCEBC9; color: #6B4A16; }
.ahk-status.ist-erledigt { background: #E1F0E6; color: var(--gruen); }

/* Box wechseln (feste Boxen) */
.ahk-pakete { display: grid; gap: 10px; margin-top: 4px; }
.ahk-paket { display: grid; gap: 4px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; background: #fff; color: var(--tinte); font: 500 15px/1.45 "Montserrat", sans-serif; box-shadow: inset 0 0 0 2px var(--linie); }
.ahk-paket b { font-size: 17px; }
.ahk-paket small { color: #6B4A16; font-size: 14px; }
.ahk-paket.ist-gewaehlt { background: var(--creme); box-shadow: inset 0 0 0 2px var(--gold-tief); }
.ahk-paket[disabled] { cursor: default; opacity: .6; }
.ahk-paket:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }

/* Box-Editor */
.ahk-editor { display: grid; gap: 10px; margin-top: 4px; }
.ahk-fuell { height: 12px; border-radius: 999px; background: var(--creme); overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); }
.ahk-fuell span { display: block; height: 100%; width: 0; background: var(--gold-tief); transition: width .4s ease; }
.ahk-wahl { display: grid; gap: 6px; }
.ahk-wahl li { display: grid; grid-template-columns: minmax(0, 1fr) 46px 30px 46px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--linie); }
.ahk-wahl li.ist-drin { background: var(--creme); box-shadow: inset 0 0 0 2px var(--gold-tief); }
.ahk-wahl b { text-align: center; }
.ahk-wahl li.ist-gesperrt { grid-template-columns: minmax(0, 1fr) auto; background: #F6F4F2; box-shadow: none; color: var(--leise); }
.ahk-wahl li.ist-gesperrt small { font-size: 13px; font-weight: 700; }
.ahk-mm { width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; background: #fff; font-size: 22px; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie); }
.ahk-mm[disabled] { opacity: .35; cursor: not-allowed; }

.ahk-fuss { margin-top: 24px !important; text-align: center; }

@media (max-width: 900px) { .ahk-raster { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ahk-karte { padding: 20px 18px; border-radius: 20px; }
  .ahk-kopf { flex-direction: column; align-items: flex-start; }
  .ahk-kopf h2 { font-size: 26px; }
  .ahk-stufen { grid-template-columns: 1fr; gap: 12px; }
  .ahk-stufen li { grid-template-columns: 42px 1fr; justify-items: start; text-align: left; align-items: center; }
  .ahk-stufen li::after { display: none; }
  .ahk-daten { grid-template-columns: 1fr; gap: 0; }
  .ahk-daten dd { margin-bottom: 8px; }
  .ahk-knopf { width: 100%; }
}
