/* Immo Berlin - AI-Sec Style Theme */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #2C2E3B;
    min-height: 100vh;
    transition: colors 300ms;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
    overflow-x: hidden;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Header */
header {
    background-color: #383B4F;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #93c5fd;
    margin: 0;
}

/* Hero Section */
.hero {
    background-color: #383B4F;
    color: white;
    padding: 3rem 0;
    text-align: center;
    animation: slideIn 0.4s ease-out;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #93c5fd;
    font-weight: bold;
    line-height: 1.2;
}

.lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #e5e7eb;
    line-height: 1.6;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Main Content */
main {
    background-color: #2C2E3B;
    min-height: calc(100vh - 200px);
}

.content-page {
    background-color: #2C2E3B;
    min-height: calc(100vh - 200px);
}

.content-header {
    background-color: #383B4F;
    color: white;
    padding: 3rem 0;
    animation: fadeIn 0.3s ease-in-out;
}

.content-header h2 {
    font-size: 2.5rem;
    color: #93c5fd;
    font-weight: bold;
    line-height: 1.3;
}

.content-body {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.content-body h3 {
    color: #93c5fd;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.content-body h4 {
    color: #93c5fd;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.content-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
    line-height: 1.8;
    color: #e5e7eb;
}

.content-body ul, .content-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    line-height: 1.6;
}

/* Grid Layouts */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.analytics-card {
    background: #383B4F;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    animation: slideIn 0.5s ease-out;
}

.analytics-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.analytics-card h4 {
    color: #93c5fd;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.analytics-card p {
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.02);
}

.btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #383B4F;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

th {
    background: #2C2E3B;
    color: #93c5fd;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #4b5563;
    color: #e5e7eb;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(147, 197, 253, 0.05);
}

/* Highlight Boxes */
.highlight {
    background-color: #383B4F;
    padding: 1.5rem;
    border-left: 4px solid #2563eb;
    margin: 1.5rem 0;
    border-radius: 8px;
    color: #e5e7eb;
}

.key-point {
    background-color: #383B4F;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #93c5fd;
    color: #e5e7eb;
}

/* Info Box */
.info-box {
    background: #383B4F;
    border: 2px solid #2563eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-box h5 {
    color: #93c5fd;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-box ul {
    margin: 0;
    color: #e5e7eb;
}

/* Charts and Diagrams */
.chart-container {
    background: #383B4F;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.chart-title {
    color: #93c5fd;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #383B4F;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile Content Adjustments */
@media (max-width: 768px) {
    .content-header {
        padding: 2rem 0;
    }
    
    .content-header h2 {
        font-size: 2rem;
    }
    
    .content-body {
        padding: 2rem 0;
    }
    
    .content-body h3 {
        font-size: 1.375rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .content-body h4 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .content-body p {
        text-align: left;
        line-height: 1.7;
    }
    
    .content-body ul, .content-body ol {
        margin: 1rem 0 1.25rem 1.5rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .analytics-card {
        padding: 1.5rem;
    }
    
    .analytics-card:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 1.5rem 0;
    }
    
    .content-header h2 {
        font-size: 1.75rem;
    }
    
    .content-body {
        padding: 1.5rem 0;
    }
    
    .content-body h3 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .content-body h4 {
        font-size: 1.125rem;
        margin: 1rem 0 0.5rem;
    }
    
    .content-body ul, .content-body ol {
        margin: 0.75rem 0 1rem 1.25rem;
    }
    
    .analytics-card {
        padding: 1.25rem;
    }
}

/* PWA Animationen und Transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes chartLoad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Besseres Touch-Feedback für mobile Geräte */
button, a {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
    /* Optimierung für kleine Bildschirme */
    input, button {
        font-size: 16px; /* Verhindert Zoom auf iOS bei Focus */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}