/* ====================================
   RaumWunder - Vibrant & Energetic 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%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #F8F8F8;
    color: #222;
    min-height: 100vh;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul, ol {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

/* ============= FONT & BRAND COLORS ============= */
:root {
    --color-primary: #204060;
    --color-secondary: #8EAE85;
    --color-accent: #E9E4DD;
    --color-highlight: #FF3A66;
    --color-vibrant-blue: #1CB5E0;
    --color-vibrant-yellow: #FFE55E;
    --color-vibrant-orange: #FF9153;
    --color-dark: #1b1e2e;
    --color-light: #fff;
    --color-grey: #ECECEC;
    --text-body: #222;
    --text-heading: #14243a;

    --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    background: var(--color-accent);
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-heading);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.12;
}
h1 {
    font-size: 2.5rem;
    text-shadow: 0 4px 18px rgba(28,181,224,0.14);
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.4rem;
}
@media (max-width: 768px) {
    h1 {font-size:2rem;}
    h2 {font-size:1.4rem;}
}

/* ============= GLOBAL UTILS ============= */
.container {
    width: 100%;
    max-width: 1120px;
    padding: 0 18px;
    margin: 0 auto;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.text-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 1.07rem;
}

/* ============= HEADER & NAVIGATION ============= */
header {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-accent);
    box-shadow: 0 4px 24px rgba(32,64,96,0.06);
    position: relative;
    z-index: 50;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.logo img {
    height: 44px;
    width: auto;
}
nav.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
nav.main-nav a {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.18s;
    position: relative;
    letter-spacing: 0.01em;
}
nav.main-nav a:hover, nav.main-nav a:focus {
    color: var(--color-vibrant-yellow);
}
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-vibrant-blue) 25%, var(--color-vibrant-yellow) 85%);
    color: #212;
    font-size: 1.1rem;
    font-family: var(--font-display);
    padding: 10px 32px;
    border-radius: 34px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(32,64,96,0.07);
    transition: background 0.18s, box-shadow 0.2s, transform 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: 12px;
}
.cta-button:hover, .cta-button:focus {
    background: linear-gradient(90deg, var(--color-vibrant-yellow) 30%, var(--color-vibrant-blue) 100%);
    box-shadow: 0 8px 30px rgba(255,58,102,0.09);
    color: var(--color-primary);
    transform: scale(1.045);
}

/* ============= MOBILE NAVIGATION ============= */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 110;
    background: var(--color-vibrant-blue);
    color: #fff;
    font-size: 2.1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(32,64,96,.10);
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.19s;
}
.mobile-menu-toggle:active {
    transform: scale(0.94);
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right:0; bottom:0;
    width: 100vw;
    height: 100vh;
    background: rgba(28,181,224,0.96);
    box-shadow: 0 0 32px 6px rgba(28,181,224,0.19);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 56px;
    padding-left: 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--color-vibrant-orange);
    color: var(--color-primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border: 0;
    z-index: 222;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 12px rgba(32,64,96,.14);
    transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
    background: var(--color-vibrant-yellow);
    color: var(--color-dark);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
    margin-top: 24px;
    padding: 32px 24px 0 32px;
}
.mobile-nav a {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .01em;
    padding: 12px 0;
    display: block;
    border-radius: 4px;
    transition: background 0.17s, color 0.17s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
    background: var(--color-vibrant-orange);
    color: var(--color-dark);
}
@media (max-width: 1024px) {
    nav.main-nav, .cta-button {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .mobile-menu, .mobile-menu-toggle {
        display: none !important;
    }
}

/* ============= HERO SECTION ============= */
.hero {
    background: linear-gradient(90deg, var(--color-accent) 85%, var(--color-vibrant-blue) 100%);
    min-height: 46vh;
    padding: 60px 0 40px 0;
    display: flex;
    align-items: center;
    position: relative;
}
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
.hero .content-wrapper {
    align-items: flex-start;
    gap: 20px;
}
.hero h1 {
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 14px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-weight: 500;
}
@media (max-width: 768px) {
    .hero {
        padding: 30px 0 24px 0;
    }
    .hero h1, .hero p {
        text-align: left;
    }
}

/* ============= SECTION STYLES & LAYOUT ============= */
section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 22px rgba(32,64,96,0.05);
    position: relative;
}
section:last-of-type {
    margin-bottom: 0;
}
@media (max-width: 768px) {
    section {
        padding: 22px 8px;
        margin-bottom: 40px;
    }
}

