/* ===========================
   CSS Reset / Normalize
   =========================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1; background: #F6F6FA; color: #222C3C;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content: '' none;}
table {border-collapse: collapse; border-spacing: 0;}
img {max-width: 100%; display: block;}
a {color: inherit; text-decoration: none; transition: color 0.2s;}
button {font: inherit; background: none; border: none; cursor: pointer;}
h1, h2, h3, h4, h5, h6 {font-weight: 700;}

/* ===========================
   Brand Variables (with fallbacks)
   =========================== */
:root {
    --color-primary: #1E2559;
    --color-secondary: #6AC9EA;
    --color-accent: #FFFFFF;
    --color-bg: #F6F6FA;
    --color-footer-bg: #222C3C;
    --color-card-bg: #FFFFFF;
    --color-card-border: #E5E8F0;
    --color-shadow: rgba(30,37,89,0.08);
    --color-shadow-strong: rgba(30,37,89,0.18);
    --color-testimonial-bg: #F4F9FB;
    --color-link-hover: #6AC9EA;
    --shadow-md: 0 2px 16px var(--color-shadow);
    --shadow-lg: 0 4px 24px var(--color-shadow-strong);
    --radius: 16px;
    --radius-sm: 8px;
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Roboto', Arial, sans-serif;
}

/* ===========================
   Typography & Base
   =========================== */
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-primary);
    font-size: 16px;
    line-height: 1.67;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.01em;
}
h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    line-height: 1.13;
}
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-primary);
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}
h4, h5, h6 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
p, ul, ol {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
b, strong {font-weight: 700;}

.subheadline {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* ===========================
   Layout Container & Section
   =========================== */
.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 700px;
    margin-bottom: 32px;
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
}

/* ===========================
   Header / Navigation
   =========================== */
header {
    background: var(--color-accent);
    box-shadow: 0 2px 10px rgba(30,37,89,0.06);
    position: sticky;
    top: 0;
    z-index: 30;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    padding-top: 0;
    padding-bottom: 0;
}
header img { height: 38px; margin-right: 28px; }

.main-navigation {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-right: 24px;
}
.main-navigation a {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-secondary);
}

.cta-button {
    background: var(--color-secondary);
    color: var(--color-primary);
    padding: 13px 34px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px var(--color-shadow);
    margin-left: 24px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    border: 0;
    outline: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
}
.cta-button:hover,
.cta-button:focus {
    background: var(--color-primary);
    color: var(--color-accent);
    box-shadow: 0 4px 16px var(--color-shadow-strong);
}

.mobile-menu-toggle {
    display: none;
    font-size: 2.2rem;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 2px 12px;
    margin-left: 18px;
    cursor: pointer;
    z-index: 50;
    transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: var(--color-secondary);
    color: var(--color-accent);
}

@media (max-width: 980px) {
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: block; }
    .cta-button {margin-left: 10px;}
}

/* ===========================
   Mobile Menu Overlay
   =========================== */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-primary);
    color: var(--color-accent);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(-100vw);
    transition: transform 0.36s cubic-bezier(.7,.2,.2,1.1);
    z-index: 1400;
    padding-top: 0;
    padding-bottom: 0;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    margin: 20px 22px 8px 0;
    background: none;
    color: var(--color-accent);
    font-size: 2rem;
    padding: 0 10px;
    border-radius: 12px;
    transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: var(--color-secondary);
    color: var(--color-primary);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100vw;
    margin-top: 40px;
    align-items: center;
}
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    padding: 10px 0;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    width: 88vw;
    text-align: center;
    letter-spacing: 0.02em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    background: var(--color-secondary);
    color: var(--color-primary);
}

@media (min-width: 981px) {
    .mobile-menu, .mobile-menu-toggle {display: none !important;}
}

/* ===========================
   Hero Sections
   =========================== */
