/**
 * ASC Investment Portal - Global Styles
 * =====================================
 * Diese Datei enthält globale Styles für alle Seiten im invest_v2 Verzeichnis
 * Basiert auf portal_newV2_vorMehrerUser mit angepassten Farben für Investment Portal
 * 
 * Inhalt:
 * - CSS Variablen (Farben, Schatten, etc.)
 * - Layout-Komponenten
 * - Header & Navigation
 * - Formulare
 * - Buttons
 * - Footer
 * - Utilities
 */

/* ========================================
   CSS Variablen - ASC Corporate Design Standards
   ======================================== */
:root {
    /* ASC Hauptfarben (aus WordPress Theme) */
    --primary: #0374a8;
    --primary-hover: #025a87;
    --secondary: #707070;
    --accent: #0374a8; /* Geändert von Gold zu Blau für Investment Portal */
    --success: #3adb76;
    --warning: #ffae00;
    --danger: #cc4b37;
    --info: #0288d1;
    
    /* ASC Corporate Colors */
    --asc-primary: #0374a8;
    --asc-primary-dark: #025a87;
    --asc-primary-light: #0485c5;
    --asc-secondary: #707070;
    --asc-gold: #e3b10e;
    --asc-gold-text: #CFA622;
    --asc-green: #96a01e;
    --asc-violet: #713a4f;
    --asc-brown: #564a4d;
    --asc-success: #3adb76;
    --asc-warning: #ffae00;
    --asc-danger: #cc4b37;
    
    /* Neutrale Farben */
    --asc-light: #eeede9;
    --asc-dark: #282828;
    --light-gray: #eeede9;
    --medium-gray: #707070;
    --dark-gray: #282828;
    
    /* Background Colors */
    --bg-light: #eeede9;
    --bg-card: #ffffff;
    --hover-bg: #f5f5f5;
    
    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #707070;
    --text-muted: #707070;
    --text-dark: #282828;
    
    /* Border Colors */
    --border: #dee2e6;
    --border-light: #eeede9;
    --border-dark: #ced4da;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius: 4px;
    --radius-lg: 6px;
    --radius-sm: 2px;
    
    /* Transitions (ASC Standards) */
    --transition: all 0.3s ease-in-out;
    --transition-fast: all 0.15s ease-in-out;
    --transition-reveal: all 0.6s ease-out;
    --transition-slow: all 0.9s ease-in-out;
}

/* ========================================
   Global Reset & Base Styles
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: Bitter, serif;
    font-weight: 400;
    font-size: clamp(17px, calc(17px + 5 * (100vw - 375px) / 1545), 22px);
    line-height: 1.636;
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
.h0, .h1, .h2, .h3, .h4, .h5, .h6, .lead, h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat, sans-serif;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h1, .h1 {
    font-weight: 300;
    font-size: clamp(26px, calc(26px + 28 * (100vw - 375px) / 1545), 54px);
    line-height: 1.2;
}

h2, .h2 {
    font-weight: 300;
    font-size: clamp(21px, calc(21px + 15 * (100vw - 375px) / 1545), 36px);
    line-height: 1.2;
}

h3, .h3 {
    font-weight: 300;
    font-size: clamp(18px, calc(18px + 10 * (100vw - 375px) / 1545), 28px);
    line-height: 1.2;
}

h4, .h4 {
    font-weight: 300;
    font-size: clamp(17px, calc(17px + 5 * (100vw - 375px) / 1545), 22px);
    line-height: 1.2;
}

h5, .h5 {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2;
}

h6, .h6 {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
}

a {
    color: var(--asc-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--asc-primary-dark);
}

/* ========================================
   Content Container
   ======================================== */
.main-wrapper {
    flex: 1;
    padding-bottom: 2rem;
}

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

/* Main content area - ensure it takes available space */
main {
    flex: 1;
}

/* ========================================
   Cards - Minimalistisch
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-dark);
}

.card-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ========================================
   Buttons - ASC Corporate Design (Investment Portal)
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    padding: 5px 15px;
    border-radius: var(--radius);
    border: 1px solid currentColor;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-family: Montserrat, sans-serif;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Investment Portal spezifisch - Blauer Akzent statt Gold */