.features .feature-grid, .services .feature-grid, .features .feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.feature-grid > div, .project-overview {
    background: linear-gradient(90deg, var(--color-accent) 85%, var(--color-vibrant-yellow) 100%);
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(255,58,102,0.03), 0 1px 10px rgba(142,174,133,0.11);
    padding: 30px 22px 18px 22px;
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 340px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: box-shadow 0.18s, transform 0.16s;
    gap: 12px;
}
.feature-grid > div:hover, .feature-grid > div:focus {
    box-shadow: 0 8px 38px rgba(32,64,96,0.17), 0 4px 20px rgba(142,174,133,0.08);
    transform: translateY(-5px) scale(1.022);
}
.feature-grid img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}
.feature-grid h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
}
.price {
    color: var(--color-vibrant-orange);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 10px;
    background: #fff9e5;
    padding: 3px 14px;
    border-radius: 14px;
    letter-spacing: 0.04em;
}

/* Project overviews */
.project-overview {
    box-shadow: 0 2px 18px rgba(111,206,249,0.14);
    background: linear-gradient(90deg, #E9E4DD 82%, #FFD200 100%);
}

.selected-articles-list {
    background: #f7f5ee;
    border-radius: 12px;
    padding: 16px 23px;
    margin-top: 24px;
    box-shadow: 0 1px 6px rgba(248,217,45,0.07);
}
.selected-articles-list ul {
    list-style: disc inside;
    color: var(--color-primary);
}
.selected-articles-list h3 {
    margin-bottom: 8px;
}
.callout-to-contact {
    margin-top: 16px;
    background: #e1f7fc;
    border-left: 4px solid var(--color-vibrant-blue);
    padding: 16px 18px;
    border-radius: 10px;
    font-weight: 600;
}
.callout-to-contact a { color: var(--color-vibrant-blue); text-decoration: underline; }

/* ============= ABOUT SECTIONS ============= */
.about ul, .about .text-section ul {
    margin-top: 12px;
    margin-bottom: 4px;
    padding-left: 18px;
}
.about li {
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-dark);
}
.about strong {
    color: var(--color-primary);
}

/* ============= CONTACT SECTIONS ============= */
.contact .cta-button {
    margin-top: 14px;
}

.contact .text-section h3 {
    margin-bottom: 2px;
    margin-top: 10px;
    color: var(--color-primary);
    font-size: 1.07rem;
    font-weight: 700;
}
.contact .text-section a {
    color: var(--color-dark);
    text-decoration: underline;
}

.features .text-section, .contact .text-section {
    gap: 10px;
}

/* ============= LEGAL (DSGVO, COOKIES) ============= */
.legal h1 {
    font-size: 2rem;
    color: var(--color-primary);
}
.legal .text-section strong {
    color: var(--color-vibrant-orange);
}
.legal a {
    color: var(--color-vibrant-blue);
    text-decoration: underline;
}

/* ============= CARDS & FLEX LAYOUTS ============= */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 14px;
}
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(32,64,96,0.09);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    min-width: 220px;
    max-width: 330px;
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}
.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: 20px;
    }
    .content-grid {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============= TESTIMONIALS ============= */
.testimonials, .testimonials .container, .testimonials .content-wrapper {
    background: none;
    box-shadow: none;
}
.testimonials h2 {
    color: var(--color-primary);
    margin-bottom: 18px;
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    color: var(--text-body);
    font-family: var(--font-body);
    box-shadow: 0 1px 8px rgba(111,206,249,0.08), 0 2px 18px rgba(32,64,96,0.09);
    margin-bottom: 20px;
    margin-top: 0;
    min-width: 240px;
    transition: box-shadow 0.13s, transform 0.14s;
    border-left: 7px solid var(--color-vibrant-blue);
}
.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(32,64,96,0.11), 0 6px 18px rgba(142,174,133,0.13);
    transform: translateY(-3px) scale(1.016);
}
.testimonial-card p {
    color: #313856;
    font-size: 1.08rem;
    line-height: 1.42;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 500;
}
.testimonial-card span {
    color: var(--color-secondary);
    font-size: 1rem;
    font-style: italic;
}

