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

:root {
    --blue: #2563EB;
    --blue-dark: #1E40AF;
    --accent: #06B6D4;
    --accent-dark: #0891B2;
    --green: #22C55E;
    --bg: #F6F8FC;
    --text: #172033;
    --muted: #6B7280;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --danger-bg: #FEE2E2;
    --danger: #991B1B;
    --success-bg: #DCFCE7;
    --success: #166534;
    --shadow: 0 24px 60px rgba(23, 32, 51, 0.10);
    --radius: 28px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(6,182,212,0.13), transparent 32%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; }

.site-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    letter-spacing: -1px;
}

.top-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 700; }
.top-nav a { text-decoration: none; }

main { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 15px 24px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(37,99,235,0.25);
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary { background: white; color: var(--text); box-shadow: 0 14px 30px rgba(23,32,51,0.08); }
.btn-outline { background: white; color: var(--blue); box-shadow: none; border: 1px solid var(--border); }
.btn-small { padding: 10px 16px; font-size: 14px; }

.eyebrow {
    display: inline-flex;
    background: rgba(37,99,235,0.10);
    color: var(--blue-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-text { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 650px; margin-bottom: 32px; }
.muted { color: var(--muted); line-height: 1.5; }

/* Landing */
.landing-hero { min-height: 610px; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 54px; }
.hero-content h1 { font-size: clamp(48px, 7vw, 82px); line-height: 0.95; letter-spacing: -4px; max-width: 760px; margin-bottom: 20px; }
.hero-subline { font-size: 27px; line-height: 1.35; color: var(--text); margin-bottom: 16px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.trust-text { color: var(--muted); font-weight: 700; }

.hero-visual { position: relative; min-height: 470px; border-radius: 38px; background: linear-gradient(160deg, rgba(37,99,235,0.12), rgba(6,182,212,0.14)), white; box-shadow: var(--shadow); padding: 34px; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; background: rgba(6,182,212,0.17); border-radius: 50%; }
.hero-visual::after { content: ""; position: absolute; width: 190px; height: 190px; left: -70px; bottom: -70px; background: rgba(37,99,235,0.13); border-radius: 50%; }
.dance-orbit { position: absolute; inset: 0; }
.circle { position: absolute; display: flex; align-items: center; justify-content: center; background: white; box-shadow: 0 18px 45px rgba(23,32,51,0.10); }
.circle-main { width: 170px; height: 170px; border-radius: 52px; left: 50%; top: 47%; transform: translate(-50%, -50%); font-size: 78px; }
.circle-small { width: 82px; height: 82px; border-radius: 28px; font-size: 36px; }
.circle-small.one { left: 56px; top: 80px; }
.circle-small.two { right: 62px; bottom: 100px; }
.circle-small.three { right: 78px; top: 74px; }
.info-card { position: absolute; background: white; border-radius: 22px; padding: 16px 18px; box-shadow: 0 18px 45px rgba(23,32,51,0.10); max-width: 260px; z-index: 3; }
.info-card strong { display: block; font-size: 18px; margin-bottom: 5px; }
.info-card span { color: var(--muted); line-height: 1.35; }
.info-card.top { left: 34px; bottom: 80px; }
.info-card.bottom { right: 34px; top: 170px; }
.how-it-works { padding-top: 30px; }
.how-it-works h2 { font-size: 36px; letter-spacing: -1px; margin-bottom: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: white; border-radius: var(--radius); padding: 28px; box-shadow: 0 18px 45px rgba(23,32,51,0.06); }
.feature-icon { font-size: 34px; margin-bottom: 18px; }
.feature-card h3 { font-size: 22px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); line-height: 1.55; }

/* Forms */
.auth-page, .dashboard-page, .profile-page { max-width: 860px; margin: 0 auto; }
.auth-card, .form-card, .progress-card { background: white; border-radius: 34px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1, .page-head h1 { font-size: 44px; letter-spacing: -2px; margin-bottom: 10px; }
.form, .profile-form { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.form label, .profile-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 800; }
.form input, .form select, .profile-form input, .profile-form select, .profile-form textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; font-size: 17px; background: #fff; font-family: inherit;
}
.form textarea, .profile-form textarea { resize: vertical; }
.form input:focus, .form select:focus, .profile-form input:focus, .profile-form select:focus, .profile-form textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.notice { padding: 14px 16px; border-radius: 18px; margin: 20px 0; font-weight: 800; }
.notice.error { background: var(--danger-bg); color: var(--danger); }
.notice.success { background: var(--success-bg); color: var(--success); }
.form-grid.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.section-subtitle { margin-top: 28px; }

/* Dashboard */
.dashboard-page { display: flex; flex-direction: column; gap: 24px; }
.dashboard-hero { background: linear-gradient(135deg, rgba(37,99,235,0.95), rgba(6,182,212,0.88)); color: white; border-radius: 34px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; box-shadow: var(--shadow); }
.dashboard-hero .eyebrow { background: rgba(255,255,255,0.18); color: white; }
.dashboard-hero h1 { font-size: 44px; letter-spacing: -2px; margin-bottom: 8px; }
.dashboard-hero .hero-text { color: rgba(255,255,255,0.9); margin: 0; }
.avatar { width: 82px; height: 82px; border-radius: 28px; background: white; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 900; flex-shrink: 0; }
.big-action-card { background: white; border-radius: 34px; padding: 34px; display: flex; gap: 24px; align-items: center; text-decoration: none; box-shadow: var(--shadow); }
.big-action-card span { font-size: 56px; }
.big-action-card h2 { font-size: 34px; letter-spacing: -1px; margin-bottom: 8px; }
.big-action-card p { color: var(--muted); font-size: 18px; line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-card { background: white; border-radius: 26px; padding: 24px; text-decoration: none; box-shadow: 0 18px 45px rgba(23,32,51,0.06); display: flex; flex-direction: column; gap: 8px; }
.dash-card span { font-size: 32px; }
.dash-card strong { font-size: 19px; }
.dash-card small { color: var(--muted); line-height: 1.4; }
.progress-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.progress-card h2 { margin-bottom: 8px; }
.progress-card p { color: var(--muted); margin-bottom: 14px; }
.progress-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress-track div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent)); border-radius: 999px; }

/* Profile */
.page-head { margin-bottom: 24px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice-card { background: var(--bg); border: 1px solid transparent; border-radius: 22px; padding: 18px; cursor: pointer; }
.choice-card input { width: auto; margin-bottom: 10px; }
.choice-card span { font-size: 18px; }
.choice-card:has(input:checked) { background: rgba(37,99,235,0.10); border-color: rgba(37,99,235,0.35); }
.dance-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.dance-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: center; background: var(--bg); border-radius: 22px; padding: 14px; }
.dance-check { flex-direction: row !important; align-items: center; }
.dance-check input { width: auto; }
.sticky-actions { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 12px; background: rgba(246,248,252,0.88); backdrop-filter: blur(8px); padding: 14px; border-radius: 24px; }

.site-footer { max-width: 1180px; margin: 0 auto; padding: 26px 24px 40px; color: var(--muted); display: flex; gap: 10px; justify-content: center; }
.site-footer strong { color: var(--text); }

@media (max-width: 850px) {
    .site-header { padding: 18px; }
    .top-nav { gap: 12px; font-size: 14px; }
    .top-nav a:not(.btn) { display: none; }
    main { padding: 18px 18px 50px; }
    .landing-hero { grid-template-columns: 1fr; gap: 30px; min-height: auto; padding-top: 20px; }
    .hero-content h1 { font-size: 54px; letter-spacing: -3px; }
    .hero-subline { font-size: 22px; }
    .hero-text { font-size: 19px; }
    .hero-visual { min-height: 390px; padding: 22px; border-radius: 30px; }
    .circle-main { width: 145px; height: 145px; font-size: 64px; }
    .feature-grid, .dashboard-grid, .form-grid.two, .choice-grid { grid-template-columns: 1fr; }
    .dashboard-hero, .progress-card { flex-direction: column; align-items: flex-start; }
    .dance-row { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; align-items: center; }
}

@media (max-width: 430px) {
    .brand { font-size: 20px; }
    .brand-mark { width: 38px; height: 38px; }
    .hero-content h1 { font-size: 43px; }
    .hero-actions, .sticky-actions { flex-direction: column; }
    .btn { width: 100%; }
    .auth-card, .form-card, .progress-card { padding: 24px; border-radius: 28px; }
    .auth-card h1, .dashboard-hero h1, .page-head h1 { font-size: 36px; }
    .dashboard-hero, .big-action-card { padding: 24px; border-radius: 28px; }
}

/* Dance cards - Profilseite */
.dance-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.dance-card {
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 18px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dance-card.is-selected {
    background: white;
    border-color: rgba(37,99,235,0.32);
    box-shadow: 0 16px 38px rgba(23,32,51,0.08);
}

.dance-toggle {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    cursor: pointer;
    margin-bottom: 14px;
}

.dance-toggle input {
    width: 20px !important;
    height: 20px;
    accent-color: var(--blue);
}

.dance-toggle span {
    font-size: 20px;
    font-weight: 900;
}

.level-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.level-pill {
    display: block !important;
    cursor: pointer;
}

.level-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.level-pill span {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 13px;
    background: white;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid var(--border);
    transition: all .15s ease;
}

.level-pill input:checked + span {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.13));
    color: var(--blue-dark);
    border-color: rgba(37,99,235,0.30);
}

