* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #f8fbf8;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #2f332f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

body.season-fruehjahr {
    background-image: url("../img/hintergrund/fruehjahr.jpg");
}

body.season-sommer {
    background-image: url("../img/hintergrund/sommer.jpg");
}

body.season-herbst {
    background-image: url("../img/hintergrund/herbst.jpg");
}

body.season-winter {
    background-image: url("../img/hintergrund/winter.jpg");
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 1.25rem;
    background: linear-gradient(180deg, #245c36 0%, #164526 100%);
    color: #ffffff;
    box-shadow: 12px 0 35px rgba(20, 70, 40, 0.16);
}

.sidebar h2 {
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-size: 1.45rem;
}

.sidebar a {
    display: block;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.content {
    min-width: 0;
    padding: 2rem 2.5rem 4rem;
}

h1 {
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
}

h2 {
    margin: 0 0 1rem;
    color:#ffffff;
    font-size: 1.45rem;
}

.card {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(20, 70, 40, 0.08);
}

.dashboard-welcome {
    margin-bottom: 1.75rem;
}

.dashboard-welcome h1 {
    margin-bottom: 0.6rem;
}

.dashboard-role {
    margin: 0;
    color: #2f332f;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.stat-card {
    border-radius: 8px;
    padding: 1.35rem;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(20, 70, 40, 0.08);
    border-left: 6px solid #245c36;
}

.stat-card h3 {
    margin: 0 0 0.8rem;
    color: #2f332f;
    font-size: 1.05rem;
}

.stat-number {
    color: #245c36;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.warning-card {
    border-left-color: #d99a20;
}

.warning-card .stat-number {
    color: #b7791f;
}

.kuendigung-card {
    border-left-color: #b42318;
}

.kuendigung-card .stat-number {
    color: #b42318;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    background: #245c36;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus {
    background: #1c492b;
    color: #ffffff;
    text-decoration: none;
}

.success,
.error {
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-weight: 700;
}

.success {
    background: #eaf6ed;
    color: #245c36;
}

.error {
    background: #fdecec;
    color: #9f1d16;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    color: #333333;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #c9d0ca;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: #ffffff;
    color: #2f332f;
    font: inherit;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.45rem;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0.75rem 1.1rem;
    background: #245c36;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: #1c492b;
    color: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    border-bottom: 1px solid #e5e9e5;
    padding: 0.85rem 0.75rem;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #245c36;
    color: #ffffff;
    font-weight: 800;
}

tr:hover td {
    background: #f8fbf8;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
}

.action-button:hover,
.action-button:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    filter: brightness(0.95);
}

.action-button-edit {
    background: #245c36 !important;
}

.action-button-delete {
    background: #b42318 !important;
}

.hours-difference-missing,
.hours-difference-extra,
.hours-difference-balanced {
    display: inline-flex;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    font-weight: 800;
}

.hours-difference-missing {
    background: #fdecec;
    color: #b42318;
}

.hours-difference-extra {
    background: #eaf6ed;
    color: #245c36;
}

.hours-difference-balanced {
    background: #f0f7f2;
    color: #245c36;
}

.login-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
    padding: 1rem clamp(1rem, 6vw, 7rem);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 35px rgba(20, 70, 40, 0.12);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #245c36;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.login-brand img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(20, 70, 40, 0.18);
}

.login-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    color: #245c36;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(20, 70, 40, 0.1);
}

.login-home-link:hover,
.login-home-link:focus,
.login-brand:hover,
.login-brand:focus {
    color: #1c492b;
    text-decoration: none;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 88px);
    padding: 1.5rem;
}

.login-page-wide {
    gap: 1.25rem;
}

.login-info-card,
.login-card {
    width: min(100%, 430px);
    border-radius: 8px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(20, 70, 40, 0.18);
}

.login-info-card {
    width: min(100%, 560px);
}

.login-info-card-large {
    width: min(100%, 850px);
}

.login-access-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
}

.login-kicker {
    display: inline-flex;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #eaf6ed;
    color: #245c36;
    font-weight: 800;
    font-size: 0.85rem;
}

.login-info-card h1,
.login-card h1 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.login-info-card p,
.login-card p {
    margin: 0 0 1.25rem;
    color: #4b554b;
}

.login-info-list {
    display: grid;
    gap: 0.8rem;
}

.login-info-list div {
    border-left: 5px solid #245c36;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: #ffffff;
}

.login-info-list strong,
.login-info-list span {
    display: block;
}

.login-info-list strong {
    margin-bottom: 0.25rem;
    color: #245c36;
}

.login-info-list span {
    color: #4b554b;
    line-height: 1.45;
}

.login-card button {
    width: 100%;
}

.login-note {
    margin: 1.25rem 0 0;
    color: #607086;
    line-height: 1.45;
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-feature-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid #dfe9e1;
    border-radius: 8px;
    padding: 1.25rem;
    background: rgba(248, 252, 249, 0.82);
    box-shadow: 0 10px 26px rgba(20, 70, 40, 0.06);
}

.login-feature-card::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(36, 92, 54, 0.08);
}

.login-feature-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(20, 70, 40, 0.08);
    font-size: 1.35rem;
}

.login-feature-card h2 {
    margin-bottom: 0.55rem;
    color: #1d2a3a;
}

.login-feature-card p {
    margin: 0;
    color: #56657a;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }

    .content {
        padding: 1.25rem;
    }

    .login-page-wide {
        flex-direction: column;
        align-items: stretch;
    }

    .login-topbar {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .login-info-card,
    .login-card {
        width: 100%;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
