/* Kundenkonto 01.11. (Plan data/plaene/KUNDENKONTO-SELBST-ERSTELLEN.md): ruhige Bausteine für «Kundenkonto erstellen» bzw. «Unternehmenskonto erstellen» und das
   Firmenprofil im Kunden-Portal. Eingebunden in registrieren.html und kunde.html nach portal.css. Gleiche Token wie aussen-basis.css, keine neuen Farben,
   keine Hinweis-Kästen. Handy zuerst (390 px): alles eine Spalte, feste Spalte für Bild bzw. Logo links, Text linksbündig, Knopf rechts. */

/* ---------- Treffer aus dem Handelsregister ---------- */
.kk-hr-liste { display: flex; flex-direction: column; gap: 8px; }
.kk-hr-liste:empty { display: none; }
.kk-hr-leer { margin: 0; font-size: 14px; color: var(--muted); }
.kk-treffer { text-align: left; font: inherit; color: var(--text); background: var(--feld); cursor: pointer; }
.kk-treffer:hover { background: var(--hover); }
.kk-treffer > svg.i { width: 20px; height: 20px; flex: none; }

/* Gewählte Firma: Name gross, darunter Rechtsform, Adresse und UID als ruhige Zeilen */
.kk-hr { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--flaeche-2); }
.kk-hr-lbl { font-size: 12.5px; font-weight: 700; color: var(--muted-2); }
.kk-hr-name { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.kk-hr .knopf.leise { align-self: flex-start; padding: 0; min-height: 36px; }
.kk-zeilen { display: grid; gap: 6px; margin: 0; }
.kk-zeilen > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kk-zeilen dt { font-size: 13px; color: var(--muted); }
.kk-zeilen dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Webseite und Logo aus der E-Mail ---------- */
#rg-web:empty { display: none; }
.kk-web { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; margin-top: 4px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--flaeche-2); }
.kk-web-logo { width: 56px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; }
.kk-web-logo img { max-width: 48px; max-height: 40px; object-fit: contain; }
.kk-web-logo.leer { background: var(--flaeche); color: var(--muted); }
.kk-web-logo.leer svg.i { width: 22px; height: 22px; }
.kk-web-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.kk-web-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-web-text span { font-size: 13px; color: var(--muted); }
.kk-web .knopf.leise { min-height: 40px; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
/* Kundenkonto 01.11. (Nachtrag 18:45): HIN-Adresse, freiwilliges Feld Webseite unter der E-Mail (gleiche Abstände wie ein Feld) */
.kk-web-frei { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-top: 10px; }

/* ---------- Kunden-Portal: Firmenprofil bestätigen oder korrigieren ---------- */
.kk-profil { display: flex; flex-direction: column; gap: 16px; }
.kk-profil-kopf { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
.kk-profil-kopf .kk-web-logo { width: 64px; height: 56px; }
.kk-profil-kopf .kk-web-logo img { max-width: 56px; max-height: 46px; }
.kk-profil-kopf b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.kk-profil-kopf span.kk-unter { display: block; font-size: 13px; color: var(--muted); }
.kk-profil .kk-zeilen > div { grid-template-columns: 110px minmax(0, 1fr); }
.kk-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kk-knoepfe > .knopf { width: 100%; min-width: 0; }
.kk-form { display: flex; flex-direction: column; gap: 14px; }
.kk-form .p-eingaben2 { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.kk-stand { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 420px) {
  .kk-zeilen > div, .kk-profil .kk-zeilen > div { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .kk-web { grid-template-columns: 48px minmax(0, 1fr); padding: 8px 10px 8px 8px; }
  .kk-web-logo { width: 48px; height: 44px; }
  .kk-web-logo img { max-width: 42px; max-height: 36px; }
  .kk-web .knopf.leise { grid-column: 2; justify-self: start; padding: 0; min-height: 32px; }
  .kk-form .p-eingaben2 { grid-template-columns: 96px minmax(0, 1fr); }
}
