/* === ADMINISTRATIVE HILFE BERN - MAIN STYLES === */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --taupe: #8B7D6B;
    --taupe-light: #A69288;
    --taupe-dark: #6B5D4A;
    --cream: #F8F6F4;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --accent: #E8DDD4;
}

html {
    scroll-behavior: smooth;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FAFAFA;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Enhanced link styles for better visibility */
a {
    color: var(--taupe);
    text-decoration: underline;
    text-decoration-color: rgba(139, 125, 107, 0.4);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--taupe-dark);
    text-decoration-color: var(--taupe-dark);
    text-decoration-thickness: 2px;
}

/* Special styling for contact links */
a[href^="tel:"], a[href^="mailto:"] {
    color: var(--taupe);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(139, 125, 107, 0.5);
}

a[href^="tel:"]:hover, a[href^="mailto:"]:hover {
    color: var(--taupe-dark);
    text-decoration-color: var(--taupe-dark);
}

/* Google Maps links styling */
.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--taupe);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(139, 125, 107, 0.1);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.maps-link:hover {
    background: rgba(139, 125, 107, 0.2);
    color: var(--taupe-dark);
}

.maps-link::before {
    content: "📍";
    font-size: 0.8rem;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--taupe-dark);
    color: var(--white);
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.cookie-btn.accept {
    background: #4CAF50;
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: #45a049;
}

.cookie-btn.decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn.decline:hover {
    background: var(--white);
    color: var(--taupe-dark);
}

.cookie-btn.settings {
    background: var(--taupe-light);
    color: var(--white);
}

.cookie-btn.settings:hover {
    background: var(--taupe);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    margin-bottom: 1rem;
    color: var(--taupe-dark);
}

.cookie-modal p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-category {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.cookie-category h4 {
    margin-bottom: 0.5rem;
    color: var(--taupe);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: #4CAF50;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
    transform: translateX(26px);
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* === SKIP LINKS === */
.skip-links {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 9999;
}

.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--taupe-dark);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
}

/* === FOCUS STYLES === */
.nav-link:focus,
.btn:focus,
.faq-question:focus,
.lang-btn:focus,
.mobile-nav-toggle:focus,
.scroll-top:focus,
a:focus {
    outline: 2px solid #8B9DC3;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Live region for screen reader announcements */
.sr-live {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === BREADCRUMB NAVIGATION === */
.breadcrumb-nav {
    background: #f8f8f8;
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-nav a {
    color: var(--taupe);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    color: #999;
}

.breadcrumb-nav .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--taupe-light);
    background: transparent;
    color: var(--taupe);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-btn:hover, .lang-btn.active, .lang-btn[aria-pressed="true"] {
    background: var(--taupe);
    color: var(--white);
}

/* === HEADER === */
.header {
    background: var(--white);
    border-bottom: 1px solid #E0E0E0;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: auto;
    height: 60px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--taupe-dark);
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

/* === NAVIGATION === */
.nav {
    background: var(--taupe-dark);
    color: var(--white);
    position: relative;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.nav-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    z-index: 1001;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active, .nav-link[aria-current="page"] {
    background: rgba(255,255,255,0.2);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #8B9DC3;
    color: var(--white) !important;
}

.btn-primary:hover {
    background: #6B82AB;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #8B9DC3;
    color: var(--white) !important;
    border: 2px solid #8B9DC3;
}

.btn-secondary:hover {
    background: #6B82AB;
    color: var(--white) !important;
    border-color: #6B82AB;
    transform: translateY(-1px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--taupe-dark);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* === HERO SECTIONS === */
.hero, .about-hero, .news-hero, .faq-hero, .contact-hero {
    background: var(--cream);
    padding: 4rem 0;
    text-align: center;
}

.hero h2, .about-hero h1, .news-hero h1, .faq-hero h1, .contact-hero h1 {
    font-size: 2.8rem;
    color: var(--taupe-dark);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
}

.hero p, .about-hero p, .news-hero p, .faq-hero p, .contact-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    line-height: 1.8;
}

/* === MAIN CONTENT WITH SIDEBAR === */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-width: 0;
}

/* === SECTIONS === */
.section {
    padding: 6rem 0;
}

.section:nth-child(even) {
    background: var(--white);
}

.section h3 {
    font-size: 2.8rem;
    color: var(--taupe-dark);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
    line-height: 1.2;
}

/* === FOOTER === */
.footer {
    background: var(--taupe-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 2px;
    line-height: 1.8;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}

.footer-section a[href*="linkedin"] {
    color: #8B9DC3;
    font-weight: 500;
}

.footer-section a[href*="linkedin"]:hover {
    color: #6B82AB;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--taupe);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 125, 107, 0.3);
    z-index: 100;
}

.scroll-top:hover {
    background: var(--taupe-dark);
    transform: translateY(-2px);
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-nav-menu {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        color: var(--white);
    }
    
    .hero h2, .about-hero h1, .news-hero h1, .faq-hero h1, .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 2.4rem;
    }

    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section h3 {
        font-size: 2.2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 980px) and (min-width: 769px) {
    .nav-left {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container, .main-content-wrapper {
        padding: 0 15px;
    }
    
    .hero, .about-hero, .news-hero, .faq-hero, .contact-hero {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
}