/* Gemeinsame Karten und Formulare fuer Einstieg und Profil. */
.tt-page {
    --tt-brand: #ac012c;
    --tt-ink: #202536;
    --tt-muted: #60687a;
    --tt-line: #d8dce8;
    --tt-soft: #f7f8fc;
    max-width: 1120px;
    margin: 32px auto;
    color: var(--tt-ink);
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.tt-page, .tt-page * { box-sizing: border-box; }
.tt-page h1, .tt-page h2, .tt-page h3 { color: var(--tt-ink); line-height: 1.25; text-shadow: none; }
.tt-page h1 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 16px; }
.tt-page h2 { font-size: 21px; margin: 0 0 12px; }
.tt-page h3 { font-size: 17px; margin: 0 0 8px; }
.tt-page p { margin: 0 0 16px; }
.tt-page a { color: var(--tt-brand); }
.tt-page :is(a, button, input):focus-visible { outline: 3px solid #6376ff; outline-offset: 2px; }
.tt-kicker { color: var(--tt-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tt-copy { color: var(--tt-muted); max-width: 64ch; }
.tt-card { padding: 24px; border: 1px solid var(--tt-line); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.04); min-width: 0; }
.tt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 0; }
.tt-page .tt-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--tt-line); border-radius: 8px; background: #fff; color: var(--tt-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; margin: 0; }
.tt-page .tt-button:hover { background: var(--tt-soft); }
.tt-page .tt-button-primary { background: var(--tt-brand); border-color: var(--tt-brand); color: #fff; }
.tt-page .tt-button-primary:hover { background: #8f0024; border-color: #8f0024; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.tt-note { padding: 16px 18px; background: #f6f7fa; border-left: 4px solid #8a93a8; border-radius: 8px; margin: 16px 0; }
.tt-page .red { padding: 16px 18px; background: #fdebed; color: #a31d31; border-radius: 8px; }
.tt-note-ok { background: #e7f6ec; color: #176433; border-color: #176433; }
.tt-note-danger { background: #fdebed; color: #a31d31; border-color: #a31d31; }
.tt-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; padding: 36px; background: var(--tt-soft); border: 1px solid var(--tt-line); border-radius: 10px; align-items: center; }
.tt-hero h1 { font-size: clamp(30px, 3.7vw, 46px); max-width: 18ch; }
.tt-brand-mark { display: block; width: 52px; height: 52px; object-fit: contain; margin-bottom: 16px; }
.tt-section { margin-top: 28px; }
.tt-document-list { display: grid; gap: 12px; }
.tt-document { padding: 16px 18px; border-radius: 8px; border: 1px solid var(--doc-accent-strong); background: var(--doc-accent-soft); color: var(--doc-overview-accent-ink); }
.tt-document strong { display: block; font-size: 16px; }
.tt-document span { font-size: 13px; }
.tt-login { max-width: 940px; }
.tt-login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tt-login-intro { padding: 24px 12px 24px 0; }
.tt-login form { margin: 0; }
.tt-field { margin-bottom: 18px; }
.tt-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.tt-page .tt-field input { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--tt-line); border-radius: 8px; background: #fff; color: var(--tt-ink); font: inherit; margin: 0; }
.tt-page .tt-field input:focus { border-color: #6376ff; }
.tt-login-submit { width: 100%; }
.tt-login-help { font-size: 13px; margin-top: 18px !important; text-align: center; }
.profile-page { max-width: 1000px; }
.profile-heading { margin-bottom: 24px; }
.profile-summary { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.profile-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 112px; width: 112px; height: 112px; border-radius: 10px; border: 1px solid var(--tt-line); background: var(--tt-soft); color: var(--tt-muted); overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .material-icons { font-size: 48px; }
.profile-contact { display: grid; gap: 12px; }
.profile-contact > div { padding: 12px 16px; border-radius: 8px; background: var(--tt-soft); }
.profile-contact span { font-size: 15px !important; text-shadow: none !important; color: inherit !important; }
.profile-page form { padding: 24px; border: 1px solid var(--tt-line); border-radius: 10px; background: #fff; }
.profile-page input[type=file] { width: 100%; max-width: 100%; font: inherit; }
.profile-page img { max-width: 100%; height: auto; }
.profile-avatar img { height: 100%; }
.profile-page .privacyInnerContainer { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #e3e6ec; }
.profile-page .privacySettingDescription { flex: 1; min-width: 0; }
.profile-page .privacySettingDescription p { margin: 0; }
.profile-page .privacySettingSwitch { flex: 0 0 60px; }
.profile-page .switchCheckbox { display: block; position: relative; width: 60px; height: 44px; }
.profile-page .switchCheckbox input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.profile-page .sliderCheckbox { position: absolute; inset: 5px 0; border-radius: 17px; background: #8a93a8; pointer-events: none; }
.profile-page .sliderCheckbox:before { content: ''; position: absolute; width: 26px; height: 26px; left: 4px; top: 4px; background: #fff; border-radius: 50%; }
.profile-page input:checked + .sliderCheckbox { background: var(--tt-brand); }
.profile-page input:checked + .sliderCheckbox:before { transform: translateX(26px); }
.profile-page input:focus-visible + .sliderCheckbox { outline: 3px solid #6376ff; outline-offset: 2px; }
.profile-page input[type=submit] { min-height: 44px; padding: 10px 18px; border: 1px solid var(--tt-brand); border-radius: 8px; background: var(--tt-brand); color: #fff !important; font: inherit; font-weight: 700; margin-top: 20px; cursor: pointer; }
.profile-page input[type=submit]:hover { background: #8f0024; border-color: #8f0024; }
.profile-page hr { border: 0; border-top: 1px solid var(--tt-line); margin: 16px 0; }
.profile-page .privacyInnerContainer + h2 { margin-top: 24px; }
@media (max-width: 720px) {
    .tt-page { margin: 20px 0; }
    .tt-card, .tt-hero, .profile-page form { padding: 20px; }
    .tt-hero, .tt-login-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .tt-login-intro { padding: 0; }
    .tt-actions { align-items: stretch; }
    .tt-actions .tt-button { width: 100%; }
    .profile-summary { align-items: flex-start; flex-direction: column; gap: 16px; }
    .profile-avatar { flex-basis: 88px; width: 88px; height: 88px; }
}
