/* ── PROFIL (Inhaltsansicht) ──────────────────────────────────────
   Hell, im Schriftbild der übrigen Inhaltsseiten. Die Felder tragen
   dieselben Beschriftungen wie die Registrierung im Kreis, aber nicht
   deren Weiß auf Schwarz.                                          */

/* Klassen mit eigenem display sollen hidden nicht überstimmen. Die
   Benutzerkonten (team.css) und die Verwaltung (admin.css) bauen auf
   denselben Bausteinen auf. */
:is(#profile-view, #team-view, #company-view, #admins-view, #customers-view) [hidden] {
  display: none !important;
}

.pf-sec + .pf-sec {
  margin-top: 48px;
}
.pf-head {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 18px;
}

/* Beschriftung wie in der Registrierung: klein, gesperrt, Versalien */
.pf-dl dt,
.pf-lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 5px;
}
.pf-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0;
}
.pf-dl > div.wide {
  grid-column: 1 / -1;
}
.pf-dl dd,
.pf-value {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
  overflow-wrap: anywhere;
}
/* Anschriften kommen als Zeilen (\n) aus profile-view.js. Nur dort
   pre-line — am dd selbst würde der Umbruch im Markup mitgezählt. */
#pf-r-address,
#pf-r-billing {
  white-space: pre-line;
}

.pf-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

/* ── Formular ── */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.pf-f.wide {
  grid-column: 1 / -1;
}
.pf-f input,
.pf-f select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 6px 0;
  outline: none;
  transition: border-color 0.15s;
}
.pf-f input:focus,
.pf-f select:focus {
  border-bottom-color: var(--black);
}
.pf-f input:disabled {
  color: var(--mid);
}
.pf-email-form {
  margin-top: 18px;
}
.pf-email-form .pf-f + .pf-f {
  margin-top: 16px;
}
.pf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  cursor: pointer;
}
.pf-check input {
  accent-color: var(--black);
  margin: 0;
}

/* ── Knöpfe und Meldungen ── */
.pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.pf-btn,
.pf-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition:
    color 0.15s,
    background 0.15s,
    opacity 0.15s;
}
.pf-btn {
  color: var(--black);
  border: 1px solid var(--black);
  padding: 9px 18px;
}
.pf-btn:hover:not(:disabled) {
  background: var(--black);
  color: var(--white);
}
.pf-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.pf-link {
  color: var(--mid);
  border: none;
  padding: 0;
  white-space: nowrap;
}
.pf-link:hover {
  color: var(--black);
}
#content-body :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view) .pf-msg,
#content-body :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view) .pf-hint,
#content-body
  :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view)
  .pf-empty {
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
}
#content-body :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view) .pf-msg {
  color: var(--red);
}
#content-body
  :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view)
  .pf-msg:empty {
  display: none;
}
#content-body :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view) .pf-hint,
#content-body
  :is(#profile-view, #team-view, #company-view, #admins-view, #customers-view)
  .pf-empty {
  color: var(--mid);
}

/* Rechnungszeile: Nummer und Datum, Betrag, Download */
.invoice-row {
  gap: 16px;
}
.invoice-amount {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  margin-left: auto;
  white-space: nowrap;
}
a.invoice-dl {
  text-decoration: none;
}

@media (max-width: 600px) {
  .pf-dl,
  .pf-grid {
    grid-template-columns: 1fr;
  }
}
