/* Kontaktseite. Kopf: hell und typografisch, die Telefonnummer ist das Bild.
   Eingabefelder brauchen #kontaktForm + !important, weil site.css sie global mit !important setzt. */

.ka { overflow-x: clip; }

/* ---------- Kopf: die Telefonnummer über die volle Breite, darunter der Inhaber auf der Linie ---------- */
.ka .ka-kopf { background: #fff; color: var(--tm-text); padding: clamp(28px, 3.4vw, 48px) 0 0; overflow: hidden; }
.ka-kopf .crumbs { margin-bottom: clamp(20px, 2.6vw, 36px); }
.ka-kopf__oben { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.ka-kopf .ka-kicker { margin-bottom: 10px; }
.ka-kopf :is(h1:not(.kicker), .ka-titel) { font-family: var(--f-display); max-width: none; margin: 0; color: var(--tm-text); font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; hyphens: manual; }

.ka-zeit { text-align: right; }
.ka-zeit p { margin: 0; }
.ka-zeit__status { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.02rem; color: var(--tm-text); }
.ka-zeit__status[hidden] { display: none; }
.ka-zeit__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--tm-grau-hell); }
.ka-zeit__status.ist-offen i { background: #2E8B57; }
.ka-zeit .ka-zeit__fest { margin-top: 2px; font-size: .9rem; line-height: 1.45; color: var(--tm-text-3); }

.ka-nummer { display: block; container-type: inline-size; margin-top: clamp(26px, 3.6vw, 52px); color: var(--tm-anthrazit-tief); text-decoration: none; }
.ka-nummer:hover { color: var(--tm-anthrazit); }
.ka-nummer:focus-visible { outline: 2px solid var(--tm-anthrazit); outline-offset: 6px; }
.ka-nummer__art { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: var(--tm-text-2); }
.ka-nummer__art svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--e-out); }
.ka-nummer__ziffern { display: block; margin-left: -.03em; font-family: 'Clash Grotesk', var(--f-display); font-weight: 600; font-size: 12vw; font-size: 13.75cqi; line-height: 1.02; letter-spacing: -.015em; white-space: nowrap; }
@media (hover: hover) { .ka-nummer:hover .ka-nummer__art svg { transform: translateX(6px); } }

.ka-kopf__linie { display: block; height: 3px; margin-top: clamp(10px, 1.2vw, 18px); background: var(--tm-anthrazit-tief); transform-origin: 0 50%; }

/* Der Inhaber steht hinter der Linie, das Foto schließt unten mit dem Abschnitt ab */
.ka-kopf__unten { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 56px; }
.ka-chef { display: flex; align-items: flex-end; gap: clamp(14px, 2.2vw, 32px); min-width: 0; }
.ka-chef__bild { flex: none; width: clamp(120px, 14vw, 196px); margin: clamp(14px, 1.6vw, 22px) 0 0; overflow: hidden; }
.ka-chef__bild img { display: block; width: 100%; height: auto; }
.ka-chef__text { min-width: 0; padding: 22px 0 clamp(22px, 3vw, 44px); }
.ka-chef__satz { margin: 0; max-width: 32ch; font-size: clamp(1.14rem, 1.75vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--tm-text); }
.ka-chef__name { margin: 14px 0 0; font-size: .95rem; line-height: 1.4; color: var(--tm-text-3); }
.ka-chef__name strong { display: block; color: var(--tm-text); font-weight: 600; }

.ka-leise { flex: none; width: min(320px, 28vw); padding: 22px 0 clamp(14px, 2.4vw, 36px); }
.ka-leise p { margin: 0 0 6px; font-size: .95rem; line-height: 1.45; color: var(--tm-text-3); }
.ka-leise a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--tm-text); font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.ka-leise a span { flex: none; width: 76px; color: var(--tm-text-3); font-size: .9rem; font-weight: 400; }
.ka-leise a:hover { color: var(--tm-anthrazit); text-decoration: underline; text-underline-offset: 4px; }
.ka-leise a:focus-visible { outline: 2px solid var(--tm-anthrazit); outline-offset: 2px; }