.dance-card:not(.is-selected) .level-grid {
    display: none;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 850px) {
    .dance-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Profil v3: kompakte Tanz-Dropdowns */
.dance-list.compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dance-select-row {
    display: grid !important;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 16px !important;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px 14px;
}

.dance-select-row > span {
    font-size: 17px;
    font-weight: 900;
}

.dance-select-row select {
    background: white;
}

/* Suche */
.search-page {
    max-width: 980px;
    margin: 0 auto;
}

.search-filter-card {
    margin-bottom: 24px;
}

.filter-dances {
    margin-top: 22px;
}

.filter-dances > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
}

.dance-check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dance-check-grid label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    background: var(--bg);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
}

.dance-check-grid input {
    width: auto !important;
    accent-color: var(--blue);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.small-note {
    font-size: 14px;
    margin-top: 14px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.person-card {
    background: white;
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(23,32,51,0.07);
}

.person-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.avatar.small {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.16));
}

.person-head h2 {
    font-size: 28px;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.person-text {
    color: var(--text);
    line-height: 1.55;
    margin: 12px 0 16px;
}

.person-dances {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.person-dances span {
    background: rgba(37,99,235,0.09);
    color: var(--blue-dark);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 14px;
}

.person-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

@media (max-width: 850px) {
    .dance-select-row {
        grid-template-columns: 1fr;
    }

    .dance-check-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 430px) {
    .dance-check-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .person-actions {
        flex-direction: column;
    }
}

/* Profilbild Upload */
.photo-upload-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0 24px;
    padding: 18px;
    border-radius: 24px;
    background: var(--bg);
}

.avatar.large {
    width: 96px;
    height: 96px;
    border-radius: 30px;
    font-size: 42px;
    background: white;
    box-shadow: 0 12px 28px rgba(23,32,51,0.07);
}

.photo-upload-label {
    flex: 1;
}

.photo-upload-label input {
    margin-top: 8px;
}

.photo-upload-label small {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.4;
}

.all-dances-check {
    background: rgba(37,99,235,0.12) !important;
    color: var(--blue-dark);
    font-weight: 900;
}

code {
    background: rgba(37,99,235,0.10);
    color: var(--blue-dark);
    padding: 2px 6px;
    border-radius: 8px;
}

@media (max-width: 520px) {
    .photo-upload-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Profilbild v5 */
.profile-photo-preview {
    width: 112px;
    height: 112px;
    border-radius: 30px;
    overflow: hidden;
    background: white;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 900;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(23,32,51,0.07);
    border: 1px solid var(--border);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-photo-preview.empty {
    cursor: default;
}

@media (max-width: 520px) {
    .profile-photo-preview {
        width: 100%;
        height: 180px;
        border-radius: 28px;
    }
}


/* Bild-Lightbox */
.avatar {
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
}

.avatar-click {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avatar-click:hover,
.profile-photo-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(23,32,51,0.14);
}

body.lightbox-open {
    overflow: hidden;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.image-lightbox img {
    max-width: min(92vw, 760px);
    max-height: 86vh;
    border-radius: 34px;
    object-fit: contain;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    background: white;
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: white;
    color: var(--text);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

@media (max-width: 520px) {
    .image-lightbox {
        padding: 14px;
    }

    .image-lightbox img {
        max-width: 94vw;
        max-height: 82vh;
        border-radius: 26px;
    }
}

.place-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.place-suggestions small {
    width: 100%;
    color: var(--muted);
    font-weight: 700;
}

.place-suggestion-btn {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    cursor: pointer;
}

.place-suggestion-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Sucheinstellungen einklappbar */
.search-filter-card summary {
    list-style: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-filter-card summary::-webkit-details-marker {
    display: none;
}

.search-filter-card summary::after {
    content: "+";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.search-filter-card[open] summary::after {
    content: "–";
}

.search-filter-form {
    margin-top: 22px;
}
.search-filter-form select {
    min-height: 58px;
    font-size: 18px;
    padding: 16px 18px;
}

.search-filter-form label {
    font-size: 17px;
}

.avatar-click {
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

.avatar-click:hover {
    transform: translateY(-1px);
}


@media (max-width: 700px) {
    .search-filter-form select,
    .search-filter-form input {
        min-height: 62px;
        font-size: 19px;
    }
}

/* Sprint 2: Suche als Cards */
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.people-grid .empty-state {
    grid-column: 1 / -1;
}

.person-tile {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(23,32,51,0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.person-tile-photo {
    display: flex;
    height: 260px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.16));
    color: var(--blue);
    text-decoration: none;
    font-size: 78px;
    font-weight: 900;
    overflow: hidden;
}

.person-tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-tile-body {
    padding: 20px 20px 10px;
    flex: 1;
}

.person-tile-body h2 {
    font-size: 26px;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.person-snippet {
    margin-top: 14px;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.person-tile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
}

.inline-form {
    display: contents;
}

/* Öffentliches Profil */
.public-profile-page {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.public-profile-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: center;
}

.public-profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.16));
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 96px;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(23,32,51,0.08);
}

.public-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-profile-info h1 {
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 14px;
}

.profile-action-row,
.profile-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.profile-section-card h2,
.buddy-section h2 {
    font-size: 28px;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.profile-long-text {
    font-size: 18px;
    line-height: 1.65;
}

.dance-profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dance-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--bg);
}

.dance-profile-row span {
    color: var(--blue-dark);
    font-weight: 800;
    text-align: right;
}

/* DanceBuddies + Chat */
.buddy-section + .buddy-section {
    margin-top: 22px;
}

.buddy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buddy-row {
    background: white;
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(23,32,51,0.06);
}

.buddy-row > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.buddy-row strong {
    font-size: 19px;
}

.buddy-row small {
    color: var(--muted);
}

.buddy-row em {
    font-style: normal;
    background: rgba(37,99,235,0.10);
    color: var(--blue-dark);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 13px;
}

.chat-page {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-head h1 {
    font-size: 42px;
    letter-spacing: -2px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
}

.message-bubble {
    max-width: 78%;
    padding: 13px 15px;
    border-radius: 20px;
    background: var(--bg);
    align-self: flex-start;
}

.message-bubble.me {
    background: linear-gradient(135deg, rgba(37,99,235,0.95), rgba(6,182,212,0.88));
    color: white;
    align-self: flex-end;
}

.message-bubble p {
    line-height: 1.45;
}

.message-bubble small {
    display: block;
    margin-top: 6px;
    opacity: 0.72;
    font-size: 12px;
}

.chat-compose {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-compose label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 800;
}

.chat-compose textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 17px;
    background: #fff;
    font-family: inherit;
    resize: vertical;
}

@media (max-width: 980px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .people-grid {
        grid-template-columns: 1fr;
    }

    .person-tile-photo {
        height: 300px;
    }

    .public-profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-action-row,
    .profile-bottom-actions {
        flex-direction: column;
    }

    .dance-profile-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dance-profile-row span {
        text-align: left;
    }

    .message-bubble {
        max-width: 92%;
    }
}

/* Sprint 2 v14: kompaktere UI */
.dashboard-hero .eyebrow { display: none; }
.dashboard-hero { padding: 28px; }
.dashboard-hero h1 { font-size: clamp(34px, 5vw, 46px); }
.dashboard-hero .hero-text { font-size: 18px; }

.onboarding-card {
    align-items: flex-start;
}
.onboarding-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.onboarding-checks span {
    background: var(--bg);
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
}
.onboarding-checks span.done {
    background: rgba(34,197,94,0.12);
    color: var(--success);
}

.people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.person-tile {
    border-radius: 24px;
    position: relative;
}

.person-tile-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.person-tile-photo {
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: 54px;
}

.person-tile-body {
    display: block;
    padding: 13px 13px 8px;
}

.person-tile-body strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.4px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.person-tile-body small {
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-tile-body em,
.person-snippet {
    display: -webkit-box;
    margin-top: 8px;
    color: var(--text);
    font-style: normal;
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.person-tile-actions.compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 9px 11px 12px;
}

.icon-btn {
    width: 100%;
    height: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: white;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: none;
    font-family: inherit;
}

.icon-btn.active {
    background: rgba(37,99,235,0.10);
    border-color: rgba(37,99,235,0.28);
    color: var(--blue-dark);
}

.person-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(23,32,51,0.10);
}

.profile-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 14px 0 4px;
}

.profile-meta-pills span {
    background: var(--bg);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 900;
}

.public-profile-info h1 {
    font-size: clamp(42px, 6vw, 66px);
}

.chat-page {
    max-width: 860px;
}

.chat-head {
    padding: 18px 22px;
}

.chat-head .eyebrow {
    display: none;
}

.chat-head h1 {
    font-size: 32px;
}

.message-list {
    max-height: calc(100vh - 330px);
    min-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.chat-compose {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    box-shadow: 0 18px 50px rgba(23,32,51,0.12);
    padding: 16px;
}

.chat-compose textarea {
    min-height: 54px;
    max-height: 150px;
}

@media (max-width: 980px) {
    .people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .person-tile {
        border-radius: 20px;
    }

    .person-tile-photo {
        height: auto;
        aspect-ratio: 1 / 1;
        font-size: 42px;
    }

    .person-tile-body {
        padding: 11px 11px 7px;
    }

    .person-tile-body strong {
        font-size: 16px;
    }

    .person-tile-body small,
    .person-tile-body em {
        font-size: 12px;
    }

    .person-tile-actions.compact {
        gap: 6px;
        padding: 8px 9px 10px;
    }

    .icon-btn {
        height: 36px;
        border-radius: 13px;
        font-size: 16px;
    }

    .dashboard-hero {
        padding: 22px;
    }

    .dashboard-hero h1 {
        font-size: 34px;
    }

    .big-action-card h2 {
        font-size: 28px;
    }

    .message-list {
        max-height: calc(100vh - 280px);
        min-height: 300px;
        padding: 16px;
    }

    .chat-compose {
        bottom: 8px;
        border-radius: 24px;
    }
}

/* Push / Benachrichtigungen */
.push-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: var(--bg);
}

.push-panel .btn {
    margin-bottom: 10px;
}

.push-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.toggle-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
    cursor: pointer;
}

.toggle-row input {
    width: 22px !important;
    height: 22px;
    accent-color: var(--blue);
}

.toggle-row span {
    font-weight: 900;
}

/* Beta 0.2.2 PWA Install */
.pwa-install-card {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    max-width: 720px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(23,32,51,0.18);
    padding: 18px 54px 18px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.pwa-install-card[hidden] { display: none; }
.pwa-install-card strong { font-size: 18px; display: block; margin-bottom: 4px; }
.pwa-install-card p { color: var(--muted); margin: 0; line-height: 1.4; }
.pwa-install-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 620px) {
    .pwa-install-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 52px 18px 18px;
    }
    .pwa-install-card .btn { width: auto; }
}

/* Beta 0.2.2.1 */
.remember-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    font-weight: 800;
    color: var(--text);
}

.remember-row input {
    width: 20px !important;
    height: 20px;
    accent-color: var(--blue);
}


/* Beta 0.2.2: Chat - nur Nachrichten scrollen */
.chat-page {
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
    min-height: 520px;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-head {
    flex: 0 0 auto;
}

.message-list {
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 18px;
}

.chat-compose {
    flex: 0 0 auto;
    position: relative !important;
    bottom: auto !important;
    z-index: 40;
    box-shadow: 0 18px 50px rgba(23,32,51,0.12);
    padding: 14px;
}

.chat-compose label {
    gap: 6px;
}

.chat-compose textarea {
    min-height: 50px;
    max-height: 120px;
}

@media (max-width: 700px) {
    main {
        padding-bottom: 12px;
    }

    .chat-page {
        height: calc(100vh - 105px);
        height: calc(100dvh - 105px);
        min-height: 0;
        gap: 10px;
    }

    .chat-head {
        padding: 12px 14px;
        border-radius: 22px;
    }

    .chat-head .avatar.small {
        width: 50px;
        height: 50px;
        border-radius: 18px;
        font-size: 22px;
    }

    .chat-head h1 {
        font-size: 25px;
        letter-spacing: -1px;
    }

    .chat-head .muted {
        font-size: 13px;
    }

    .message-list {
        padding: 12px;
        border-radius: 22px;
    }

    .message-bubble {
        max-width: 86%;
        padding: 11px 13px;
        border-radius: 18px;
    }

    .chat-compose {
        padding: 12px;
        border-radius: 22px;
    }

    .chat-compose textarea {
        min-height: 46px;
        padding: 12px 14px;
        font-size: 16px;
    }
}

/* Beta 0.2.4: TanzBuddy Suchkarten wie App-Cards */
.compact-page-head .hero-text {
    margin-bottom: 18px;
}

.buddy-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.buddy-search-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(23,32,51,0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.buddy-card-main {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.buddy-card-photo {
    width: 100%;
    aspect-ratio: 1.12 / 1;
    background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(6,182,212,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--blue);
    font-size: 64px;
    font-weight: 900;
}

.buddy-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buddy-card-initial {
    display: inline-flex;
    width: 88px;
    height: 88px;
    border-radius: 30px;
    background: white;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(23,32,51,0.08);
}

.buddy-card-content {
    display: block;
    padding: 18px 18px 14px;
    min-width: 0;
}

.buddy-card-content strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.buddy-card-content small {
    display: block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buddy-card-content em {
    display: -webkit-box;
    font-style: normal;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.buddy-fav-form {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
}

.buddy-fav-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.96);
    color: var(--blue-dark);
    box-shadow: 0 12px 30px rgba(23,32,51,0.18);
    font-size: 25px;
    font-weight: 900;
    cursor: pointer;
}

.buddy-fav-btn.active {
    background: var(--blue);
    color: white;
}

.buddy-card-actionbar {
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    min-height: 58px;
}

.buddy-invite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 12px;
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: 900;
    font-size: 17px;
}

.buddy-more-form {
    height: 100%;
    border-left: 1px solid var(--border);
}

.buddy-more-btn {
    width: 100%;
    height: 100%;
    min-height: 58px;
    border: none;
    background: white;
    color: var(--muted);
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}

.buddy-search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(23,32,51,0.12);
}

.profile-action-row .notice {
    width: 100%;
    margin: 0 0 12px;
}

@media (max-width: 980px) {
    .buddy-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .search-page .page-head h1 {
        font-size: 34px;
        letter-spacing: -1.5px;
    }

    .buddy-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .buddy-search-card {
        border-radius: 18px;
    }

    .buddy-card-photo {
        aspect-ratio: 1 / 0.92;
        font-size: 42px;
    }

    .buddy-card-initial {
        width: 58px;
        height: 58px;
        border-radius: 20px;
    }

    .buddy-card-content {
        padding: 12px 12px 10px;
    }

    .buddy-card-content strong {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .buddy-card-content small {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .buddy-card-content em {
        font-size: 13px;
        line-height: 1.32;
        min-height: 34px;
    }

    .buddy-fav-form {
        right: 9px;
        top: 9px;
    }

    .buddy-fav-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .buddy-card-actionbar {
        grid-template-columns: 1fr 38px;
        min-height: 46px;
    }

    .buddy-invite-btn {
        min-height: 46px;
        font-size: 13px;
        padding: 0 7px;
    }

    .buddy-more-btn {
        min-height: 46px;
        font-size: 22px;
    }
}

/* Beta 0.2.5: Buddy-Herz, Blockieren per Auge, Sticky Bottom Navigation */
.buddy-block-form {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 4;
}

.buddy-block-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.94);
    color: #334155;
    box-shadow: 0 12px 30px rgba(23,32,51,0.18);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.buddy-block-btn::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #ef4444;
    transform: rotate(-42deg);
    opacity: 0.95;
}

.buddy-block-btn.active {
    background: #ef4444;
    color: white;
}

.buddy-block-btn.active::after {
    background: white;
}

.buddy-search-card.is-blocked .buddy-card-photo img,
.buddy-search-card.is-blocked .buddy-card-photo {
    filter: grayscale(0.92);
}

.buddy-search-card.is-blocked .buddy-card-main {
    opacity: 0.72;
}

.buddy-card-actionbar {
    grid-template-columns: 1fr;
}

.buddy-card-actionbar.blocked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    min-height: 58px;
    background: #fff7f7;
}

.buddy-blocked-label {
    color: #b91c1c;
    font-weight: 900;
    font-size: 16px;
}

.buddy-unblock-inline-form {
    margin: 0;
}

.buddy-unblock-inline {
    border: none;
    background: transparent;
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
    padding: 8px 0;
}

/* Fixed Bottom Menu */
.bottom-app-nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(620px, calc(100vw - 22px));
    min-height: 66px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(229,231,235,0.95);
    box-shadow: 0 18px 55px rgba(23,32,51,0.15);
    border-radius: 26px;
    z-index: 9000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
}

