:root {
    --wiesen-gruen: #52796F;
    --wiesen-hell: #84A98C;
    --wiesen-sehr-hell: #E8F0E9;
    --dunkel-gruen: #1A262B;
    --akzent-orange: #B4513A;
    --weiss: #FFFFFF;
    --bg-portal: #F4F6F4;
    --border-color: #D1DCD9;
    --border-card-strong: #C4D3D0;
    --text-grau: #556064;
    --radius: 12px;
    --rot: #D32F2F;
    --max-portal-width: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-portal);
    color: var(--dunkel-gruen);
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
}

/* SIDEBAR DESKTOP */
.sidebar {
    width: 275px;
    min-width: 275px;
    background-color: var(--weiss);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 0 20px 0;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wiesen-gruen);
    padding: 0 30px;
    margin-bottom: 35px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.nav-item {
    padding: 13px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-grau);
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.93rem;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--wiesen-sehr-hell);
    color: var(--wiesen-gruen);
    border-left: 4px solid var(--wiesen-gruen);
    font-weight: 600;
}

.desktop-badge {
    display: none;
    background-color: var(--akzent-orange);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    margin-left: auto;
    white-space: nowrap;
}

.nav-item.has-unread {
    color: var(--akzent-orange);
    font-weight: 700;
}

.nav-item.has-unread .nav-icon {
    filter: drop-shadow(0 0 4px rgba(224, 122, 95, 0.7));
    animation: pulseUnread 2s infinite ease-in-out;
}

@keyframes pulseUnread {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* SIDEBAR FOOTER */
.sidebar-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #FAFCFB;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wiesen-hell);
    display: none;
}

.user-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--wiesen-gruen);
    color: var(--weiss);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--wiesen-hell);
    text-transform: uppercase;
}

.user-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dunkel-gruen);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    width: 100%;
}

.medal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #8C6D1F;
    margin: 0;
    white-space: nowrap;
}

.logout-link {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: #D32F2F;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* MAIN WRAPPER */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
    max-width: 100vw;
    position: relative;
}

.portal-topbar {
    background-color: var(--weiss);
    border-bottom: 1px solid var(--border-color);
    padding: 14px clamp(20px, 3vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    flex-shrink: 0;
    width: 100%;
}

.portal-mobile-logo {
    display: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wiesen-gruen);
    text-decoration: none;
    white-space: nowrap;
}

.portal-mobile-logo span {
    color: var(--akzent-orange);
}

.back-home-link {
    color: var(--dunkel-gruen);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
    white-space: nowrap;
}

.main-content {
    flex-grow: 1;
    padding: clamp(20px, 2.8vw, 35px) clamp(20px, 3vw, 40px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
}

/* FLUID DESKTOP-BÜHNE (1240px) */
.content-wrapper {
    max-width: var(--max-portal-width);
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.page-header h1 {
    margin: 0 0 5px 0;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    color: var(--dunkel-gruen);
}

.page-header p {
    margin: 0 0 25px 0;
    color: var(--text-grau);
    font-size: 0.95rem;
}

.tab-content {
    display: none;
    width: 100%;
    min-width: 0;
}

.tab-content.active {
    display: block;
}

.card {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: clamp(18px, 2.2vw, 26px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.card h2, .card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--wiesen-sehr-hell);
    padding-bottom: 12px;
    margin-bottom: 18px;
    color: var(--wiesen-gruen);
    font-size: 1.25rem;
    word-break: break-word;
}

/* DASHBOARD KNOCHENPIRSCH BANNER */
.dashboard-game-banner-card {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: block;
    background: #FFFFFF;
    line-height: 0;
}

.dashboard-game-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(82, 121, 111, 0.22);
    border-color: var(--wiesen-hell);
}

.dashboard-game-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: center center;
}

/* LADEBILDSCHIRM OVERLAY */
.game-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 38, 43, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInLoading 0.25s ease forwards;
}

@keyframes fadeInLoading {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-loading-box {
    background: var(--weiss);
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 2px solid var(--wiesen-hell);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    box-sizing: border-box;
}

.game-loading-banner-img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.game-loading-progress-wrap {
    width: 100%;
    height: 16px;
    background: #E8F0E9;
    border-radius: 50px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.game-loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--wiesen-gruen), var(--wiesen-hell));
    border-radius: 50px;
    transition: width 0.08s linear;
}