/* ---------- Formular + Infoblock ---------- */
.ka-anfrage { background: var(--tm-hell); padding-top: clamp(48px, 6.5vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
.ka-tafel {
  max-width: 1160px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  background: #fff; border: 1px solid var(--tm-linie-hell); border-radius: 10px; overflow: hidden;
}
.ka-tafel__info { order: -1; display: flex; flex-direction: column; min-width: 0; padding: clamp(28px, 3.6vw, 48px); background: var(--tm-anthrazit-tief); color: var(--tm-silber); }
.ka-tafel__info h3 { margin: 30px 0 12px; color: var(--tm-grau-hell); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.ka-tafel__form { min-width: 0; padding: clamp(24px, 3.8vw, 52px); }
.ka-tafel__form h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--tm-text); }
.ka-tafel__sub { margin: 6px 0 26px; font-size: .92rem; color: var(--tm-text-3); }

.ka-person { display: flex; align-items: center; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.ka-person__ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.ka-person__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ka-person strong { display: block; color: #fff; font-size: 1.06rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ka-person span { font-size: .9rem; }
.ka-person + h3 { margin-top: 26px; }

.ka-zeiten { margin: 0; }
.ka-zeiten div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 1rem; }
.ka-zeiten dt { color: var(--tm-silber); }
.ka-zeiten dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }

.ka-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ka-liste li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; line-height: 1.45; color: #ECEDEE; }
.ka-liste svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ka-not {
  position: relative; display: block; margin-top: auto; padding: 18px 44px 18px 18px; border-radius: 6px;
  color: var(--tm-silber); text-decoration: none; border: 1px solid rgba(255, 255, 255, .18); transition: background-color .2s, border-color .2s;
}
.ka-tafel__info .ka-liste { margin-bottom: 30px; }
.ka-not:hover { color: var(--tm-silber); background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .32); }
.ka-not:focus-visible { outline: 3px solid var(--tm-silber); outline-offset: 2px; }
.ka-not__titel { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; }
.ka-not__titel i { width: 8px; height: 8px; border-radius: 50%; background: var(--thermo); }
.ka-not__text { display: block; margin-top: 4px; font-size: .92rem; line-height: 1.45; }
.ka-not > svg { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Formularfelder */
.kform__zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
#kontaktForm .wfield { min-width: 0; margin-bottom: 16px; }
#kontaktForm .wfield label { color: var(--tm-text); }
#kontaktForm .wfield :is(input, select, textarea) {
  display: block; width: 100%; min-height: 52px; font: inherit; font-size: 1rem; line-height: 1.4;
  border: 1.5px solid var(--tm-linie) !important; border-radius: 8px !important; padding: 13px 15px !important;
}
#kontaktForm .wfield textarea { min-height: 128px; resize: vertical; }
#kontaktForm .wfield select {
  -webkit-appearance: none; appearance: none; padding-right: 44px !important; cursor: pointer;
  background: var(--tm-hell-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23383E42' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px !important;
}
#kontaktForm .wfield select:focus { background-color: #fff !important; }
#kontaktForm .wfield :is(input, select, textarea):focus { border-color: var(--tm-anthrazit) !important; }
#kontaktForm .wfield.invalid input { border-color: var(--thermo) !important; background-color: #fff !important; }
#kontaktForm .wcheck { margin: 4px 0 20px; line-height: 1.5; }
#kontaktForm .wcheck input { flex: none; }
#kontaktForm #kSubmit { width: 100%; justify-content: center; }
.kform__err { display: none; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--thermo); border-radius: 8px; background: #fff; color: var(--thermo); font-size: .92rem; }
.kform__err.on { display: block; }