.bottom-app-nav a {
    text-decoration: none;
    color: var(--muted);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 900;
}

.bottom-app-nav a span {
    font-size: 23px;
    line-height: 1;
}

.bottom-app-nav a small {
    font-size: 12px;
    line-height: 1;
}

.bottom-app-nav a.active {
    background: rgba(37,99,235,0.10);
    color: var(--blue-dark);
}

body:has(.bottom-app-nav) main {
    padding-bottom: 120px;
}

body:has(.chat-page) .bottom-app-nav {
    min-height: 48px;
    border-radius: 22px;
    padding: 5px;
}

body:has(.chat-page) .bottom-app-nav a small {
    display: none;
}

body:has(.chat-page) .bottom-app-nav a span {
    font-size: 22px;
}

body:has(.chat-page) main {
    padding-bottom: 92px;
}

body:has(.chat-page) .chat-compose {
    position: sticky;
    bottom: 64px;
    z-index: 40;
}

@media (max-width: 520px) {
    .buddy-block-form {
        left: 9px;
        top: 9px;
    }

    .buddy-block-btn {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .buddy-block-btn::after {
        width: 20px;
        height: 3px;
    }

    .buddy-card-actionbar.blocked {
        min-height: 46px;
        padding: 8px 10px;
    }

    .buddy-blocked-label,
    .buddy-unblock-inline {
        font-size: 13px;
    }

    .bottom-app-nav {
        width: calc(100vw - 16px);
        min-height: 62px;
        border-radius: 23px;
    }

    .bottom-app-nav a small {
        font-size: 11px;
    }
}

/* Beta 0.2.6: Chat ohne Bottom-Menü, Zurück-Pfeil, blockierte Profile separat */
body:has(.chat-page) main {
    padding-bottom: 16px !important;
}

body:has(.chat-page) .chat-compose {
    position: relative !important;
    bottom: auto !important;
}

.chat-head {
    position: relative;
    padding-left: 70px !important;
}

.chat-back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--bg);
    color: var(--blue-dark);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.chat-back-btn:hover {
    background: rgba(37,99,235,0.12);
}

