* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: coloumn;
}

/* CONTAINER */
.container {
    width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    display: flex;
}

.footer {
    margin-top: auto;
}

/* max-width: 1100px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
/*
.header, .main, .footer {
    max-width: 1200px;
    margin: 0 auto;
}
*/

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    background: #1f6f8b;
    color: white;
    padding: 20px;
}

.header-text h1 {
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-text h2 {
    margin-top: 10px;
    font-size: 18px;
}

.header-text p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.header-image img {
    width: 200px;
    border-radius: 6px;
}

/* MAIN LAYOUT */
.main {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: #e9eef2;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    margin-bottom: 5px;
    background: white;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.sidebar li {
    padding: 0;
}

.sidebar li a:hover {
    background: #dbe7ef;
}

.sidebar li.active {
    border-left: 4px solid #f2a900;
    font-weight: bold;
}

.update {
    margin-top: 30px;
    font-size: 13px;
    color: #666;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
}

.content h2 {
    margin-bottom: 15px;
    border-bottom: 2px solid #1f6f8b;
    display: inline-block;
    padding-bottom: 5px;
}

.content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* FOOTER */
.footer {
    background: #1f6f8b;
    padding: 15px;
    text-align: center;
}

.footer a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    text-decoration: underline;
}

/* LISTEN BASIS */
.content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* HAUPTPUNKTE */
.content > ul > li {
    margin-bottom: 6px;
}

/* UNTERPUNKTE (1. Ebene) */
.content ul ul {
    margin-top: 5px;
    padding-left: 20px;
    list-style-type: circle;
}

/* UNTERPUNKTE (2. Ebene, falls benötigt) */
.content ul ul ul {
    padding-left: 20px;
    list-style-type: square;
}

/* OPTIONAL: feinere Typografie wie im Original */
.content li {
    line-height: 1.5;
}

/* TABELLE */
.times-table {
    border-collapse: collapse;
    margin: 20px 0;
    width: 300px;
    font-size: 16px;
}

.times-table th {
    background: #f2f2f2;
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

.times-table td {
    padding: 10px;
    border: 1px solid #333;
}

/* ZEBRA-EFFEKT wie im Original */
.times-table tr:nth-child(even) td {
    background: #4f76b8;
    color: white;
}

/* HIGHLIGHT-TEXT (rot wie im Original) */
.highlight {
    color: red;
    font-weight: 500;
}

/* MOBILE ANSICHT */
@media (max-width: 700px) {
    .header,
    .main {
        flex-direction: column;
    }

    .header {
        gap: 20px;
        padding: 20px;
    }

    .header-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .sidebar {
        width: 100%;
        padding: 15px;
    }

    .content {
        padding: 20px;
    }

    .content img {
        max-width: 100%;
        height: auto;
    }

    .footer a {
        display: inline-block;
        margin: 6px 8px;
    }

    .times-table {
        width: 100%;
        font-size: 14px;
    }

    .times-table th,
    .times-table td {
        padding: 8px;
    }
}

/* MODERNES ERSCHEINUNGSBILD */
:root {
    --primary: #176b78;
    --primary-dark: #0f4f5a;
    --accent: #d99136;
    --ink: #22333b;
    --muted: #5b6b73;
    --surface: #ffffff;
    --surface-soft: #edf5f4;
    --line: #d7e4e2;
    --shadow: 0 12px 32px rgba(25, 57, 62, 0.10);
}

body {
    min-height: 100vh;
    background: #f4f8f7;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    flex-direction: column;
}

.container {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 40px);
    margin: 20px auto;
    flex: 0 0 auto;
    overflow: visible;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 28px;
    padding: 34px 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.header-text h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: 0.06em;
}

.header-text h2 {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 500;
}

.header-text p {
    max-width: 620px;
    margin-top: 12px;
    font-size: 0.92rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contact-address {
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0.9;
}

.phone-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.appointment-button {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #1d2527;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition: transform 160ms ease, background 160ms ease;
}

.appointment-button:hover,
.appointment-button:focus-visible {
    background: #f0ad58;
    transform: translateY(-1px);
}

.header-image img {
    width: 150px;
    height: 112px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    object-fit: cover;
}

.header-image img[alt="Uhr"] {
    border: 0;
    object-fit: contain;
}

.main {
    background: var(--surface);
}

.sidebar {
    width: 250px;
    flex: 0 0 250px;
    padding: 24px 16px;
    background: var(--surface-soft);
    border-right: 1px solid var(--line);
}

.menu-toggle {
    display: none;
}

.sidebar li a {
    margin-bottom: 4px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #314850;
    font-size: 0.93rem;
    font-weight: 600;
}

.sidebar li a:hover,
.sidebar li.active a {
    background: #d8ebe7;
    color: var(--primary-dark);
}

.sidebar li.active {
    border-left: 0;
}

.update {
    margin: 24px 10px 0;
    color: var(--muted);
    line-height: 1.5;
}

.sidebar > img {
    max-width: 100%;
    height: auto;
}

.content {
    max-width: 840px;
    padding: 44px 48px 56px;
}

.content h2 {
    margin-bottom: 22px;
    border: 0;
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.content h2::after {
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 12px;
    border-radius: 99px;
    background: var(--accent);
    content: "";
}

.content p,
.content li {
    color: #42545b;
    line-height: 1.75;
}

.content a {
    color: var(--primary-dark);
    font-weight: 650;
    text-underline-offset: 3px;
}

.checklist-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid #b9d5d0;
    border-left: 6px solid #d99136;
    border-radius: 12px;
    background: #f4fbf9;
}

.checklist-callout strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.checklist-callout p {
    margin: 5px 0 0;
    color: #42545b;
    font-size: 0.94rem;
    line-height: 1.55;
}

.content .checklist-callout a {
    flex: 0 0 auto;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--primary-dark);
    color: white;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.content .checklist-callout a:hover,
.content .checklist-callout a:focus-visible {
    background: var(--primary);
    transform: translateY(-1px);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 30px;
}

.quick-link-card {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 6px solid #d99136;
    box-shadow: inset 2px 0 0 #d99136;
    border-radius: 12px;
    background: #fbfefd;
    color: var(--primary-dark);
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.quick-link-card:hover,
.quick-link-card:focus-visible {
    box-shadow: inset 2px 0 0 #d99136, 0 8px 20px rgba(25, 57, 62, 0.12);
    transform: translateY(-2px);
}

.quick-link-card span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.45;
}

.times-table {
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.95rem;
}

.times-table th,
.times-table td {
    border-color: var(--line);
}

.times-table th {
    background: var(--surface-soft);
    color: var(--primary-dark);
}

.times-table tr:nth-child(even) td {
    background: #e4f0ee;
    color: var(--ink);
}

.footer {
    padding: 20px;
    background: var(--primary-dark);
}

.footer a {
    display: inline-block;
    margin: 5px 10px;
    font-size: 0.88rem;
    opacity: 0.92;
}

@media (max-width: 760px) {
    .container {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .header {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 22px;
    }

    .header-actions {
        align-items: flex-start;
    }

    .header-image {
        display: none;
    }

    .main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-basis: auto;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .menu-toggle {
        display: flex;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #b9d5d0;
        border-radius: 8px;
        background: white;
        color: var(--primary-dark);
        font: inherit;
        font-weight: 750;
        text-align: left;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: background 180ms ease, border-color 180ms ease;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        border-color: var(--primary);
        background: #f7fbfa;
    }

    .menu-icon {
        display: grid;
        width: 22px;
        gap: 4px;
    }

    .menu-icon span {
        display: block;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        transform-origin: center;
        transition: transform 220ms ease, opacity 160ms ease;
    }

    .sidebar.is-open .menu-icon span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .sidebar.is-open .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .sidebar.is-open .menu-icon span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .sidebar ul,
    .sidebar .update,
    .sidebar > img {
        display: block;
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 280ms ease, margin 280ms ease, opacity 180ms ease;
    }

    .sidebar > img {
        margin-top: 0 !important;
    }

    .sidebar.is-open ul,
    .sidebar.is-open .update,
    .sidebar.is-open > img {
        max-height: 650px;
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar.is-open ul {
        margin-top: 10px;
    }

    .sidebar.is-open .update {
        margin-top: 24px;
    }

    .sidebar.is-open > img {
        margin-top: 16px !important;
    }

    .content {
        padding: 32px 22px 40px;
    }

    .checklist-callout {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .times-table {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
    }
}
