/* =====================================================================
   ANBO Finance: /kontakt/
   Nur seiteneigene Styles, Klassen beginnen mit kt-. Kopf, Fuss, Knoepfe,
   Karo und Notizen kommen aus start.css.
   Radien wie ueberall: Knoepfe und Felder 8 px, Karten 14 px, grosse Flaechen 20 px.
   Fehlerrot #B42318 nur fuer Fehlerzustaende (6,5:1 auf Weiss), keine zweite Akzentfarbe.
   ===================================================================== */

.brotkrumen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 34px); font-size: 14px; color: var(--ink-3); }
.brotkrumen a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.brotkrumen a:hover { color: var(--gruen-ink); }
.kt-oben { --kt-achtung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2Zm0 9h2v2h-2Z'/%3E%3C/svg%3E"); }
.nw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rwr { display: inline-block; flex: none; width: 22px; height: 7px; border-radius: 1.5px; background: linear-gradient(to bottom, #C8102E 0 33.33%, #FFFFFF 33.33% 66.66%, #C8102E 66.66% 100%); box-shadow: 0 0 0 1px rgba(27, 38, 33, .12); }

/* ---------- Oberer Bereich: Kopf, Hinweis, Daten links, Formular rechts ---------- */
.kt-oben { padding: clamp(22px, 3vw, 36px) 0 var(--section); overflow-x: clip; }
.kt-oben::before {
  background-image: linear-gradient(to right, #D3DDD6 1px, transparent 1px), linear-gradient(to bottom, #D3DDD6 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 0% 0%, #000 40%, transparent 88%);
  mask-image: radial-gradient(ellipse 60% 55% at 0% 0%, #000 40%, transparent 88%);
}
.kt-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; grid-template-areas: "kopf" "hinweis" "formular" "daten"; }
.kt-kopf { grid-area: kopf; }
.kt-hinweis { grid-area: hinweis; }
.kt-daten { grid-area: daten; }
.kt-formular { grid-area: formular; }

.kt-kopf h1 { font-size: clamp(42px, 5vw, 66px); line-height: 1.08; margin-bottom: 18px; }
.kt-lead { max-width: 28em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }

/* Grosser Hinweis auf die Anfrage: dunkle Verlaufsflaeche, rechts die gruene Wiener Haustuer */
.kt-hinweis {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-big); background: var(--verlauf-dunkel); color: var(--on-dark-2);
  box-shadow: var(--schatten);
}
.kt-hinweis::before { content: ""; position: absolute; z-index: -1; left: -120px; top: -140px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(169, 214, 189, .28); box-shadow: 0 0 0 56px rgba(255, 255, 255, .02); pointer-events: none; }
.kt-hinweis-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px 26px; }
.kt-hinweis :focus-visible { outline-color: var(--gruen-weich); }
.kt-hinweis-notiz { font: 600 24px/1 var(--hand); color: var(--gold-hell); transform: rotate(-4deg); transform-origin: left; margin-bottom: 12px; }
.kt-hinweis h2 { color: #fff; font-size: clamp(23px, 2vw, 26px); line-height: 1.2; margin-bottom: 12px; }
.kt-hinweis p { font-size: 16px; line-height: 1.6; margin-bottom: 22px; max-width: 26em; }
.kt-hinweis-bild { display: none; position: relative; }
.kt-hinweis-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.kt-hinweis-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0E3A25 0%, rgba(14, 58, 37, .35) 30%, rgba(14, 58, 37, 0) 60%); }

/* Kontaktdaten */
.kt-daten dl { display: grid; gap: 0; border-top: 1px solid rgba(31, 122, 77, .55); }
.kt-daten dl > div { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kt-daten dt { display: flex; align-items: center; gap: 10px; align-self: start; padding-top: 2px; font-size: 14.5px; color: var(--ink-3); }
.kt-daten dt .ic { width: 17px; height: 17px; color: var(--gruen-ink); }
.kt-daten dd { font: 400 17px/1.5 var(--head); color: var(--ink); }
.kt-daten dd a { color: var(--gruen-ink); text-decoration: underline; text-decoration-color: rgba(31, 122, 77, .35); text-underline-offset: 4px; }
.kt-daten dd a:hover { text-decoration-color: currentColor; }
.kt-daten address { font-style: normal; }

/* ---------- Formular-Karte im Aufbau der Leistungskarten (Rahmen, 8 px, Flaeche innen) ---------- */
.kt-formular { padding: 8px; border: 1px solid var(--line-mid); border-radius: 22px; background: var(--paper); box-shadow: var(--schatten); }
.kt-form { padding: clamp(22px, 3vw, 36px); border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); }
.kt-form-kopf { margin-bottom: 24px; }
.kt-form-kopf h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 6px; }
.kt-form-kopf p { font-size: 15px; color: var(--ink-3); }
.kt-pflicht { color: var(--gruen-ink); font-weight: 700; margin-left: 2px; }
.kt-optional { margin-left: 6px; font-weight: 500; font-size: 13.5px; color: var(--ink-3); }

