/* === SCHÖNWALD BRANDING / ZENTRALE STYLES === */

:root {
    --brand-primary: #009D9C;
    --brand-secondary: #17364B;
    --brand-light: #000000;
    --color-primary: #005a9c;
    --color-primary-dark: #004475;
    --color-success: #28a745;
    --color-success-dark: #218838;
    --color-danger: #dc3545;
    --color-danger-dark: #bd2130;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    --color-muted: #6c757d;
    --color-text: #333;
    --color-bg: #f4f7f6;
    --color-border: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding: 30px;
    margin: 0;
}

h1 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.8rem;
}

h2 {
    color: #333;
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border);
}

h3 {
    margin-top: 0;
    color: var(--color-info);
    font-size: 1.3rem;
    margin-bottom: 11px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: #fbfdff;
}

input[disabled] {
    background-color: #eaeaea;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    height: 60px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

.brand-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #d9e2ec;
    background-color: #f8fafc;
}

.brand-footer p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.brand-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}

.brand-footer a:hover {
    color: #00f;
    text-decoration: underline;
}

.brand-footer span {
    color: #94a3b8;
}

ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

dd {
    margin: 1em 0 1em 1em;
}

tt,
code,
kbd {
    font-family: "Courier New", Courier, monospace;
    font-size: 82%;
}

table,
.master-table,
.child-table,
.matrix-table,
.attendance-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

