/* CSS RESET & NORMALIZE – Mobile-First */
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;
    min-height: 100vh;
    background: #FFF8F3;
    color: #23272B;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    transition: background 0.2s;
}
:root {
    --primary: #25698A;
    --primary-light: #3993BA;
    --secondary: #FFF8F3;
    --accent: #43B495;
    --accent-dark: #187861;
    --gray-light: #F9FAFB;
    --gray: #E8E8E8;
    --shadow: 0 2px 12px rgba(34,17,8,0.10);
    --radius-lg: 20px;
    --radius-sm: 8px;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover, a:focus {
    color: var(--accent);
    text-decoration: underline;
    outline: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}
li {
    margin-bottom: 8px;
}
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
th, td {
    padding: 14px 18px;
    text-align: left;
}
th {
    background: var(--primary);
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
}
td {
    font-size: 16px;
    border-top: 1px solid var(--gray);
}
tbody tr:last-child td {
    border-bottom: none;
}

/* TYPOGRAPHY */
h1, .h1 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
h2, .h2 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.5rem;
    color: #3a3a3a;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
h3, .h3 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.125rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0;
}
p, .body-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 14px;
}
strong {
    font-weight: 600;
    color: var(--accent-dark);
}
.text-section {
    margin-bottom: 20px;
}
.brand-tagline {
    margin-top: 28px;
    font-family: Montserrat, Arial, sans-serif;
    background: var(--accent);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--radius-lg);
    font-size: 1.15rem;
    box-shadow: var(--shadow);
    text-align: center;
}

/* LAYOUT & SPACING */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px 20px;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 6px 24px rgba(34,17,8,0.18);
}
.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;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #fffcfb;
    box-shadow: 0 2px 10px rgba(66,33,8,0.11);
    margin-bottom: 20px;
    color: #23242f;
}
.testimonial-card p {
    margin: 0;
    font-size: 1.125rem;
    font-style: italic;
}
.average-rating {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1.1rem;
    text-align: center;
    margin: 12px 0 12px 0;
}
.submit-review-prompt {
    background: var(--gray-light);
    color: #252427;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    text-align: center;
    margin: 0 0 8px 0;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
}

/* --- FEATURES GRIDS (used on //about.html/leistungen.html) --- */
.features-grid, .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 12px 0 0 0;
}
.feature-card, .service-card {
    flex: 1 1 260px;
    min-width: 230px;
    max-width: 325px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px 22px 18px;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.1s;
    margin-bottom: 20px;
    border: 1px solid var(--gray);
}
.feature-card img, .service-card img {
    width: 48px;
    height: 48px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.feature-card h3, .service-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}
.feature-card p, .service-card p {
    margin: 0 0 8px 0;
}
.feature-card:hover, .service-card:hover {
    box-shadow: 0 6px 24px rgba(34,17,8,0.15);
    transform: translateY(-3px) scale(1.03);
}
.service-price {
    background: var(--accent);
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 8px;
    box-shadow: var(--shadow);
}

/* HEADER + NAVIGATION */
header {
    width: 100%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(38,105,138,0.08);
    position: relative;
    z-index: 120;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 16px;
}
.header-top img {
    height: 44px;
    margin-right: 16px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.main-nav a {
    font-family: Montserrat, Arial, sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.cta-btn {
    font-family: Montserrat, Arial, sans-serif;
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 11px 28px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(67,180,149,0.12);
    transition: background 0.22s, box-shadow 0.22s, transform 0.1s;
    text-align: center;
    text-shadow: 0px 2px 8px rgba(0,0,0,0.03);
    margin-left: 20px;
    display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    color: #fff;
    box-shadow: 0 11px 24px rgba(67,180,149,0.20);
    transform: translateY(-2px) scale(1.04);
    outline: none;
}

/* MOBILE NAVIGATION & HAMBURGER */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.1rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 102;
}

.mobile-menu {
    /* Hidden offscreen by default */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,248,243,0.99);
    box-shadow: 0 4px 24px rgba(38,105,138,0.14);
    z-index: 200;
    transform: translateX(-100vw);
    transition: transform 0.34s cubic-bezier(0.23,1,0.32,1);
    padding: 24px 18px 28px 18px;
    opacity: 0;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    align-self: flex-end;
    margin-bottom: 10px;
    cursor: pointer;
    z-index: 220;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    align-items: flex-start;
}
.mobile-nav a {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    padding: 10px 0 8px 0;
    border-radius: var(--radius-sm);
    transition: background .14s, color .14s;
}
.mobile-nav a:hover {
    background: var(--accent);
    color: #fff;
}