.blocked-results-card {
    margin-top: 24px;
    padding: 22px;
}

.blocked-results-head h2 {
    font-size: 24px;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.blocked-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.blocked-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    background: #fff;
}

.blocked-result-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.blocked-result-photo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--blue);
    font-weight: 900;
    filter: grayscale(0.8);
}

.blocked-result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blocked-result-profile strong,
.blocked-result-profile small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blocked-result-profile small {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.blocked-result-actions {
    text-align: right;
    flex-shrink: 0;
}

.blocked-result-actions span {
    display: block;
    color: #b91c1c;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 4px;
}

.blocked-result-actions button {
    border: none;
    background: transparent;
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
    padding: 4px 0;
}

@media (max-width: 700px) {
    .chat-head {
        padding-left: 62px !important;
    }

    .chat-back-btn {
        left: 12px;
        width: 38px;
        height: 38px;
        font-size: 32px;
    }

    .blocked-results-list {
        grid-template-columns: 1fr;
    }
}

/* DanceFriend Beta 0.3.1 Branding Overrides */
:root {
    --blue: #0F766E;
    --blue-dark: #0A4F49;
    --accent: #0F766E;
    --accent-dark: #0A4F49;
    --green: #0F766E;
    --bg: #F4F4F4;
    --text: #1E1E1E;
    --muted: #687073;
    --card: #FFFFFF;
    --border: #E2E2E2;
    --danger-bg: #F3F4F4;
    --danger: #1E1E1E;
    --success-bg: rgba(15,118,110,0.11);
    --success: #0A4F49;
    --shadow: 0 18px 48px rgba(30,30,30,0.10);
    --radius: 24px;
}

body {
    background:
        radial-gradient(circle at top left, rgba(15,118,110,0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(30,30,30,0.055), transparent 30%),
        var(--bg);
    color: var(--text);
}

.site-header {
    padding-top: 18px;
    padding-bottom: 14px;
}

.brand-logo img {
    display: block;
    width: min(420px, 58vw);
    max-height: 72px;
    object-fit: contain;
}

.brand-mark,
.brand-logo .brand-mark,
.brand-logo > span:not(.brand-mark) {
    display: none !important;
}

.top-nav .btn-outline,
.btn-outline {
    color: var(--text);
    border-color: rgba(30,30,30,0.16);
    background: #fff;
}

.top-nav .btn-outline:hover,
.btn-outline:hover {
    color: var(--accent);
    border-color: rgba(15,118,110,0.35);
}

.btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15,118,110,0.22);
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    box-shadow: 0 14px 28px rgba(30,30,30,0.08);
}

.eyebrow {
    background: rgba(15,118,110,0.10);
    color: var(--accent-dark);
}

/* Startseite: echtes Hero-Foto statt Sprechblasen-Grafik */
.landing-hero.landing-hero-photo {
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 680px;
    gap: 42px;
}

.landing-hero-photo .hero-content h1 {
    font-size: clamp(48px, 6.5vw, 86px);
    max-width: 680px;
}

.hero-photo-card {
    position: relative;
    min-height: 600px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111;
}

.hero-photo-card img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    object-position: 64% 50%;
    display: block;
}

.hero-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,30,30,0.26), transparent 42%);
    pointer-events: none;
}

.hero-visual { display: none !important; }

