.af__raster { display: grid; gap: var(--a-5); }
.af__kopf { display: grid; gap: var(--a-3); justify-items: start; align-content: start; }
.af__kopf .zurueck { margin: 0; }
.af__einleitung { max-width: 38ch; color: var(--text-2); }
@media (min-width: 960px) {
  .af__raster { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .af__kopf { position: sticky; top: calc(var(--kopf) + var(--a-4)); }   
  
  .af__raster > .af { margin-top: 68px; }
}

.af { display: grid; gap: var(--a-5); min-width: 0; color-scheme: dark; }
.af__gruppe { margin: 0; padding: 0; border: 0; min-width: 0; }
.af__legende { display: block; width: 100%; padding: 0; margin-bottom: var(--a-3); }
.af__legende .etikett { display: block; margin-bottom: var(--a-1); }
.af__frage { display: block; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }

.af__karten { display: grid; gap: var(--a-1); }
@media (min-width: 620px) { .af__karten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.af__karte {
  position: relative; isolation: isolate;
  display: grid; gap: 6px; align-content: start;
  min-height: 76px; padding: 18px 54px 18px 20px;
  border-radius: 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
@media (min-width: 620px) { .af__karte { min-height: 148px; padding: 56px 18px 20px 20px; align-content: end; } }
.af__karte input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.af__karte-rahmen {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px rgba(243, 243, 238, 0.24);
  transition: box-shadow 180ms var(--ruhig), background-color 180ms var(--ruhig);
}
.af__karte-titel { font-size: 1.125rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.af__karte-text { font-size: 0.875rem; line-height: 1.4; color: var(--text-2); }
.af__karte-zusatz { font-size: 0.8125rem; line-height: 1.4; color: var(--gold); }   
.af__einrichtung { margin-top: 12px; }
.af__punkt {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(243, 243, 238, 0.5);            
  color: var(--knopf-text);
  transition: background-color 180ms var(--ruhig), box-shadow 180ms var(--ruhig);
}
.af__punkt svg { width: 16px; height: 16px; opacity: 0; transition: opacity 120ms linear; }
@media (min-width: 620px) { .af__punkt { left: 20px; right: auto; } }
@media (hover: hover) and (pointer: fine) {
  .af__karte:hover .af__karte-rahmen { box-shadow: inset 0 0 0 1px rgba(243, 243, 238, 0.5); }
}
.af__karte input:checked ~ .af__karte-rahmen { background: #17150f; box-shadow: inset 0 0 0 1.5px var(--gold); }
.af__karte input:checked ~ .af__punkt { background: var(--gold); box-shadow: none; }
.af__karte input:checked ~ .af__punkt svg { opacity: 1; }
.af__karte input:focus-visible ~ .af__karte-rahmen { outline: 2px solid var(--gold); outline-offset: 3px; }

.af__rest { display: grid; gap: var(--a-5); }
.af--bereit:not(.af--gewaehlt) .af__rest { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ruhe) .af--bereit.af--gewaehlt .af__rest { animation: af-auf 420ms var(--ruhig) both; }
}
@keyframes af-auf { from { opacity: 0; transform: translateY(14px); } }

.af__felder { display: grid; gap: var(--a-3) var(--a-2); }
@media (min-width: 620px) {
  .af__felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .af__feld--breit { grid-column: 1 / -1; }
}
.af__feld { display: grid; gap: 8px; min-width: 0; align-content: start; }
.af__feld label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--a-1); font-size: 0.9375rem; line-height: 1.4; font-weight: 500; }
.af__frei { font-size: 0.8125rem; line-height: 1; font-weight: 400; color: var(--text-2); }   
.af__eingabe {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid rgba(243, 243, 238, 0.42);                      
  border-radius: 12px; background: var(--flaeche); color: var(--text);
  font: inherit; font-size: 1rem; line-height: 1.5;                 
  transition: border-color 180ms var(--ruhig);
}
textarea.af__eingabe { display: block; min-height: 148px; resize: vertical; }
.af__eingabe::placeholder { color: #8a8c86; opacity: 1; }
.af__eingabe:hover { border-color: rgba(243, 243, 238, 0.62); }
.af__eingabe:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); border-radius: 12px; }
.af__eingabe[aria-invalid="true"] { border-color: #ffa794; }

.af__eingabe:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: inset 0 0 0 100px var(--flaeche); caret-color: var(--text); }

.af__hilfe { font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }
.af__hilfe--zeile { display: flex; justify-content: space-between; gap: var(--a-2); }
.af__zaehler { flex: none; font-variant-numeric: tabular-nums; }
.af__fehler { font-size: 0.875rem; line-height: 1.4; color: #ffb4a4; }
.af__link { color: var(--text); text-underline-offset: 3px; }
.af__link:hover { color: var(--gold); }

.af__schluss { display: grid; gap: var(--a-2); justify-items: start; }
.af__schluss .af__hilfe { max-width: 52ch; }
.af__senden:disabled, .af__senden[aria-disabled="true"] { opacity: 0.5; cursor: default; }
html:not(.js) .af__senden, html:not(.js) .af__schluss .af__hilfe { display: none; }   
.af__ohne { padding: var(--a-3); border-radius: 16px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }

.af__lock { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

.af--gesendet > :not(.af__danke) { display: none; }
.af__danke {
  display: grid; gap: var(--a-2); justify-items: start;
  padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie), inset 0 1px 0 0 rgba(213, 187, 130, 0.5);
}
.af__danke[hidden] { display: none; }
.af__danke:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 20px; }
.af__danke-titel { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; max-width: none; }
.af__danke p { color: var(--text-2); }

.af__danke .af__zurueck { margin-top: var(--a-2); justify-self: start; }

.af__karteblock[hidden], .af__kartebild[hidden], .af__kartefehlt[hidden] { display: none; }
.af__kartebild, .af__kartefehlt { padding: clamp(16px, 2.4vw, 24px); border-radius: 20px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie), inset 0 1px 0 0 rgba(213, 187, 130, 0.5); }
.af__kartebild { display: grid; grid-template-columns: clamp(96px, 16vw, 150px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: center; }
.af__kartebild img { display: block; width: 100%; height: auto; border-radius: 6% / 4.5%; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.af__kartetext, .af__kartefehlt { display: grid; gap: 8px; justify-items: start; }
.af__kartetext strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.af__kartetext p, .af__kartefehlt p { margin: 0; color: var(--text-2); }
.af__kartewahl { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.af__knopflink { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.af__kartefehlt .etikett { color: var(--gold); }

.af__karte--care { min-height: 0; padding: 18px 20px 18px 58px; align-content: start; }
.af__karte--care .af__karte-rahmen { background: linear-gradient(180deg, rgba(213, 187, 130, 0.10), rgba(213, 187, 130, 0.04)); box-shadow: inset 0 0 0 1px rgba(213, 187, 130, 0.38); }
.af__karte--care .af__punkt { top: 18px; left: 20px; right: auto; border-radius: 6px; }
.af__karte--care .af__karte-titel { color: var(--gold); }
.af__care-wahl { margin-top: 6px; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .af__karte--care:hover .af__karte-rahmen { box-shadow: inset 0 0 0 1px rgba(213, 187, 130, 0.7); }
  .af__karte--care:hover input:checked ~ .af__karte-rahmen { box-shadow: inset 0 0 0 1.5px var(--gold); }
}

.af__demo { max-width: 52ch; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
html:not(.js) .af__demo { display: none; }

.af__notweg[hidden] { display: none; }

.af--direkt #af-thema-gruppe { display: none; }
.af--direkt .af__rest .af__legende .etikett { display: none; }
.af__direkt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 0.9375rem; color: var(--text-2); }
.af__direkt[hidden] { display: none; }
.af__direkt strong { font-weight: 500; color: var(--text); }
.af__direkt .af__knopflink { min-height: 44px; text-decoration: underline; text-decoration-color: rgba(243, 243, 238, 0.4); }

.af__zahl[hidden] { display: none; }
.af__karten--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af__karte--flach { min-height: 76px; padding: 18px 18px 18px 54px; align-content: center; }
.af__karte--flach .af__punkt { top: 50%; left: 18px; right: auto; translate: 0 -50%; }
@media (max-width: 419px) { .af__karte--flach { padding-left: 48px; } .af__karte--flach .af__punkt { left: 14px; } }

.af__standorte { display: grid; gap: 8px; justify-items: start; margin-bottom: var(--a-3); }
.af__standorte .af__eingabe { width: 120px; }

.af__karte--fest { cursor: default; }
.af__karte--fest .af__karte-rahmen { background: #17150f; box-shadow: inset 0 0 0 1.5px var(--gold); }
.af__karte--fest .af__punkt { background: var(--gold); box-shadow: none; }
.af__karte--fest .af__punkt svg { opacity: 1; }
.af__karte--fest:hover .af__karte-rahmen { box-shadow: inset 0 0 0 1.5px var(--gold); }   

.af__standorte .af__schieber { justify-self: stretch; width: 100%; max-width: 440px; margin: 0; }
