/* =========================================
   Kynologischer Club Schweinfurt e.V.
   style.css
========================================= */

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

html,
body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ececec;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   Layout
========================================= */

.container {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* =========================================
   Sidebar
========================================= */

.sidebar {
    width: 250px;
    background-color: #f3f3f3;
    border-right: 1px solid #d5d5d5;
    padding: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo-container img {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================
   Navigation
========================================= */

.sidebar ul {
    list-style: none;
}

.sidebar li {
    border-bottom: 1px solid #d0d0d0;
}

.sidebar a {
    display: block;
    padding: 10px;
    color: #333333;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.sidebar a:hover,
.sidebar a:focus {
    background-color: #dfe8f3;
    color: #005a9c;
    transform: translateX(4px);
}

.sidebar a:focus-visible {
    outline: 3px solid #005a9c;
    outline-offset: 2px;
}

.sidebar a.active {
    background-color: #005a9c;
    color: #ffffff;
    font-weight: bold;
}

/* =========================================
   Inhalt
========================================= */

.content {
    flex: 1;
    padding: 40px;
    min-width: 0;
    overflow-x: hidden;
}

.content h1 {
    font-size: 2.2rem;
    color: #555555;
    margin-bottom: 40px;
    word-wrap: break-word;
}

.content h2 {
    margin-top: 35px;
    margin-bottom: 20px;
    color: #444444;
}

.content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444444;
}

.content p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.content ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.content iframe {
    max-width: 100%;
}


/* =========================================
   Links im Inhalt
========================================= */

.content a {
    color: #005a9c;
    text-decoration: none;
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.content a:hover,
.content a:focus {
    color: #003f70;
    text-decoration: underline;
}

.content a:focus-visible {
    outline: 2px solid #005a9c;
    outline-offset: 2px;
}

/* =========================================
   Haftungsausschluss
========================================= */

.haftungsausschluss {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.7;
}

.haftungsausschluss h3 {
    margin-bottom: 20px;
}

.haftungsausschluss p {
    margin-bottom: 15px;
}

/* =========================================
   Footer
========================================= */

footer {
    background-color: #3d3d3d;
    color: #ffffff;
    padding: 15px 25px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 0.9rem;
}

.footer-right a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.footer-right a:hover,
.footer-right a:focus {
    color: #ffffff;
    opacity: 0.75;
}

.footer-right a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================
   Online-Mitgliedsantrag
========================================= */

.mitgliedsantrag-wrapper {
    width: 100%;
    margin: 30px 0;
}

.mitgliedsantrag-frame {
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 1800px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background-color: #ffffff;
    display: block;
}

/* Tablet */

@media (max-width: 992px) {
    .mitgliedsantrag-frame {
        height: calc(100vh - 100px);
        min-height: 900px;
    }
}


.mitgliedsantrag-hinweis {
    text-align: center;
    margin-top: 20px;
}

.mitgliedsantrag-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #005a9c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.25s ease;
}

.mitgliedsantrag-button:hover,
.mitgliedsantrag-button:focus {
    background-color: #003f70;
}
/* =========================================
   Google Kalender
========================================= */

.kalender-box {
    margin-top: 30px;
}

.google-kalender {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    display: block;
}
/* =========================================
   Rally Obedience
========================================= */

.hero-image {
    margin: 0 auto 30px auto;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-image img:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}

/* Listen auf der RO-Seite */

.content ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* =========================================
   Responsive Tablet
========================================= */

@media (max-width: 992px) {

    .container {
        width: 100%;
        max-width: 100%;
    }

    .sidebar {
        width: 220px;
        padding: 15px;
    }

    .content {
        padding: 30px;
        min-width: 0;
        overflow-x: hidden;
    }

    .content h1 {
        font-size: 1.9rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }
      
    .mitgliedsantrag-frame {
        width: 100%;
    }

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

}

/* =========================================
   Responsive Smartphone
========================================= */

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 10001;
        background: #005a9c;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        padding: 10px 15px;
        font-size: 1rem;
        cursor: pointer;
    }

    .container {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 80px;
        left: -280px;
        width: 260px;
        height: calc(100vh - 80px);
        overflow-y: auto;
        background: #f3f3f3;
        border-right: 1px solid #d5d5d5;
        padding: 15px;
        z-index: 10000;
        transition: left 0.3s ease;
    }

    .sidebar.show-menu {
        left: 0;
    }

    .logo-container {
        display: block;
        text-align: center;
        margin-bottom: 15px;
    }

    .logo-container img {
        max-width: 100px;
        height: auto;
    }

    .content {
        width: 100%;
        padding: 90px 15px 15px 15px;
        min-width: 0;
        overflow-x: hidden;
    }

    .sidebar ul {
        width: 100%;
    }

    .sidebar li {
        width: 100%;
    }

    .sidebar a {
        display: block;
        text-align: left;
        padding: 8px;
        font-size: 0.95rem;
    }

    .content h1 {
        font-size: 1.6rem;
    }

    .content h2 {
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   Kleine Smartphones
========================================= */

@media (max-width: 480px) {

    .sidebar {
        padding: 10px;
    }

    .logo-container img {
        max-width: 150px;
    }

    .sidebar a {
        font-size: 0.95rem;
        padding: 8px;
    }

    .content {
    padding: 100px 15px 15px 15px;
}

    .content h1 {
        font-size: 1.4rem;
    }

    .content h2 {
        font-size: 1.15rem;
    }

    .content h3 {
        font-size: 1rem;
    }

    .content p,
    .content li {
        font-size: 0.95rem;
    }
   
    .mitgliedsantrag-frame {
        height: 2600px;
    }

    .hero-image img {
        border-radius: 4px;
    }

}
