* {
    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;
    }
}

/* Navigation styles are now in navigation.css */

.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;
    }
}

.topics {
    padding: 4rem 0;
    background-color: #2C2E3B;
}

.topics h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #93c5fd;
    font-weight: 600;
    line-height: 1.3;
}

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

.topic-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;
}

.topic-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);
}

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

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

/* Mobile Topics Adjustments */
@media (max-width: 768px) {
    .topics {
        padding: 3rem 0;
    }
    
    .topics h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .topic-card {
        padding: 1.5rem;
    }
    
    .topic-card:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .topics {
        padding: 2rem 0;
    }
    
    .topics h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .topic-grid {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .topic-card {
        padding: 1.25rem;
    }
}

.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;
}

.about {
    padding: 3rem 0;
    background-color: #2C2E3B;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #93c5fd;
    font-weight: 600;
}

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);
}

.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;
}

/* 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;
    }
}

@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;
    }
}

.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;
}

/* Diagram Styles */
.diagram {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #383B4F;
    border-radius: 8px;
    border: 1px solid #4b5563;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-item {
    background: #2C2E3B;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 120px;
    color: #e5e7eb;
}

.flow-item.highlight {
    background: #2563eb;
    color: white;
}

.flow-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.flow-arrow {
    font-size: 2rem;
    color: #93c5fd;
}

.cloud-diagram {
    margin-top: 1rem;
}

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

.provider {
    background: #2C2E3B;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #e5e7eb;
}

.provider h5 {
    color: #93c5fd;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
}

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

.provider li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #4b5563;
    color: #e5e7eb;
}

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

/* 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;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
}

.comparison-table h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #93c5fd;
    font-weight: 600;
}

.comparison-table 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;
}

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

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

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

.service-type {
    font-weight: bold;
    color: #93c5fd;
}

.maybe {
    color: #f59e0b;
    font-weight: bold;
}

.no {
    color: #10b981;
    font-weight: bold;
}

/* Comparison Diagram */
.comparison-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.comparison-item {
    background: #383B4F;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.comparison-item h5 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #93c5fd;
    font-weight: 600;
}

.comparison-item p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: #93c5fd;
}

/* Action Steps */
.action-steps {
    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);
}

.action-steps h4 {
    color: #93c5fd;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.action-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.action-steps li {
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.action-steps li strong {
    color: #93c5fd;
    display: block;
    margin-bottom: 0.5rem;
}

.action-steps li p {
    margin: 0;
    color: #e5e7eb;
}

/* 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) {
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .comparison-diagram {
        grid-template-columns: 1fr;
    }
    
    .vs {
        text-align: center;
        margin: 1rem 0;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Terminal Demo Styles */
.terminal-demo {
    margin: 2rem 0;
}

.terminal-demo h4 {
    margin-bottom: 1rem;
    color: #93c5fd;
    font-weight: 600;
}

.terminal {
    background: #1e1e1e;
    color: #00ff00;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.terminal .command {
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.terminal .command::before {
    content: "$ ";
    color: #fff;
}

.terminal .output {
    color: #fff;
    margin-bottom: 1rem;
    padding-left: 1rem;
    white-space: pre-wrap;
}

/* Scenario Box */
.scenario-box {
    background: #383B4F;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #e5e7eb;
}

.scenario-box p {
    margin: 0.5rem 0;
    color: #e5e7eb;
}

/* Timeline Styles */
.scenario-timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.timeline-item .time {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.timeline-item.alert .time {
    background: #f59e0b;
}

.timeline-item.critical .time {
    background: #ef4444;
}

.timeline-item .event {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #383B4F;
    border-radius: 5px;
    color: #e5e7eb;
}

/* Conversation Demo */
.conversation-demo {
    margin: 2rem 0;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    color: #e5e7eb;
}

.message.user {
    background: rgba(37, 99, 235, 0.2);
    margin-left: 2rem;
    border: 1px solid #2563eb;
}

.message.ai {
    background: #383B4F;
    margin-right: 2rem;
    border: 1px solid #4b5563;
}

.message strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #93c5fd;
}

/* Vertical Flow Diagram */
.flow-diagram.vertical {
    flex-direction: column;
    align-items: center;
}

.decision-point {
    background: #383B4F;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 300px;
    color: #e5e7eb;
}

.decision-point.warning {
    border: 2px solid #f59e0b;
}

.decision-point.success {
    border: 2px solid #10b981;
}

.decision-point h5 {
    color: #93c5fd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* AI Roles */
.ai-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.role-card {
    background: #383B4F;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #e5e7eb;
}

.role-card h5 {
    color: #93c5fd;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Application Grid */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.application {
    background: #383B4F;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.application:hover {
    transform: translateY(-3px);
}

.application h5 {
    color: #93c5fd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2C2E3B 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    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);
}

.cta-section h4 {
    margin-bottom: 1rem;
    color: #93c5fd;
    font-weight: 600;
}

/* Challenge Flow */
.challenge-flow {
    margin: 2rem 0;
}

/* 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);
}