.feature-card,
.auth-card,
.form-card,
.progress-card,
.person-tile,
.buddy-row,
.public-profile-card,
.search-filter-card {
    background: #fff;
    border: 1px solid rgba(30,30,30,0.06);
    box-shadow: 0 14px 36px rgba(30,30,30,0.07);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(15,118,110,0.10);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

/* Dashboard kompakter */
.dashboard-hero {
    background: #1E1E1E;
    color: #fff;
    padding: 24px 28px;
    border-radius: 28px;
    flex-direction: row !important;
    align-items: center !important;
}

.dashboard-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1.5px;
    margin-bottom: 4px;
}

.dashboard-hero .hero-text {
    color: rgba(255,255,255,0.82);
    font-size: 17px;
}

.dashboard-hero .avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    color: var(--accent);
}

.big-action-card span,
.dash-card span {
    color: var(--accent);
}

/* Chat-Blasen: Petrol / Anthrazit */
.message-bubble {
    background: #1E1E1E;
    color: #fff;
}

.message-bubble.me {
    background: #0F766E;
    color: #fff;
}

.chat-compose {
    border: 1px solid rgba(30,30,30,0.08);
    background: #fff;
}

.chat-back-btn {
    color: var(--accent) !important;
}

/* Bottom-Floating-Menü deaktiviert */
.bottom-app-nav { display: none !important; }
body:has(.bottom-app-nav) main,
body:has(.chat-page) main {
    padding-bottom: 70px !important;
}
body:has(.chat-page) .chat-compose {
    bottom: 12px !important;
}

/* iOS-Install-Hinweis dezenter */
.pwa-install-card {
    border-radius: 22px;
    border-color: rgba(15,118,110,0.20);
}
.pwa-install-card strong { color: var(--text); }
.pwa-install-card .btn { background: var(--accent); }

.site-footer {
    color: var(--muted);
}
.site-footer strong { color: var(--text); }

@media (max-width: 850px) {
    .site-header {
        padding: 14px 18px 10px;
        gap: 12px;
    }

    .brand-logo img {
        width: min(260px, 58vw);
        max-height: 54px;
    }

    .landing-hero.landing-hero-photo {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .hero-photo-card {
        min-height: 430px;
        border-radius: 28px;
        order: -1;
    }

    .hero-photo-card img {
        min-height: 430px;
        object-position: 62% center;
    }

    .landing-hero-photo .hero-content h1 {
        font-size: 48px;
        letter-spacing: -3px;
    }

    .dashboard-hero {
        padding: 18px 20px;
        border-radius: 24px;
        gap: 14px;
    }

    .dashboard-hero h1 {
        font-size: 28px;
    }

    .dashboard-hero .hero-text {
        font-size: 15px;
    }

    .dashboard-hero .avatar {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 28px;
    }
}

@media (max-width: 430px) {
    .top-nav {
        gap: 8px;
    }
    .top-nav .btn-small {
        padding: 9px 12px;
        width: auto;
    }
    .hero-photo-card,
    .hero-photo-card img {
        min-height: 360px;
    }
    .landing-hero-photo .hero-content h1 {
        font-size: 42px;
    }
    .hero-subline { font-size: 20px; }
    .hero-text { font-size: 18px; }
}


/* Beta 0.3.2 Optik-Feinschliff */
.hero-photo-card img {
    /* Foto tauschen: assets/images/hero-dancefriend.png ersetzen.
       Bildausschnitt anpassen: object-position z.B. 58% 50%; */
    object-position: 58% 50%;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(30,30,30,0.86), rgba(30,30,30,0.58)), url('assets/images/dashboard-studio-bg.png') center center / cover !important;
    min-height: 132px;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at right center, rgba(15,118,110,0.22), transparent 42%);
    pointer-events: none;
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero .avatar {
    border: 3px solid rgba(255,255,255,0.92);
    box-shadow: 0 16px 36px rgba(0,0,0,0.24);
    background: rgba(255,255,255,0.94);
}

.app-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 12px 26px rgba(15,118,110,0.20);
}

.app-icon-circle svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.big-action-card .app-icon-circle,
.dash-card .app-icon-circle {
    font-size: 0;
}

.dashboard-primary-card {
    align-items: center;
}

.dash-card {
    gap: 12px;
}

.dash-card strong {
    margin-top: 4px;
}

.buddy-block-btn,
.buddy-fav-btn {
    color: var(--accent-dark);
}

.buddy-fav-btn.active {
    background: var(--accent);
    color: white;
}

.buddy-invite-btn {
    color: var(--accent-dark);
}

@media (max-width: 850px) {
    .dashboard-hero {
        min-height: 108px;
    }
}


/* Beta 0.3.3 Startseite: Fullwidth Hero mit Originaltext */
body.is-landing {
    background: #F4F4F4;
}

body.is-landing .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    max-width: none;
    width: 100%;
    padding: 24px clamp(20px, 5vw, 70px);
}

.site-header-landing .brand-logo img {
    width: min(420px, 52vw);
    max-height: 96px;
}

.site-header-landing .top-nav a:not(.btn) {
    color: rgba(255,255,255,0.92);
}

.site-header-landing .top-nav .btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 32px rgba(15,118,110,0.35);
}

body.is-landing main {
    max-width: none;
    padding: 0;
}

.landing-hero-full {
    position: relative;
    min-height: 760px;
    background: url('assets/images/hero-dancefriend.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.landing-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.60) 28%, rgba(0,0,0,0.22) 56%, rgba(0,0,0,0.12) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.28), rgba(0,0,0,0.05));
    pointer-events: none;
}

.landing-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 150px 24px 80px;
}

.landing-hero-full .hero-content {
    max-width: 560px;
}

.landing-hero-full .eyebrow {
    background: rgba(255,255,255,0.13);
    color: #fff;
    backdrop-filter: blur(8px);
}

.landing-hero-full h1 {
    color: #fff;
    font-size: clamp(46px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: -4px;
    margin-bottom: 22px;
}

.landing-hero-full .hero-subline {
    color: #fff;
}

.landing-hero-full .hero-text,
.landing-hero-full .trust-text {
    color: rgba(255,255,255,0.86);
}

.landing-hero-full .btn-secondary {
    background: rgba(255,255,255,0.94);
    color: var(--text);
}

body.is-landing .how-it-works {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 24px 80px;
}

body.is-landing .site-footer {
    background: #F4F4F4;
}

/* Dashboard verwendet dasselbe Loft-Bild wie die Startseite */
.dashboard-hero {
    background: linear-gradient(90deg, rgba(30,30,30,0.86), rgba(30,30,30,0.54)), url('assets/images/dashboard-studio-bg.png') center center / cover !important;
}

@media (max-width: 850px) {
    body.is-landing .site-header {
        padding: 16px 18px;
    }

    .site-header-landing .brand-logo img {
        width: min(260px, 62vw);
        max-height: 70px;
    }

    .site-header-landing .top-nav .btn-small {
        width: auto;
    }

    .landing-hero-full {
        min-height: 720px;
        background-position: 58% center;
    }

    .landing-hero-inner {
        padding: 128px 18px 54px;
    }

    .landing-hero-full .hero-content {
        max-width: 480px;
    }

    .landing-hero-full h1 {
        font-size: 52px;
        letter-spacing: -3px;
    }
}

@media (max-width: 430px) {
    .site-header-landing .brand-logo img {
        width: min(220px, 58vw);
    }

    .landing-hero-full {
        min-height: 680px;
        background-position: 58% center;
    }

    .landing-hero-full h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .landing-hero-full .hero-actions {
        flex-direction: column;
        max-width: 320px;
    }
}

/* Beta 0.3.4 Dashboard + Startseiten-Feinschliff */
.site-header-landing .top-nav { display: none !important; }

.landing-hero-full {
    background-image: url('assets/images/hero-dancefriend.png') !important;
    background-position: center center !important;
}

.dashboard-redesign {
    max-width: 1120px;
    gap: 22px;
}

.dashboard-notice-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(30,30,30,0.06);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(30,30,30,0.06);
    backdrop-filter: blur(10px);
}