.game-loading-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dunkel-gruen);
}

.game-loading-task {
    color: var(--text-grau);
    font-size: 0.86rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-loading-percent {
    color: var(--wiesen-gruen);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-left: 10px;
}

/* BUTTONS */
.btn-primary {
    background: var(--akzent-orange);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #9E4530;
    color: #ffffff;
}

.btn-google-review {
    background: linear-gradient(135deg, #52796F, #3D5A53);
    color: #FFFFFF;
    border: 1px solid var(--wiesen-hell);
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(82, 121, 111, 0.25);
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-google-review:hover {
    background: linear-gradient(135deg, #3D5A53, #2F4249);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(82, 121, 111, 0.35);
    color: #FFFFFF;
}

/* TOGGLES & KARTEN */
.calendar-view-toggle {
    display: inline-flex;
    background: #EAEAEA;
    padding: 4px;
    border-radius: 50px;
    gap: 4px;
    margin-bottom: 22px;
    white-space: nowrap;
}

.btn-view-toggle {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-view-toggle.active {
    background: var(--weiss);
    color: var(--wiesen-gruen);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-credits-compact {
    padding: clamp(16px, 2vw, 22px);
    margin-bottom: 20px;
    background: #FCFDFC;
}

.card-credits-compact h3 {
    font-size: 1.05rem;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FESTES 3-SPALTEN RASTER AUF DESKTOP/TABLET BIS 769PX */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.1vw, 14px);
    width: 100%;
}

.credit-tile {
    background: var(--weiss);
    border: 1.5px solid var(--wiesen-hell);
    border-radius: 8px;
    padding: clamp(10px, 1.1vw, 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    min-width: 0;
    box-sizing: border-box;
}

.credit-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.credit-tile-title {
    font-size: clamp(0.78rem, 0.88vw, 0.88rem);
    font-weight: 700;
    color: var(--wiesen-gruen);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.credit-tile-amount {
    font-size: clamp(0.82rem, 0.9vw, 0.95rem);
    font-weight: 700;
    color: var(--dunkel-gruen);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.credit-tile-progress {
    background: #EAEAEA;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.credit-tile-progress-bar {
    background: var(--wiesen-gruen);
    height: 100%;
    border-radius: 2px;
}

.btn-credit-book {
    align-self: flex-start;
    background-color: var(--akzent-orange);
    color: var(--weiss);
    border: none;
    padding: 5px clamp(6px, 0.8vw, 13px);
    border-radius: 50px;
    font-size: clamp(0.68rem, 0.78vw, 0.78rem);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 2px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-credit-book:hover {
    background-color: #9E4530;
}

/* NÄCHSTE SCHRITTE: FESTE 3-SPALTEN GRID */
.dashboard-actions-grid,
.card .actions-row,
.card:has(.btn-google-review) > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: clamp(8px, 1.1vw, 14px) !important;
    width: 100% !important;
    align-items: center !important;
}

.dashboard-actions-grid .btn-primary,
.dashboard-actions-grid .btn-google-review,
.card .actions-row .btn-primary,
.card .actions-row .btn-google-review,
.card:has(.btn-google-review) > div:last-child a,
.card:has(.btn-google-review) > div:last-child button {
    width: 100% !important;
    padding: 11px clamp(8px, 1vw, 18px) !important;
    font-size: clamp(0.78rem, 0.85vw, 0.9rem) !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* NOTIFICATIONS */
.notification-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.notify-banner {
    border-radius: var(--radius);
    padding: 16px 42px 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    animation: fadeInNotification 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    width: 100%;
    overflow: hidden;
}

@keyframes fadeInNotification {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notify-banner.notify-appointment {
    background: linear-gradient(135deg, #F1F8F5, #E2EFE9);
    border: 2px solid var(--wiesen-hell);
}

.notify-banner.notify-report {
    background: linear-gradient(135deg, #FFFDF8, #FFF5E8);
    border: 2px solid #FFE0B2;
}

.notify-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-grow: 1;
}

.notify-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.notify-text {
    min-width: 0;
    flex-grow: 1;
}

.notify-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.98rem;
    color: var(--dunkel-gruen);
    font-weight: 700;
    word-break: break-word;
}

.notify-text p {
    margin: 0;
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.45;
    word-break: break-word;
}

.notify-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-notify-action {
    background-color: var(--wiesen-gruen);
    color: var(--weiss);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-notify-action:hover {
    background-color: #3f6057;
}

.btn-notify-action.orange {
    background-color: var(--akzent-orange);
}

.btn-notify-action.orange:hover {
    background-color: #9E4530;
}

.btn-notify-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #888888;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* CHAT APP INTERFACE DESKTOP */
.chat-app-card {
    background: var(--weiss);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: clamp(260px, 25vw, 310px) 1fr;
    height: 72vh;
    min-height: 520px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    position: relative;
}

.chat-sidebar-list {
    border-right: 1px solid var(--border-color);
    background: #FAFCFB;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
    width: 100%;
}

.chat-sidebar-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--dunkel-gruen);
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.chat-list-item {
    padding: 12px 14px;
    border-bottom: 1px solid #EDF2F0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.chat-list-item:hover, .chat-list-item.active {
    background: var(--wiesen-sehr-hell);
}

.chat-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wiesen-hell);
    flex-shrink: 0;
    background: #eeeeee;
}

.chat-item-info {
    flex-grow: 1;
    min-width: 0;
}

.chat-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dunkel-gruen);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-preview {
    font-size: 0.78rem;
    color: #777777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.chat-main-window {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: 100%;
    min-width: 0;
    min-height: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.chat-header-bar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #FAFCFB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.chat-messages-area {
    flex: 1 1 0;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #F8FAF9;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: var(--wiesen-gruen);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-bubble.other {
    align-self: flex-start;
    background: #ffffff;
    color: var(--dunkel-gruen);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

.chat-bubble-time {
    font-size: 0.68rem;
    display: block;
    margin-top: 4px;
    opacity: 0.75;
    text-align: right;
    white-space: nowrap;
}

.chat-media-img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 8px;
    margin-top: 6px;
    display: block;
    cursor: pointer;
}

.chat-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
}

.chat-input-bar-wrap {
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chat-attachment-preview {
    display: none;
    padding: 8px 14px;
    background: #F1F5F3;
    font-size: 0.82rem;
    color: var(--wiesen-gruen);
    font-weight: 600;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.chat-input-bar {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.chat-action-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    color: #666666;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.chat-action-btn:hover {
    background: #EDF2F0;
    color: var(--wiesen-gruen);
}

.chat-input-bar input[type="text"] {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.btn-send-message {
    background: var(--wiesen-gruen);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.emoji-picker-popover {
    display: none;
    position: absolute;
    bottom: 58px;
    left: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 12px;
    width: 290px;
    max-width: calc(100vw - 30px);
    z-index: 1000;
}

.emoji-picker-popover.active {
    display: block;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    text-align: center;
}

.emoji-item {
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    user-select: none;
}

.emoji-item:hover {
    background: var(--wiesen-sehr-hell);
}

/* TAGEBUCH, HUNDE & KALENDER */
.diary-search-bar {
    margin-bottom: 22px;
    display: flex;
    gap: 12px;
    background: var(--weiss);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    align-items: center;
    width: 100%;
}

.diary-search-bar input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dunkel-gruen);
    outline: none;
    width: 100%;
    min-width: 0;
}

.diary-count-tag {
    font-size: 0.78rem;
    color: var(--wiesen-gruen);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

mark.diary-highlight {
    background-color: #FFF176;
    color: #1A262B;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

#dogListContainer {
    width: 100%;
    margin-bottom: 30px;
}

.dog-block-card {
    background: var(--weiss);
    border: 2px solid var(--border-card-strong);
    border-radius: var(--radius);
    padding: clamp(18px, 2.2vw, 24px);
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    overflow: hidden;
}

.dog-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--wiesen-sehr-hell);
    padding-bottom: 16px;
    flex-wrap: nowrap;
}

.dog-block-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dog-block-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wiesen-hell);
    flex-shrink: 0;
    background: #FAFCFB;
}

.dog-block-name-box h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.35rem;
    color: var(--dunkel-gruen);
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.dog-block-breed-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--wiesen-sehr-hell);
    color: var(--wiesen-gruen);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(82, 121, 111, 0.2);
    margin-top: 2px;
    white-space: nowrap;
}

.dog-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.btn-dog-action {
    background: #F8FAFA;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--dunkel-gruen);
    font-family: inherit;
    white-space: nowrap;
}

.btn-dog-action:hover {
    background: var(--wiesen-sehr-hell);
    color: var(--wiesen-gruen);
    border-color: var(--wiesen-hell);
}

.btn-dog-delete:hover {
    background: #FFEBEE;
    color: var(--rot);
    border-color: #FFCDD2;
}

.dog-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    width: 100%;
}

.dog-metric-tile {
    background: #F8FAFA;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dog-metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-grau);
    font-weight: 600;
    white-space: nowrap;
}

.dog-metric-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dunkel-gruen);
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.dog-focus-block {
    background: #F8FAFA;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.dog-focus-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-grau);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.dog-focus-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--dunkel-gruen);
    font-weight: 500;
    word-break: break-word;
}

.report-card {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: clamp(18px, 2.2vw, 24px);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--wiesen-gruen);
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
    width: 100%;
    overflow: hidden;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.report-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--dunkel-gruen);
    font-weight: 700;
    word-break: break-word;
}

