/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-coral: #ff7f5c;
    --primary-navy: #1e1e3f;
    --primary-blue: #4a90e2;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    --gradient-coral: linear-gradient(135deg, #ff7f5c 0%, #ff9a7d 100%);
    --gradient-blue: linear-gradient(135deg, #4a90e2 0%, #6ba3e8 100%);
    --gradient-navy: linear-gradient(135deg, #1e1e3f 0%, #2a2a4f 100%);
    --gradient-mixed: linear-gradient(135deg, #ff7f5c 0%, #4a90e2 100%);
    --shadow-sm: 0 2px 8px rgba(30, 30, 63, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 30, 63, 0.12);
    --shadow-lg: 0 8px 32px rgba(30, 30, 63, 0.16);
    --shadow-xl: 0 12px 48px rgba(30, 30, 63, 0.2);
    --font-primary:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-navy);
    background: var(--light-gray);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(80px, -80px) rotate(120deg);
    }
    66% {
        transform: translate(-80px, 80px) rotate(240deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==================== HERO SECTION ==================== */
.impressum-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-navy);
    padding: 50px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 25s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-coral);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--primary-blue);
    bottom: -175px;
    right: -175px;
    animation-delay: 8s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-coral);
    top: 30%;
    right: 10%;
    animation-delay: 16s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.hero-icon i {
    font-size: 36px;
    color: var(--primary-coral);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 50px 24px 70px;
}

.content-section {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.content-section:nth-child(1) {
    animation-delay: 0.1s;
}
.content-section:nth-child(2) {
    animation-delay: 0.15s;
}
.content-section:nth-child(3) {
    animation-delay: 0.2s;
}
.content-section:nth-child(4) {
    animation-delay: 0.25s;
}
.content-section:nth-child(5) {
    animation-delay: 0.3s;
}
.content-section:nth-child(6) {
    animation-delay: 0.35s;
}
.content-section:nth-child(7) {
    animation-delay: 0.4s;
}
.content-section:nth-child(8) {
    animation-delay: 0.45s;
}
.content-section:nth-child(9) {
    animation-delay: 0.5s;
}
.content-section:nth-child(10) {
    animation-delay: 0.55s;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    background: var(--gradient-mixed);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.icon-wrapper {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.content-section:hover .icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

.icon-wrapper i {
    font-size: 26px;
    color: var(--white);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    flex: 1;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

/* ==================== SECTION CONTENT ==================== */
.section-content {
    padding: 35px;
}

/* ==================== INFO GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    border-left: 4px solid var(--primary-coral);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #f0f2f5;
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-coral);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.info-icon i {
    font-size: 22px;
    color: var(--white);
}

.info-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.info-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 3px 0;
}

.info-details p strong {
    color: var(--primary-navy);
    font-weight: 600;
}

/* ==================== CONTACT GRID ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-coral);
    background: #fff5f2;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--white);
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin: 0;
}

/* ==================== DESCRIPTION BOX ==================== */
.description-box {
    background: linear-gradient(
        135deg,
        rgba(74, 144, 226, 0.08) 0%,
        rgba(255, 127, 92, 0.08) 100%
    );
    border-left: 4px solid var(--primary-blue);
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.description-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin: 0;
}

/* ==================== SERVICE LIST ==================== */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    margin-bottom: 12px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.service-list li:hover {
    border-color: var(--primary-coral);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-coral);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 18px;
    color: var(--white);
}

.service-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* ==================== LEGAL GRID ==================== */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.legal-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
    border-top: 4px solid var(--primary-blue);
}

.legal-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.legal-icon i {
    font-size: 22px;
    color: var(--white);
}

.legal-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.legal-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0;
}

.legal-card p strong {
    color: var(--primary-navy);
    font-weight: 600;
}

.note-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 127, 92, 0.1);
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid var(--primary-coral);
}

.note-box i {
    font-size: 18px;
    color: var(--primary-coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.note-box p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== AUTHORITY BOX ==================== */
.authority-box {
    display: flex;
    gap: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--primary-blue);
}

.authority-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.authority-icon i {
    font-size: 28px;
    color: var(--primary-coral);
}

.authority-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 8px 0;
}

.authority-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 12px 0 8px 0;
}

.note-text {
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================== RESPONSIBLE CARD ==================== */
.responsible-card {
    display: flex;
    gap: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--primary-coral);
}

.responsible-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-coral);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.responsible-icon i {
    font-size: 28px;
    color: var(--white);
}

.responsible-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.responsible-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 3px 0;
}

/* ==================== TEXT BLOCK ==================== */
.text-block {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 25px;
}

.text-block p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* ==================== DISPUTE BOX ==================== */
.dispute-box {
    display: flex;
    gap: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
}

.dispute-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-mixed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dispute-icon i {
    font-size: 28px;
    color: var(--white);
}

.dispute-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 8px 0;
}

.highlight-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 127, 92, 0.12) 0%,
        rgba(74, 144, 226, 0.12) 100%
    );
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid var(--primary-coral);
}

.highlight-note i {
    font-size: 20px;
    color: var(--primary-coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-note p {
    font-size: 0.98rem;
    margin: 0;
    font-weight: 500;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-content {
        padding: 30px;
    }

    .info-grid,
    .contact-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .impressum-hero {
        min-height: 40vh;
        padding: 35px 0;
    }

    .hero-content {
        padding: 25px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-icon {
        width: 65px;
        height: 65px;
    }

    .hero-icon i {
        font-size: 30px;
    }

    .main-content {
        padding: 40px 16px 60px;
    }

    .section-header {
        padding: 20px 20px;
        gap: 12px;
    }

    .icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .icon-wrapper i {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .section-content {
        padding: 25px 20px;
    }

    .info-card,
    .authority-box,
    .responsible-card,
    .dispute-box {
        flex-direction: column;
    }

    .service-list li {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .info-grid,
    .contact-grid,
    .legal-grid {
        gap: 15px;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        width: 200px;
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .hero-background {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
    }

    body {
        background: white;
    }
}