section:first-of-type {
    background: linear-gradient(90deg, var(--color-secondary) 3%, #b4ecfd 100%);
    border-radius: 0 0 56px 56px;
    box-shadow: 0 6px 34px var(--color-shadow-strong);
    position: relative;
    margin-bottom: 60px;
    padding: 64px 0 52px 0;
}
@media (max-width: 800px) {
    section:first-of-type {
        border-radius: 0 0 36px 36px;
        padding: 44px 0 36px 0;
    }
}
section:first-of-type h1, section:first-of-type .subheadline, section:first-of-type p {
    color: var(--color-primary);
}

/* ===========================
   Cards, Features & Services
   =========================== */
.features-grid, .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
    margin-bottom: 8px;
    justify-content: flex-start;
}
.feature-column, .service-item {
    background: var(--color-card-bg);
    border: 2.5px solid var(--color-card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 28px 20px 26px 20px;
    flex: 1 1 260px;
    max-width: 288px;
    min-width: 225px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s, border 0.18s;
}
.feature-column:hover, .service-item:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 22px var(--color-shadow-strong);
    transform: translateY(-6px) scale(1.026) rotate(-0.35deg);
}
.feature-column img, .service-item img {
    height: 44px;
    margin-bottom: 4px;
}
.service-price {
    margin-top: 10px;
    color: var(--color-secondary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

/* ===========================
   List Displays (Events, etc.)
   =========================== */
.events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 8px;
}
.event-item {
    background: var(--color-card-bg);
    border: 2.5px solid var(--color-card-border);
    border-radius: calc(var(--radius) - 4px);
    box-shadow: var(--shadow-md);
    padding: 24px 20px;
    flex: 1 1 270px;
    min-width: 220px;
    margin-bottom: 20px;
    transition: border 0.16s, box-shadow 0.16s, transform 0.14s;
}
.event-item:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px) scale(1.018);
}

/* ===========================
   Testimonial Cards & Slider
   =========================== */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
    margin-bottom: 18px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-testimonial-bg);
    color: #16304B;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px var(--color-shadow);
    gap: 14px;
    padding: 20px 24px;
    min-width: 250px;
    flex: 1 1 270px;
    margin-bottom: 20px;
}
.testimonial-card p {
    color: #16304B;
}
.testimonial-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
}
.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 18px;
}
.star-rating img {height: 23px; margin-right: 2px;}

/* ===========================
   Info Boxes
   =========================== */
.info-box {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 20px 18px;
    margin: 24px 0 12px 0;
    box-shadow: 0 1.5px 10px var(--color-shadow);
    font-size: 1.07rem;
}

/* ===========================
   Lists
   =========================== */
ul, ol {
    margin-left: 22px;
    margin-bottom: 16px;
}
ul li, ol li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 1rem;
}
ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* ===========================
   Footer
   =========================== */
footer {
    background: var(--color-footer-bg);
    color: var(--color-accent);
    padding-top: 40px;
    padding-bottom: 28px;
    margin-top: 50px;
    border-radius: 38px 38px 0 0;
    box-shadow: 0 -8px 28px var(--color-shadow-strong);
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 56px;
    max-width: 1200px;
    justify-content: flex-start;
}
.footer-logo {
    flex: 0 1 auto;
    margin-bottom: 18px;
}
.footer-logo img {height: 44px;}
.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 38px;
    font-size: 1.04rem;
    flex: 1 1 140px;
}
.footer-menu a {
    color: var(--color-accent);
    transition: color 0.2s;
    font-family: var(--font-display);
    font-weight: 600;
}
.footer-menu a:hover, .footer-menu a:focus {
    color: var(--color-secondary);
}
.footer-contact {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.footer-contact img {
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}
.footer-contact p {
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px 0;
}

@media (max-width: 875px) {
    footer .container {
        flex-direction: column;
        gap: 17px;
        align-items: flex-start;
    }
}

/* ===========================
   Cookie Consent Banner
   =========================== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1700;
    background: var(--color-card-bg);
    border-top: 2.5px solid var(--color-secondary);
    box-shadow: 0 -1.5px 24px var(--color-shadow);
    padding: 22px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px 28px;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    animation: cookie-banner-slide-in 0.7s cubic-bezier(.26,.97,.56,.98);
}
@keyframes cookie-banner-slide-in {
    from {transform: translateY(70px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {margin: 0;}
.cookie-banner button {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    margin-left: 8px;
    background: var(--color-secondary);
    color: var(--color-primary);
    transition: background 0.16s, color 0.16s, box-shadow 0.16s;
    cursor: pointer;
    box-shadow: 0 1px 6px var(--color-shadow);
    letter-spacing: 0.02em;
}
.cookie-banner button:hover, .cookie-banner button:focus {
    background: var(--color-primary);
    color: var(--color-accent);
}
.cookie-banner .cookie-settings {
    background: var(--color-primary);
    color: var(--color-accent);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Cookie Consent Modal Popup */
.cookie-modal-overlay {
    position: fixed;
    z-index: 1800;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(30,37,89,0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookie-modal-in 0.36s cubic-bezier(.3,.88,.61,1.1);
}
@keyframes cookie-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    max-width: 440px;
    padding: 38px 28px 24px 28px;
    box-shadow: 0 8px 40px var(--color-shadow-strong);
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    animation: cookie-modal-content-in 0.36s cubic-bezier(.2,.85,.55,1.14);
}
@keyframes cookie-modal-content-in {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
    font-size: 1.26rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}
.cookie-modal-close {
    position: absolute;
    top: 15px; right: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    background: none;
    border-radius: 50%;
    padding: 0 10px;
    border: none;
    transition: background 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    background: var(--color-secondary);
    color: var(--color-accent);
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1.2px solid var(--color-card-border);
    font-size: 1.07rem;
}
.cookie-category:last-child {
    border-bottom: none;
}
.cookie-category label {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 700;
    user-select: none;
}
.cookie-toggle {
    width: 42px; height: 24px;
    background: #d3e7ef;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.13s;
}
.cookie-toggle input {
    opacity: 0;
    width: 0; height: 0;
    position: absolute;
}
.cookie-toggle-slider {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 18px; height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: transform 0.2s, background 0.13s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--color-secondary);
    transform: translateX(16px);
}
.cookie-category[data-essential="true"] .cookie-toggle .cookie-toggle-slider {
    background: #bbb;
    pointer-events: none;
}
.cookie-category[data-essential="true"] label:after {
    content: '(immer aktiviert)';
    font-size: 0.9em;
    color: #858CA9;
    margin-left: 6px;
}

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    justify-content: flex-end;
}
.cookie-modal-actions button {
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 1.03rem;
    padding: 8px 18px;
    cursor: pointer;
    background: var(--color-secondary);
    color: var(--color-primary);
    transition: background 0.16s, color 0.16s;
}
.cookie-modal-actions .cookie-cancel-btn {
    background: #EAEAEE;
    color: var(--color-primary);
}
.cookie-modal-actions button:hover,
.cookie-modal-actions button:focus {
    background: var(--color-primary);
    color: var(--color-accent);
}