.kt-reihe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.kt-feld { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.kt-feld > label, .kt-anliegen legend { display: block; margin-bottom: 8px; font: 600 15px/1.3 var(--text); color: var(--ink); }
.kt-feld input[type="text"], .kt-feld input[type="email"], .kt-feld input[type="tel"], .kt-feld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16.5px/1.4 var(--text); color: var(--ink);
  background: var(--paper); border: 1.5px solid #7E9186; border-radius: var(--r-btn); /* Feldrahmen mind. 3:1 (WCAG) */
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.kt-feld textarea { min-height: 136px; resize: vertical; line-height: 1.55; }
.kt-feld input:hover, .kt-feld textarea:hover { border-color: #5F7468; }
.kt-feld input:focus, .kt-feld textarea:focus { outline: none; border-color: var(--gruen); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(31, 122, 77, .18); }
.kt-hilfe { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.kt-fehler { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px; font: 600 14px/1.4 var(--text); color: #B42318; }
.kt-fehler::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: #B42318; -webkit-mask: var(--kt-achtung) center / contain no-repeat; mask: var(--kt-achtung) center / contain no-repeat; }
.kt-fehler[hidden] { display: none; }
.hat-fehler input[type="text"], .hat-fehler input[type="email"], .hat-fehler input[type="tel"], .hat-fehler textarea { border-color: #B42318; background: #FFF8F7; }
.hat-fehler input:focus, .hat-fehler textarea:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .16); }

/* Anliegen als Kacheln (echte Radio-Knoepfe, Tastatur mit Pfeilen) */
.kt-anliegen { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.kt-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kt-kachel { position: relative; display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 9px 12px; border: 1.5px solid var(--line-mid); border-radius: var(--r-card); background: var(--paper); cursor: pointer; font: 600 15.5px/1.2 var(--text); color: var(--ink); transition: border-color .2s var(--ease), background .2s var(--ease); }
.kt-kachel:hover { border-color: #AFC0B5; background: var(--tint-weak); }
.kt-kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kt-kachel-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--gruen-ink); transition: background .2s var(--ease), color .2s var(--ease); }
.kt-kachel-ico .ic { width: 18px; height: 18px; }
.kt-kachel:has(input:checked) { border-color: var(--gruen); background: color-mix(in srgb, var(--gruen) 7%, #fff); box-shadow: inset 0 0 0 1px var(--gruen); }
.kt-kachel:has(input:checked) .kt-kachel-ico { background: var(--gruen); color: #fff; }
.kt-kachel:has(input:focus-visible) { outline: 2px solid var(--gruen); outline-offset: 2px; }
.hat-fehler .kt-kachel { border-color: rgba(180, 35, 24, .45); }
.kt-tipp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint-weak); border: 1px dashed var(--line-mid); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.kt-tipp[hidden] { display: none; }
.kt-tipp a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gruen-ink); text-decoration: underline; text-underline-offset: 3px; }
.kt-tipp a .ic { width: 15px; height: 15px; }

/* Falle fuer Bots */
.kt-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Einwilligung */
.kt-feld > .kt-check { display: grid; margin: 0; font-weight: 400; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.kt-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gruen); cursor: pointer; }
.kt-check a { color: var(--gruen-ink); text-decoration: underline; text-underline-offset: 3px; }
.kt-einwilligung { margin-bottom: 22px; }

/* Fehler beim Senden */
.kt-meldung { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; background: #FFF4F2; border: 1px solid rgba(180, 35, 24, .35); color: #7A1A12; font-size: 15px; line-height: 1.5; }
.kt-meldung[hidden] { display: none; }
.kt-meldung .ic { width: 19px; height: 19px; margin-top: 1px; color: #B42318; }
.kt-meldung a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kt-meldung:focus { outline: none; }

/* Absenden mit Ladezustand: Text wechselt, drei Punkte ersetzen das Symbol */
.kt-absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.kt-knopf { position: relative; min-width: 220px; }
.kt-knopf .ic { width: 17px; height: 17px; }
.kt-lade { display: none; gap: 4px; align-items: center; }
.kt-lade i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: kt-punkt 1s var(--ease) infinite; }
.kt-lade i:nth-child(2) { animation-delay: .15s; }
.kt-lade i:nth-child(3) { animation-delay: .3s; }
@keyframes kt-punkt { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ist-am-senden .kt-knopf { cursor: progress; background: var(--gruen-hover); }
.ist-am-senden .kt-knopf .ic { display: none; }
.ist-am-senden .kt-lade { display: inline-flex; }
.ist-am-senden .kt-feld, .ist-am-senden .kt-anliegen { opacity: .6; pointer-events: none; transition: opacity .2s var(--ease); }
.kt-status { font-size: 14px; color: var(--ink-3); }
.kt-status:empty { display: none; }

/* ---------- Standort ---------- */
.kt-ort-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.kt-ort-bild { position: relative; }
.kt-ort-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 50%; border-radius: var(--r-big); box-shadow: var(--schatten); }
.kt-land { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 700 13px/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-ink); }
.kt-ort-text h2 { margin-bottom: 16px; }
.kt-ort-text > p { font-size: 17.5px; max-width: 30em; }
.kt-adresse { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 28px; padding: 18px 20px; border-radius: var(--r-card); border: 1px solid var(--line-mid); background: var(--paper); font: normal 400 18px/1.5 var(--head); color: var(--ink); max-width: 360px; }
.kt-adresse .mono { width: 26px; margin-top: 6px; }
.kt-ort-text .btn .ic { width: 16px; height: 16px; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 560px) {
  .kt-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Kacheln ab Tablet stehend: Symbol oben, Wort darunter, damit auch Versicherungen Platz hat */
  .kt-kachel { flex-direction: column; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 8px; text-align: center; font-size: 15px; }
  .kt-hinweis { grid-template-columns: minmax(0, 1fr) 132px; }
  .kt-hinweis-bild { display: block; }
}

@media (min-width: 960px) {
  .kt-raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 72px); row-gap: 32px;
    grid-template-areas: "kopf formular" "hinweis formular" "daten formular";
    grid-template-rows: auto auto 1fr;
  }
  .kt-formular { align-self: start; }
  .kt-ort-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); }
  .kt-ort-bild img { aspect-ratio: 16 / 9.5; }
}

@media (max-width: 759px) {
  .kt-kopf h1 { font-size: 44px; }
  .kt-formular { margin-left: calc(var(--gutter) * -1 + 6px); margin-right: calc(var(--gutter) * -1 + 6px); padding: 5px; border-radius: 20px; }
  .kt-form { padding: 22px 16px; border-radius: 15px; }
  .kt-knopf { width: 100%; }
  .kt-kachel { min-height: 54px; padding: 8px 10px; gap: 9px; font-size: 15px; }
  .kt-kachel-ico { width: 32px; height: 32px; }
  .kt-daten dl > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kt-ort-text .btn { width: 100%; }
  .kt-adresse { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kt-lade i { animation: none; opacity: .8; }
}
