﻿:root {
    --dn-primary: #58ad25;
    --dn-primary-dark: #3f861b;
    --dn-primary-light: #e9f6e2;
    --dn-bg: #f5f8f1;
    --dn-card: #ffffff;
    --dn-text: #3f3f3f;
    --dn-muted: #6d7468;
    --dn-border: #d8e8cf;
    --dn-accent: #8bc34a;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--dn-bg);
    color: var(--dn-text);
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
}

/* NAVBAR */

.dn-navbar {
    min-height: 78px;
    background: linear-gradient(135deg, var(--dn-primary), var(--dn-primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 34px;
    box-shadow: 0 6px 18px rgba(63, 134, 27, 0.25);
    gap: 20px;
}

.dn-navbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.dn-navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dn-logo {
    font-size: 34px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

    .dn-logo:hover {
        color: white;
    }

    .dn-logo::after {
        content: " !CH";
        background: white;
        color: var(--dn-primary);
        border: 4px solid var(--dn-primary);
        padding: 2px 8px;
        margin-left: 10px;
        font-size: 24px;
        transform: rotate(-3deg);
        display: inline-block;
        line-height: 1;
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }

.dn-slogan {
    margin-left: 18px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
}

.dn-user {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 600;
}

.dn-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

    .dn-nav-link:hover {
        color: white;
        background: rgba(255,255,255,0.16);
    }

/* MAIN */

.dn-main {
    padding: 32px;
}

.dn-page-header {
    margin-bottom: 28px;
}

    .dn-page-header h1 {
        font-weight: 800;
        margin-bottom: 6px;
        color: var(--dn-primary-dark);
    }

    .dn-page-header p {
        color: var(--dn-muted);
        margin: 0;
    }

/* GRID / CARDS / PANELS */

.dn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.dn-card,
.dn-panel {
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--dn-border);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(63, 134, 27, 0.08);
}

.dn-card {
    padding: 24px;
    transition: all 0.2s ease;
}

    .dn-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(63, 134, 27, 0.15);
    }

.dn-panel {
    padding: 24px;
}

.dn-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--dn-primary-light);
    color: var(--dn-primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.dn-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dn-primary-dark);
}

.dn-card p {
    color: var(--dn-muted);
    min-height: 48px;
}

.dn-card a {
    display: inline-block;
    margin-top: 12px;
    color: var(--dn-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

    .dn-card a:hover {
        color: var(--dn-primary);
    }

.dn-section {
    margin-top: 34px;
}

/* DASHBOARD */

.dn-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
}

.dn-dashboard-main,
.dn-dashboard-side {
    min-width: 0;
}

.dn-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

    .dn-panel-title h2,
    .dn-panel h2 {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
        color: var(--dn-primary-dark);
    }

    .dn-panel-title a {
        color: var(--dn-primary-dark);
        font-weight: 700;
        text-decoration: none;
    }

        .dn-panel-title a:hover {
            color: var(--dn-primary);
        }

/* LISTS */

.dn-list-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dn-border);
}

    .dn-list-item:last-child {
        border-bottom: none;
    }

    .dn-list-item h4 {
        margin: 0 0 4px 0;
        font-size: 18px;
        font-weight: 800;
        color: var(--dn-text);
    }

    .dn-list-item p {
        margin: 0;
        color: var(--dn-muted);
    }

.dn-date-box {
    min-width: 58px;
    height: 62px;
    border-radius: 16px;
    background: var(--dn-primary-light);
    color: var(--dn-primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    border: 1px solid var(--dn-border);
}

    .dn-date-box strong {
        font-size: 22px;
        line-height: 22px;
    }

    .dn-date-box span {
        font-size: 12px;
        font-weight: 700;
    }

.dn-category-badge {
    min-width: 120px;
    height: 34px;
    background: var(--dn-primary-light);
    color: var(--dn-primary-dark);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    border: 1px solid var(--dn-border);
}

/* STATS */

.dn-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.dn-stat {
    background: #f4f9f0;
    border: 1px solid var(--dn-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

    .dn-stat strong {
        display: block;
        font-size: 28px;
        color: var(--dn-primary-dark);
    }

    .dn-stat span {
        color: var(--dn-muted);
        font-size: 14px;
        font-weight: 600;
    }

/* QUICKLINKS */

.dn-quicklinks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

    .dn-quicklinks a {
        display: block;
        background: #f4f9f0;
        border: 1px solid var(--dn-border);
        border-radius: 14px;
        padding: 12px 14px;
        color: var(--dn-text);
        text-decoration: none;
        font-weight: 700;
        transition: all 0.2s ease;
    }

        .dn-quicklinks a:hover {
            background: var(--dn-primary-light);
            color: var(--dn-primary-dark);
            transform: translateX(3px);
        }

/* BUTTONS */

.btn-primary {
    background-color: var(--dn-primary);
    border-color: var(--dn-primary);
    font-weight: 700;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--dn-primary-dark);
        border-color: var(--dn-primary-dark);
    }

.btn-secondary {
    font-weight: 700;
}

/* TABLES / FORMS */

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--dn-border);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--dn-primary);
        box-shadow: 0 0 0 0.2rem rgba(88, 173, 37, 0.18);
    }

.table {
    color: var(--dn-text);
}

.badge.bg-success {
    background-color: var(--dn-primary) !important;
}

/* PUBLIC START */

