:root {
    --primary-color: #db1783;
    --secondary-color: #d32f2f;
    --third-color: #333333;
    --text-color: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Color Classes */
.primary-color {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

.third-color {
    color: var(--third-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
}

/* Navbar Styles – fixed position and height so it does not shift on scroll */
#mainNavbar.navbar,
.navbar.fixed-top {
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    min-height: 82px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.scrolled {
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    min-height: 82px;
}

.navbar-dark {
    background-color: #3c3c3b !important;
}

.navbar-dark.scrolled {
    background-color: rgba(60, 60, 59, 0.95) !important;
}

/* Fixed-size logo slot so swapping full logo / favicon does not shift layout */
.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
}

.navbar-brand img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.navbar-brand .logo-full {
    height: 50px;
    width: auto;
    max-width: 220px;
    display: block;
}

.navbar-brand .logo-favicon {
    display: none;
    height: 40px;
    width: 40px;
}

.navbar.scrolled .navbar-brand .logo-full {
    display: none;
}

.navbar.scrolled .navbar-brand .logo-favicon {
    display: block;
}

.navbar-nav {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    display: none;
    margin-left: auto;
    order: 2;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23db1783' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Show hamburger menu when scrolled */
.navbar.scrolled .navbar-toggler {
    display: block;
    margin-left: auto;
}

/* Hide nav links when scrolled */
.navbar.scrolled .navbar-nav {
    display: none;
}

/* Show nav links when hamburger menu is opened */
.navbar.scrolled .navbar-collapse.show .navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
}

/* Mobile: keep header height and padding constant when scrolling so logos stay in place */
@media (max-width: 991.98px) {
    .navbar.scrolled {
        padding: 1rem 0;
    }
    .navbar-brand {
        height: 50px;
        min-height: 50px;
        align-items: center;
    }
}

/* On desktop: show nav links horizontally when menu is opened */
@media (min-width: 992px) {
    .navbar.scrolled .navbar-collapse.show .navbar-nav {
        flex-direction: row;
        margin-top: 0;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b8126f;
    border-color: #b8126f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-back {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.btn-back:hover,
.btn-back:focus {
    background-color: #b8126f;
    border-color: #b8126f;
    color: var(--white);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.content-section {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Styles */
.contact-info {
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 30px;
}

/* Content Styles */
.impressum-content {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.impressum-content a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Image Placeholder */
.img-placeholder {
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Additional Typography */
h2 {
    margin-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .impressum-content {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}
