/* =====================================================================
   Fellfreunde Studio – Scandinavian Clean Style CSS
   
   Author: Professional Website Developer
   ---------------------------------------------------------------------
   - Modern Scandinavian-inspired, functional, bright, friendly
   - Uses ONLY flexbox for all layouts (never grid/columns)
   - Responsive, animated, and accessible
   - BRAND COLORS: #37475A primary, #89A7B1 secondary, #F7DBAF accent
   - FONTS: PT Sans (display), Arial (body)
   ===================================================================== */

/* ------------ CSS RESET ----------- */
html {box-sizing: border-box;}
*, *:before, *:after {box-sizing: inherit;}
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,
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;
    background: transparent;
}
body {line-height: 1;}
ol, ul {list-style: none;}
table {border-collapse: collapse; border-spacing: 0;}
img {max-width: 100%; height: auto; display: block;}
button, input, select, textarea {font-family: inherit; font-size: inherit; border: none; outline: none; background: none;}

/* ------------ BASE TYPOGRAPHY ----------- */
html {
    font-size: 16px;
    font-family: 'PT Sans', Arial, sans-serif;
    background: #F5F7F8;
    color: #37475A;
    min-height: 100%;
}
body {
    font-size: 1rem;
    background: #F8FAFB;
    color: #37475A;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Sans', Arial, sans-serif;
  color: #37475A;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {font-size: 2.5rem; letter-spacing: -1px; line-height: 1.15;}
h2 {font-size: 2rem;  letter-spacing: -0.5px;}
h3 {font-size: 1.4rem;}
h4 {font-size: 1.2rem;}
h5, h6 {font-size: 1rem;}

p, li, td, th {
    font-family: Arial, 'PT Sans', sans-serif;
    font-size: 1rem;
    color: #37475A;
    line-height: 1.6;
}

strong, b {font-weight: 700;}
a {
    color: #37475A;
    text-decoration: underline dotted #89A7B1 1.5px;
    transition: color 0.2s;
    cursor: pointer;
}
a:hover, a:focus {
    color: #89A7B1;
    text-decoration: underline solid #37475A 1.5px;
}
a.cta-btn {text-decoration: none;}

/* ------------ CONTAINER & LAYOUT ----------- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Critical flex layout containers (mobile-first) */
.content-wrapper, .feature-grid, .team-bios, .section, .card-container, .card, .content-grid, .testimonial-card, .feature-item, .text-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Mandatory for spacing (from instructions) */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #FFF;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(51,66,89,0.06);
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px !important;
}
.card {
    margin-bottom: 20px;
    background: #F8FAFB;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(85,102,98,0.06);
    position: relative;
}
.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;
    border-radius: 12px;
    background: #FAFCFD;
    box-shadow: 0 2px 10px rgba(82, 106, 101, 0.10);
    min-width: 0;
    margin-bottom: 20px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

@media (min-width: 768px) {
    .content-wrapper, .card-container, .feature-grid, .team-bios, .content-grid {
        gap: 32px;
    }
    .section, .content-wrapper.text-section {
        padding: 60px 40px;
    }
    .testimonial-card {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
    .text-image-section {
        flex-direction: row;
        gap: 32px;
        align-items: center;
    }
    .feature-grid > div {
        flex: 1 1 0;
    }
    .team-bios > div {
        flex: 1 1 0;
        min-width: 220px;
    }
}

/* -------------- HEADER --------------- */
header {
    width: 100%;
    background: #FFF;
    box-shadow: 0 2px 16px 0 rgba(40,62,90,.07);
    position: relative;
    z-index: 20;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}
header img {
    height: 48px;
    width: auto;
    transition: filter 0.2s;
}
.main-nav {
    display: none;
    align-items: center;
    gap: 30px;
}
.main-nav a {
    font-size: 1rem;
    font-family: 'PT Sans', Arial, sans-serif;
    color: #37475A;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 5px;
    background: none;
    transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
    background: #F7DBAF;
    color: #37475A;
}
.main-nav .cta-btn {
    background: #37475A;
    color: #FFF;
    border-radius: 32px;
    padding: 10px 26px;
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(75,75,86,0.06);
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.18s, color 0.15s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
    background: #89A7B1;
    color: #37475A;
    box-shadow: 0 4px 24px 0 #89A7B128;
}

.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: none;
    border: none;
    color: #37475A;
    cursor: pointer;
    padding: 4px 8px 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    z-index: 28;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #F7DBAF;
}

@media (min-width: 992px) {
    .main-nav { display: flex !important; }
    .mobile-menu-toggle { display: none !important; }
}

/* ------------------- MOBILE MENU OVERLAY ------------------- */
.mobile-menu {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: #F8FAFBEE;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.8,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
    background: #37475A;
    color: #FAFCFD;
    font-size: 2.2rem;
    border: none;
    border-radius: 50%;
    margin: 24px 24px 6px 0;
    padding: 2px 12px;
    box-shadow: 0 2px 12px rgba(56,60,92,0.16);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 99;
}
.mobile-menu-close:hover { background: #89A7B1; color: #37475A; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    padding: 32px 32px 24px 32px;
}
.mobile-nav a {
    font-size: 1.21rem;
    color: #37475A;
    text-decoration: none;
    padding: 12px 8px 12px 0;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    width: 100%;
    font-family: 'PT Sans', Arial, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #F7DBAF;
    color: #37475A;
}
@media (min-width: 992px) {
    .mobile-menu { display: none !important; }
}

