/* ---------------------------------------------------------------- CARD */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

/* ---------------------------------------------------------------- HERO */
.hero-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    background: var(--bg-placeholder);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ---------------------------------------------------------------- BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--muted   { background: var(--bg-input);   color: var(--text-secondary); }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.btn:hover { background: var(--bg-card-hover); }

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #0e0f12;
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn--danger:hover { background: var(--danger-bg); }

/* ---------------------------------------------------------------- NEWS-KARTEN (Startseite) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-top: 28px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.news-card-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

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

/* ---------------------------------------------------------------- HUNDEPROFIL */
.dog-profile-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.dog-profile-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--bg-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.dog-profile-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dog-profile-fields {
    display: grid;
    grid-template-columns: 130px 1fr;
    row-gap: 10px;
    font-size: 14px;
}

.dog-profile-fields dt { color: var(--text-secondary); }
.dog-profile-fields dd { margin: 0; font-weight: 600; }

.dog-profile-fields dd a { color: var(--accent); }
.dog-profile-fields dd a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .dog-profile-header { grid-template-columns: 1fr; }
    .dog-profile-photo { max-width: 220px; }
}

/* ---------------------------------------------------------------- HUNDE-LISTE */
.dog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap);
}

.dog-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background var(--transition);
}

.dog-list-card:hover { background: var(--bg-card-hover); }

.dog-list-card-photo {
    aspect-ratio: 1;
    background: var(--bg-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.dog-list-card-body { padding: 12px 14px; }

.dog-list-card-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------- BILDER-GRID (Galerie) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.image-grid-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg-placeholder);
    overflow: hidden;
    cursor: pointer;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------------- TABS (Galerie: Würfe) */
.tab-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.tab-row::-webkit-scrollbar { height: 4px; }

.tab-pill {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tab-pill.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------------------------------------------------------------- FORMS */
.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=date],
.field input[type=number],
.field select,
.field textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-checkbox label { margin: 0; }

/* ---------------------------------------------------------------- HEADLINE BAR */
.headline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 20px;
}

.headline-bar h1, .headline-bar h2 {
    margin: 0;
    font-size: 22px;
}