/* ---------- Anfahrt ---------- */
.ka-karte { position: relative; background: var(--tm-hell-2); }
.ka-karte__feld { position: relative; height: clamp(520px, 44vw, 640px); background: #E7E9EB; }
.ka-karte__feld iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.ka-karte__platz {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px min(46vw, 620px) 24px 24px; text-align: center; color: var(--tm-text-2);
}
.ka-karte__platz[hidden] { display: none; }
.ka-karte__platz svg { width: 40px; height: 40px; margin-bottom: 14px; fill: none; stroke: var(--tm-anthrazit); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ka-karte__hinweis { margin: 0; color: var(--tm-text); font-size: 1.15rem; font-weight: 600; }
.ka-karte__daten { margin: 4px 0 18px; font-size: .92rem; }
.ka-karte__wrap { position: absolute; top: clamp(28px, 4vw, 56px); right: max(24px, calc((100vw - 1160px) / 2)); width: min(400px, 36vw); pointer-events: none; }
.ka-karte__karte { pointer-events: auto; padding: clamp(24px, 2.6vw, 36px); background: #fff; border: 1px solid var(--tm-linie-hell); border-radius: 10px; box-shadow: 0 26px 54px -30px rgba(31, 35, 38, .55); }
.ka-karte__karte h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--tm-text); }
.ka-karte__karte address { font-style: normal; font-size: 1.06rem; line-height: 1.5; color: var(--tm-text); }
.ka-karte__karte h3 { margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--tm-linie-hell); font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--tm-text-3); }
.ka-karte__karte p { margin: 0; font-size: .97rem; line-height: 1.55; color: var(--tm-text-2); }
.ka-karte__karte .ka-karte__leise { margin-top: 8px; color: var(--tm-text-3); font-size: .92rem; }
.ka-route { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 600; color: var(--tm-anthrazit); }
.ka-route svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ka-route:hover svg { transform: translateX(3px); }

/* ---------- Einblenden: nur transform/opacity ---------- */
@keyframes ka-auf { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.js .ka-ein { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--e-out), transform .7s var(--e-out); }
html.js .ka-ein.ist-da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .ka-ein { opacity: 1; transform: none; transition: none; }
  .ka-route svg, .ka-nummer__art svg { transition: none; }
}

/* ---------- Schmal ---------- */
@media (max-width: 960px) {
  .ka-kopf__unten { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .ka-leise { width: auto; padding-bottom: 0; }
  .ka-tafel { grid-template-columns: minmax(0, 1fr); }
  .ka-tafel__info { order: 0; }
  .ka-karte__wrap { position: static; width: auto; padding: 0 16px 40px; margin-top: -32px; pointer-events: auto; }
  .ka-karte { padding-bottom: 0; }
  .ka-karte__feld { height: 420px; }
  .ka-karte__platz { padding: 24px 24px 56px; }
  .ka-karte__karte { position: relative; }
}
@media (max-width: 640px) {
  .ka-kopf__oben { display: block; }
  .ka-zeit { margin-top: 12px; text-align: left; }
  /* Handy (18.11.2026): oben nur Überschrift, Erreichbarkeit, Nummer. Feste Zeiten stehen unten in der Tafel (.ka-zeiten);
     ohne Status (JS aus) bleiben sie sichtbar. Der Satz „Lieber schriftlich?“ rückt unter WhatsApp/E-Mail. */
  .ka-zeit__status:not([hidden]) + .ka-zeit__fest { display: none; }
  .ka-nummer { margin-top: 22px; }
  .ka-leise { display: flex; flex-direction: column; padding-top: 14px; }
  .ka-leise p { order: 3; margin: 6px 0 0; font-size: .86rem; }
  .ka-leise a { min-height: 40px; }
  .ka-chef__bild { width: 104px; }
  .ka-chef__text { padding: 16px 0 20px; }
  .ka-chef__satz { font-size: 1rem; line-height: 1.4; }
  .ka-chef__name { margin-top: 10px; font-size: .86rem; }
  .kform__zwei { grid-template-columns: minmax(0, 1fr); }
  .ka-karte__feld { height: 360px; }
}

/* Nachträge: Sprungziele frei von der festen Navigation; Infoblock ruhiger füllen */
#formular, #anfahrt { scroll-margin-top: 96px; }
@media (min-width: 961px) {
  .ka-tafel__info h3 { margin-top: 40px; }
  .ka-person + h3 { margin-top: 34px; }
  .ka-zeiten div { padding: 10px 0; font-size: 1.05rem; }
  .ka-liste { gap: 16px; }
}