/* ============= FOOTER ============= */
footer {
    background: var(--color-primary);
    color: #fff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 32px 0 18px 0;
    margin-top: 48px;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
footer img {
    height: 36px;
    width: auto;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 1rem;
}
.footer-nav a {
    color: var(--color-vibrant-yellow);
    font-weight: 600;
    font-family: var(--font-display);
    transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: var(--color-vibrant-blue);
}
footer p {
    font-size: .97rem;
    color: #e9e4ddac;
    font-family: var(--font-body);
}
@media (max-width: 700px) {
    footer .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
        width: 100%;
    }
}

/* ============= BUTTONS & LINKS ============= */
button, .cta-button {
    cursor: pointer;
    border: none;
    font-family: var(--font-display);
    font-weight: bold;
    transition: background 0.18s, color 0.19s, box-shadow 0.19s, transform 0.12s;
}
button:focus, .cta-button:focus {
    outline: 2px solid var(--color-vibrant-blue);
    background: var(--color-vibrant-orange);
}

/* ============= FEATURE & ITEM FLEX LAYOUTS ============= */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* ============= FORMS & INPUTS ============= */
input, textarea, select {
    border: 1.5px solid var(--color-vibrant-blue);
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 1px 4px rgba(28,181,224,0.06);
    transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-vibrant-orange);
    outline: none;
    background: #fffbe6;
}

/* ============= COOKIE CONSENT BANNER & MODAL ============= */
#cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    z-index: 3010;
    background: linear-gradient(90deg, #fff 75%, var(--color-vibrant-blue) 110%);
    box-shadow: 0 -8px 32px rgba(28,181,224,0.12);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 24px 24px 24px;
    min-height: 68px;
    gap: 28px;
    animation: banner-slidein 0.6s cubic-bezier(.68,-0.55,.27,1.55);
    font-size: 1rem;
    border-radius: 20px 20px 0 0;
}
@keyframes banner-slidein {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
    margin-right: 18px;
    color: #292929;
    font-family: var(--font-body);
    max-width: 400px;
}
#cookie-banner .cookie-btn-set {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
#cookie-banner button {
    min-width: 114px;
    padding: 9px 16px;
    border-radius: 22px;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1rem;
    background: var(--color-vibrant-blue);
    color: #fff;
    border: none;
    transition: background 0.16s, color 0.16s, box-shadow 0.2s, transform 0.13s;
    box-shadow: 0 1px 5px rgba(28,181,224,0.06);
    margin-left: 0;
}
#cookie-banner button.accept {
    background: linear-gradient(90deg, var(--color-vibrant-yellow) 50%, var(--color-vibrant-blue) 100%);
    color: var(--color-primary);
}
#cookie-banner button.accept:hover, #cookie-banner button.accept:focus {
    background: linear-gradient(90deg, var(--color-vibrant-blue) 50%, var(--color-vibrant-yellow) 100%);
    color: var(--color-dark);
}
#cookie-banner button.reject {
    background: #fff6f0;
    color: var(--color-vibrant-orange);
    border: 2px solid var(--color-vibrant-orange);
}
#cookie-banner button.reject:hover, #cookie-banner button.reject:focus {
    background: var(--color-vibrant-orange);
    color: #fff;
}
#cookie-banner button.settings {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-vibrant-blue);
}
#cookie-banner button.settings:hover, #cookie-banner button.settings:focus {
    background: var(--color-vibrant-blue);
}