/* ===========================
   Responsive Adaptation
   =========================== */
@media (max-width: 1100px) {
    .features-grid, .services-list, .testimonial-slider, .events-list {
        gap: 14px;
    }
    .feature-column, .service-item, .testimonial-card, .event-item {
        min-width: 180px;
    }
}
@media (max-width: 900px) {
    .container {padding: 0 10px;}
    .features-grid, .services-list, .testimonial-slider, .events-list {
        gap: 8px;
    }
    .feature-column, .service-item, .testimonial-card, .event-item {
        padding-left: 12px; padding-right: 12px;
    }
}
@media (max-width: 680px) {
    .features-grid, .services-list, .testimonial-slider, .events-list {
        flex-direction: column;
        gap: 0px;
    }
    .feature-column, .service-item, .testimonial-card, .event-item {
        max-width: 100%;
        min-width: 0;
        margin-bottom: 20px;
    }
    section, .section {
        padding-left: 6px; padding-right: 6px;
    }
}

@media (max-width: 540px) {
    html {font-size: 15px;}
    h1 {font-size: 2rem;}
    h2 {font-size: 1.35rem;}
    h3 {font-size: 1.12rem;}
}

/* ===========================
   UI Micro-Interactions & Utility
   =========================== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius);
    background: var(--color-card-bg);
    box-shadow: var(--shadow-md);
    padding: 22px 18px;
    transition: box-shadow 0.16s, transform 0.15s;
}
.card:hover {box-shadow: var(--shadow-lg); transform: translateY(-5px);}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* ===========================
   Accessibility & Focus States
   =========================== */
:focus-visible {
    outline: 2.5px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ===========================
   Animation Helpers
   =========================== */
.fade-in {
    opacity: 0;
    animation: fadeInShow 0.9s ease forwards;
}
@keyframes fadeInShow {
    from {opacity: 0;transform: translateY(20px);}
    to   {opacity: 1;transform: translateY(0);}
}

/* ================
  Scrollbars & Misc
   ================ */
::-webkit-scrollbar {
    width: 8px;
    background: #e3e8ec;
}
::-webkit-scrollbar-thumb {
    background: #bacbe6;
    border-radius: 8px;
}

[hidden] {
  display: none !important;
}

/* ===============
   Misc Elements
   =============== */
section, .section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
@media (max-width: 600px) {
    section, .section {padding: 24px 4px; margin-bottom: 36px;}
}

/* Fix for .content-wrapper in Kontakt page */
@media (max-width: 768px) {
    .content-wrapper {
        align-items: flex-start;
        max-width: 100%;
        font-size: 0.98rem;
    }
}