th,
td,
.master-table th,
.master-table td,
.child-table th,
.child-table td,
.matrix-table th,
.matrix-table td,
.attendance-section th,
.attendance-section td {
    border: 1px solid var(--color-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th,
.master-table th,
.matrix-table th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even),
.master-table tr:nth-child(even),
.child-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-wrapper {
    display: flex;
	justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.box {
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.profile-card {
    max-width: 850px;
    background: #fff;
    padding: 30px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.brand-header,
.brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.brand-header img,
.brand-footer img {
    height: 96px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-title h1,
.brand-title h2 {
    margin: 0;
    color: #fff;
}

.brand-title small {
    opacity: .92;
    font-size: 0.92rem;
}

.admin-header,
.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nav-links,
.utility-links,
.form-inline,
.flex-grid,
.class-badge-container,
.child-item {
    display: flex;
    gap: 10px;
}

.flex-grid,
.class-badge-container {
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    grid-column: span 3;
}

.form-inline div {
    flex: 1;
}

.full-width {
    grid-column: span 2;
}

.one-third {
    grid-column: span 1;
}

.two-thirds {
    grid-column: span 2;
}

.half-width {
    grid-column: span 1;
}

.module-card {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    flex: 1 1 340px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: relative;
}

.btn,
.btn-login,
.btn-submit,
.btn-save,
.btn-nav,
.btn-settings,
.btn-modal-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
}

.btn:hover,
.btn-login:hover,
.btn-submit:hover,
.btn-save:hover,
.btn-nav:hover,
.btn-settings:hover {
    background: var(--color-primary-dark);
}

.btn-add,
.btn-add-child {
    background: var(--color-success);
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

.btn-add:hover,
.btn-add-child:hover {
    background: var(--color-success-dark);
}

.btn-delete,
.btn-admin-delete,
.btn-table-delete,
.btn-delete-mod {
    background: var(--color-danger);
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

.btn-delete:hover,
.btn-admin-delete:hover,
.btn-table-delete:hover,
.btn-delete-mod:hover,
.btn-logout:hover {
    background: var(--color-danger-dark);
}

.btn-delete:disabled {
    background: #e0a8ad;
    border-color: #ddb4b7;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-back,
.btn-modal-close {
    background: var(--color-muted);
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-back:hover,
.btn-modal-close:hover {
    background: #5a6268;
}

.btn-nav-list,
.btn-print,
.btn-modal-submit {
    background: var(--color-info);
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.btn-nav-list:hover,
.btn-print:hover,
.btn-modal-submit:hover {
    background: #138496;
}

.btn-logout  {
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.btn-admin-edit,
.btn-table-edit {
    background: var(--color-warning);
    color: #212529;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

.btn-admin-edit:hover,
.btn-table-edit:hover {
    background: #e0a800;
}

.back-link,
.back a,
.register-link a,
.utility-links a,
.class-badge a,
a.demo {
	color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover,
.back a:hover,
.register-link a:hover,
.utility-links a:hover,
a.demo:hover {
    text-decoration: underline;
}

.alert,
.alert-success,
.alert-error,
.alert-info {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.danger-zone,
.delete-zone {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 20px;
    margin-top: 40px;
}

.dietary-warning,
.dietary-alert,
.terms,
.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-weight: bold;
}

.dietary-warning {
    padding: 4px 8px;
    display: inline-block;
    margin-top: 5px;
    font-size: 0.85rem;
    border-left: 3px solid var(--color-warning);
}

.dietary-alert {
    padding: 15px;
    border-left: 5px solid var(--color-warning);
    margin-top: 15px;
}

.status-pending {
    padding: 6px 12px;
    font-size: 0.85rem;
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px 15px;
    margin-top: 15px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #111;
}

.info-note {
    background-color: #f9f9f9;
    border: 1px solid #777;
    border-left: 4px solid var(--color-primary);
    color: #222;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.parent-info-box {
    background: #f4f7fa;
    padding: 12px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.badge,
.class-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

.badge-admin {
    background: #e3f2fd;
    color: #0d47a1;
}

.badge-staff {
    background: #e8f5e9;
    color: #1b5e20;
}

.badge-user {
    background: #f5f5f5;
    color: #424242;
}

.badge-verified {
    background: #d4edda;
    color: #155724;
}

.badge-unverified {
    background: #fff3cd;
    color: #856404;
}

.class-badge {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group {
    margin-top: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.checkbox-label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
    cursor: pointer;
}

.child-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.child-item {
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-left: 5px solid #6f42c1;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.child-item:hover {
    background: #f1ecf9;
    border-color: #6f42c1;
    cursor: pointer;
}

.child-name {
    font-weight: bold;
    color: #333;
    font-size: 1.05rem;
}

.child-class {
    font-size: 0.85rem;
    color: #666;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
}

.status-cell {
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 3px;
}

.status-active-care {
    background-color: var(--color-primary);
    color: #fff;
}

.status-active-food {
    background-color: var(--color-success);
    color: #fff;
}

.status-empty {
    background-color: #f4f4f4;
    color: #bbb;
    font-weight: normal;
    font-style: italic;
}

.status-not-available {
    background-color: #eaeaea;
    color: #999;
    font-size: 0.75rem;
}

.no-data {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 30px;
    border: 1px dashed #ccc;
    background: #fafafa;
    border-radius: 6px;
}

.matrix-checkbox {
    transform: scale(1.3);
    cursor: pointer;
}

.disabled-box {
    background-color: #e6e6e6;
    color: #777;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertikal */
	cursor: not-allowed;
}

.day-count-cell {
    font-weight: bold;
    background-color: #f9f9f9;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.pdf-header {
    text-align: center;
    border-bottom: 1px solid #777;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.pdf-header h1 {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
    margin: 0 0 5px;
}

.pdf-header p {
    font-size: 1rem;
    margin: 0 0 5px;
    color: #333;
}

.pdf-header .timestamp {
    font-size: 0.8rem;
    font-style: italic;
    color: #666;
}

.pdf-price-row {
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 8px;
    color: #000;
    padding-right: 5px;
}

.pdf-price-row span {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.price-subnote {
    font-size: 0.8rem;
    font-style: italic;
    color: #444;
    text-align: right;
    margin-top: 4px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.legal-notice {
    font-size: 0.85rem;
    color: #222;
    text-align: justify;
    margin-top: 25px;
    line-height: 1.45;
}

.terms {
    margin-top: 20px;
    padding: 12px;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-top: 5px solid var(--color-info);
}

.modal h2 {
    margin-top: 0;
    color: var(--color-info);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.modal p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.source,
.doc-source {
    margin-top: 1.4em;
    margin-bottom: 1.3em;
}

.source pre,
.doc-source pre {
    display: table;
    width: 100%;
    margin: 0;
    font-family: inherit;
    font-size: 100%;
}

.source pre {
    border: 1px solid #24246A;
}

.source code {
    display: block;
    border: 1px solid #C5C5EC;
    background-color: #F0F5FF;
    padding: 6px;
    color: #000;
}

.doc-source code {
    display: block;
    background-color: #E0E0E0;
    padding: 4px;
}

.kw {
    color: #000080;
    font-weight: bold;
}

.str {
    color: #CC0000;
}

.cmt {
    color: #008000;
}

.question {
    font-weight: bold;
    color: #900000;
}

.demo {
    text-align: center;
    margin-top: -0.9em;
}

.agb-box {
    margin: 24px 0 18px 0;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
}

.agb-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #333;
}

.agb-label input[type="checkbox"] {
    margin: 4px 0 0 0;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.agb-label span {
    display: block;
}

@media (max-width: 768px) {
    .brand-header,
    .brand-footer {
        flex-direction: column;
        text-align: center;
    }

    .brand-header img,
    .brand-footer img {
        height: 56px;
    }
}

.legal-page {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 42px;
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.10);
    border: 1px solid #e2e8f0;
}

.legal-card h1 {
    margin-top: 0;
    margin-bottom: 28px;
    color: #0f4c81;
    font-size: 2rem;
    border-bottom: 3px solid #1f6fb2;
    padding-bottom: 12px;
}

.legal-section {
    margin-bottom: 26px;
}

.legal-section h2 {
    margin-bottom: 8px;
    color: #0f4c81;
    font-size: 1.15rem;
}

.legal-section p {
    margin: 0;
    line-height: 1.65;
    color: #334155;
}

.legal-section a {
    color: #0f4c81;
    font-weight: 600;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.notice-box {
    background: #f4f8fc;
    border-left: 5px solid #1f6fb2;
    padding: 18px 20px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .legal-page {
        margin: 24px auto;
        padding: 0 14px;
    }

    .legal-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .legal-card h1 {
        font-size: 1.6rem;
    }
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0f4c81;
    color: white;
}

.btn-primary:hover {
    background: #0c3d67;
}

.btn-secondary {
    background: #e8eef5;
    color: #0f4c81;
}

.btn-secondary:hover {
    background: #d8e4f0;
}

.btn-danger {
    background: #c62828;
    color: white;
}

.btn-danger:hover {
    background: #a91f1f;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        padding: 0;
    }

    .container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    .attendance-section {
        page-break-inside: avoid;
        border: 1px solid #000 !important;
        margin-bottom: 30px !important;
        box-shadow: none !important;
    }

    .attendance-section th {
        background-color: #e0e0e0 !important;
        color: #000 !important;
    }
}


/* === STARTSEITE / LANDING PAGE === */
.start-page {
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

.start-hero {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border-radius: 18px;
    padding: 44px 46px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-bottom: 26px;
}

.start-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin: 0 0 14px 0;
}

.start-kicker {
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    font-weight: bold;
    opacity: .9;
}

.start-lead {
    max-width: 760px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.start-user-note {
    display: inline-block;
    margin: 22px 0 0 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
}

.start-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.start-action-card {
    display: block;
    min-height: 150px;
    padding: 24px;
    background: #fff;
    color: var(--color-text);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.start-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    border-color: var(--brand-primary);
}

.start-action-card.primary {
    border-top: 5px solid var(--brand-primary);
}

.start-action-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 14px;
}

.start-action-card strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.start-action-card small {
    display: block;
    color: #64748b;
    line-height: 1.45;
}

.start-info-box {
    background: #fff;
    border-left: 5px solid var(--brand-primary);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.start-info-box h2 {
    margin-top: 0;
}

.start-info-box p {
    margin-bottom: 0;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0f4c81;
    color: #fff;
}

.btn-primary:hover {
    background: #0c3d67;
}

.btn-secondary {
    background: #e7eef5;
    color: #0f4c81;
}

.btn-secondary:hover {
    background: #d9e4ef;
}

.btn-danger {
    background: #c62828;
    color: #fff;
}

.btn-danger:hover {
    background: #a61f1f;
}

@media (max-width: 768px) {
    .start-hero {
        padding: 30px 24px;
        border-radius: 14px;
    }

    .start-hero h1 {
        font-size: 1.7rem;
    }

    .start-user-note {
        border-radius: 12px;
    }
}
