/* -----------------------------------------------------
   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;
}
html {
    scroll-behavior: smooth;
}
body {
    line-height: 1.5;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background: #F7F4F0;
    color: #1B263B;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #29418B;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #FFAA2E;
    outline: none;
}
ul, ol {
    margin-left: 1.2em;
    margin-bottom: 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #181F3C;
    font-weight: 800;
    margin-bottom: 16px;
}
h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    letter-spacing: -1px;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 1.1rem;
}
p, li, address, small {
    font-size: 1rem;
    color: #253057;
}
p {
    margin-bottom: 16px;
}
b, strong {
    font-weight: 700;
}
section, main, footer, header {
    width: 100%;
    box-sizing: border-box;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* -----------------------------------------------------
   Vibrant & Energetic COLOR System / Brand Colors
------------------------------------------------------ */
:root {
    --primary: #29418B;
    --secondary: #77B9B4;
    --accent: #F7F4F0;
    --highlight: #FFAA2E;
    --electric1: #0FD5C9;
    --electric2: #FF158A;
    --electric3: #FCE83A;
    --dark: #181F3C;
    --text-dark: #181F3C;
    --text-light: #fff;
    --neutral: #e4e6ef;
    --shadow-d: rgba(41,65,139,0.14);
    --shadow-c: 0 6px 20px var(--shadow-d);
}

/* -----------------------------------------------------
   Header & Main Navigation
------------------------------------------------------ */
header {
    background: var(--primary);
    color: var(--text-light);
    width: 100%;
    box-shadow: 0 2px 12px rgba(41,65,139,0.11);
    z-index: 22;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 18px;
}
header img {
    height: 48px;
    min-width: 48px;
}
.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border-bottom: 3px solid transparent;
    padding: 6px 2px;
    position: relative;
    transition: border .18s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
    color: var(--electric1);
    border-bottom: 3px solid var(--electric1);
}
.cta-btn {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0FD5C9 60%, #FF158A 100%);
    color: #fff;
    border-radius: 30px;
    border: none;
    padding: 12px 32px;
    margin-left: 18px;
    box-shadow: 0 4px 18px rgba(15,213,201,0.17);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, box-shadow 0.22s, transform 0.13s;
    display: inline-block;
    text-align: center;
}
.cta-btn.secondary {
    background: var(--primary);
    color: var(--electric3);
    border: 2px solid var(--electric3);
    box-shadow: 0 1px 12px rgba(41,65,139,0.09);
}
.cta-btn:hover, .cta-btn:focus {
    background: linear-gradient(86deg, #FF158A 60%, #0FD5C9 100%);
    color: #fff;
    box-shadow: 0 2px 24px rgba(255,21,138,0.18);
    transform: translateY(-2px) scale(1.04);
    outline: none;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
    background: var(--electric3);
    color: var(--primary);
    border: 2px solid var(--primary);
}
/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: #fff;
    font-size: 2.1rem;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    transition: color .19s;
    z-index: 104;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: var(--electric1);
    outline: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(24,31,60,0.96);
    color: #fff;
    z-index: 200;
    transform: translateX(100vw);
    transition: transform 0.45s cubic-bezier(0.8,0,0.2,1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 0 0;
    overflow-y: auto;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    font-size: 2.3rem;
    background: transparent;
    color: #fff;
    border: none;
    align-self: flex-end;
    margin: 24px 28px 0 0;
    cursor: pointer;
    transition: color 0.16s;
    z-index: 205;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--electric2);
    outline: none;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 40px;
    gap: 22px;
    padding: 0 36px 44px 32px;
}
.mobile-nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.20rem;
    padding: 14px 0 7px 0;
    display: block;
    border-bottom: 2px solid transparent;
    transition: color .18s, border .18s;
    width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--electric3);
    border-bottom: 2.5px solid var(--electric3);
    outline: none;
}


/* -----------------------------------------------------
   Hero, Features, and Page Sections: Vibrant/Energetic
------------------------------------------------------ */
.hero,
.about-hero, .services-hero, .process-hero, .references-hero, .faq-hero, .contact-hero, .thankyou-hero {
    background: linear-gradient(84deg, var(--accent) 63%, var(--electric1) 112%);
    min-height: 340px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    box-shadow: 0 6px 32px rgba(41,65,139,0.08);
    padding: 54px 0 34px 0;
}
.hero h1, .about-hero h1, .process-hero h1,
.services-hero h1, .references-hero h1, .faq-hero h1, .contact-hero h1, .thankyou-hero h1 {
    color: var(--primary);
    font-size: 2.7rem;
    line-height: 1.14;
    letter-spacing: -0.5px;
    font-weight: 900;
}
.hero p, .about-hero p, .services-hero p, .process-hero p,
.references-hero p, .faq-hero p, .contact-hero p {
    font-size: 1.16rem;
    color: #374151;
}

