/* Zusätzliche Sicherstellung gegen schwarze Balken - SANFTE VERSION */
html {
    background: rgb(250, 243, 231) !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

body {
    background: rgb(250, 243, 231) !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Container sanft absichern */
.container {
    background: rgb(250, 243, 231) !important;
}

/* Mobile Sidebar Farbe absichern */
@media (max-width: 768px) {
    .sidebar {
        background: rgb(250, 243, 231) !important;
    }
}

/* Mobile Cookie Banner Optimierung */
@media (max-width: 768px) {
    .cookie-banner {
        background: rgba(250, 243, 231, 0.98) !important;
        z-index: 9999 !important;
    }
    
    .cookie-btn {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
}

/* ================================================================
   UMFASSENDE RESPONSIVE OPTIMIERUNG - ALLE GERÄTE
   ================================================================ */

/* Mobile Menu Button - Immer versteckt, nur bei mobilen Geräten sichtbar */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: rgb(191, 151, 97);
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.mobile-menu-btn:hover {
    background: rgb(160, 120, 75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ================================================================
   MOBILE EXTRA SMALL (320px - 480px) - Smartphones Portrait
   ================================================================ */
@media (max-width: 480px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgb(250, 243, 231) !important;
        backdrop-filter: blur(10px);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 25px 25px;
        box-sizing: border-box;
        border-right: 1px solid rgba(191, 151, 97, 0.2);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .sidebar.open::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        padding-top: 60px;
    }
    
    .logo-section {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .sidebar-logo {
        max-width: 100px;
        height: auto;
    }
    
    .phone {
        font-size: 13px;
        margin-top: 8px;
    }
    
    .phone a {
        color: inherit;
        text-decoration: none;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item a {
        font-size: 16px;
        padding: 15px 20px;
        text-align: left;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .footer-info {
        font-size: 11px;
        text-align: center;
        margin-top: 20px;
        line-height: 1.4;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 20px 15px;
        min-height: 50vh;
    }
    
    .team-photo {
        border-radius: 15px;
        max-width: 100%;
    }
    
    .team-photo img {
        height: 220px;
        object-fit: cover;
    }
    
    /* Name Tags */
    .name-tag {
        font-size: 10px;
        padding: 5px 8px;
        border-radius: 12px;
    }
    
    .name-tag-1 { top: 60%; left: 15%; }
    .name-tag-2 { top: 65%; left: 40%; }
    .name-tag-3 { top: 63%; left: 65%; }
    .name-tag-4 { top: 70%; left: 85%; }
    
    /* Team Section */
    .team-button-section {
        padding: 30px 15px;
    }
    
    .team-button {
        min-width: 260px;
        padding: 15px 25px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .team-members-section {
        padding: 30px 15px;
    }
    
    .team-members-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .team-members-section p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member-card {
        padding: 20px 15px;
    }
    
    .team-member-card .member-photo {
        width: 80px;
        height: 80px;
    }
    
    .team-member-card h3 {
        font-size: 18px;
    }
    
    .team-member-card .member-role {
        font-size: 12px;
    }
    
    .team-member-card .specialty {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* CTA Section */
    .home-contact-cta {
        padding: 40px 15px;
    }
    
    .home-contact-cta h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .home-contact-cta p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 16px;
        text-align: center;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-text h3 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ================================================================
   MOBILE SMALL (481px - 600px) - Smartphones Landscape
   ================================================================ */
@media (min-width: 481px) and (max-width: 600px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: rgb(250, 243, 231) !important;
        backdrop-filter: blur(10px);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 30px 30px;
        border-right: 1px solid rgba(191, 151, 97, 0.2);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        padding-top: 60px;
    }
    
    .sidebar-logo {
        max-width: 120px;
    }
    
    .phone {
        font-size: 14px;
    }
    
    .nav-item a {
        font-size: 17px;
        padding: 16px 22px;
    }
    
    .footer-info {
        font-size: 12px;
    }
    
    .hero-section {
        padding: 25px 20px;
        min-height: 55vh;
    }
    
    .team-photo {
        border-radius: 18px;
    }
    
    .team-photo img {
        height: 280px;
    }
    
    .name-tag {
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 15px;
    }
    
    .name-tag-1 { top: 62%; left: 18%; }
    .name-tag-2 { top: 67%; left: 42%; }
    .name-tag-3 { top: 65%; left: 65%; }
    .name-tag-4 { top: 72%; left: 82%; }
    
    .team-button {
        min-width: 280px;
        padding: 16px 28px;
        font-size: 17px;
    }
    
    .team-members-section h2 {
        font-size: 26px;
    }
    
    .team-members-section p {
        font-size: 15px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .team-member-card .member-photo {
        width: 90px;
        height: 90px;
    }
    
    .team-member-card h3 {
        font-size: 19px;
    }
    
    .team-member-card .member-role {
        font-size: 13px;
    }
    
    .home-contact-cta h2 {
        font-size: 24px;
    }
    
    .home-contact-cta p {
        font-size: 15px;
    }
    
    .cta-button {
        max-width: 300px;
        padding: 16px 28px;
        font-size: 17px;
    }
}

/* ================================================================
   TABLET PORTRAIT (601px - 768px) - iPads Portrait
   ================================================================ */
@media (min-width: 601px) and (max-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .container {
        flex-direction: row;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 200px;
        height: 100vh;
        padding: 20px 15px;
        background: rgb(250, 243, 231) !important;
        backdrop-filter: blur(10px);
        overflow-y: auto;
        border-right: 1px solid rgba(191, 151, 97, 0.2);
    }
    
    .main-content {
        width: calc(100% - 200px);
        margin-left: 200px;
    }
    
    .sidebar-logo {
        max-width: 110px;
    }
    
    .phone {
        font-size: 12px;
    }
    
    .nav-item a {
        font-size: 15px;
        padding: 12px 10px;
    }
    
    .footer-info {
        font-size: 10px;
    }
    
    .hero-section {
        padding: 30px 25px;
        min-height: 60vh;
    }
    
    .team-photo img {
        height: 320px;
    }
    
    .name-tag {
        font-size: 12px;
        padding: 7px 12px;
    }
    
    .name-tag-1 { top: 65%; left: 16%; }
    .name-tag-2 { top: 70%; left: 38%; }
    .name-tag-3 { top: 68%; left: 60%; }
    .name-tag-4 { top: 75%; left: 78%; }
    
    .team-button {
        min-width: 300px;
        padding: 18px 32px;
        font-size: 18px;
    }
    
    .team-members-section {
        padding: 40px 25px;
    }
    
    .team-members-section h2 {
        font-size: 30px;
    }
    
    .team-members-section p {
        font-size: 16px;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .team-member-card {
        padding: 22px 18px;
    }
    
    .team-member-card .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-member-card h3 {
        font-size: 20px;
    }
    
    .home-contact-cta {
        padding: 50px 25px;
    }
    
    .home-contact-cta h2 {
        font-size: 28px;
    }
    
    .home-contact-cta p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
    
    .cta-button {
        max-width: 200px;
        padding: 18px 25px;
        font-size: 16px;
    }
}

/* ================================================================
   TABLET LANDSCAPE (769px - 1024px) - iPads Landscape
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
        padding: 25px 18px;
    }
    
    .main-content {
        width: calc(100% - 220px);
        margin-left: 220px;
    }
    
    .sidebar-logo {
        max-width: 130px;
    }
    
    .phone {
        font-size: 13px;
    }
    
    .nav-item a {
        font-size: 16px;
        padding: 14px 12px;
    }
    
    .footer-info {
        font-size: 11px;
    }
    
    .hero-section {
        padding: 35px 30px;
        min-height: 65vh;
    }
    
    .team-photo img {
        height: 380px;
    }
    
    .name-tag {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .name-tag-1 { top: 68%; left: 15%; }
    .name-tag-2 { top: 73%; left: 35%; }
    .name-tag-3 { top: 70%; left: 55%; }
    .name-tag-4 { top: 76%; left: 75%; }
    
    .team-button {
        min-width: 320px;
        padding: 20px 35px;
        font-size: 19px;
    }
    
    .team-members-section {
        padding: 45px 30px;
    }
    
    .team-members-section h2 {
        font-size: 32px;
    }
    
    .team-members-section p {
        font-size: 17px;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .team-member-card {
        padding: 25px 20px;
    }
    
    .team-member-card .member-photo {
        width: 110px;
        height: 110px;
    }
    
    .team-member-card h3 {
        font-size: 21px;
    }
    
    .home-contact-cta {
        padding: 55px 30px;
    }
    
    .home-contact-cta h2 {
        font-size: 30px;
    }
    
    .home-contact-cta p {
        font-size: 17px;
    }
    
    .cta-button {
        max-width: 220px;
        padding: 19px 28px;
        font-size: 17px;
    }
}

/* ================================================================
   DESKTOP SMALL (1025px - 1366px) - Laptops
   ================================================================ */
@media (min-width: 1025px) and (max-width: 1366px) {
    .sidebar {
        width: 240px;
        padding: 30px 20px;
    }
    
    .main-content {
        width: calc(100% - 240px);
        margin-left: 240px;
    }
    
    .sidebar-logo {
        max-width: 150px;
    }
    
    .phone {
        font-size: 14px;
    }
    
    .nav-item a {
        font-size: 17px;
        padding: 16px 15px;
    }
    
    .footer-info {
        font-size: 12px;
    }
    
    .hero-section {
        padding: 40px 35px;
        min-height: 70vh;
    }
    
    .team-photo img {
        height: 420px;
    }
    
    .name-tag {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .name-tag-1 { top: 70%; left: 15%; }
    .name-tag-2 { top: 75%; left: 35%; }
    .name-tag-3 { top: 72%; left: 55%; }
    .name-tag-4 { top: 78%; left: 75%; }
    
    .team-button {
        min-width: 340px;
        padding: 20px 40px;
        font-size: 20px;
    }
    
    .team-members-section {
        padding: 50px 35px;
    }
    
    .team-members-section h2 {
        font-size: 34px;
    }
    
    .team-members-section p {
        font-size: 18px;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    
    .team-member-card {
        padding: 25px 22px;
    }
    
    .team-member-card .member-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-member-card h3 {
        font-size: 22px;
    }
    
    .home-contact-cta {
        padding: 60px 35px;
    }
    
    .home-contact-cta h2 {
        font-size: 32px;
    }
    
    .home-contact-cta p {
        font-size: 18px;
    }
    
    .cta-button {
        max-width: 240px;
        padding: 20px 30px;
        font-size: 18px;
    }
}

/* ================================================================
   DESKTOP LARGE (1367px+) - Large Monitors
   ================================================================ */
@media (min-width: 1367px) {
    .sidebar {
        width: 260px;
        padding: 35px 25px;
    }
    
    .main-content {
        width: calc(100% - 260px);
        margin-left: 260px;
    }
    
    .sidebar-logo {
        max-width: 170px;
    }
    
    .phone {
        font-size: 15px;
    }
    
    .nav-item a {
        font-size: 18px;
        padding: 18px 20px;
    }
    
    .footer-info {
        font-size: 13px;
    }
    
    .hero-section {
        padding: 45px 40px;
        min-height: 75vh;
    }
    
    .team-photo img {
        height: 480px;
    }
    
    .name-tag {
        font-size: 15px;
        padding: 9px 16px;
    }
    
    .team-button {
        min-width: 360px;
        padding: 22px 45px;
        font-size: 21px;
    }
    
    .team-members-section {
        padding: 60px 40px;
    }
    
    .team-members-section h2 {
        font-size: 36px;
    }
    
    .team-members-section p {
        font-size: 19px;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .team-member-card {
        padding: 30px 25px;
    }
    
    .team-member-card .member-photo {
        width: 130px;
        height: 130px;
    }
    
    .team-member-card h3 {
        font-size: 24px;
    }
    
    .home-contact-cta {
        padding: 70px 40px;
    }
    
    .home-contact-cta h2 {
        font-size: 36px;
    }
    
    .home-contact-cta p {
        font-size: 20px;
    }
    
    .cta-button {
        max-width: 260px;
        padding: 22px 35px;
        font-size: 19px;
    }
}

/* ================================================================
   ULTRA WIDE SCREENS (1920px+) - 4K Monitors
   ================================================================ */
@media (min-width: 1920px) {
    .sidebar {
        width: 280px;
        padding: 40px 30px;
    }
    
    .main-content {
        width: calc(100% - 280px);
        margin-left: 280px;
    }
    
    .sidebar-logo {
        max-width: 200px;
    }
    
    .phone {
        font-size: 16px;
    }
    
    .nav-item a {
        font-size: 20px;
        padding: 20px 25px;
    }
    
    .footer-info {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 60px 50px;
        min-height: 80vh;
    }
    
    .team-photo img {
        height: 600px;
    }
    
    .name-tag {
        font-size: 16px;
        padding: 10px 18px;
    }
    
    .team-button {
        min-width: 400px;
        padding: 25px 50px;
        font-size: 22px;
    }
    
    .team-members-section {
        padding: 80px 50px;
    }
    
    .team-members-section h2 {
        font-size: 42px;
    }
    
    .team-members-section p {
        font-size: 22px;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .team-member-card {
        padding: 35px 30px;
    }
    
    .team-member-card .member-photo {
        width: 150px;
        height: 150px;
    }
    
    .team-member-card h3 {
        font-size: 26px;
    }
    
    .home-contact-cta {
        padding: 90px 50px;
    }
    
    .home-contact-cta h2 {
        font-size: 40px;
    }
    
    .home-contact-cta p {
        font-size: 24px;
    }
    
    .cta-button {
        max-width: 300px;
        padding: 25px 40px;
        font-size: 20px;
    }
}

/* ================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ================================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizes */
    .nav-item a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .team-button {
        min-height: 50px;
    }
    
    .cta-button {
        min-height: 50px;
    }
    
    .cookie-btn {
        min-height: 44px;
    }
    
    .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .name-tag:hover,
    .team-member-card:hover,
    .team-button:hover,
    .cta-button:hover {
        transform: none;
    }
}

/* ================================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sidebar {
        background: #000;
    }
    
    .name-tag {
        background: #000;
        border: 2px solid #fff;
    }
    
    .team-button {
        border-width: 3px;
    }
    
    .cta-button {
        border: 2px solid rgb(191, 151, 97);
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .sidebar,
    .mobile-menu-btn,
    .cookie-banner,
    .name-tags {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .team-photo img {
        max-height: 400px;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
