/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Disable transitions during resize to prevent flicker */
body.resizing * {
    transition: none !important;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-size: 20px;
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 3rem;
    margin-bottom: 0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    will-change: padding, box-shadow;
}

header.scrolled {
    padding: 0.4rem 3rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.logo-link {
    display: inline-flex;
    text-decoration: none;
}

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

.logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: filter 0.3s ease;
}

.logo-link:hover .logo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(98, 125, 239);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Navigation styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    position: relative;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.2s ease;
}

nav a:hover {
    color: rgb(98, 125, 239);
}

nav a.active {
    color: rgb(98, 125, 239);
    font-weight: 600;
}

/* nav underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.15rem;
    height: 2px;
    background: rgb(98, 125, 239);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* Dropdown styles */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
}

nav ul li:hover>.dropdown {
    display: block;
}

.dropdown li {
    display: block;
}

/* Main content styles */
main {
    background-color: white;
}

section {
    margin-bottom: 0;
    padding: 4rem 3rem;
}

/* Welcome section and button styles */
.welcome-section {
    text-align: center;
    position: relative;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgb(98, 125, 239) 0%, rgb(78, 105, 219) 100%);
    box-shadow: 0 4px 20px rgba(98, 125, 239, 0.2);
}

.welcome-text {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-text h2 {
    color: white;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 6rem;
    margin-bottom: 0rem;
    position: relative;
    z-index: 2;
}

/* Round background shape behind buttons */
.cta-buttons::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.button {
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
    text-align: center;
}

.button.primary {
    background-color: white;
    color: rgb(98, 125, 239);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button.primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button.secondary:hover {
    background-color: white;
    color: rgb(98, 125, 239);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 32px;
}

/* Team section styles */
.team-section {
    background-color: #f9fafb;
    padding: 4rem 3rem;
    margin-bottom: 0;
}

.team-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

.team-photo-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.team-intro p {
    margin-top: 1.5rem;
    color: #666;
    font-size: 20px;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-member {
    background-color: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.member-info p {
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.member-info .email a,
.member-info .phone a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: rgb(98, 125, 239);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(98, 125, 239, 0.3);
}

.member-info .email a:hover,
.member-info .phone a:hover {
    background-color: rgb(78, 105, 219);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(98, 125, 239, 0.4);
}

.member-info .position {
    color: rgb(98, 125, 239);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Contact info section */
.contact-info-section {
    background-color: white;
    padding: 4rem 3rem;
    margin-bottom: 0;
}

.contact-info-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.contact-info-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-info-card h3 {
    margin: 0 0 1rem;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 0.75rem;
}

/* Open/Closed status badge */

/* Map section */
.map-section {
    background-color: #f9fafb;
    padding: 4rem 3rem;
    margin-bottom: 0;
}

.map-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-fallback {
    text-align: center;
    margin-top: 0.75rem;
}

.map-fallback a {
    color: rgb(98, 125, 239);
    text-decoration: none;
    font-weight: 600;
}

.map-fallback a:hover {
    color: rgb(78, 105, 219);
    text-decoration: underline;
}

/* Reviews section */
.reviews-section {
    background-color: white;
    padding: 4rem 3rem;
    margin-bottom: 0;
}

.reviews-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.review-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-author {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.reviews-cta {
    text-align: center;
    margin-top: 2rem;
}

.google-review-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.google-review-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #4285F4;
}

.google-review-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Impressum section */
.impressum-section {
    background-color: white;
    padding: 4rem 3rem;
    margin-bottom: 0;
    min-height: 60vh;
}

.impressum-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.impressum-content {
    max-width: 900px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 12px;
    padding: 2.25rem 2.25rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.impressum-content h3 {
    margin: 2rem 0 0.75rem;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.25px;
    line-height: 1.3;
    font-size: 1.2rem;
}

.impressum-content h3:first-of-type {
    margin-top: 0;
}

.impressum-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.impressum-content p:last-of-type {
    margin-bottom: 0;
}

.impressum-content a {
    color: rgb(98, 125, 239);
    text-decoration: none;
    font-weight: 500;
}

.impressum-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .impressum-section {
        padding: 3rem 1.5rem;
    }

    .impressum-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .impressum-content {
        padding: 1.75rem 1.5rem 2rem;
    }

    .impressum-content h3 {
        margin: 1.5rem 0 0.6rem;
        font-size: 1.1rem;
    }

    .impressum-content p {
        margin-bottom: 0.85rem;
    }
}

/* Responsive design */
/* Tablet - smaller title */
@media (max-width: 1024px) {
    header h1 {
        font-size: 1.25rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    header {
        padding: 0.75rem 1rem;
    }

    header.scrolled {
        padding: 0.5rem 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-title {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        display: none;
    }

    .logo-title {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
        position: static;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        width: 100%;
        padding: 0.75rem;
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .dropdown {
        position: static;
        width: 100%;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .welcome-section {
        padding: 3rem 1.5rem;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    .welcome-text p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .cta-buttons::before {
        width: 300px;
        height: 300px;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }

    .team-section {
        padding: 3rem 1.5rem;
    }

    .team-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .team-member {
        width: 100%;
        max-width: 400px;
    }

    .member-photo {
        height: 300px;
    }

    .team-row {
        gap: 1rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reviews-section {
        padding: 3rem 1.5rem;
    }

    .reviews-section h2 {
        font-size: 1.5rem;
    }

    .google-review-button {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Footer styles */
footer {
    margin-top: 0;
    padding: 3rem 3rem;
    text-align: center;
    color: #9ca3af;
    background-color: #1f2937;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgb(98, 125, 239);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(98, 125, 239, 0.3);
}

.social-link:hover {
    background: rgb(78, 105, 219);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(98, 125, 239, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgb(98, 125, 239);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(98, 125, 239, 0.3);
}

.contact-button:hover {
    background-color: rgb(78, 105, 219);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(98, 125, 239, 0.4);
}