.report-meta {
    font-size: 0.82rem;
    color: var(--wiesen-gruen);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.report-body p {
    margin: 0 0 10px 0;
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.55;
    word-break: break-word;
}

.report-homework {
    background: #FFFDF9;
    border: 1px solid #FFE0B2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: #795548;
    word-break: break-word;
}

.report-homework strong {
    color: var(--akzent-orange);
    display: block;
    margin-bottom: 4px;
}

.appointment-card {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: clamp(18px, 2.2vw, 22px);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--wiesen-gruen);
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    overflow: hidden;
}

.appointment-card.is-pending {
    border-left-color: #FFA000;
    background: #FFFDF8;
}

.appointment-card.is-archived {
    border-left-color: #90A4AE;
    background: #FAFCFB;
}

.appointment-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.appointment-card h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: var(--dunkel-gruen);
    word-break: break-word;
}

.appointment-booking-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #ECEFF1;
    color: #455A64;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
    white-space: nowrap;
}

.appointment-meta {
    font-size: 0.86rem;
    color: #555555;
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-pending {
    background: #FFF8E1;
    color: #B78103;
    border: 1px solid #FFE082;
}

.status-confirmed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-completed {
    background: #E0F2F1;
    color: #00695C;
}

.btn-client-invoice, .btn-client-video, .btn-client-cancel, .btn-client-reschedule {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-client-invoice {
    background-color: #FFF8E1;
    color: #8D6E63;
    border: 1px solid #FFE082;
}

.btn-client-video {
    background-color: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

.btn-client-cancel {
    background-color: #FFEBEE;
    color: var(--rot);
    border: 1px solid #FFCDD2;
}

.btn-client-reschedule {
    background-color: var(--wiesen-sehr-hell);
    color: var(--wiesen-gruen);
    border: 1px solid var(--wiesen-hell);
}

.bank-info-box {
    background: #FFFDF9;
    border: 1px solid #FFE0B2;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 6px;
    font-size: 0.86rem;
    color: #4A3B32;
    width: 100%;
}

.bank-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #D84315;
    margin-bottom: 8px;
    white-space: nowrap;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 6px;
    width: 100%;
}

.bank-item {
    background: #FFFFFF;
    border: 1px solid #FFECB3;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bank-label {
    font-size: 0.72rem;
    color: #8D6E63;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

.bank-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1A262B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.btn-copy {
    background: #E8F0E9;
    border: 1px solid var(--wiesen-hell);
    color: var(--wiesen-gruen);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.onboarding-banner {
    background: linear-gradient(135deg, #FFFDFB, #FFF5F0);
    border: 2px dashed var(--akzent-orange);
    border-radius: var(--radius);
    padding: clamp(16px, 2vw, 22px);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    width: 100%;
}

.onboarding-info h4 {
    margin: 0 0 5px 0;
    color: var(--akzent-orange);
    font-size: 1.05rem;
}

.onboarding-info p {
    margin: 0;
    font-size: 0.88rem;
    color: #555555;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.form-group.span-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dunkel-gruen);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    background: #F8FAFA;
    color: var(--dunkel-gruen);
    font-size: 0.9rem;
    outline: none;
}

.avatar-upload-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--wiesen-sehr-hell);
    width: 100%;
}

.avatar-preview-lg {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wiesen-hell);
    background: #FAFCFB;
    flex-shrink: 0;
}

.avatar-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-file-upload {
    background-color: var(--wiesen-sehr-hell);
    color: var(--wiesen-gruen);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: 1px solid var(--wiesen-hell);
    text-align: center;
    white-space: nowrap;
}

.empty-state-box {
    text-align: center;
    padding: 38px 20px;
    background: #FAFCFB;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    width: 100%;
}

/* MODALE & TUTORIAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 38, 43, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: 28px 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.modal-box h3 {
    margin: 0 0 10px 0;
    color: var(--dunkel-gruen);
    font-size: 1.25rem;
}

.modal-box p {
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.modal-box .hint-box {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #8C6D1F;
    margin-bottom: 16px;
}

.modal-actions-flex {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-modal-cancel {
    background: #ECEFF1;
    color: #455A64;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    white-space: nowrap;
}

.btn-modal-confirm-delete {
    background: var(--rot);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    white-space: nowrap;
}

.tutorial-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 28, 32, 0.78);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: none;
}

.tutorial-backdrop.active {
    display: block;
}

.nav-item.spotlight-active {
    position: relative;
    z-index: 9999;
    background-color: var(--weiss);
    color: var(--akzent-orange);
    box-shadow: 0 0 0 4px var(--akzent-orange), 0 10px 25px rgba(0,0,0,0.3);
    border-radius: 8px;
    pointer-events: none;
}

.tutorial-card {
    position: fixed;
    z-index: 10000;
    background: linear-gradient(135deg, #B4513A, #9E4530);
    color: var(--weiss);
    padding: 22px 24px;
    border-radius: 14px;
    width: 320px;
    max-width: calc(100vw - 30px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    display: none;
    animation: tutFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tutFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-card::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 24px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #B4513A;
}

.tutorial-step-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.22);
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.tutorial-title {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--weiss);
}

.tutorial-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.95);
}

.tutorial-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
}

.btn-tutorial-next {
    background-color: var(--weiss);
    color: var(--akzent-orange);
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-tutorial-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
    white-space: nowrap;
}

/* ==========================================================================
   MOBIL-LAYOUT (EXAKT AB MAX-WIDTH: 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: 64px;
        padding: 0;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid var(--border-color);
        border-right: none;
        background-color: var(--weiss);
        z-index: 100;
    }

    /* WENN EIN CHAT AKTIV OFFEN IST, LEISTE AUSBLENDEN */
    body:has(.chat-main-window.has-active-chat) .sidebar {
        display: none !important;
    }

    .sidebar-logo, .sidebar-footer {
        display: none;
    }

    .nav-list {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        width: 100%;
        height: 100%;
    }

    .nav-item {
        width: 100%;
        height: 100%;
        padding: 4px 1px;
        font-size: 0.62rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 2px;
        border-left: none;
        border-bottom: 3px solid transparent;
        box-sizing: border-box;
        position: relative;
        white-space: normal;
    }

    .nav-icon {
        font-size: 1.15rem;
        line-height: 1;
        display: block;
    }

    .nav-item span:last-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        display: block;
    }

    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--wiesen-gruen);
        background-color: var(--wiesen-sehr-hell);
    }

    .desktop-badge {
        display: none !important;
    }

    .portal-topbar {
        padding: 12px 16px;
        height: 52px;
    }

    .portal-mobile-logo {
        display: inline-block;
    }

    .main-content {
        padding: 10px 8px 70px 8px;
        width: 100%;
    }

    .content-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .card {
        padding: 16px 12px;
    }

    /* MOBIL: 1-SPALTIG UMSCHALTEN */
    .credits-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dashboard-actions-grid,
    .card .actions-row,
    .card:has(.btn-google-review) > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dashboard-actions-grid .btn-primary,
    .dashboard-actions-grid .btn-google-review,
    .card .actions-row .btn-primary,
    .card .actions-row .btn-google-review,
    .card:has(.btn-google-review) > div:last-child a,
    .card:has(.btn-google-review) > div:last-child button {
        width: 100% !important;
        font-size: 0.88rem !important;
    }

    .dashboard-game-banner-card {
        width: 100%;
        margin-bottom: 20px;
        border-radius: var(--radius);
        overflow: hidden;
    }

    .dashboard-game-banner-img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        object-position: 50% 50%;
        border-radius: var(--radius);
    }

    .game-loading-box {
        padding: 16px 14px;
        gap: 12px;
    }

    .game-loading-status-row {
        font-size: 0.8rem;
    }

    /* MOBILER CHAT: APP-VIEWPORT FIXIERT DIREKT UNTER TOPBAR BIS ZUM DISPLAY-ENDE */
    #chats.active {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #chats .page-header {
        display: none !important;
    }

    .chat-app-card {
        grid-template-columns: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body:has(.chat-main-window.has-active-chat) .chat-app-card {
        position: fixed !important;
        top: 52px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: auto !important;
        z-index: 90 !important;
        background: #ffffff !important;
    }

    .chat-sidebar-list.has-active-chat {
        display: none !important;
    }

    .chat-main-window {
        display: none;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .chat-main-window.has-active-chat {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        width: 100% !important;
    }

    .chat-header-bar {
        padding: 8px 12px !important;
        flex-shrink: 0 !important;
    }

    .chat-messages-area {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 0 !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        padding: 10px 10px !important;
    }

    .chat-bubble {
        max-width: 88%;
    }

    .chat-input-bar-wrap {
        position: relative !important;
        z-index: 10 !important;
        background: #ffffff !important;
        border-top: 1px solid var(--border-color) !important;
        flex-shrink: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 4px) !important;
    }

    .chat-input-bar {
        padding: 8px 6px;
        gap: 4px;
    }

    .btn-send-message {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .notify-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 38px 14px 14px;
        gap: 12px;
    }

    .notify-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .btn-notify-action {
        width: 100%;
        text-align: center;
        padding: 9px 14px;
    }

    .dog-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dog-actions-bar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dog-metrics-grid {
        grid-template-columns: 1fr;
    }

    .appointment-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .appointment-meta {
        flex-wrap: wrap;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .onboarding-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .onboarding-banner .btn-primary {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .avatar-upload-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tutorial-card {
        left: 15px;
        right: 15px;
        width: auto;
        top: auto;
        bottom: 85px;
    }

    .tutorial-card::before {
        left: 50%;
        top: auto;
        bottom: -10px;
        margin-left: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid #B4513A;
        border-top: 10px solid #B4513A;
        border-bottom: none;
    }
}
/* Kunden werben Kunden (17.11.2026) */
.referral-card { border-left: 4px solid var(--akzent-orange); }
.referral-text { margin: 0 0 14px 0; color: #555; font-size: 0.92rem; line-height: 1.5; }
.referral-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.referral-code-label { font-size: 0.88rem; color: var(--dunkel-gruen); font-weight: 600; }
.referral-code { background: var(--wiesen-sehr-hell); color: var(--dunkel-gruen); border: 1px dashed var(--wiesen-gruen); border-radius: 8px; padding: 6px 14px; font-weight: 700; letter-spacing: 1px; font-size: 1rem; }
.referral-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-referral-wa { background: var(--wiesen-gruen); color: #FFFFFF; border: none; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-referral-wa:hover { background: #3D5A53; color: #FFFFFF; }
.referral-count { margin: 14px 0 0 0; font-size: 0.88rem; color: var(--wiesen-gruen); font-weight: 600; }
.referral-count:empty { display: none; }

/* Tagebuch: Fotos & Videos vom Auslauf (17.11.2026) */
.report-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.report-media-photo, .report-media-video { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 1px solid #D1DCD9; background: #E8F0E9; }
.report-media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.report-media-photo:hover img { transform: scale(1.04); }
.report-media-video { object-fit: cover; background: #1A262B; }
@media (max-width: 480px) { .report-media { grid-template-columns: repeat(2, 1fr); } }