/* Show/hide nav for mobile/desktop */
@media (max-width: 991px) {
    .main-nav, .cta-btn {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: #fff;
    padding: 36px 0 18px 0;
    width: 100%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -3px 40px rgba(38,105,138,0.10);
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}
footer nav {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-menu a, .main-nav a {
    color: #fff;
}
.footer-menu a:hover {
    color: #f9e2d2;
    text-decoration: underline;
}
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-icons img {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    transition: box-shadow 0.2s, background 0.2s;
}
.social-icons img:hover {
    box-shadow: 0 2px 12px rgba(67,180,149,0.17);
    background: var(--accent);
}
.legal-info {
    text-align: center;
    font-size: 0.98rem;
    margin-top: 10px;
}

/* --- PRICING TABLE --- */
.pricing-table {
    margin: 24px 0 26px 0;
    overflow-x: auto;
}
.pricing-table td, .pricing-table th {
    border: none;
}
.pricing-table tbody tr:nth-child(2n) td {
    background: var(--gray-light);
}

/* FAQ SECTION */
.faq-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(67,180,149,0.05);
    font-family: Roboto, Arial, sans-serif;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.faq-item h2 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

/* MAP SNIPPET (kontakt.html) */
.map-snippet {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 250px;
}
.map-snippet img {
    min-width: 100%;
    border-radius: var(--radius-lg);
}

/* --- BUTTONS & MICRO-INTERACTIONS ---*/
button, .button, input[type=submit] {
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border: none;
    border-radius: 32px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.15s, box-shadow 0.15s, transform 0.09s;
    margin: 0 8px 0 0;
}
button:hover, .button:hover, input[type=submit]:hover,
button:focus, .button:focus {
    background: var(--accent-dark);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(67,180,149,0.13);
    outline: none;
}

/* Form fields */
input[type=email], input[type=text], textarea {
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: Roboto, Arial, sans-serif;
    margin-bottom: 12px;
    width: 100%;
    background: #fff;
}
input[type=email]:focus, input[type=text]:focus, textarea:focus {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: linear-gradient(90deg, #ffefd8 55%, #ffe2be 100%);
    color: #2c2c2c;
    box-shadow: 0 -2px 32px rgba(67,180,149,0.13);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 10px 20px 10px;
    gap: 20px;
    font-size: 1.05rem;
    font-family: Roboto, Arial, sans-serif;
    will-change: transform, opacity;
    opacity: 1;
    transition: bottom 0.3s;
}
.cookie-consent-banner .banner-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
}
.cookie-consent-banner button {
    padding: 10px 20px;
    border-radius: 24px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.13s;
    background: var(--primary);
    color: #fff;
}
.cookie-consent-banner .cookie-settings-btn {
    background: var(--accent);
    color: #fff;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
    background: var(--accent-dark);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
    position: fixed;
    z-index: 10001;
    inset: 0;
    background: rgba(60,60,60,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.26s;
}
.cookie-modal {
    background: #fff;
    color: #282626;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(38,105,138,0.16);
    max-width: 410px;
    width: 90vw;
    padding: 38px 28px 28px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    font-size: 1.05rem;
}
.cookie-modal h3 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--primary);
}
.cookie-modal label {
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 2px;
}
.cookie-category input[type=checkbox] {
    width: 21px;
    height: 21px;
    accent-color: var(--accent-dark);
    border-radius: 6px;
    margin-right: 10px;
}
.cookie-category input[disabled] {
    opacity: 0.65;
    pointer-events: none;
}
.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.cookie-modal-close {
    position: absolute;
    top: 15px; right: 16px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.6rem;
    cursor: pointer;
}

/* --- MEDIA QUERIES ---*/
@media (max-width: 768px) {
    .header-top {
        padding: 12px 6px;
    }
    .container {
        padding: 0 7px;
    }
    .section {
        padding: 22px 7px;
        margin-bottom: 36px;
    }
    .features-grid, .services-grid {
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .content-wrapper, .card-container, .content-grid, .footer-row {
        flex-direction: column;
        gap: 16px !important;
    }
    .feature-card, .service-card, .card {
        max-width: 100%;
        min-width: 0;
    }
    .testimonial-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }
    .text-image-section {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
    .footer-row {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-tagline {
        padding: 12px 4px;
        font-size: 1rem;
    }
    .map-snippet {
        width: 100%;
    }
}
@media (max-width: 450px) {
    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.15rem; }
    .cta-btn, button, input[type=submit] { font-size: 0.95rem; padding: 9px 16px;}
    .feature-card, .service-card, .card {padding: 13px 6px;}
}

/* --- ANIMATIONS ---*/
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s 0.1s forwards;
}
@keyframes fadeIn {
    from { opacity:0; }
    to { opacity:1; }
}

.slide-in-bottom {
    transform: translateY(40px);
    opacity: 0;
    animation: slideInBottom .68s both;
}
@keyframes slideInBottom {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-left {
    transform: translateX(-20vw);
    opacity: 0;
    animation: slideInLeft 0.6s forwards;
}
@keyframes slideInLeft {
    from {transform: translateX(-20vw);opacity:0;}
    to {transform: translateX(0);opacity:1;}
}
.slide-in-right {
    transform: translateX(20vw);
    opacity: 0;
    animation: slideInRight 0.6s forwards;
}
@keyframes slideInRight {
    to {transform: translateX(0);opacity:1;}
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #b1b1b1; }
::-moz-placeholder { color: #b1b1b1; }
:-ms-input-placeholder { color: #b1b1b1; }
::placeholder { color: #b1b1b1; }

/* Hide outline on mouse (show on keyboard!) */
:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
}

/* --- Print Styles (minimal) --- */
@media print {
    header, footer, .cookie-consent-banner, .mobile-menu {display:none !important;}
    body {background: #fff; color:#000;}
}
section {
  padding: 15px;
}