* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --legal-blue: #2c3e50;
    --legal-light: #ecf0f1;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
}

.navbar {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    margin-top: -2px;
}

.logo-phone {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2px;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.impressum-content {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.impressum-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.impressum-main {
    background-color: var(--secondary-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info,
.contact-details,
.legal-details,
.regulatory-info,
.professional-info,
.dispute-resolution,
.liability-info,
.source-info {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-info h3,
.contact-details h3,
.legal-details h3,
.regulatory-info h3,
.professional-info h3,
.dispute-resolution h3,
.liability-info h3,
.source-info h3 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.contact-info p,
.contact-details p,
.legal-details p,
.regulatory-info p,
.professional-info p,
.dispute-resolution p,
.liability-info p,
.source-info p {
    margin-bottom: 0.5rem;
}

.contact-details a,
.dispute-resolution a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover,
.dispute-resolution a:hover {
    text-decoration: underline;
}

.professional-info ul,
.source-info ul {
    list-style-type: none;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.professional-info li,
.source-info li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.professional-info li:before,
.source-info li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.liability-info h4 {
    color: var(--primary-dark);
    font-weight: 600;
}

.last-update {
    background-color: var(--legal-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.last-update p {
    margin-bottom: 0;
    font-weight: 500;
}

.impressum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.document-links {
    list-style-type: none;
}

.document-links li {
    margin-bottom: 0.75rem;
}

.document-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.document-links a:hover {
    color: var(--primary-dark);
    text-decoration: none;
    background-color: var(--legal-light);
    padding-left: 0.5rem;
    border-radius: 4px;
}

.business-hours .hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item span:first-child {
    font-weight: 500;
    color: var(--text-color);
}

.hour-item span:last-child {
    color: var(--text-light);
}

.quick-contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--secondary-color);
    text-align: center;
}

.quick-contact-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.quick-contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-options .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

.contact-options .icon {
    font-size: 1.2rem;
}

.footer {
    background-color: #2c3e50;
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section .active {
    color: var(--secondary-color);
    font-weight: 600;
}

.handwerkskammer img {
    max-width: 150px;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    color: #bdc3c7;
}

@media (max-width: 992px) {
    .impressum-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .impressum-sidebar {
        order: -1;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-options .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 20px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .impressum-main {
        padding: 2rem;
    }

    .logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    margin-top: -2px;
    }

    .logo-phone {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    margin-top: 35px;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .impressum-main {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .contact-options .btn {
        padding: 0.875rem 1.5rem;
    }
}

@media print {

    .navbar,
    .impressum-sidebar,
    .quick-contact,
    .footer {
        display: none;
    }

    .impressum-content {
        padding: 0;
        background: white;
    }

    .impressum-main {
        box-shadow: none;
        padding: 0;
    }

    .container {
        max-width: none;
    }

    a {
        color: black;
        text-decoration: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}