/* Additional styles for responsive design */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}
.ueber-uns-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

.leistung-card,
.standort-card,
.review-card,
.stat-item,
.kontakt-card,
.image-placeholder {
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    will-change: transform, box-shadow;
}

.leistung-card,
.standort-card,
.review-card,
.stat-item,
.kontakt-card
{
    transition: ease-in-out .5s;
}

.leistung-card:hover,
.stat-item:hover,
.kontakt-card:hover,
.image-placeholder:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.review-card:hover {
    box-shadow: 0 12px 32px rgba(0, 183, 255, 0.3);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    /* Light theme bases */
    --bg-dark: #ffffff;
    --bg-darker: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --card-top: #ffffff;
    --card-bottom: #f8fafc;
    --text-dark: #0f172a;
    /* Make default text use the primary blue as requested */
    --text-light: var(--primary-color);
    --text-muted: #6b7280;
    --border-color: rgba(15,23,42,0.04),rgba(0,102,255,0.719);
    --shadow: 0 8px 24px rgb(0, 183, 255), 0 4px 6px rgb(0, 183, 255);
    --shadow-lg: 0 20px 40px rgba(2,6,23,0.12), 0 10px 20px rgba(2,6,23,0.08);
    --header-bg: rgba(15, 23, 42, 0.95);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* light site background */
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    display: none; /* remove decorative pattern */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Make header container span full width so logo/menu can sit at viewport edges */
.navbar > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.navbar {
    position: relative; /* keep header in normal flow (not fixed) */
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between; /* logo left, menu right */
    align-items: center;
    padding: 0.6rem 1rem; /* comfortable vertical spacing and horizontal padding */
}

/* Ensure logo stays left and nav items align to the right */
.logo {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-left: 0; /* flush to the left edge */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: auto; /* push menu to the right inside flex container */
    margin-right: 0; /* flush to right edge */
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Logo image styles: circular, clickable, responsive */
.logo-link {
    display: inline-block;
    cursor: pointer;
}
/* circular wrapper for the logo image */
.logo-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    background: transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.logo-circle:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* visually enlarge the image inside the circular wrapper without changing the wrapper size */
.logo-circle .logo-img {
    transform: scale(1.15);
    transform-origin: center center;
}

@media (max-width: 900px) {
    .logo-circle .logo-img { transform: scale(1.05); }
}
@media (max-width: 480px) {
    .logo-circle .logo-img { transform: scale(1); }
}

@media (max-width: 900px) {
    .logo-circle { width: 64px; height: 64px; border-width: 2px; }
}
@media (max-width: 480px) {
    .logo-circle { width: 48px; height: 48px; border-width: 1.5px; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    min-width: 100vw;
    min-height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* restore dark-blue hero banner */
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #0b3b6f 100%);
    margin-top: 0; /* header is in normal flow now */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('imgs/banner.png');
    /*background-size: cover;*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-hero {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* match primary button style for other CTA buttons */
.btn-standort {
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-standort:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.stats {
    background: transparent;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.25rem;
}

section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.leistungen {
    background: transparent;
    position: relative;
    z-index: 1;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leistung-card {
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 3px solid var(--border-color);
    transition: all 0.24s ease;
    text-align: center;
}

.leistung-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
}

.leistung-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.leistung-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.leistung-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ueber-uns {
    background: transparent;
    position: relative;
    z-index: 1;
}

.ueber-uns-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.ueber-uns-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.ueber-uns-image {
    position: relative;
}

.image-placeholder {
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.standorte {
    background: transparent;
    position: relative;
    z-index: 1;
}

.standorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Kontakt card (single centered white card on dark backdrop) */
.kontakt-card {
    background: #ffffff !important;
    border-radius: 18px;
    padding: 3rem 2.5rem;
    box-shadow: 0 24px 48px rgba(2,6,23,0.18) !important;
    border: 1px solid rgba(2,6,23,0.06);
    color: var(--text-dark);
    max-width: 820px;
    width: calc(100% - 4rem);
    margin: 1.5rem auto;
    text-align: center;
    position: relative;
    z-index: 5;
}

.kontakt-card p {
    color: var(--text-dark);
}

/* logo in kontakt card */
.kontakt-logo img {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

/* removed standort-logo image styles (logo not used here) */

/* Dark backdrop for contact section so the white card stands out */
#kontakt {
    background: linear-gradient(180deg, #142033 0%, #0f172a 60%);
    padding: 3.5rem 0 5rem;
}

.standort-info {
    margin-bottom: 2rem;
}

.standort-adresse,
.standort-kontakt {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.standort-kontakt a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.standort-kontakt a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.btn-standort {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-standort:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.reviews {
    background: transparent;
    position: relative;
    z-index: 1;
}

.reviews-container {
    max-width: calc(100% - 4rem);
    margin: 3rem auto 0;
    position: relative;
    padding: 0 100px;
}

@media (max-width: 1024px) {
    .reviews-container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .reviews-container {
        max-width: 100%;
        padding: 0 50px;
        margin: 2rem auto 0;
    }
}

@media (max-width: 480px) {
    .reviews-container {
        padding: 0 40px;
        margin: 1.5rem auto 0;
    }
}

@media (max-width: 390px) {
    .reviews-container {
        padding: 0 35px;
    }
}

.reviews-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .reviews-carousel-wrapper {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .reviews-carousel-wrapper {
        padding: 1rem 0;
    }
}

.reviews-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
}

.reviews-carousel:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 calc(33.333% - 1rem) !important;
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom)) !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease !important;
    height: 180px !important;
    max-height: 180px !important;
    min-height: 180px !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 1rem !important;
    border: 3px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    overflow: hidden !important;
    margin: 0.5rem 0 !important;
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.3px;
    line-height: 1 !important;
}

.review-text {
    color: var(--text-dark);
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 0.5rem 0 0 !important;
    font-style: italic;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 90px !important;
}

.review-text::-webkit-scrollbar {
    width: 6px;
}

.review-text::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.review-author {
    color: var(--text-muted);
    font-size: 0.9rem !important;
    font-weight: 600;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* ensure paragraphs inside cards don't add extra default margins */
.review-card p { margin: 0; }

.reviews-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 3px solid var(--border-color);
    display: none;
}

.reviews-empty.active {
    display: block;
}

.reviews-empty p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 calc(100% - 0.5rem) !important;
        padding: 1.25rem 1rem !important;
        min-height: 160px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .review-text {
        max-height: 80px !important;
        font-size: 0.9rem !important;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 calc(100% - 0.25rem) !important;
        padding: 1rem 0.875rem !important;
        min-height: 140px !important;
        margin: 0.25rem 0 !important;
    }
    
    .review-stars {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .review-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        max-height: 70px !important;
    }
    
    .review-author {
        font-size: 0.85rem !important;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 390px) {
    .review-card {
        padding: 0.875rem 0.75rem !important;
        min-height: 130px !important;
    }
    
    .review-stars {
        font-size: 0.85rem !important;
    }
    
    .review-text {
        font-size: 0.8rem !important;
        max-height: 65px !important;
    }
    
    .review-author {
        font-size: 0.8rem !important;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .carousel-btn-prev {
        left: 3px;
    }
    
    .carousel-btn-next {
        right: 3px;
    }
}

@media (max-width: 375px) {
    .reviews-container {
        padding: 0 32px;
    }
    
    .review-card {
        padding: 0.75rem !important;
        min-height: 120px !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    transform: translateY(-50%);
}

.termin {
    background: transparent;
    position: relative;
    z-index: 1;
}

.doctolib-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.doctolib-placeholder {
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.doctolib-instruction {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.kontakt {
    background: transparent;
    position: relative;
    z-index: 1;
}

.kontakt-info-centered {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    border: 3px solid var(--border-color);
}

.kontakt-item {
    padding: 2rem;
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    border-radius: 1rem;
    border: 3px solid var(--border-color);
    transition: all 0.24s ease;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.kontakt-item p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.kontakt-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.kontakt-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 3px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-light);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.form-group textarea {
    resize: vertical;
}

.footer {
    /* make footer same as header */
    background: var(--header-bg);
    color: #e6eefb;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
}

#kontakt {
    background: #ffffff;
    padding: 5rem 0;
}

#kontakt .section-title {
    color: #0f172a;
    margin-bottom: 1rem;
}

#kontakt .section-subtitle {
    color: #6b7280;
    margin-bottom: 3rem;
}

.kontakt-card {
    background: #ffffff !important;
    border-radius: 1.25rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
    max-width: 820px;
    width: calc(100% - 4rem);
    margin: 0 auto;
    text-align: center;
}

.kontakt-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
}

.kontakt-card p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.kontakt-card p strong {
    color: #0f172a;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.kontakt-card a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.kontakt-card a:hover {
    color: #2563eb;
}

/* Responsive mobile-specific adjustments */
@media (max-width: 900px) {
    .container { padding: 0 1rem; }
    .hero { min-height: 80vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.6rem; }
    .hero-description { font-size: 1rem; }
    .hero-content { padding: 1.5rem; }
}

@media (max-width: 768px) {
    /* Mobile navigation: fixed slide-down overlay for small screens */
    .hamburger { display: flex; }
    .hamburger span { transition: transform 0.25s ease, opacity 0.25s ease; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: scale(0.2); }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Use a fixed overlay menu with animated max-height for smooth reveal */
    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        margin: 0;
        background: rgba(15,23,42,0.98);
        backdrop-filter: blur(6px);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s ease;
        z-index: 60;
        align-items: stretch;
    }
    .nav-menu a { color: #ffffff; padding: 0.9rem 1rem; display: block; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
    .nav-menu.active { max-height: calc(100vh - 64px); padding-bottom: 0.5rem; }

    /* Layout stacks */
    .leistungen-grid { grid-template-columns: 1fr; }
    .standorte-grid { grid-template-columns: 1fr; }
    .ueber-uns-content { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Reviews carousel adjustments */
    .reviews-carousel { gap: 0.75rem; }
    .review-card { flex: 0 0 calc(100% - 1rem); min-height: auto; }

    /* Kontakt card and spacing */
    .kontakt-card { padding: 1.25rem; width: calc(100% - 2rem); }
    .kontakt-logo img { width: 88px; }

    /* General spacing and typography */
    section { padding: 2rem 0; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 1rem; }
    .btn-primary, .btn-hero { width: 100%; text-align: center; padding: 0.85rem 1rem; }

    /* Footer spacing */
    .footer { padding: 2rem 0 1rem; }

    /* Disable heavy fixed background on smaller devices for performance */
    body { background-attachment: scroll; }
}

@media (max-width: 480px) {
    .hero { min-height: 56vh; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: 0.95rem; }
    .logo-circle { width: 44px; height: 44px; }
    .logo-circle .logo-img { transform: scale(1); }
    .nav-wrapper { padding: 0.5rem 0.75rem; }
    .hamburger { margin-right: 0.5rem; }
}

/* iPhone / small devices specific tweaks */
@media (max-width: 420px) {
    .hero { min-height: 52vh; }
    .hero-title { font-size: 1.45rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.4rem; }
    .btn-primary, .btn-hero { padding: 0.75rem; font-size: 0.95rem; }
}

@media (max-width: 375px) {
    .hero { min-height: 48vh; }
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .logo-circle { width: 40px; height: 40px; }
    .nav-menu a { padding: 0.8rem 0.9rem; font-size: 1rem; }
}

@media (max-width: 360px) {
    .hero { min-height: 46vh; }
    .hero-title { font-size: 1.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-subtitle { font-size: 0.95rem; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --bg-dark: #ffffff;
    --bg-darker: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --card-top: #ffffff;
    --card-bottom: #f8fafc;
    --text-dark: #0f172a;
    --text-light: var(--primary-color);
    --text-muted: #6b7280;
    --border-color: rgba(0, 102, 255, 0.719);
    --shadow: 0 8px 24px rgba(2,6,23,0.08), 0 4px 6px rgba(2,6,23,0.06);
    --shadow-lg: 0 20px 40px rgba(2,6,23,0.12), 0 10px 20px rgba(2,6,23,0.08);
    --header-bg: rgba(15, 23, 42, 0.95);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
}

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

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

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

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-hero {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 500;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leistung-card {
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.leistung-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.leistung-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.leistung-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.leistung-card p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    line-height: 1.6;
}

.ueber-uns-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.ueber-uns-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
}

.standorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.standort-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.standort-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.standort-card h3 {
    color: var(--primary-color);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
}

.standort-info {
    margin-bottom: 1.5rem;
}

.standort-adresse,
.standort-kontakt {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.kontakt-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-card h3 {
    color: var(--text-dark);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.kontakt-card p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.05rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.kontakt-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.kontakt-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer {
    background: var(--header-bg);
    color: #e6eefb;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-wrapper {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute; /* position relative to .navbar */
        top: 100%;
        left: 1rem;
        right: 1rem;
        margin: 0;
        background: var(--header-bg);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s ease;
        box-shadow: var(--shadow);
        border-radius: 0.5rem;
        z-index: 60;
    }

    .nav-menu.active {
        max-height: 420px; /* reveal menu */
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem 1rem;
        width: 100%;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .leistungen-grid,
    .standorte-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .ueber-uns-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kontakt-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn-hero,
    .btn-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 0.75rem;
    }

    .logo h2 {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 60vh;
    }

    section {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .leistung-card,
    .standort-card,
    .stat-item {
        padding: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