.dashboard-notice-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(30,30,30,0.05);
}

.dashboard-notice-strip svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-notice-strip strong {
    color: var(--accent);
}

.dashboard-hero-loft {
    min-height: 170px;
    background: linear-gradient(90deg, rgba(30,30,30,0.82), rgba(30,30,30,0.36)), url('assets/images/dashboard-studio-bg.png') center center / cover no-repeat !important;
    border-radius: 28px;
    padding: 30px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
}

.dashboard-hello-text h1 {
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -2px;
    margin: 0 0 6px;
}

.dashboard-hello-text p {
    color: rgba(255,255,255,0.88);
    font-size: 20px;
    margin: 0;
}

.dashboard-hero-loft .avatar {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    border: 4px solid rgba(255,255,255,0.95);
    box-shadow: 0 18px 44px rgba(0,0,0,0.32);
    background: rgba(255,255,255,0.96);
    color: var(--accent);
}

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dash-action-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(30,30,30,0.06);
    border-radius: 26px;
    padding: 24px;
    min-height: 178px;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(30,30,30,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.dash-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(30,30,30,0.10);
}

.dash-action-card .app-icon-circle {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #0F766E, #0A4F49);
}

.dash-action-card strong {
    font-size: 19px;
    line-height: 1.2;
}

.dash-action-card small {
    color: var(--muted);
    line-height: 1.45;
    font-size: 15px;
}

.dash-action-card em {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: var(--accent);
    font-style: normal;
    font-size: 22px;
    font-weight: 900;
}

.dash-action-primary {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    min-height: 138px;
    gap: 20px;
}

.dash-action-primary .app-icon-circle {
    margin-bottom: 0;
    width: 68px;
    height: 68px;
}

.dash-action-primary strong {
    font-size: clamp(26px, 3.4vw, 40px);
    letter-spacing: -1.5px;
}

.dash-action-primary small {
    font-size: 18px;
}

.big-action-card,
.dashboard-grid {
    display: none !important;
}

@media (max-width: 850px) {
    .dashboard-redesign {
        gap: 16px;
    }

    .dashboard-notice-strip {
        padding: 9px;
        border-radius: 20px;
    }

    .dashboard-notice-strip a {
        min-height: 38px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .dashboard-hero-loft {
        min-height: 118px;
        padding: 18px 18px;
        border-radius: 22px;
    }

    .dashboard-hello-text h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .dashboard-hello-text p {
        font-size: 15px;
    }

    .dashboard-hero-loft .avatar {
        width: 70px;
        height: 70px;
        border-radius: 22px;
        border-width: 3px;
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dash-action-card {
        min-height: 150px;
        padding: 18px;
        border-radius: 22px;
    }

    .dash-action-card .app-icon-circle {
        width: 48px;
        height: 48px;
    }

    .dash-action-card strong {
        font-size: 17px;
    }

    .dash-action-card small {
        font-size: 13px;
    }

    .dash-action-card em {
        right: 16px;
        bottom: 12px;
    }

    .dash-action-primary {
        grid-column: 1 / -1;
        min-height: 112px;
        padding: 20px;
    }

    .dash-action-primary .app-icon-circle {
        width: 56px;
        height: 56px;
    }

    .dash-action-primary strong {
        font-size: 26px;
    }

    .dash-action-primary small {
        font-size: 15px;
    }
}

@media (max-width: 430px) {
    .dashboard-hero-loft {
        background-position: center center !important;
    }

    .dashboard-hello-text h1 {
        font-size: 28px;
    }

    .dashboard-actions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-action-card {
        padding: 16px;
        min-height: 146px;
    }

    .dash-action-primary {
        grid-column: 1 / -1;
    }
}

/* Beta 0.3.5 Dashboard Feinschliff */
.top-chat-link {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--accent) !important;
    background: rgba(15,118,110,0.10);
    border: 1px solid rgba(15,118,110,0.18);
}
.top-chat-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.top-chat-link span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15,118,110,.28);
}

.dashboard-notice-strip { display: none !important; }

.dashboard-hero-loft {
    background: linear-gradient(90deg, rgba(30,30,30,0.88), rgba(30,30,30,0.52)), url('assets/images/dashboard-studio-bg.png') center center / cover no-repeat !important;
}

.dashboard-actions-grid {
    grid-template-columns: 1.65fr 1fr 1fr 1fr;
    align-items: stretch;
}

.dash-action-card {
    overflow: hidden;
    padding-right: 44px;
}

.dash-action-card .app-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F766E, #0A4F49);
    box-shadow: 0 14px 28px rgba(15,118,110,.20);
}

.app-icon-circle svg {
    width: 52%;
    height: 52%;
    fill: none;
    stroke: #fff;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-action-primary {
    grid-column: auto;
    min-height: 170px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 13px;
}

.dash-action-primary .app-icon-circle {
    width: 58px;
    height: 58px;
}

.dash-action-primary strong {
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1.05;
    letter-spacing: -1px;
    white-space: nowrap;
}

.dash-action-primary small,
.dash-action-card small {
    display: block;
    margin-top: 3px;
}

.dash-action-card em {
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

@media (max-width: 980px) {
    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-action-primary {
        grid-column: 1 / -1;
        min-height: 124px;
        flex-direction: row;
        align-items: center;
    }

    .dash-action-primary strong {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .top-chat-link {
        width: 40px;
        height: 40px;
    }

    .dashboard-actions-grid {
        grid-template-columns: 1fr;
    }

    .dash-action-card {
        min-height: auto;
        padding: 18px 46px 18px 18px;
        border-radius: 22px;
    }

    .dash-action-primary {
        grid-column: auto;
        flex-direction: row;
        min-height: 112px;
    }

    .dash-action-primary strong {
        font-size: 24px;
        white-space: normal;
    }

    .dash-action-card .app-icon-circle,
    .dash-action-primary .app-icon-circle {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }
}

/* Beta 0.3.6 Dashboard + Lucide Icon Pass */
.lucide {
    width: 1em;
    height: 1em;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-actions-v036 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-actions-v036 .dash-action-primary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;
    min-height: 150px;
}

.dashboard-actions-v036 .dash-action-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dashboard-actions-v036 .dash-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 64px rgba(23,32,51,0.12);
}

.dashboard-actions-v036 .dash-action-card em { display: none !important; }

.dashboard-actions-v036 .dash-action-card strong {
    display: block;
    line-height: 1.15;
}

.dashboard-actions-v036 .dash-action-card small {
    display: block;
    margin-top: 10px;
    max-width: 460px;
    line-height: 1.45;
}

.dashboard-actions-v036 .dash-action-primary strong {
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.4px;
    white-space: normal;
}

.dashboard-actions-v036 .dash-action-primary small {
    font-size: 18px;
}

.dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 190px;
}

.dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) strong {
    font-size: 23px;
    margin-top: 10px;
}

.dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) small {
    font-size: 15px;
}

.app-icon-circle {
    background: #0F766E !important;
    color: #fff !important;
}

.top-chat-link .lucide {
    width: 24px;
    height: 24px;
}

/* Suche: Lucide Icons */
.buddy-location {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.buddy-location .lucide {
    width: 15px;
    height: 15px;
    color: #0F766E;
    flex: 0 0 auto;
}

.buddy-block-btn::after { display: none !important; }
.buddy-block-btn .lucide,
.buddy-fav-btn .lucide,
.buddy-invite-btn .lucide {
    width: 22px;
    height: 22px;
}
.buddy-block-btn {
    color: #64748b !important;
    background: rgba(255,255,255,0.95) !important;
}
.buddy-block-btn.active,
.buddy-search-card.is-blocked .buddy-block-btn {
    color: #dc2626 !important;
}
.buddy-fav-btn {
    color: #64748b !important;
}
.buddy-fav-btn.active {
    background: #fff8db !important;
    border-color: rgba(212,175,55,0.45) !important;
    color: #D4AF37 !important;
}
.buddy-fav-btn.active .lucide {
    fill: currentColor;
}
.buddy-invite-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0F766E !important;
}