/*
 Section Spacing, .section pattern
*/
section, .section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: transparent;
    border-radius: 22px;
}
.features, .values, .usps, .services-overview,
.process-teaser, .process-cta, .faq-teaser, .faq-list, .faq-cta, .contact-details, .contact-note,
.team-intro, .why-us, .testimonials,
.project-summaries, .testimonials-preview, .next-steps, .cta-return-home {
    background: #fff;
    box-shadow: 0 4px 22px 0 rgba(41,65,139,0.07);
    border-radius: 16px;
    margin-bottom: 48px;
}

/* Card & Grid Patterns (Flexbox Only) */
.feature-grid, .service-card-list, .project-list,
.team-bio-list, .card-container,
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.card, .feature, .service-card, .project-teaser, .team-bio, .faq-item {
    margin-bottom: 20px;
    position: relative;
}
.feature, .service-card {
    background: var(--accent);
    border-radius: 14px;
    box-shadow: 0 6px 24px -3px rgba(47,71,147,0.08);
    padding: 32px 28px 28px 28px;
    transition: box-shadow .16s, transform .18s;
    flex: 1 1 245px;
    min-width: 230px;
    max-width: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.feature:hover, .service-card:hover {
    box-shadow: 0 11px 36px 0 rgba(47,71,147,0.13);
    transform: translateY(-5px) scale(1.03);
    z-index: 9;
}
.feature img, .service-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 9px;
}
.feature h3, .service-card h3 {
    font-size: 1.24rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}
.feature p, .service-card p {
    font-size: 1rem;
    color: #29386d;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(41,65,139,0.07);
    padding: 22px 18px;
}
.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;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: #fffbe7;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px 0 rgba(247,244,240,0.7), 0 1.5px 6px 0 rgba(41,65,139,.05);
    border-left: 7px solid var(--electric2);
    transition: box-shadow .16s, border-color .17s;
}
.testimonial-card:hover {
    box-shadow: 0 8px 36px rgba(247,244,240,.90), 0 2px 14px 0 rgba(41,65,139,.10);
    border-left: 7px solid var(--electric1);
}
.testimonial-card p {
    color: #261b22;
    font-size: 1.08rem;
    font-style: italic;
}
.testimonial-author {
    font-weight: 700;
    color: #29418B;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.01rem;
    margin-top: -12px;
    letter-spacing: .02em;
}

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

.team-bio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.team-bio {
    background: #F7F4F0;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(47,71,147,0.09);
    padding: 24px 22px 18px 22px;
    flex: 1 1 300px;
    min-width: 260px;
    max-width: 380px;
    transition: box-shadow .15s;
}
.team-bio h3 {
    color: var(--primary);
    margin-bottom: 7px;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.project-teaser {
    background: #e4f9f5;
    border-radius: 11px;
    padding: 18px 19px 15px 19px;
    flex: 1 1 260px;
    min-width: 210px;
    max-width: 350px;
    margin-bottom: 20px;
    box-shadow: 0 2px 9px rgba(15,213,201,0.08);
    border-left: 6px solid var(--primary);
    transition: border-color 0.25s;
}
.project-teaser:hover {
    border-left: 6px solid var(--electric1);
}

.faq-item {
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(41,65,139,.06);
    padding: 16px 18px 11px 18px;
    margin-bottom: 20px;
    transition: box-shadow .18s;
}
.faq-item h3 {
    color: var(--electric2);
    font-weight: 800;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.12rem;
}
.faq-item p {
    color: #253057;
    font-size: 0.98rem;
}

/* ------------------------------------------
   Legal page sections
---------------------------------------------*/
.legal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px -3px rgba(41,65,139,0.10);
    margin-bottom: 48px;
    padding: 44px 24px;
}
.legal h1 {
    font-size: 2.1rem;
}
.legal ul {
    color: #1b263b;
    font-size: 1.09rem;
    margin-top: 14px;
    margin-bottom: 18px;
}
.legal p, .legal a {
    color: #29386d;
    line-height: 1.71;
}
.legal a { color: var(--primary); font-weight: 600; }

