.card h2 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.15em;
    font-weight: 600;
}

.event-mobile-break {
    display: none;
}

.card h2.event-heading {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: #fff;
}

.event-color-gruen {
    background: #2e7d32;
}

.event-color-weiss {
    border: 1px solid #cbd5e1;
    background: #fff;
}

.card h2.event-color-weiss {
    color: #111827;
}

.event-color-rot {
    background: #b91c1c;
}

.event-color-violett {
    background: #6b21a8;
}

.event-color-rosa {
    background: #ad1457;
}

.name-wrapper {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: var(--space-sm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-card-soft);
}

.name-wrapper.highlight {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.name-label {
    display: block;
    height: 2.8em;
    overflow: hidden;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    line-height: 1.4em;
    text-align: center;
}

.checkbox-line {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: 0.9em;
    text-align: center;
}

.checkbox-line input {
    margin: 0 5px 0 0;
}

.button,
button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button:hover,
button:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.button:active,
button:active {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    transform: translateY(0);
}

.button:focus-visible,
button:focus-visible,
.link-button:focus-visible {
    outline: 3px solid rgba(30, 64, 175, 0.35);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.button-success {
    background: var(--color-success);
}

.button-danger {
    background: var(--color-danger);
}

.button-secondary {
    background: #64748b;
}

.button-block {
    width: 100%;
}

.nav-button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.nav-button.is-active {
    background: #9a6700;
}

.nav-button.is-active:hover {
    background: #7c5200;
}

.swap-hint,
.edit-hint {
    margin-top: var(--space-sm);
    padding: var(--space-md);
    border-left: 4px solid var(--color-warning);
    border-radius: var(--radius-md);
    background: #fffbeb;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.swap-hint p {
    margin: 0 0 var(--space-sm);
}

.link-button {
    display: block;
    width: 100%;
    margin-top: var(--space-xs);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
}

.link-button:hover {
    background: transparent;
    box-shadow: none;
    color: var(--color-primary-dark);
    text-decoration: underline;
    transform: none;
}

.alert {
    margin-bottom: var(--space-lg);
    padding: 15px;
    border: 1px solid;
    border-radius: var(--radius-md);
    text-align: center;
}

.alert-error {
    border-color: #f5c6cb;
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    border-color: #c3e6cb;
    background: #d4edda;
    color: #155724;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