/* Mobile Dashboard */
@media (max-width: 760px) {
    .dashboard-actions-v036 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .dashboard-actions-v036 .dash-action-primary {
        grid-column: 1 / -1;
        min-height: 132px;
        grid-template-columns: auto 1fr;
        padding: 24px;
    }
    .dashboard-actions-v036 .dash-action-primary strong {
        font-size: 30px;
        letter-spacing: -1px;
    }
    .dashboard-actions-v036 .dash-action-primary small {
        font-size: 16px;
        margin-top: 8px;
    }
    .dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) {
        min-height: 156px;
        padding: 20px;
        border-radius: 26px;
    }
    .dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) strong {
        font-size: 18px;
        margin-top: 8px;
    }
    .dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) small {
        font-size: 13px;
        line-height: 1.35;
    }
    .app-icon-circle {
        width: 48px;
        height: 48px;
    }
    .app-icon-circle svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 390px) {
    .dashboard-actions-v036 .dash-action-primary strong {
        font-size: 27px;
    }
    .dashboard-actions-v036 .dash-action-card:not(.dash-action-primary) {
        min-height: 150px;
        padding: 18px;
    }
}

/* DanceFriend Beta 0.3.7 UI-Korrektur */
.site-header-subpage {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 12px;
}
.site-header-subpage .subpage-logo {
    justify-content: center;
}
.site-header-subpage .subpage-logo img {
    width: min(260px, 54vw);
    max-height: 54px;
}
.sub-back-link {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(15,118,110,0.10);
    text-decoration: none;
    border: 1px solid rgba(15,118,110,0.18);
}
.sub-back-link svg { width: 24px; height: 24px; }
.sub-chat-link { justify-self: end; }
.dashboard-top-nav { margin-left: auto; }

.dashboard-logout-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.dashboard-logout-row a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}
.dashboard-logout-row a:hover { color: var(--accent); }

.dashboard-hero-loft {
    background: linear-gradient(90deg, rgba(30,30,30,0.76), rgba(30,30,30,0.34)), url('assets/images/dashboard-studio-bg.png') center center / cover no-repeat !important;
}

.dashboard-actions-grid.dashboard-actions-v036,
.dashboard-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px;
}
.dash-action-primary {
    grid-column: 1 / -1 !important;
    min-height: 142px;
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    gap: 22px;
}
.dash-action-primary > div {
    min-width: 0;
}
.dash-action-primary strong {
    display: block;
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.05;
    margin-bottom: 8px;
}
.dash-action-primary small {
    display: block;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.38;
}
.dash-action-card {
    min-width: 0;
}
.dash-action-card strong,
.dash-action-card small {
    overflow-wrap: normal;
    word-break: normal;
}

/* Lucide-only action icons */
.buddy-fav-btn,
.buddy-block-btn {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(30,30,30,.58) !important;
}
.buddy-fav-btn svg,
.buddy-block-btn svg {
    width: 31px;
    height: 31px;
    stroke-width: 2.2;
}
.buddy-fav-btn.active {
    color: #D4AF37 !important;
}
.buddy-fav-btn.active svg {
    fill: currentColor;
    stroke: currentColor;
}
.buddy-block-btn.active,
.buddy-block-btn:hover {
    color: #DC2626 !important;
}
.buddy-block-btn::after { display: none !important; content: none !important; }
.buddy-fav-form { right: 14px; top: 14px; }
.buddy-block-form { left: 14px; top: 14px; }

.buddy-location {
    display: flex !important;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
}
.buddy-location svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--accent);
}
.buddy-location .location-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.buddy-invite-btn svg {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.blocked-results-inline {
    margin-top: 28px;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.blocked-results-inline .blocked-results-head {
    margin-bottom: 10px;
}
.blocked-results-inline .blocked-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blocked-results-inline .blocked-result-row {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 2px;
    box-shadow: none;
    opacity: .72;
}
.blocked-results-inline .blocked-result-photo {
    border-radius: 999px;
    width: 44px;
    height: 44px;
}
.blocked-result-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blocked-unban-btn {
    border: none;
    background: transparent;
    color: #DC2626;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
}
.blocked-unban-btn svg { width: 25px; height: 25px; }

.profile-icon-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.profile-icon-actions .inline-form { margin: 0; }
.profile-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(30,30,30,.12);
    background: #fff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(30,30,30,.08);
}
.profile-icon-btn svg { width: 25px; height: 25px; }
.profile-icon-btn.favorite.active { color: #D4AF37; }
.profile-icon-btn.favorite.active svg { fill: currentColor; stroke: currentColor; }
.profile-icon-btn.message { color: var(--accent); }
.profile-icon-btn.blocked:hover,
.profile-icon-btn.blocked.active { color: #DC2626; }

@media (max-width: 850px) {
    .site-header-subpage {
        padding: 12px 16px;
        grid-template-columns: 46px 1fr 46px;
    }
    .site-header-subpage .subpage-logo img {
        width: min(210px, 52vw);
        max-height: 46px;
    }
    .sub-back-link,
    .site-header-subpage .top-chat-link {
        width: 42px;
        height: 42px;
    }
    .dashboard-actions-grid.dashboard-actions-v036,
    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
    .dash-action-primary {
        grid-column: 1 / -1 !important;
        min-height: 120px;
        gap: 16px;
    }
    .dash-action-primary strong {
        font-size: 26px;
    }
    .dash-action-primary small {
        font-size: 15px;
    }
}
@media (max-width: 430px) {
    .dash-action-card { min-height: 138px; }
    .dash-action-primary { min-height: 112px; }
    .dash-action-primary .app-icon-circle { width: 52px; height: 52px; flex: 0 0 auto; }
    .dash-action-primary strong { font-size: 24px; }
    .dash-action-primary small { font-size: 14px; }
    .buddy-fav-btn svg,
    .buddy-block-btn svg { width: 27px; height: 27px; }
}

/* DanceFriend Beta 0.3.8 – Feinschliff Dashboard / Suche / Navigation */
.site-header-dashboard {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 12px;
}
.site-header-dashboard .brand-logo {
    grid-column: 2;
    justify-content: center;
}
.site-header-dashboard .brand-logo img {
    width: min(300px, 56vw);
    max-height: 64px;
}
.site-header-dashboard .dashboard-top-nav {
    grid-column: 3;
    justify-self: end;
}
.site-header-subpage {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(244,244,244,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30,30,30,0.05);
}

.dashboard-hero-loft {
    background: linear-gradient(90deg, rgba(30,30,30,0.82), rgba(30,30,30,0.40)), url('assets/images/dashboard-studio-bg.png') center center / cover no-repeat !important;
}
.dashboard-hello-text h1 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1.3px;
}
.dashboard-hello-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.94);
}
.dashboard-hero .avatar,
.dashboard-hero .avatar-click {
    border: 4px solid #fff;
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.dashboard-actions-grid.dashboard-actions-v036,
.dashboard-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}
.dashboard-actions-v036 .dash-action-primary,
.dashboard-actions-grid .dash-action-primary {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center !important;
    gap: 22px !important;
    min-height: 138px;
}
.dashboard-actions-v036 .dash-action-primary strong,
.dashboard-actions-grid .dash-action-primary strong {
    font-size: clamp(30px, 3.3vw, 44px) !important;
    line-height: 1.06 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}
.dashboard-actions-v036 .dash-action-primary small,
.dashboard-actions-grid .dash-action-primary small {
    display: block !important;
    margin-top: 10px !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    max-width: 760px !important;
    white-space: normal !important;
}
.dashboard-actions-v036 .dash-action-card:not(.dash-action-primary),
.dashboard-actions-grid .dash-action-card:not(.dash-action-primary) {
    min-height: 184px;
    overflow: hidden;
}
.dashboard-actions-v036 .dash-action-card strong,
.dashboard-actions-grid .dash-action-card strong,
.dashboard-actions-v036 .dash-action-card small,
.dashboard-actions-grid .dash-action-card small {
    max-width: 100%;
}

