@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2c6faa;
    --primary-light: #e8f0fe;
    --accent: #3a8fd4;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --section-bg: #f7fafc;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    font-size: 0.9rem;
    background: var(--bg);
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.6em 0;
    margin-bottom: 1.5em;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}

.nav-bar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.nav-bar a:hover {
    text-decoration: underline;
}

/* Main Content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em 3em;
}

/* Section Styles */
.section {
    margin-bottom: 3em;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 1.2em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--primary-light);
}

.section-header .icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.6em;
    color: var(--primary);
    font-weight: 600;
}

h3 {
    font-size: 1.15em;
    color: var(--text);
    margin: 1.5em 0 0.6em;
    font-weight: 600;
}

p {
    margin-bottom: 0.8em;
    color: var(--text);
}

.intro-text {
    font-size: 1.05em;
    color: var(--text-light);
    margin-bottom: 1.2em;
    padding-left: 0.5em;
    border-left: 3px solid var(--accent);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: 0.5em 0 0.5em 1.8em;
    line-height: 1.6;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1em;
}

.feature-list li strong {
    color: var(--text);
}

/* Diagram Container */
.diagram-container {
    background: var(--section-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5em;
    margin: 1.5em 0;
    text-align: center;
}

.diagram-container .diagram-title {
    font-size: 0.85em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1em;
    font-weight: 600;
}

.mermaid {
    display: flex;
    justify-content: center;
}

/* Info Boxes */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1em 1.2em;
    margin: 1em 0;
    font-size: 0.95em;
}

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

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-light), #f0f7ff);
    border: 1px solid #c3dafe;
    border-radius: 12px;
    padding: 1.5em;
    margin: 1.5em 0;
}

.highlight-box h4 {
    color: var(--primary);
    margin-bottom: 0.5em;
}

/* Feature Cards Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2em;
    margin: 1.5em 0;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3em;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 0.8em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid var(--primary-light);
}

.feature-card .card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
    color: white;
}

.feature-card .card-title {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text);
}

.feature-card .card-tag {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 600;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    margin-top: 0.2em;
}

.tag-neu { background: #dcfce7; color: #166534; }
.tag-erweitert { background: #dbeafe; color: #1e40af; }

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

.feature-card ul li {
    font-size: 0.85em;
    color: var(--text-light);
    padding: 0.25em 0;
    padding-left: 1.2em;
    position: relative;
}

.feature-card ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.card-blue { border-top: 3px solid #3a8fd4; }
.card-green { border-top: 3px solid #48bb78; }
.card-orange { border-top: 3px solid #ed8936; }
.card-purple { border-top: 3px solid #9f7aea; }
.card-teal { border-top: 3px solid #38b2ac; }
.card-red { border-top: 3px solid #e53e3e; }
.card-indigo { border-top: 3px solid #667eea; }

/* Footer */
.doc-footer {
    text-align: center;
    padding: 3em 0 2em;
    color: var(--text-light);
    font-size: 0.85em;
    border-top: 1px solid var(--border);
    margin-top: 3em;
}

/* Print Styles */
@media print {
    body { font-size: 11pt; }
    .content { padding: 1em 2em; }
    .section { page-break-inside: avoid; }
    .diagram-container { page-break-inside: avoid; }
    .nav-bar { display: none; }
    @page { margin: 1.5cm 2cm; }
}

@media (max-width: 700px) {
    .content { padding: 1em 1.5em; }
    .feature-grid { grid-template-columns: 1fr; }
}
