/* =========================================================
   Kontaktseite (Marcels Wahl A „Kurzer Draht“, 03.11.2026), Präfix kt-
   Teil 1: Bausteine (Band, Karte, Felder, Knöpfe, Danke) · Teil 2: Aufbau mit Porträt
   Entwürfe und Vorgeschichte: docs/pitches/kontakt/
   Tokens, Schrift, Menü und Footer aus rahmen.css (.fx am body).
   Radien nur --radius-card, --radius-btn, 50 %, --radius-mark. Mobile-first, Breakpoints 560 / 760 / 1100.
   ========================================================= */

body.kt {
  --kt-rand: rgba(10, 46, 42, .5); /* Feldrand mit 3:1 gegen Weiß (WCAG 1.4.11) */
  margin: 0; min-height: 100svh;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 400; line-height: 1.6;
  color: #3D4440; background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
:where(.kt) button { cursor: pointer; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:where(.kt) :is(input, textarea) { font: inherit; color: inherit; }

/* ---------- Band (dunkel) ---------- */
.kt-band { position: relative; isolation: isolate; overflow: hidden; padding: 6.5rem 0 6rem; background: var(--teal-deep); color: var(--cream); }
.kt-band__in { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.kt-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .95rem; color: var(--cream-70); }
.kt-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; text-decoration-color: var(--cream-70); }
.kt-crumb [aria-current] { color: var(--teal-accent-soft); }
.kt-titel { margin: .5rem 0 0; font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; color: var(--cream); text-wrap: balance; }
.kt-titel em { font-style: normal; font-weight: 800; color: var(--white); }
.kt-lead { max-width: 34rem; margin: 1.1rem 0 0; font-size: 1.12rem; color: var(--cream-85); text-wrap: pretty; }

/* Erreichbarkeit: kleiner Punkt, im Dienst Mint (einzige Mint-Stelle), sonst gedämpft. Kein Blinken. */
.kt-da { display: flex; align-items: flex-start; gap: .7rem; margin: 1.4rem 0 0; font-size: 1rem; font-weight: 600; color: var(--cream-85); }
.kt-da__punkt { width: 10px; height: 10px; flex: none; margin-top: .45em; border-radius: 50%; background: var(--cream-70); }
.kt-da.is-offen .kt-da__punkt { background: var(--teal-accent); box-shadow: 0 0 0 5px rgba(80, 255, 177, .14); }
.kt-da.is-offen { color: var(--white); }

.kt-wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.5rem; max-width: 30rem; }
.kt-weg { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; padding: .5rem 1rem; border-radius: var(--radius-btn); font-weight: 700; text-align: center; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.kt-weg:active { transform: scale(.98); }
.kt-weg svg { width: 20px; height: 20px; flex: none; }
.kt-weg--tel { background: var(--cream); color: var(--teal-deep); }
.kt-weg--tel:hover { background: var(--white); }
.kt-weg--wa { border: 1px solid var(--line-dark); color: var(--cream); }
.kt-weg--wa:hover { border-color: var(--cream-70); background: rgba(247, 245, 240, .06); }
.kt-weg__text { display: grid; line-height: 1.2; text-align: left; }
.kt-weg__nr { font-size: .85rem; font-weight: 600; letter-spacing: .01em; }
@media (min-width: 760px) {
  .kt-wege { display: flex; flex-wrap: wrap; max-width: none; }
  .kt-weg { padding-inline: 1.5rem; }
  .kt-weg--tel .kt-weg__wort { display: none; }
  .kt-weg--tel .kt-weg__nr { font-size: 1.15rem; font-weight: 700; }
}

/* ---------- Werk und Karte ---------- */
.kt-werk { position: relative; z-index: 3; width: min(100% - var(--gutter), var(--max)); margin: -3rem auto 0; }
.kt-karte {
  position: relative; padding: clamp(1.6rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3.25rem) calc(60px + 1.25rem);
  border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-soft);
}
.kt-karte::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 60px; aspect-ratio: 1;
  background: var(--teal-primary); border-top: 6px solid var(--bg); border-left: 6px solid var(--bg); border-radius: 0 0 var(--radius-card) 0;
}
.kt-h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; color: var(--teal-deep); text-wrap: balance; }
.kt-h2 em { font-style: normal; font-weight: 800; }
.kt-satz { max-width: 36rem; margin: .8rem 0 0; font-size: 1.08rem; text-wrap: pretty; }