/* ==== Cookie Modal ==== */
.cookie-modal {
    position: fixed;
    z-index: 4000;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(32,64,96,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
}
.cookie-modal.open {
    opacity: 1;
    pointer-events: auto;
    animation: cookie-modal-in 0.3s;
}
@keyframes cookie-modal-in {
    from { transform: translateY(64px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 34px 26px 24px 34px;
    box-shadow: 0 12px 68px rgba(28,181,224,0.20);
    max-width: 420px;
    width: 95vw;
    display: flex;
    flex-direction: column;
    gap: 23px;
    font-family: var(--font-body);
    color: var(--color-dark);
}
.cookie-modal-label {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    margin-bottom: 10px;
}
.cookie-modal-category {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 9px;
}
.cookie-modal-category.essential label {
    color: var(--color-vibrant-orange);
    font-weight: 700;
}
.cookie-modal-toggle {
    width: 46px;
    height: 26px;
    border-radius: 18px;
    background: #eee;
    position: relative;
    margin-right: 10px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.cookie-modal-toggle input[type="checkbox"] {
    display: none;
}
.cookie-modal-toggle .slider {
    position: absolute;
    left: 2px; top: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--color-vibrant-orange);
    transition: left 0.17s, background 0.14s;
    box-shadow: 0 1px 4px rgba(255,145,83,0.19);
}
.cookie-modal-toggle input:checked + .slider {
    left: 22px;
    background: var(--color-vibrant-blue);
}
.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 10px;
}
.cookie-modal-footer button {
    min-width: 90px;
    padding: 8px 14px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    transition: background 0.13s;
}
.cookie-modal-footer button.save {
    background: var(--color-vibrant-yellow);
    color: var(--color-primary);
}
.cookie-modal-footer button.save:hover {
    background: var(--color-vibrant-blue);
    color: #fff;
}

/* ============= RESPONSIVE & LAYOUT RULES ============= */
@media (max-width: 1024px) {
    .feature-grid {
        justify-content: center;
    }
    .card-container {
        justify-content: center;
        gap: 16px;
    }
}
@media (max-width: 700px) {
    .hero {
        min-height: 30vh;
    }
    .feature-grid > div, .project-overview {
        min-width: 86vw;
        max-width: 98vw;
        padding: 18px 10px 12px 14px;
    }
    .feature-grid {
        gap: 12px;
    }
}
@media (max-width: 520px) {
    .feature-grid > div, .project-overview {
        min-width: 90vw;
        max-width: 99vw;
        padding: 12px 2px 8px 8px;
    }
}

/* ============= ANIMATIONS & MICRO-INTERACTIONS ============= */
.cta-button, .card, .testimonial-card, section, .mobile-menu, .feature-grid > div {
    transition: box-shadow 0.16s, transform 0.13s, background 0.15s, color 0.1s;
}
.cta-button:active, button:active {
    transform: scale(0.98);
}
.testimonial-card:hover {
    background: #f7fafe;
    border-left-color: var(--color-vibrant-orange);
}

/* ============= OVERRIDES & ACCESSIBILITY ============= */
::-webkit-scrollbar {
    width: 8px;
    background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
    background: var(--color-vibrant-blue);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-vibrant-orange);
}
:focus-visible {
    outline: 2px solid var(--color-vibrant-blue);
    outline-offset: 2px;
}

/* ============= UTILITY CLASSES ============= */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.tx-c { text-align: center; }
.d-flex { display: flex; }
.jcc { justify-content: center; }
.aic { align-items: center; }
.flex-col { flex-direction: column; }
.gap-20 { gap: 20px; }

/* Ensure min spacing for all cards/sections */
section, .card, .testimonial-card, .project-overview, .feature-grid > div {
    margin-bottom: 20px;
}

/* ============= PRINT ============= */
@media print {
    header, footer, #cookie-banner, .mobile-menu {
        display: none !important;
    }
    section {
        box-shadow: none;
        background: #fff;
        border-radius: 0;
    }
}