.btn-accent {
    background: var(--asc-primary-light);
    color: white;
    border-color: var(--asc-primary-light);
}

.btn-accent:hover:not(:disabled) {
    background: var(--asc-primary);
    border-color: var(--asc-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-sm {
    padding: 3px 10px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 8px 20px;
    font-size: 1rem;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: Montserrat, sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-family: Montserrat, sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.75rem;
    color: #000000;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--primary);
    border-radius: 0;
    transition: border-color var(--transition);
    outline: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    border-bottom-width: 2px;
    margin-bottom: -1px;
}

.form-control:disabled {
    background-color: transparent;
    opacity: 0.6;
    border-bottom-style: dashed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230374a8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px 12px;
    padding-right: 1.5rem;
    color: #000000;
}

textarea.form-control {
    resize: vertical;
    min-height: 135px;
    padding: 0.75rem 0;
}

.form-control::placeholder {
    color: #000000;
    opacity: 0.5;
}

.form-control::-webkit-input-placeholder {
    color: #000000;
    opacity: 0.5;
}

.form-control::-moz-placeholder {
    color: #000000;
    opacity: 0.5;
}

.form-control:-ms-input-placeholder {
    color: #000000;
    opacity: 0.5;
}

/* ========================================
   Tables
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    background: var(--bg-light);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* ========================================
   Alerts - Minimalistisch
   ======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.9375rem;
}

.alert-info {
    background: var(--bg-light);
    border-color: var(--border);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(58, 219, 118, 0.1);
    border-color: var(--asc-success);
    color: #155724;
}

.alert-warning {
    background: rgba(255, 174, 0, 0.1);
    border-color: var(--asc-warning);
    color: #856404;
}

.alert-danger {
    background: rgba(204, 75, 55, 0.1);
    border-color: var(--asc-danger);
    color: #721c24;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    border: 1px solid;
}

.badge-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.badge-success {
    background: white;
    border-color: var(--asc-success);
    color: var(--asc-success);
}

.badge-warning {
    background: white;
    border-color: var(--asc-warning);
    color: var(--asc-warning);
}

.badge-danger {
    background: white;
    border-color: var(--asc-danger);
    color: var(--asc-danger);
}

/* ========================================
   Loading States
   ======================================== */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border);
    border-top-color: var(--asc-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e5e7eb 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.nav-breadcrumb {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    box-shadow: var(--shadow-sm);
    z-index: 999;
    max-width: 1400px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding-right: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--asc-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--asc-primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ========================================
   Footer Styles - Minimalistisch
   ======================================== */
.main-footer {
    background: white;
    color: var(--text-primary);
    margin-top: auto; /* Push footer to bottom */
    font-size: 0.875rem;
    width: 100%;
    position: relative;
    border-top: 1px solid var(--border);
}

/* Removed animated gradient bar for cleaner look */

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 0.5rem;
}

.main-footer .footer-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.main-footer .footer-column {
    min-width: 0;
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 20px;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-column:hover .footer-heading::after {
    width: 40px;
}

.footer-contact .company-name {
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--text-secondary);
    width: 20px;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
    position: relative;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links i {
    color: var(--text-secondary);
    width: 20px;
    margin-right: 0.5rem;
}

.footer-support p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-support strong {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.footer-support i {
    color: var(--text-secondary);
    width: 20px;
}

.footer-support a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Fix Bootstrap conflicts */
.main-footer * {
    box-sizing: border-box;
}

.main-footer ul {
    margin: 0;
    padding: 0;
}

.main-footer p {
    margin-bottom: 0.75rem;
}

.main-footer .mt-3 {
    margin-top: 1rem !important;
}

.main-footer .me-2 {
    margin-right: 0.5rem !important;
}

/* Desktop Footer - Explizit horizontal */
@media (min-width: 769px) {
    .main-footer .footer-columns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4rem !important;
    }
    
    .main-footer .footer-column {
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        float: none !important;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .footer-container {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column:hover .footer-heading::after {
        width: 50px;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-contact p,
    .footer-support p {
        text-align: center;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--asc-primary); }
.text-danger { color: var(--asc-danger); }
.text-success { color: var(--asc-success); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-sm { border-radius: var(--radius-sm); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .no-print { display: none !important; }
    
    body {
        background: white;
        color: black;
    }
}