/* -------------------- HERO & CTA BUTTONS -------------------- */
.cta-btn {
    background: #37475A;
    color: #FFF;
    border: none;
    border-radius: 32px;
    padding: 12px 36px;
    font-size: 1.11rem;
    font-weight: bold;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px 0 rgba(51,65,139,0.09);
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 8px;
    transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.13s;
    text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
    background: #89A7B1;
    color: #37475A;
    transform: translateY(-2px) scale(1.035);
    box-shadow: 0 4px 18px 0 #89A7B138;
}

/* ------------- SECTIONS & SEPARATORS ------------- */
section {
    width: 100%;
    margin-bottom: 60px;
    padding: 0;
    background: none;
}

.content-wrapper, .content-wrapper.text-section {
    padding: 0 0 0 0;
    margin: 0;
    background: none;
    border-radius: 0;
}

.text-section {
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 2px 10px 0 rgba(81, 108, 125, 0.06);
    padding: 24px 18px;
}
@media (min-width: 768px) {
    .text-section {
        padding: 40px 32px;
    }
}

/* ------------- FEATURE/ICON GRID ------------- */
.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.feature-grid > div {
    background: #FAFCFD;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(56,69,90,0.05);
    padding: 22px 18px;
    flex: 1 1 0;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 12px;
    transition: box-shadow 0.16s, transform 0.16s;
}
.feature-grid > div:hover {
    box-shadow: 0 6px 24px 0 #89A7B128;
    transform: translateY(-2px) scale(1.025);
}
.feature-grid img {
    width: 38px; height: 38px; margin-bottom: 10px;
    filter: grayscale(0.2) brightness(0.92);
}
@media (min-width: 768px) {
    .feature-grid { flex-direction: row; gap: 32px; }
}

/* -------------- TEAM BIOS ------------- */
.team-bios {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.team-bios > div {
    background: #FAFCFD;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(88,125,99,0.06);
    padding: 22px 18px;
    flex: 1 1 0;
    min-width: 0;
    transition: box-shadow 0.18s;
}
.team-bios > div:hover {
    box-shadow: 0 6px 24px 0 #37475A18;
}
@media (min-width: 768px) {
    .team-bios { flex-direction: row; gap: 32px; }
}

/* -------------- LISTS ------------- */
ul, ol {
    padding-left: 26px;
    margin-bottom: 16px;
}
ul li, ol li {
    font-size: 1rem;
    color: #37475A;
    line-height: 1.7;
    margin-bottom: 8px;
    position: relative;
    padding-left: 0.1em;
}
ul li:before {
    content: '\2022';
    color: #89A7B1;
    display: inline-block;
    width: 1.1em;
    margin-left: -1.1em;
    font-size: 1.01em;
    vertical-align: top;
}

/* Icons in list (e.g. contact page) */
ul li img {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    top: -2px;
}

/* -------------- TABLES ------------- */
table {
    width: 100%;
    background: #FAFCFD;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 12px;
    box-shadow: 0 1px 10px rgba(90,114,102,0.04);
    overflow: hidden;
}
th, td {
    text-align: left;
    padding: 12px 14px;
}
th {
    background: #F7DBAF;
    color: #37475A;
    font-size: 1.03rem;
    letter-spacing: 0.01em;
}
td {
    border-top: 1px solid #EFEFEF;
}
tbody tr:nth-child(odd) td {
    background: #FEFBF7;
}
tbody tr:nth-child(even) td {
    background: #FAFCFD;
}

@media (max-width: 600px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { display: none; }
    tr { margin-bottom: 12px; }
    td {
        padding: 8px 12px;
        border: none;
        position: relative;
    }
    td:before {
        content: attr(data-label) ': ';
        font-weight: 700;
        display: block;
        margin-bottom: 2px;
    }
}

/* -------------- TESTIMONIAL CARDS ------------- */
.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border-radius: 12px;
    background: #FAFCFD;
    box-shadow: 0 2px 10px rgba(82, 106, 101, 0.10);
    min-width: 0;
    margin-bottom: 20px;
    color: #37475A;
    font-size: 1.06rem;
    border-left: 6px solid #89A7B1;
}
.testimonial-card p {
    color: #37475A;
    font-size: 1.1rem;
}
.testimonial-card strong {
    color: #37475A;
    font-weight: 700;
}
.testimonial-card span {
    font-size: 0.99rem;
    color: #37475A;
    opacity: 0.76;
}
@media (min-width: 700px) {
    .testimonial-card {flex-direction: row; align-items: center; gap: 30px;}
}