.dn-public-hero {
    min-height: 430px;
    background: linear-gradient(135deg, rgba(88,173,37,0.92), rgba(63,134,27,0.92)), url('/img/steinwiesen-natur.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 28px;
    padding: 75px;
    display: flex;
    align-items: center;
    margin-bottom: 42px;
    box-shadow: 0 14px 34px rgba(63,134,27,0.25);
}

    .dn-public-hero h1 {
        font-size: 64px;
        font-weight: 900;
        letter-spacing: -2px;
        margin-bottom: 8px;
    }

        .dn-public-hero h1::after {
            content: " !CH";
            background: white;
            color: var(--dn-primary);
            border: 5px solid var(--dn-primary);
            padding: 2px 12px;
            margin-left: 14px;
            font-size: 36px;
            display: inline-block;
            transform: rotate(-3deg);
            line-height: 1;
        }

    .dn-public-hero h2 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .dn-public-hero p {
        font-size: 18px;
        max-width: 720px;
        opacity: 0.96;
    }

.dn-public-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.dn-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}
.dn-public-hero {
    min-height: 430px;
    background: linear-gradient( rgba(88,173,37,0.75), rgba(63,134,27,0.75) ), url('/images/steinwiesen-natur.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}
.dn-logo-image {
    height: 70px;
    width: auto;
    display: block;
}

.dn-brand-text {
    display: flex;
    flex-direction: column;
}

.dn-brand-title {
    color: white;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.dn-brand-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    margin-top: 4px;
}
.dn-public-section {
    margin-bottom: 42px;
}

    .dn-public-section h2 {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 18px;
        color: var(--dn-primary-dark);
    }

/* MOBILE */

@media (max-width: 1000px) {
    .dn-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dn-navbar {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
    }

    .dn-navbar-right {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .dn-main {
        padding: 18px;
    }

    .dn-logo {
        font-size: 28px;
    }

        .dn-logo::after {
            font-size: 18px;
            border-width: 3px;
        }

    .dn-slogan {
        margin-left: 0;
        display: block;
        width: 100%;
        margin-top: 4px;
    }

    .dn-public-hero {
        padding: 36px;
        min-height: 360px;
    }

        .dn-public-hero h1 {
            font-size: 44px;
        }

            .dn-public-hero h1::after {
                font-size: 24px;
            }

    .dn-list-item {
        flex-direction: column;
    }

    .dn-category-badge {
        width: fit-content;
    }
}
.btn-success,
.btn-success:hover,
.btn-success:focus {
    color: #ffffff !important;
    font-weight: 700;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus {
    color: #ffffff !important;
    font-weight: 700;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus {
    color: #000000 !important;
    font-weight: 700;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
    color: #ffffff !important;
    font-weight: 700;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff !important;
    font-weight: 700;
}
.dn-btn-edit {
    background: #6c757d;
    color: white;
    border-radius: 10px;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
}

.dn-btn-delete {
    background: #dc3545;
    color: white;
    border-radius: 10px;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
}

.dn-btn-done {
    background: #198754;
    color: white;
    border-radius: 10px;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
}

.dn-btn-view {
    background: var(--dn-primary);
    color: white;
    border-radius: 10px;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
}
.dn-topbar {
    height: 118px;
    background: linear-gradient(135deg, #58ad25, #3f861b);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 42px;
}

.dn-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dn-brand-logo {
    height: 72px;
    width: auto;
    background: white;
    padding: 4px;
}

.dn-brand-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.dn-brand-subtitle {
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

.dn-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

    .dn-userbar i {
        font-size: 24px;
    }

.dn-iconnav {
    height: 82px;
    background: linear-gradient(135deg, #58ad25, #3f861b);
    display: flex;
    justify-content: center;
    gap: 34px;
    padding-bottom: 12px;
    box-shadow: 0 8px 22px rgba(63, 134, 27, 0.22);
}

    .dn-iconnav a {
        color: white;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-weight: 700;
        font-size: 14px;
        min-width: 74px;
    }

    .dn-iconnav i {
        font-size: 26px;
    }

    .dn-iconnav a:hover {
        transform: translateY(-2px);
        color: white;
    }
@media (max-width: 900px) {

    .dn-topbar {
        height: auto;
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dn-brand {
        width: 100%;
        gap: 12px;
    }

    .dn-brand-logo {
        height: 48px;
    }

    .dn-brand-title {
        font-size: 22px;
    }

    .dn-brand-subtitle {
        font-size: 12px;
    }

    .dn-userbar {
        font-size: 13px;
    }

    .dn-iconnav {
        height: auto;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 18px;
        padding: 10px 14px 14px 14px;
        white-space: nowrap;
    }

        .dn-iconnav a {
            min-width: 72px;
            font-size: 12px;
        }

        .dn-iconnav i {
            font-size: 22px;
        }

    .dn-main {
        padding: 16px;
    }

    .dn-public-hero {
        min-height: auto;
        padding: 30px 22px;
        border-radius: 18px;
    }

        .dn-public-hero h1 {
            font-size: 32px;
            letter-spacing: -1px;
        }

            .dn-public-hero h1::after {
                font-size: 20px;
                border-width: 3px;
                margin-left: 6px;
            }

        .dn-public-hero h2 {
            font-size: 21px;
        }

        .dn-public-hero p {
            font-size: 15px;
        }

    .dn-public-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dn-grid {
        grid-template-columns: 1fr;
    }

    .dn-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dn-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dn-list-item {
        flex-direction: column;
    }

    .dn-category-badge {
        width: fit-content;
    }
}
@media (max-width: 480px) {

    .dn-brand {
        flex-direction: row;
        align-items: center;
    }

    .dn-brand-logo {
        height: 42px;
    }

    .dn-brand-title {
        font-size: 18px;
    }

    .dn-brand-subtitle {
        font-size: 11px;
    }

    .dn-iconnav {
        gap: 12px;
    }

        .dn-iconnav a {
            min-width: 64px;
        }

    .dn-public-hero h1 {
        font-size: 27px;
    }

    .dn-card,
    .dn-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .dn-stat strong {
        font-size: 23px;
    }
}