
/* ── Was die Projektkarte ersetzt: Abschnitt „Stammdaten“ je Anlagentyp und die Objektkarte (Felder bleiben im Formular) ── */
body.ltkh-an #k_sec0,body.ltkh-an #r_sec0,body.ltkh-an #kh_sec0,body.ltkh-an #spl_sec0,body.ltkh-an #kzObjektKarte{display:none!important;}
body.ltkk-an #ltkhKopf{display:none!important;}
#ltkhKopf [hidden],#ltkhKarte [hidden],#kzObjektModal .ltkh-dlg-kunde[hidden],#kzObjektModal .ltkh-dlg-kunde [hidden]{display:none!important;}

/* ── Kopf: Rahmen (Pfad über dem Titelknopf) ─────────────────────────────────────────────────────────────────────── */
.ltkh-kopf{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:0 1 auto;}
.ltkh-pfad{display:none;}
.ltkh-kunde{display:none;}
/* Ab 601 px Pfad mit Knöpfen (Maus, Stift, Tastatur); mit Finger als Hauptzeiger (pointer:coarse) weiter unten wieder aus */
@media (min-width:601px){
  .ltkh-kopf.ltkh-mitpfad>.ltkh-pfad:not([hidden]){display:flex;align-items:center;gap:2px;min-width:0;max-width:100%;
    font-family:var(--f-sans);font-size:12px;line-height:1.2;color:var(--c-brand-strong);}
  .ltkh-pfadk{flex:0 0 auto;display:inline-flex;align-items:center;min-height:24px;max-width:100%;background:none;border:0;padding:0 2px;
    margin:0 -2px;font:inherit;font-weight:600;color:inherit;cursor:pointer;border-radius:4px;}
  .ltkh-pfadk--kunde{flex:0 1 auto;min-width:0;}
  .ltkh-pfadk__t{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .ltkh-pfadk:hover .ltkh-pfadk__t,.ltkh-pfadk:hover{text-decoration:underline;text-underline-offset:2px;}
  .ltkh-pfadk:focus-visible{outline:2px solid var(--c-brand);outline-offset:1px;}
  .ltkh-pfadsep{flex:none;color:var(--c-dim);margin:0 3px;}
}
/* Handy und Finger: kein Pfad, Kunde als Textzeile im Titelknopf statt der Unterzeile (gleiche Höhe wie bisher) */
@media (pointer:coarse){
  .ltkh-kopf.ltkh-mitpfad>.ltkh-pfad:not([hidden]){display:none;}
}
@media (max-width:600px),(pointer:coarse){
  #kzKopfObjekt.ltkh-mitkunde>.ltkh-kunde:not([hidden]){display:block;font-family:var(--f-sans);font-size:12px;line-height:1.3;
    font-weight:600;color:var(--c-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
  #kzKopfObjekt.ltkh-mitkunde>.header-sub{display:none!important;}
}
@media (pointer:coarse) and (min-width:601px){
  #kzKopfObjekt.ltkh-mitkunde{display:flex;flex-direction:column;justify-content:center;min-height:44px;}
}

/* ── Projektkarte „Stammdaten“ ───────────────────────────────────────────────────────────────────────────────────── */
.ltkh-karte{display:block;}
.ltkh-karte__kopf{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 14px 12px 18px;border-bottom:1px solid var(--c-line);}
.ltkh-karte__titel{flex:1 1 auto;min-width:0;margin:0;}
.ltkh-karte .sec-badge{flex:none;}
.ltkh-aendern{flex:none;display:inline-flex;align-items:center;gap:7px;margin-left:auto;}
.ltkh-aendern .i{width:16px;height:16px;flex:none;}
.ltkh-liste{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:18px;row-gap:10px;margin:0;padding:14px 18px 6px;}
.ltkh-z{display:contents;}
.ltkh-liste dt{margin:0;font-family:var(--f-sans);font-size:13px;font-weight:500;line-height:1.45;color:var(--c-dim);}
.ltkh-liste dd{margin:0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;font-family:var(--f-sans);
  font-size:14px;line-height:1.45;color:var(--c-ink);overflow-wrap:anywhere;}
.ltkh-wert{max-width:100%;}
.ltkh-obj{font-weight:600;}
.ltkh-unter{max-width:100%;font-size:13px;color:var(--c-dim);}
.ltkh-leer{color:var(--c-dim);}
.ltkh-pflicht{color:var(--c-err);font-weight:600;}
.ltkh-karte__hinweis{margin:0;padding:6px 18px 14px;font-family:var(--f-sans);font-size:12.5px;line-height:1.45;color:var(--c-dim);}
/* Kunde: Knopf zur Kundenseite (sieht aus wie ein Verweis) */
.ltkh-kundek{position:relative;display:inline-flex;align-items:center;gap:3px;max-width:100%;min-height:24px;margin:-2px 0;padding:0;
  background:none;border:0;border-radius:4px;font:inherit;font-weight:600;color:var(--c-brand-strong);text-align:left;cursor:pointer;}
.ltkh-kundek__t{min-width:0;overflow-wrap:anywhere;}
.ltkh-kundek .i{flex:none;width:16px;height:16px;}
.ltkh-kundek:hover .ltkh-kundek__t{text-decoration:underline;text-underline-offset:2px;}
.ltkh-kundek:focus-visible{outline:2px solid var(--c-brand);outline-offset:2px;}
.ltkh-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
/* Finger: Ziel 44 px hoch, ohne die Zeile höher zu machen (Fläche reicht in den freien Raum ober- und unterhalb) */
@media (max-width:600px),(pointer:coarse){
  .ltkh-kundek{min-height:44px;margin:-10px 0;}
}
/* Breit: zwei Spaltenpaare (Kunde, Einsatzort | Ansprechpartner, Aufnahme am | Aufnahme durch) */
@media (min-width:900px){
  .ltkh-liste{grid-template-columns:max-content minmax(0,1fr) max-content minmax(0,1fr);column-gap:20px;}
}
/* Desktop mit Seitenleiste: bündig mit den Abschnitten (.main>div höchstens 1040 px, mittig; Kopf wie .sec-hdr) */
@media (min-width:1100px){
  .main>.ltkh-karte{max-width:1040px;margin-left:auto;margin-right:auto;}
  .ltkh-karte__kopf{padding:13px 20px;}
  .ltkh-liste{padding:14px 20px 6px;}
  .ltkh-karte__hinweis{padding:6px 20px 14px;}
}
/* Handy */
@media (max-width:600px){
  .ltkh-karte__kopf{padding:10px 12px 10px 14px;gap:8px 10px;}
  .ltkh-karte__sym{display:none!important;}
  .ltkh-liste{column-gap:12px;row-gap:9px;padding:12px 14px 4px;}
  .ltkh-karte__hinweis{padding:6px 14px 12px;}
}
@media (max-width:359px){
  .ltkh-karte .sec-badge{display:none;}
}

/* ── Dialog „Stammdaten des Projekts“ (#kzObjektModal): ergänzte Felder und Kunde ──────────────────────────────────── */
#kzObjektModal .ltkh-flbl{font-family:var(--f-sans);font-size:13px;font-weight:500;color:var(--c-text);}
#kzObjektModal .ltkh-f-land .rg{margin-top:2px;}
.ltkh-dlg-kunde{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:-6px 0 14px;font-family:var(--f-sans);font-size:13.5px;color:var(--c-ink);}
.ltkh-dlg-kunde__t{font-weight:600;min-width:0;overflow-wrap:anywhere;}
#kzObjektModal :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea,select):is([readonly],:disabled){
  background:var(--c-surface-2);color:var(--c-text);-webkit-text-fill-color:var(--c-text);opacity:1;cursor:default;}
#kzObjektModal :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea,select):is([readonly],:disabled):not(:focus){border-color:var(--c-line-strong);}
#kzObjektModal :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea):is([readonly],:disabled)::placeholder{color:transparent;-webkit-text-fill-color:transparent;opacity:0;}
#kzObjektModal .rg input[type=radio]:disabled+label{cursor:default;}
#kzObjektModal .rg input[type=radio]:disabled:not(:checked)+label,#kzObjektModal .rg input[type=radio]:disabled:not(:checked)+label:hover{
  background:var(--c-surface-2);border-color:var(--c-line);color:var(--c-dim);}

@media print{
  #ltkPfad,.ltkh-aendern,.ltkh-kundek .i{display:none!important;}
}
