/* Karte zum Profil - eine Seite, ein Feld, ein Knopf. */

:root {
    --grund: #faf7fb;
    --karte: #ffffff;
    --text: #1f1a24;
    --leise: #6b6474;
    --rand: #e7e1ea;
    --marke: #c13584;
    --marke-dunkel: #97276a;
    --warnung: #b42318;
    --warnung-grund: #fff5f4;
    --gut: #067647;
    --radius: 16px;
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--grund);
    color: var(--text);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

.huelle { max-width: 30rem; margin: 0 auto; padding: 24px 16px 48px; }

.karte {
    background: var(--karte);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(31, 26, 36, .05);
}

.mitte { text-align: center; }

.kopfbild {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
}

h1 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin-bottom: 12px; }
p  { font-size: 15px; }
.leise { color: var(--leise); font-size: 14px; }
.mb    { margin-bottom: 16px; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

.feld-mit-zeichen { position: relative; }
.feld-mit-zeichen .zeichen {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--leise); font-size: 17px; pointer-events: none;
}

input[type="text"], input[type="password"], input[type="number"], select {
    width: 100%;
    font: inherit;
    font-size: 17px;                 /* unter 16px zoomt iOS beim Tippen hinein */
    padding: 13px 14px;
    border: 2px solid var(--rand);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
}
.feld-mit-zeichen input[type="text"] { padding-left: 32px; }
input:focus, select:focus { outline: none; border-color: var(--marke); }

.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    font: inherit; font-size: 16px; font-weight: 700;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    background: var(--marke); color: #fff;
}
.knopf:hover { background: var(--marke-dunkel); }
.knopf.zweit { background: transparent; color: var(--marke); border-color: var(--marke); }
.knopf.zweit:hover { background: #fdf4f9; }
.knopf.still { background: transparent; color: var(--leise); border-color: var(--rand); font-weight: 600; }
.knopf + .knopf { margin-top: 10px; }

.name {
    font-size: 24px; font-weight: 700; word-break: break-all;
    background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hinweis { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.hinweis.fehler { background: var(--warnung-grund); border: 1px solid #fecdca; color: var(--warnung); }
.hinweis.gut    { background: #edfdf3; border: 1px solid #a9efc5; color: var(--gut); }

.fuss { text-align: center; font-size: 12px; color: var(--leise); padding: 8px 0 0; }
.fuss a { color: var(--leise); }

/* --- Admin --- */
.breit { max-width: 72rem; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--rand); text-align: left; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); }
.zahlen { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.zahl { flex: 1 1 8rem; background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 14px; }
.zahl b { display: block; font-size: 22px; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.reihe > * { flex: 0 0 auto; }
.klein { font-size: 13px; padding: 7px 12px; width: auto; }
.rollbar { overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
