/* ===================================
   CSS-Variablen für konsistente Farben
   =================================== */
:root {
    --primary-color: #8b008b; /* darkmagenta */
    --accent-color: #e74c3c; /* rot */
    --accent-hover: #c0392b; /* dunkleres rot */
    --text-color: #2c3e50;
    --link-color: #3498db;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-button: 5px;
}

/* ===================================
   Allgemeine Stile
   =================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 1%;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* ===================================
   Typografie
   =================================== */
h1 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    color: darkmagenta;
    text-align: center;
    margin: 0 0 10px 0;
}

h2{
    font-size: 1.8rem;
    font-weight: 500;
    color:#218838;
    margin: 20px 0 10px 0;
}

h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--text-color);
}

p {
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

/* ===================================
   Links
   =================================== */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* ===================================
   Bilder
   =================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Header
   =================================== */
header {
    padding: 0;
    margin: 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
}

.header {
    width: 100%;
}

.banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.logo {
    font-style: italic;
    width: 40%;
    margin: 2% 0 7% 0;
    color: var(--accent-color);
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 15px;
}

/* ===================================
   Überschrift-Sektion
   =================================== */
.überschrift {
    text-align: center;
    padding: 2rem 0;
}



.kurs-ankuendigung {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 20px 0 25px 0;
    text-align: center;
    font-weight: 400;
}

.info {
    font-size: 1.4rem;
    color: var(--accent-color);
}

/* ===================================
   Call-to-Action Button
   =================================== */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-button);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.cta-button:active {
    transform: translateY(0);
}

/* ===================================
   Sections & Container
   =================================== */
section {
    padding: 20px;
    margin: 20px 12%;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-light);
}

.containersw, 
.container, 
.containerspiegel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.containersw .bild, 
.container .bild, 
.containerspiegel .bild {
    flex: 1 1 40%;
}

.containersw .text, 
.container .text, 
.containerspiegel .text {
    flex: 1 1 50%;
}

/* ===================================
   Gutschein-Box
   =================================== */
.gutschein {
    margin-left: 60%;
    background-color: var(--accent-color);
    color: white;
    border-radius: 15px;
    padding: 2%;
    text-align: center;
}

.call {
    font-size: 1.2rem;
    color: white;
    font-weight: 800;
}

/* ===================================
   Kurs-Details (Gutschein-Seite)
   =================================== */
.course-details {
    background-color: var(--bg-light);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
}

.course-details h3 {
    margin-top: 0;
}

.course-details ul {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
}

/* ===================================
   FAQ-Sektion
   =================================== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* ===================================
   Rezensionen
   =================================== */
.review {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.review:last-child {
    border-bottom: none;
}

.review p:first-child {
    font-style: italic;
    margin-bottom: 10px;
}

.review p:nth-child(2) {
    font-weight: 600;
    margin-bottom: 5px;
}

.stars {
    color: #ffa500;
    font-size: 1.2rem;
    margin-top: 5px;
}

/* ===================================
   Bilder-Grid
   =================================== */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 0;
}

.image-grid img {
    width: calc(33.33% - 5px);
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-button);
    box-shadow: 0 2px 6px var(--shadow-light);
}

/* ===================================
   Footer
   =================================== */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    margin-top: 20px;
}

.footer a {
    color: var(--link-color);
    margin: 0 10px;
}

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

/* ===================================
   Cookie-Banner
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 0 -2px 10px var(--shadow-light);
    z-index: 9999;
    font-family: Arial, sans-serif;
    text-align: center;
    display: none;
}

.cookie-text {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.accept-button {
    background-color: #28a745;
    color: white;
}

.accept-button:hover {
    background-color: #218838;
}

.accept-button:focus {
    outline: 3px solid #28a745;
    outline-offset: 2px;
}

.reject-button {
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #6c757d;
}

.reject-button:hover {
    background-color: #e2e6ea;
}

.reject-button:focus {
    outline: 3px solid #6c757d;
    outline-offset: 2px;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (max-width: 768px) {
    section {
        margin: 20px 5%;
    }

    .containersw, 
    .container, 
    .containerspiegel {
        flex-direction: column;
    }

    .containersw .bild, 
    .container .bild, 
    .containerspiegel .bild,
    .containersw .text, 
    .container .text, 
    .containerspiegel .text {
        flex: 1 1 100%;
    }

    .gutschein {
        margin-left: 0;
        width: 100%;
    }

    .image-grid img {
        width: calc(50% - 5px);
    }

    header h1, h1 {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }

    .logo {
        width: 60%;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    section {
        padding: 15px;
        margin: 15px 2%;
        border-radius: 5px;
    }

    h1 {
        font-size: 1.4rem;
        font-weight: 300;
        letter-spacing: 0.2em;
       
    }

    

    .call {
        font-size: 1rem;
    }

    .info {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
        margin: 15px auto;
        display: block;
        text-align: center;
    }

    .logo {
        font-size: 1.2rem;
        width: 95%;
        margin: 2% auto 7% auto;
    }

    .image-grid img {
        width: 100%;
    }

    .course-details {
        padding: 15px;
        margin: 20px 0;
    }

    .cookie-banner {
        padding: 15px;
    }

    .cookie-text {
        font-size: 13px;
    }

    .cookie-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .stars {
        font-size: 1rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .cookie-banner,
    .cta-button {
        display: none;
    }

    body {
        background-color: white;
    }

    section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}