/* Sucheinstellungen mit echten Lucide-Chevrons */
.search-filter-card summary::after { display: none !important; content: none !important; }
.search-filter-card summary {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.summary-icons {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
}
.summary-icons svg { width: 28px; height: 28px; }
.search-filter-card .summary-up { display: none; }
.search-filter-card[open] .summary-down { display: none; }
.search-filter-card[open] .summary-up { display: inline-flex; }

/* Lucide Actions ohne nachgebaute Kreise */
.buddy-fav-form,
.buddy-block-form {
    position: absolute;
    z-index: 4;
}
.buddy-fav-form { top: 16px; right: 16px; }
.buddy-block-form { top: 16px; left: 16px; }
.buddy-fav-btn,
.buddy-block-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(244,244,244,0.88) !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
}
.buddy-fav-btn svg,
.buddy-block-btn svg {
    width: 30px !important;
    height: 30px !important;
    stroke-width: 2.25 !important;
}
.buddy-fav-btn.active,
.buddy-fav-btn:hover {
    color: #D4AF37 !important;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.58));
}
.buddy-fav-btn.active svg {
    fill: none !important;
}
.buddy-block-btn.active,
.buddy-block-btn:hover,
.buddy-search-card.is-blocked .buddy-block-btn {
    color: #DC2626 !important;
    filter: drop-shadow(0 0 8px rgba(220,38,38,0.55));
}
.buddy-block-btn::before,
.buddy-block-btn::after,
.buddy-fav-btn::before,
.buddy-fav-btn::after { display:none !important; content:none !important; }

.buddy-location {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.buddy-location .location-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Blockierte Profile: einzelne, dezente weiße Zeilen */
.blocked-results-inline {
    margin-top: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.blocked-results-inline .blocked-results-head h2 {
    font-size: 22px;
    margin-bottom: 4px;
}
.blocked-results-inline .blocked-results-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
}
.blocked-results-inline .blocked-result-row {
    background: #fff !important;
    border: 1px solid rgba(30,30,30,0.06) !important;
    border-radius: 18px !important;
    padding: 12px !important;
    box-shadow: 0 12px 28px rgba(30,30,30,0.06) !important;
    opacity: 1 !important;
}
.blocked-result-actions span { display: none !important; }
.blocked-unban-btn {
    color: #DC2626 !important;
    filter: drop-shadow(0 0 6px rgba(220,38,38,0.20));
}
.blocked-unban-btn svg { width: 26px !important; height: 26px !important; }

/* Profil fremder Person: Icons dezent, kein Rück-zur-Suche Button */
.profile-bottom-actions { display: none !important; }
.profile-icon-btn {
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
}
.profile-icon-btn svg { width: 28px !important; height: 28px !important; }
.profile-icon-btn.favorite.active { color: #D4AF37 !important; filter: drop-shadow(0 0 8px rgba(212,175,55,0.35)); }
.profile-icon-btn.favorite.active svg { fill: none !important; }
.profile-icon-btn.message { color: var(--accent) !important; }
.profile-icon-btn.blocked.active,
.profile-icon-btn.blocked:hover { color: #DC2626 !important; filter: drop-shadow(0 0 8px rgba(220,38,38,0.30)); }

/* Badges auf Unterseiten entfernen */
.page-head .eyebrow,
.chat-head .eyebrow,
.public-profile-info .eyebrow { display: none !important; }

.buddy-row em {
    background: rgba(15,118,110,0.10);
    color: var(--accent);
    border-radius: 999px;
    padding: 6px 10px;
    font-style: normal;
    font-weight: 900;
    font-size: 12px;
}

@media (max-width: 850px) {
    .site-header-dashboard {
        padding: 14px 16px;
        grid-template-columns: 46px 1fr 46px;
    }
    .site-header-dashboard .brand-logo img {
        width: min(240px, 56vw);
        max-height: 52px;
    }
    .dashboard-hero-loft {
        flex-direction: row !important;
        align-items: center !important;
        min-height: 126px;
        padding: 22px !important;
    }
    .dashboard-hello-text h1 { font-size: 30px; }
    .dashboard-hello-text p { font-size: 15px; }
    .dashboard-hero .avatar { width: 72px; height: 72px; border-radius: 22px; }
    .dashboard-actions-grid.dashboard-actions-v036,
    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .dashboard-actions-v036 .dash-action-primary,
    .dashboard-actions-grid .dash-action-primary {
        grid-column: 1 / -1 !important;
        min-height: 126px;
        padding: 22px !important;
    }
    .dashboard-actions-v036 .dash-action-primary strong,
    .dashboard-actions-grid .dash-action-primary strong {
        font-size: 27px !important;
    }
    .dashboard-actions-v036 .dash-action-primary small,
    .dashboard-actions-grid .dash-action-primary small {
        font-size: 15px !important;
    }
    .dashboard-actions-v036 .dash-action-card:not(.dash-action-primary),
    .dashboard-actions-grid .dash-action-card:not(.dash-action-primary) {
        min-height: 164px !important;
        padding: 20px !important;
    }
    .blocked-results-inline .blocked-results-list {
        grid-template-columns: 1fr !important;
    }
}

/* DanceFriend Beta 0.3.9 – Feinschliff */
.site-header-subpage {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: auto;
    right: auto;
    border-radius: 0 0 18px 18px;
    box-sizing: border-box;
}
.site-header-subpage .brand-logo {
    justify-self: center;
}

/* Dashboard: dunkles Loft ohne Tanzpaar */
.dashboard-hero-loft {
    background: linear-gradient(90deg, rgba(30,30,30,0.84), rgba(30,30,30,0.46)), url('assets/images/dashboard-studio-bg.png') center center / cover no-repeat !important;
}

/* Suche: echte Lucide-Icons ohne Box/Chrome */
.buddy-fav-form,
.buddy-block-form,
.buddy-fav-form button,
.buddy-block-form button {
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.buddy-fav-form button:focus,
.buddy-fav-form button:focus-visible,
.buddy-block-form button:focus,
.buddy-block-form button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.buddy-fav-btn.active svg,
.profile-icon-btn.favorite.active svg {
    fill: none !important;
}

.blocked-by-other-icon {
    color: #DC2626;
    display: inline-flex;
    filter: drop-shadow(0 0 6px rgba(220,38,38,0.20));
}
.blocked-by-other-icon svg { width: 26px; height: 26px; }

/* Profil fremder Person: Aktionsicons am Handy nebeneinander */
.public-profile-info .profile-icon-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
}
.public-profile-info .profile-icon-actions .inline-form {
    width: auto !important;
    flex: 0 0 auto !important;
}
.public-profile-info .profile-icon-actions .notice {
    flex: 1 1 100%;
}

/* Tanzkenntnisse Match */
.dance-profile-row.is-match {
    border-color: rgba(15,118,110,0.22);
    background: rgba(15,118,110,0.045);
}
.dance-level-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.dance-match-badge {
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
    background: rgba(15,118,110,0.12);
    border: 1px solid rgba(15,118,110,0.20);
    border-radius: 999px;
    padding: 6px 9px;
}

/* Mein Profil: kein Floating unten */
.profile-save-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding: 0;
}
.profile-save-actions .btn {
    min-width: 220px;
}

/* Chat: Zurück-Pfeil im Gespräch weg, mehr Luft vor Eingabe */
.chat-head .chat-back-btn { display: none !important; }
.chat-page .message-list {
    margin-bottom: 18px !important;
}
.chat-page .chat-compose {
    margin-top: 18px !important;
}

@media (max-width: 850px) {
    .site-header-subpage {
        width: calc(100% - 24px);
        grid-template-columns: 46px 1fr 46px;
    }
    .public-profile-info .profile-icon-actions {
        justify-content: flex-start !important;
    }
    .profile-save-actions,
    .profile-save-actions .btn {
        width: 100%;
    }
}