/* -------------- FOOTER ------------- */
footer {
    width: 100%;
    background: #37475A;
    color: #FFF;
    padding: 36px 0 12px 0;
    margin-top: 90px;
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
footer img {
    width: 52px;
    margin-bottom: 4px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.footer-nav a {
    color: #FFF;
    opacity: 0.82;
    text-decoration: none;
    font-size: 0.98rem;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.16s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
    background: #F7DBAF;
    color: #37475A;
    opacity: 1;
}
.footer-contact {
    margin-top: 10px;
    font-size: 0.99rem;
    opacity: 0.83;
    text-align: center;
    letter-spacing: 0.01em;
}
@media (min-width: 768px) {
    footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }
    .footer-nav { flex-direction: row; gap: 18px; margin-top: 0;}
    .footer-contact { text-align: right; }
}

/* -------------- RESPONSIVE TWEAKS ------------- */
@media (max-width: 600px) {
    html { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    .section { padding: 32px 4px; }
    .feature-grid > div, .team-bios > div { padding: 16px 8px; }
}

/* -------------- COOKIE CONSENT BANNER ------------- */
#cookie-consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 130;
    background: #FAFCFD;
    border-top: 1.5px solid #EFEFEF;
    box-shadow: 0 -4px 20px 0 #37475A14;
    padding: 18px 22px 12px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    animation: fadeinCCC 0.4s;
}
#cookie-consent-banner.hide {display: none !important;}
#cookie-consent-banner p {
    color: #37475A;
    font-size: 1.01rem;
    letter-spacing: 0.01em;
}
.cookie-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-btn {
    background: #37475A;
    color: #FFF;
    border: none;
    border-radius: 30px;
    padding: 9px 26px;
    font-size: 1rem;
    margin-top: 2px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 6px #37475A15;
    font-family: 'PT Sans', Arial, sans-serif;
}
.cookie-btn.reject {
    background: #F7DBAF;
    color: #37475A;
}
.cookie-btn.settings {
    background: #89A7B1;
    color: #FFF;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: #89A7B1;
    color: #37475A;
}
.cookie-btn.reject:hover {
    background: #37475A;
    color: #FFF;
}

@media (min-width: 700px) {
    #cookie-consent-banner { flex-direction: row; align-items: center; }
}

/* -------- Cookie Modal --------- */
#cookie-modal {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: #37475A44;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 160;
    animation: fadeinCCC 0.3s;
}
#cookie-modal.hide { display: none !important; }
#cookie-modal .modal-content {
    background: #FAFCFD;
    padding: 32px 22px 28px 22px;
    border-radius: 24px;
    box-shadow: 0 4px 32px 0 #37475A28;
    width: 94vw;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    position: relative;
}
#cookie-modal h3 {margin-bottom: 4px; color: #37475A; font-size: 1.22rem;}
#cookie-modal .modal-close {
    position: absolute;
    top: 10px; right: 14px;
    font-size: 1.8rem;
    color: #37475A;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}
#cookie-modal .modal-close:hover {opacity: 1;}

.cookie-category {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #F8FAFB;
    border-radius: 10px;
    padding: 13px 10px 10px 10px;
    margin-bottom: 9px;
}
.cookie-category label {
    font-size: 1.06rem;
    color: #37475A;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}
.cookie-category input[type=checkbox][disabled] {
    accent-color: #37475A;
    cursor: not-allowed;
}
.cookie-category input[type=checkbox] {
    width: 19px; height: 19px;
    accent-color: #89A7B1;
}

/* Animations */
@keyframes fadeinCCC {
    0% { opacity: 0; transform: translateY(24px) scale(0.97); }
    80% { opacity: 0.85; }
    100% { opacity: 1; transform: none; }
}

/* --------- MICRO-INTERACTIONS --------- */
button, .cta-btn, .main-nav a, .mobile-nav a, .footer-nav a, .cookie-btn {
    transition: background 0.15s, color 0.12s, box-shadow 0.22s, transform 0.15s;
}
.card, .feature-grid > div, .team-bios > div, .testimonial-card {
    transition: box-shadow 0.18s, transform 0.15s, background 0.18s;
}

/* -------- Accessibility -------- */
a, button, .cta-btn, .main-nav a, .mobile-nav a, .footer-nav a {
    outline: none;
}
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible, .footer-nav a:focus-visible {
    outline: 2.5px solid #F7DBAF;
    outline-offset: 2px;
}

/* --------- MISC / SMALL DEVICES --------- */
@media (max-width: 420px) {
    .container { padding: 0 5px; }
    .text-section, .section {padding: 18px 3px;}
    .feature-grid > div, .team-bios > div, .testimonial-card {padding: 11px 5px;}
    .footer-contact {font-size: 0.86rem;}
}

/* --------- PRINT --------- */
@media print {
    header, footer, #cookie-consent-banner, #cookie-modal { display: none !important; }
    section, .container {margin: 0 !important; padding: 0 !important; box-shadow: none !important;}
}

/* --------- UTILITIES --------- */
.hide, .d-none { display: none !important; }
.show { display: block !important; }