/* ------------------------------------------
      Contact/Address sections
---------------------------------------------*/
address {
    font-style: normal;
    color: #181F3C;
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.7;
}
address a {
    color: var(--electric2);
    word-break: break-all;
}
.contact-short-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 20px 0;
}
.contact-short-info img {
    vertical-align: middle;
    width: 21px;
    margin-right: 4px;
}
.contact-note small { color: #29418B; }

/* ------------------------------------------
      Footer
---------------------------------------------*/
footer {
    background: var(--primary);
    color: #fff;
    padding: 38px 0 24px 0;
    margin-top: 48px;
}
footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}
footer img {
    height: 42px;
}
.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
}
.footer-nav a {
    color: var(--electric1);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.97rem;
    transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: var(--electric3);
}
.footer-contact-teaser {
    font-size: 0.99rem;
    color: #fff;
    opacity: 0.85;
}
.footer-contact-teaser p { color: #fff; }

/* ------------------------------------------
   Cookie Consent Banner & Modal
---------------------------------------------*/
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 400;
    background: #181F3C;
    color: #fff;
    box-shadow: 0 -6px 24px rgba(41,65,139, 0.18);
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 16px 24px 16px;
    gap: 16px;
    font-size: 1rem;
    transition: transform 0.38s cubic-bezier(.7,0,.3,1);
}
.cookie-banner.closed {
    transform: translateY(180px);
    pointer-events: none;
}
.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 11px;
    max-width: 530px;
}
.cookie-banner-buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}
.cookie-btn {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 22px;
    padding: 9px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, box-shadow 0.17s;
}
.cookie-btn.accept {
    background: linear-gradient(95deg, #0FD5C9 60%, #FF158A 100%);
    color: #fff;
    box-shadow: 0 2px 11px rgba(15,213,201,0.15);
}
.cookie-btn.accept:focus, .cookie-btn.accept:hover {
    background: #0FD5C9;
    color: #fff;
}
.cookie-btn.reject {
    background: var(--electric2);
    color: #fff;
    box-shadow: 0 2px 11px rgba(255,21,138,0.10);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
    background: #c90068;
}
.cookie-btn.settings {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
    background: var(--electric1);
    color: #fff;
}
/* Cookie Modal Popup */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24,31,60,0.83);
    z-index: 410;
    display: none;
}
.cookie-modal-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal .29s;
}
.cookie-modal {
    background: #fff;
    color: #181F3C;
    padding: 32px 30px 20px 30px;
    border-radius: 22px;
    min-width: 320px;
    max-width: 96vw;
    box-shadow: 0 4px 28px rgba(41,65,139, 0.33);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 21px;
    animation: slideUpModal .27s cubic-bezier(.77,0,.2,1);
}
.cookie-modal h2 {
    font-size: 1.33rem;
    color: var(--electric2);
}
.cookie-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.7rem;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: var(--electric1);
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
    accent-color: var(--electric2);
    width: 18px; height: 18px;
    margin-right: 6px;
}
.cookie-category.essential label::after {
    content: ' (immer aktiv)';
    color: var(--secondary);
    font-size: 0.92em;
}
.cookie-category.essential input {
    display: none;
}

/* Modal Animations */
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUpModal {
  from { transform: translateY(70px); opacity: 0; } to { transform: translateY(0); opacity: 1;}
}

/* ------------------------------------------
    Utility & Helper Classes
---------------------------------------------*/
.d-block { display: block!important; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.mt-32 { margin-top: 32px!important; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.text-center { text-align: center; }
.icon { display: inline-flex; vertical-align: middle; }

/* ------------------------------------------
   Responsive Styles (Mobile-First)
---------------------------------------------*/
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 760px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 768px) {
  .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 8px;
    gap: 26px;
  }
  footer {
    padding: 32px 0 13px 0;
    margin-top: 40px;
  }
  /* Section padding smaller on mobile */
  section, .section {
    padding: 30px 7px;
    margin-bottom: 34px;
    border-radius: 14px;
  }

  .feature-grid, .service-card-list, .project-list, .team-bio-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .project-teaser, .feature, .service-card, .team-bio, .card {
    min-width: unset;
    max-width: 100vw;
    padding: 18px 11px 16px 14px;
  }
  .testimonial-card {
    padding: 15px 14px;
    border-radius:12px;
  }
  .main-nav { display: none; }
  .cta-btn { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
  .footer-nav { gap: 11px; }
}
@media (max-width: 540px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.35rem; }
  footer img, header img { height: 34px; }
  .testimonial-card { font-size: 0.96rem; }
  .cta-btn { font-size: 1rem; padding: 10px 15px; }
}
@media (max-width: 430px) {
  .cookie-banner-content { max-width: 99vw; }
  .cookie-modal { min-width: 225px; padding: 18px 6px; }
}

/* ------------------------------------------
   Micro-Interactions & Subtle Animations
---------------------------------------------*/
section, .section, .feature, .service-card, .testimonial-card, .card, .team-bio, .project-teaser, .faq-item {
  transition: box-shadow .18s, transform .12s;
}
.cta-btn, .cookie-btn {
  transition: background 0.19s, color 0.17s, box-shadow 0.13s, transform 0.12s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* ------------------------------------------
   Custom Scrollbar
---------------------------------------------*/
::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 8px;
}
::-webkit-scrollbar-track {
    background: var(--accent);
    border-radius: 7px;
}

/* ------------------------------------------
    Miscellaneous / Utility
---------------------------------------------*/
strong, b { font-weight: 900; }
small { font-size: .87em; }
hr {
    border: none; border-top: 2px solid var(--neutral); margin: 32px 0;
}

/* Hide visually but keep for screen readers */
.sr-only {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    margin: -1px!important;
    overflow: hidden!important;
    clip: rect(0,0,0,0)!important;
    border: 0!important;
}

/* ------------------------------------------
   Layout Verification: No CSS Grid
---------------------------------------------*/
/* All grid-like arrangements use only display: flex!  */
/* No usage of display: grid, grid-*, column-*, or absolute card layout. */
