@import url('https://fonts.googleapis.com/css2?family=Hammersmith+One&family=Montserrat:wght@400;600;700&family=PT+Sans:wght@400;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'PT Sans', Arial, sans-serif;
    color: #444;
    background: #e8eef3;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #004b76;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #00334e;
}

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

h1, h2, h3, h4 {
    font-family: 'Hammersmith One', 'PT Sans', sans-serif;
    color: #004b76;
    line-height: 1.3;
}

h1 { font-size: 1.5em; margin-bottom: 15px; text-transform: uppercase; }
h2 { font-size: 1.25em; margin-bottom: 12px; }
h3 { font-size: 1.1em; margin-bottom: 10px; }

p { margin-bottom: 12px; }

ul, ol {
    margin: 10px 0 15px 25px;
}

li {
    margin-bottom: 6px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

td, th {
    padding: 5px 8px;
    vertical-align: top;
    text-align: left;
}

strong {
    font-weight: 700;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 51, 78, 0.15);
    min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    padding: 20px 30px 15px;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.header-text {
    flex: 1;
}

.site-title {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 2.4em;
    color: #00334e;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 5px;
}

.site-subtitle {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.05em;
    color: #999;
    font-style: italic;
}

.header-logo {
    flex-shrink: 0;
    width: 80px;
    margin-left: 20px;
}

.header-logo img {
    width: 100%;
    height: auto;
}

/* ===== TOP NAV ===== */
.top-nav {
    background: #00334e;
    position: relative;
    z-index: 110;
}

.top-nav .nav-inner {
    padding: 0;
}

.top-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.top-nav > .nav-inner > ul > li {
    position: relative;
}

.top-nav ul li a {
    display: block;
    padding: 10px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Dropdown indicator */
.top-nav > .nav-inner > ul > li.has-dropdown > a::after {
    content: ' >';
    font-size: 0.8em;
    opacity: 0.7;
}

/* Dropdown menus */
.top-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #00334e;
    min-width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 120;
    padding: 0;
}

.top-nav .dropdown li {
    margin: 0;
}

.top-nav .dropdown a {
    padding: 9px 18px;
    font-size: 0.8em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.top-nav > .nav-inner > ul > li:hover > .dropdown {
    display: block;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 260px;
    background: #00334e;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== NOTAR PROFILE ===== */
.notar-profile {
    text-align: center;
    margin-bottom: 25px;
}

.notar-profile .notar-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.notar-profile .notar-subtitle {
    text-align: center;
    font-style: italic;
    color: #666;
}

/* ===== CV GRID (two-column) ===== */
.cv-grid {
    margin: 15px 0 25px;
}

.cv-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f3f5;
}

.cv-row:last-child {
    border-bottom: none;
}

.cv-year {
    font-weight: 700;
    color: #004b76;
    white-space: nowrap;
}

.cv-text {
    line-height: 1.5;
}

/* ===== MAIN LAYOUT ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    min-height: 400px;
}

.main-content {
    padding: 30px 35px;
    border-right: 1px solid #e0e8ee;
}

.main-content h1 {
    color: #004b76;
    margin-bottom: 18px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    padding: 25px 20px;
    text-align: center;
    font-size: 0.92em;
    color: #444;
}

.sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e8ee;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-icon {
    font-size: 1.8em;
    color: #004b76;
    margin-bottom: 5px;
}

.sidebar h3 {
    font-family: 'PT Sans', sans-serif;
    color: #444;
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar a {
    color: #004b76;
}

.sidebar .btn-anfahrt {
    display: inline-block;
    margin: 8px 0;
    color: #004b76;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.sidebar .btn-anfahrt:hover {
    color: #00334e;
    text-decoration: underline;
}

/* Öffnungszeiten sidebar */
.sidebar .oeffnungszeiten h3 {
    font-family: 'Hammersmith One', sans-serif;
    color: #004b76;
    font-size: 1em;
    text-transform: none;
}

.sidebar .oeffnungszeiten table {
    margin: 5px auto;
    font-size: 0.9em;
    text-align: center;
}

.sidebar .oeffnungszeiten td {
    padding: 2px 6px;
}

.sidebar .oeffnungszeiten td:first-child {
    font-weight: 700;
    text-align: right;
    padding-right: 10px;
}

.sidebar .oeffnungszeiten td:last-child {
    text-align: left;
}

/* PDF download */
.sidebar .pdf-download {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
}

.sidebar .pdf-download img {
    width: 32px;
    height: auto;
}

/* ===== HOMEPAGE SPECIFIC ===== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.activity-item {
    text-align: center;
}

.activity-item a {
    text-decoration: none;
    color: #004b76;
    display: block;
}

.activity-item img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: 0 auto 5px;
    display: block;
    transition: transform 0.2s;
}

.activity-item a:hover img {
    transform: scale(1.05);
}

.activity-item span {
    font-size: 0.85em;
    font-weight: 700;
}

.online-formulare-box {
    background: #f0f5fa;
    border: 1px solid #d0dbe6;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.online-formulare-box h2 {
    margin-bottom: 10px;
}

.btn-formulare {
    display: inline-block;
    padding: 10px 25px;
    background: #00334e;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-formulare:hover {
    background: #004b76;
    color: #fff;
}

/* ===== TEAM PAGE ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.team-member {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e0e8ee;
}

.team-member:last-child {
    border-bottom: none;
}

.team-member img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.team-member-info h3 {
    color: #004b76;
    margin-bottom: 5px;
}

.team-member-info p {
    margin-bottom: 4px;
    font-size: 0.95em;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 12px;
    font-size: 0.9em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c0cdd8;
    border-radius: 3px;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.95em;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #004b76;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px 30px;
    background: #00334e;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #004b76;
}

.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.captcha-row label {
    margin: 0;
    white-space: nowrap;
}

.captcha-row input {
    width: 80px !important;
}

/* ===== ÖFFNUNGSZEITEN TABLE (main content) ===== */
.oeffnungszeiten-table {
    max-width: 500px;
    margin: 15px 0 25px;
    border: 1px solid #d0dbe6;
    border-radius: 4px;
    overflow: hidden;
}

.oeffnungszeiten-table td {
    padding: 8px 15px;
    border-bottom: 1px solid #e8eef3;
}

.oeffnungszeiten-table tr:last-child td {
    border-bottom: none;
}

.oeffnungszeiten-table tr:nth-child(even) {
    background: #f5f8fb;
}

.oeffnungszeiten-table td:first-child {
    width: 130px;
}

/* ===== OSM MAP ===== */
.osm-map {
    width: 100%;
    margin: 20px 0;
}

.osm-map iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #c0cdd8;
    border-radius: 3px;
}

.osm-map .map-link {
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #f5f7f9;
    border-top: 1px solid #e0e8ee;
    padding: 15px 25px;
    text-align: center;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.85em;
    color: #666;
}

.site-footer a {
    color: #444;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    color: #004b76;
}

.footer-sep {
    margin: 0 3px;
    color: #aaa;
}

.footer-copyright {
    margin-top: 4px;
    font-size: 0.9em;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 78, 0.97);
    color: #e0eaf0;
    padding: 18px 25px;
    z-index: 9999;
    font-size: 0.9em;
    display: none;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-inner p {
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.cookie-inner a {
    color: #8cb8d4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cookie-buttons button:active {
    transform: scale(0.97);
}

.btn-accept {
    background: #fff;
    color: #00334e;
}

.btn-accept:hover {
    background: #e0eaf0;
}

.btn-reject {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-reject:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== BURGER MENU ===== */
.burger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: #fff;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
}

.burger-toggle span {
    font-size: 0.55em;
    margin-left: 8px;
    vertical-align: middle;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .main-content {
        border-right: none;
    }

    .sidebar {
        border-top: 1px solid #e0e8ee;
    }

    .hero-slider {
        height: 200px;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .burger-toggle {
        display: block;
    }

    .top-nav .nav-inner > ul {
        display: none;
        flex-direction: column;
    }

    .top-nav .nav-inner > ul.nav-open {
        display: flex;
    }

    .top-nav .dropdown {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 15px;
    }

    .top-nav > .nav-inner > ul > li.has-dropdown.dropdown-open > .dropdown {
        display: block;
    }

    .top-nav > .nav-inner > ul > li:hover > .dropdown {
        display: none;
    }

    .top-nav > .nav-inner > ul > li.has-dropdown.dropdown-open:hover > .dropdown {
        display: block;
    }

    .main-content {
        padding: 20px 15px;
    }

    .header-inner {
        flex-direction: row;
    }

    .site-title {
        font-size: 1.3em;
    }

    .header-logo {
        width: 50px;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .activity-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-title {
        font-size: 1.1em;
    }

    .site-subtitle {
        font-size: 0.85em;
    }
}
