/* ============================================
   Consulting-Netline Corporation
   Subpages Stylesheet
   ============================================ */

/* Page Header */
.page-header {
    position: relative;
    padding: calc(var(--nav-height) + 5rem) 0 80px;
    text-align: center;
    background: var(--bg-secondary);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        url('../img/bg-medical-pattern.svg') center/cover no-repeat;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.content-main h2 {
    margin-bottom: 20px;
}

.content-main h3 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-main p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 30px);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.sidebar-card p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-primary);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.value-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.value-item:hover {
    border-color: var(--primary-500);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.value-item h4 {
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Services Page */
.service-detail {
    padding: 3.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-grid {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-grid > * {
    direction: ltr;
}

.service-detail-content h2 {
    margin-bottom: 20px;
}

.service-detail-content p {
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.service-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.service-visual svg {
    width: 120px;
    height: 120px;
    stroke: var(--primary-400);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-400);
}

.contact-detail-content h4 {
    margin-bottom: 4px;
}

.contact-detail-content p,
.contact-detail-content a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-detail-content a:hover {
    color: var(--primary-400);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form-wrapper h3 {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-500);
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--primary-400);
}

.form-submit {
    margin-top: 24px;
}

/* Downloads Page */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-base);
}

.download-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-3px);
}

.download-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.download-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.download-card h3 {
    margin-bottom: 8px;
}

.download-card p {
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.download-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.download-btn:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

/* Download Categories */
.download-category {
    margin-bottom: 60px;
}

.download-category h2 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Inquiry Page */
.inquiry-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.inquiry-intro h2 {
    margin-bottom: 16px;
}

.inquiry-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.inquiry-type {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.inquiry-type:hover,
.inquiry-type.selected {
    border-color: var(--primary-500);
    background: rgba(20, 184, 166, 0.05);
}

.inquiry-type-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.inquiry-type h3 {
    margin-bottom: 8px;
}

.inquiry-type p {
    font-size: 0.875rem;
}

/* Support Page */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.support-option {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.support-option:hover {
    border-color: var(--primary-500);
    transform: translateY(-5px);
}

.support-option-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
}

.support-option h3 {
    margin-bottom: 12px;
}

.support-option p {
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
    margin-top: 60px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background var(--transition-base);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: transform var(--transition-base);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.open .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
}

.team-card h3 {
    margin-bottom: 4px;
}

.team-role {
    color: var(--primary-400);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.team-card p {
    font-size: 0.9375rem;
}

/* Career Page */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: all var(--transition-base);
}

.job-card:hover {
    border-color: var(--primary-500);
}

.job-info h3 {
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) .service-detail-grid {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: calc(var(--nav-height) + 50px) 0 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Legal content styling */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}
.legal-content h2 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.legal-content h3 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.legal-content h4 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
}
.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}
.legal-content ul {
    color: var(--text-secondary);
    margin: 15px 0 15px 20px;
}
.legal-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.legal-content a {
    color: var(--primary);
}
.legal-content a:hover {
    text-decoration: underline;
}
.legal-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
.legal-box.highlight {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}
.legal-box p {
    margin: 0;
}
.legal-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-tertiary);
    color: var(--text-tertiary);
}

/* Footer Legal - Pages */
.footer-legal {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
.footer-legal p {
    margin: 0.25rem 0;
}

/* Simple Page Top Hours Bar */
.page-top-hours {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
    padding: 10px 0;
    font-size: 0.85rem;
}
.page-top-hours .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.page-top-hours span {
    color: #cbd5e1;
}
.page-top-hours strong {
    color: #14b8a6;
}
.page-top-hours a {
    color: #5eead4;
    text-decoration: none;
}
.page-top-hours a:hover {
    color: #14b8a6;
}
.page-top-hours .notdienst {
    background: rgba(239, 68, 68, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.page-top-hours .notdienst a {
    color: #fca5a5;
}

@media (max-width: 768px) {
    .page-top-hours .container {
        gap: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Form Help Box - Insurance Card Hint */
.form-help-box {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(15, 118, 110, 0.05) 100%);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    display: flex;
    gap: 12px;
}
.form-help-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.form-help-text {
    flex: 1;
}
.form-help-text strong {
    color: #14b8a6;
    display: block;
    margin-bottom: 8px;
}
.form-help-text p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0 0 8px;
}
.form-help-text ul {
    margin: 0 0 12px;
    padding-left: 20px;
    color: #94a3b8;
    font-size: 0.85rem;
}
.form-help-text li {
    margin-bottom: 4px;
}
.egk-hint {
    margin-top: 12px;
}
.egk-card {
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    border: 1px dashed rgba(20, 184, 166, 0.3);
}
.gkv-only {
    font-weight: normal;
    color: #64748b;
    font-size: 0.85rem;
}
.form-group-full {
    flex: 0 0 100%;
}
.form-section-title {
    color: #14b8a6;
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}
.form-section-title:first-of-type {
    margin-top: 0;
}

/* Info Notice Boxes */
.info-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    align-items: flex-start;
}
.info-notice-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.info-notice-info {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
}
.info-notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.info-notice strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 4px;
}
.info-notice p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}
.info-notice a {
    color: #5eead4;
}

/* Legal Content - Enhanced */
.legal-box-highlight {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(15, 118, 110, 0.1) 100%);
    border: 2px solid rgba(20, 184, 166, 0.4);
}
.legal-box h3 {
    color: #14b8a6;
    font-size: 1rem;
    margin: 0 0 12px;
}
.legal-table {
    width: 100%;
}
.legal-table td {
    padding: 6px 0;
    vertical-align: top;
}
.legal-table td:first-child {
    width: 140px;
    color: #94a3b8;
}
.legal-table td:last-child {
    color: #e2e8f0;
}
.legal-table a {
    color: #5eead4;
}