/* ---------- Felder ---------- */
.kt-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; }
.kt-feld { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.kt-label, .kt-legend { font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--teal-deep); }
.kt-opt { font-weight: 500; color: #5C615D; }
.kt-legend { padding: 0; margin-bottom: .7rem; }
fieldset.kt-feld { margin: 0; padding: 0; border: 0; min-width: 0; }
.kt-input, .kt-text {
  width: 100%; min-height: 58px; padding: .75rem 1.35rem; border-radius: var(--radius-btn);
  background: var(--cream); border: 1px solid var(--kt-rand); font-size: 1.12rem; color: var(--teal-deep);
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.kt-input--gross { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.kt-text { min-height: 7.5rem; padding: 1rem 1.35rem; border-radius: var(--radius-card); resize: vertical; line-height: 1.5; }
.kt-input::placeholder, .kt-text::placeholder { color: #6B706C; font-weight: 400; letter-spacing: 0; }
.kt-input:hover, .kt-text:hover { border-color: var(--teal-line); }
.kt-input:focus, .kt-text:focus { outline: none; background: var(--white); border-color: var(--teal-primary); box-shadow: 0 0 0 3px var(--teal-tint); }
.kt-hilfe { margin: 0; font-size: 1rem; color: #5C615D; }
[aria-invalid="true"] { border-color: var(--teal-deep) !important; border-width: 2px !important; }
.kt-fehler { display: flex; gap: .55rem; align-items: baseline; margin: 0; font-size: 1rem; font-weight: 700; color: var(--teal-deep); }
.kt-fehler::before { content: ''; width: 9px; height: 9px; flex: none; background: var(--teal-primary); border-radius: 0 0 var(--radius-mark) 0; transform: translateY(-1px); }
.kt-fehler[hidden] { display: none; }

/* Auswahl als Knöpfe (echte Radios: per Tastatur bedienbar, ohne Skript gültig) */
.kt-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.kt-chip { position: relative; display: block; }
.kt-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kt-chip span {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: .55rem 1rem;
  border-radius: var(--radius-btn); background: var(--cream); border: 1px solid var(--kt-rand);
  font-weight: 600; line-height: 1.25; text-align: center; color: var(--teal-deep);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.kt-chip:hover span { border-color: var(--teal-line); background: var(--white); }
.kt-chip input:checked + span { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--cream); }
.kt-chip input:checked + span::after { content: ''; position: absolute; right: 14px; bottom: 12px; width: 8px; height: 8px; background: var(--teal-accent-soft); border-radius: 0 0 var(--radius-mark) 0; }
.kt-chip input:focus-visible + span { outline: 2px solid var(--teal-primary); outline-offset: 3px; }
.kt-dazu { display: none; }
.kt-feld:has(input[data-oeffnet]:checked) .kt-dazu { display: grid; gap: .5rem; margin-top: .75rem; animation: kt-in .5s var(--ease) both; }
@media (max-width: 399px) { .kt-chips { grid-template-columns: minmax(0, 1fr); } }

/* Datenschutz: 24 px, ganzer Satz antippbar */
.kt-ok { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; padding: 1.1rem 1.25rem; border-radius: var(--radius-card); background: var(--cream); }
.kt-ok input { width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--teal-primary); cursor: pointer; }
.kt-ok label { font-size: 1rem; line-height: 1.5; cursor: pointer; }
.kt-ok a { color: var(--teal-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; padding-block: .75rem; } /* Tippfläche ab 44 px, verschiebt die Zeile nicht */

.kt-senden {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 60px; padding: .5rem .55rem .5rem 1.75rem;
  border-radius: var(--radius-btn); background: var(--teal-deep); color: var(--cream); font-size: 1.08rem; font-weight: 700;
  transition: background .5s var(--ease), transform .5s var(--ease);
}
.kt-senden:hover { background: var(--teal-primary); }
.kt-senden:active { transform: scale(.98); }
.kt-senden__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--cream); color: var(--teal-deep); transition: transform .6s var(--ease); }
.kt-senden:hover .kt-senden__ico { transform: translateX(3px); }
.kt-senden__ico svg { width: 20px; height: 20px; }
.kt-senden.is-laeuft { pointer-events: none; opacity: .75; }
@media (min-width: 760px) { .kt-senden { width: auto; min-width: 20rem; } }

.kt-stoerung { padding: 1.1rem 1.25rem; border-radius: var(--radius-card); border: 2px solid var(--teal-deep); font-weight: 600; color: var(--teal-deep); }
.kt-stoerung a { white-space: nowrap; color: var(--teal-primary); text-decoration: underline; text-underline-offset: .3em; }
.kt-stoerung[hidden] { display: none; }
/* Ohne JavaScript: senden.php leitet bei einem Fehler auf #nicht-gesendet */
.kt-stoerung--ohnejs { display: none; margin-top: 1.5rem; }
.kt-stoerung--ohnejs:target { display: block; }
.kt-honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Unter der Karte: der vierte Weg, ohne eigene Bühne */
.kt-fuss { width: min(100% - 2 * var(--gutter), var(--max)); margin: 2rem auto 0; padding-bottom: var(--space-sm); font-size: 1.02rem; text-align: center; text-wrap: balance; }
.kt-fuss a { font-weight: 700; color: var(--teal-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; text-decoration-color: var(--teal-line); }

/* Porträt mit Logo-Ecke */
.kt-bild { position: relative; margin: 0; }
.kt-bild img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-card); }
.kt-bild::after { content: ''; position: absolute; right: 0; bottom: 0; width: 22%; max-width: 64px; aspect-ratio: 1; background: var(--teal-primary); border-top: 6px solid var(--bg); border-left: 6px solid var(--bg); border-radius: 0 0 var(--radius-card) 0; }
.kt-ki { margin: .55rem 0 0; font-size: .82rem; color: #5C615D; }

/* ---------- Danke ---------- */
.kt-danke { display: none; }
.is-gesendet .kt-danke, .kt-danke:target { display: block; animation: kt-in .8s var(--ease) both; }
.is-gesendet [data-kt-weg], .kt-karte:has(#danke:target) [data-kt-weg] { display: none !important; }
.kt-danke__titel { margin: 0; font-family: var(--font-heading); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; color: var(--teal-deep); }
.kt-danke__titel em { font-style: normal; font-weight: 800; }
.kt-danke__titel:focus { outline: none; }
.kt-danke p { max-width: 36rem; margin: 1rem 0 0; font-size: 1.1rem; }
.kt-nr { font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
.kt-klein { font-size: 1rem !important; color: #5C615D; }
.kt-klein a, .kt-danke a { color: var(--teal-primary); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.kt-danke__weiter { margin-top: 2rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); }

@keyframes kt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kt *, .kt *::before, .kt *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Footer ohne Kontaktblock */
.kt-dunkel .fx-footer { padding-top: var(--space-sm); }


/* =========================================================
   TEIL 2 · A „Kurzer Draht“: Porträt groß über der Naht, eine Karte, drei Felder
   ========================================================= */
.kt-a .kt-band { padding-bottom: 5.5rem; }
/* Am Handy: Titel zuerst, dann Marcels Satz mit kleinem Porträt. Am Computer nur der Satz, das Porträt steht groß daneben. */
.kt-a .kt-kopf { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1rem; }
.kt-a .kt-kopf .kt-bild { width: 64px; aspect-ratio: 4 / 5; }
.kt-a .kt-kopf .kt-bild img { border-radius: var(--radius-card); }
.kt-a .kt-kopf .kt-bild::after { display: none; }
.kt-a .kt-kopf .kt-satz { margin: 0; }
.kt-kopf__name { margin: .25rem 0 0; font-size: 1rem; font-weight: 700; color: var(--teal-deep); }
.kt-kopf .kt-ki { margin-top: .1rem; }
.kt-a .kt-seite { display: none; }
@media (min-width: 1100px) {
  .kt-a .kt-band__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .kt-a .kt-band__text { grid-column: 1; }
  .kt-a .kt-werk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 5rem); width: min(100% - 2 * var(--gutter), var(--max)); margin-top: -3.5rem; align-items: start; }
  .kt-a .kt-kopf { display: block; }
  .kt-a .kt-kopf :is(.kt-bild, .kt-kopf__name, .kt-ki) { display: none; }
  .kt-a .kt-seite { display: block; margin-top: -25rem; position: sticky; top: 7rem; }
  .kt-a .kt-seite .kt-bild { aspect-ratio: 4 / 5; }
  .kt-a .kt-seite .kt-bild img { box-shadow: var(--shadow-soft); }
  .kt-seite__name { margin: 1.1rem 0 0; font-size: 1.2rem; font-weight: 800; color: var(--teal-deep); }
  .kt-seite__rolle { margin: .1rem 0 0; color: #5C615D; }
  .kt-a .kt-fuss { text-align: left; }
}

/* Telefon oder E-Mail: eins genügt (Marcel, 03.11.2026) */
fieldset.kt-erreich { gap: 1rem; }
.kt-erreich .kt-legend { margin-bottom: .45rem; }
.kt-erreich__hilfe { margin: 0 0 .1rem; color: #3D4440; }
.kt-label--klein { font-size: .98rem; font-weight: 600; }
@media (min-width: 760px) {
  fieldset.kt-erreich { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .kt-erreich :is(.kt-legend, .kt-erreich__hilfe, .kt-fehler) { grid-column: 1 / -1; }
}
