/* ==========================================================================
   AGB.CSS - Externe CSS-Datei für die AGB-Seite
   Pfad: /styles/agb.css
   Einheitliche Standards basierend auf main.css
   ========================================================================== */

/* ==========================================================================
   RESET AND BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* ==========================================================================
   NAVIGATION - UNIFIED WEBSERVICES STANDARD
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: #0B7BBC;
    text-decoration: none;
}

.logo-img {
    width: 130px;
    height: auto;
    margin-top: 35px;
    transition: transform 0.3s ease;
    border-radius: 10px;
    object-fit: cover;
}

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

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #0B7BBC;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0B7BBC, #3b82f6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BUTTONS - UNIFIED DESIGN SYSTEM
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0B7BBC 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 2px solid #e5e7eb;
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: white;
    border-color: #0B7BBC;
    color: #0B7BBC;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   PAGE HEADER - UNIFIED STANDARDS
   ========================================================================== */

.page-content {
    padding-top: 0px;
}

.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb a {
    color: #0B7BBC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

/* ==========================================================================
   LEGAL PAGES - UNIFIED STANDARDS
   ========================================================================== */

.legal-page {
    padding: 0px 0 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.legal-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.legal-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0B7BBC, #3b82f6);
}

.legal-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 4px solid #0B7BBC;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.legal-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul {
    color: #64748b;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ol {
    color: #64748b;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section strong {
    color: #1e293b;
    font-weight: 600;
}

/* ==========================================================================
   COMPANY INFO BOX
   ========================================================================== */

.company-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #0B7BBC;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.company-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0B7BBC, #3b82f6);
}

.company-info h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.detail-item strong {
    color: #0B7BBC;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: #374151;
    font-weight: 500;
}

/* ==========================================================================
   HIGHLIGHTED BOXES
   ========================================================================== */

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.highlight-box p {
    color: #78350f;
    margin: 0;
}

.highlight-box ul {
    color: #78350f;
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.warning-box p {
    color: #991b1b;
    margin: 0;
}

.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-box h4 {
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.info-box p {
    color: #1e40af;
    margin: 0;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.toc {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 3rem;
    position: sticky;
    top: 100px;
}

.toc h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.toc a:hover {
    color: #0B7BBC;
    border-left-color: #0B7BBC;
    background: #f8fafc;
    padding-left: 1.5rem;
}

/* ==========================================================================
   FOOTER - UNIFIED STANDARDS
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: clamp(48px, 10vw, 80px) 0 clamp(24px, 5vw, 40px);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(32px, 6vw, 48px);
    margin-bottom: clamp(32px, 6vw, 48px);
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f1f5f9;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: clamp(20px, 4vw, 32px);
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ==========================================================================
   LAST UPDATE INFO
   ========================================================================== */

.last-update {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.last-update strong {
    color: #1e293b;
}

/* ==========================================================================
   RESPONSIVE DESIGN - UNIFIED BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        padding: 32px 0;
        gap: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 16px 0;
    }

    .legal-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .company-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toc {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 1.5rem 1rem;
    }

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

    .legal-section h3 {
        font-size: 1.25rem;
    }

    .company-info {
        padding: 1.5rem;
    }

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

/* ==========================================================================
   HAMBURGER ANIMATION
   ========================================================================== */

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

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

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

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}