/* ============================================================
   Wiki-Komponenten / Vorlagen
   Styles fuer Jumbotron, Cards, Info-Boxen, FAQ etc.
   Wird im Frontend UND im TinyMCE-Editor geladen.
   ============================================================ */

/* ============================================================
   Jumbotron / Hero
   ============================================================ */

.wiki-jumbotron {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #ffffff;
    padding: 48px 40px;
    border-radius: 12px;
    margin: 1.5em 0;
    text-align: center;
}

.wiki-jumbotron h1,
.wiki-jumbotron h2 {
    color: #ffffff !important;
    border: none !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 2em;
    font-weight: 700;
}

.wiki-jumbotron p {
    font-size: 1.15em;
    color: #e2e8f0;
    margin: 0 0 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wiki-jumbotron .wiki-btn {
    display: inline-block;
    background: #ffffff;
    color: #2d3748;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.2s;
}

.wiki-jumbotron .wiki-btn:hover {
    background: #e2e8f0;
    text-decoration: none;
}

/* Varianten */
.wiki-jumbotron.wiki-jumbotron-green {
    background: linear-gradient(135deg, #2d4a3e 0%, #428d5c 100%);
}

.wiki-jumbotron.wiki-jumbotron-blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #4a90d9 100%);
}

/* ============================================================
   Button (allgemein)
   ============================================================ */

.wiki-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.wiki-btn-primary {
    background: #428d5c;
    color: #ffffff;
}

.wiki-btn-primary:hover {
    background: #357548;
    color: #ffffff;
    text-decoration: none;
}

.wiki-btn-outline {
    background: transparent;
    color: #428d5c;
    border: 2px solid #428d5c;
}

.wiki-btn-outline:hover {
    background: #428d5c;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   Karten-Raster (Cards)
   ============================================================ */

.wiki-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 1.5em 0;
}

.wiki-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s;
}

.wiki-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.wiki-card-icon {
    font-size: 2.2em;
    margin-bottom: 12px;
    line-height: 1;
}

.wiki-card h3 {
    font-size: 1.05em;
    margin: 0 0 8px 0 !important;
    color: #2d3748;
    border: none !important;
    padding: 0 !important;
}

.wiki-card p {
    font-size: 0.9em;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   Info-Box / Hinweis
   ============================================================ */

.wiki-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 1.5em 0;
    border-left: 4px solid;
    font-size: 0.95em;
    line-height: 1.6;
}

.wiki-notice strong {
    display: block;
    margin-bottom: 4px;
}

.wiki-notice-info {
    background: #ebf5ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.wiki-notice-success {
    background: #ecfdf5;
    border-left-color: #22c55e;
    color: #166534;
}

.wiki-notice-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.wiki-notice-danger {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* ============================================================
   Feature-Liste (Zweispaltig mit Icons)
   ============================================================ */

.wiki-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.5em 0;
}

.wiki-feature {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.wiki-feature-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.wiki-feature h4 {
    font-size: 0.95em;
    margin: 0 0 4px 0 !important;
    color: #2d3748;
}

.wiki-feature p {
    font-size: 0.85em;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   Bild mit Text (Media Object)
   ============================================================ */

.wiki-media {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 1.5em 0;
}

.wiki-media-image {
    flex-shrink: 0;
    width: 200px;
}

.wiki-media-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.wiki-media-body {
    flex: 1;
}

.wiki-media-body h3 {
    margin: 0 0 8px 0 !important;
    border: none !important;
    padding: 0 !important;
}

.wiki-media.wiki-media-right {
    flex-direction: row-reverse;
}

/* ============================================================
   Bildergalerie
   ============================================================ */

.wiki-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 1.5em 0;
}

.wiki-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s;
}

.wiki-gallery img:hover {
    transform: scale(1.03);
}

/* ============================================================
   Akkordeon / FAQ (details/summary)
   ============================================================ */

.wiki-accordion {
    margin: 1.5em 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.wiki-accordion details {
    border-bottom: 1px solid #e2e8f0;
}

.wiki-accordion details:last-child {
    border-bottom: none;
}

.wiki-accordion summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.15s;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wiki-accordion summary::-webkit-details-marker {
    display: none;
}

.wiki-accordion summary::after {
    content: '+';
    font-size: 1.2em;
    font-weight: 400;
    color: #718096;
    transition: transform 0.2s;
}

.wiki-accordion details[open] summary::after {
    content: '−';
}

.wiki-accordion summary:hover {
    background: #f0f1f3;
}

.wiki-accordion .wiki-accordion-content {
    padding: 14px 18px;
    font-size: 0.93em;
    line-height: 1.7;
}

/* ============================================================
   Zitat-Block
   ============================================================ */

.wiki-quote {
    margin: 1.5em 0;
    padding: 24px 28px;
    background: #f8f9fa;
    border-left: 4px solid #428d5c;
    border-radius: 0 8px 8px 0;
}

.wiki-quote p {
    font-size: 1.15em;
    font-style: italic;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.wiki-quote cite {
    font-size: 0.85em;
    color: #718096;
    font-style: normal;
}

.wiki-quote cite::before {
    content: '— ';
}

/* ============================================================
   Call-to-Action
   ============================================================ */

.wiki-cta {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 1.5em 0;
}

.wiki-cta h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.3em;
    border: none !important;
    padding: 0 !important;
}

.wiki-cta p {
    color: #4a5568;
    margin: 0 0 16px 0;
}

/* ============================================================
   Timeline / Zeitstrahl
   ============================================================ */

.wiki-timeline {
    margin: 1.5em 0;
    position: relative;
    padding-left: 32px;
}

.wiki-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #e2e8f0;
    border-radius: 2px;
}

.wiki-timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.wiki-timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #428d5c;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.wiki-timeline-item h4 {
    font-size: 0.95em;
    margin: 0 0 2px 0 !important;
    color: #2d3748;
}

.wiki-timeline-date {
    font-size: 0.8em;
    color: #718096;
    margin-bottom: 4px;
}

.wiki-timeline-item p {
    font-size: 0.9em;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   Statistik-Karten
   ============================================================ */

.wiki-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}

.wiki-stat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
}

.wiki-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #428d5c;
    line-height: 1.2;
}

.wiki-stat-label {
    font-size: 0.8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================================
   Gestylt Tabelle
   ============================================================ */

.wiki-table-styled {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.wiki-table-styled thead th {
    background: #2d3748;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
}

.wiki-table-styled tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wiki-table-styled tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.wiki-table-styled tbody tr:hover {
    background: #edf2f7;
}

/* ============================================================
   Zweispalten-Layout
   ============================================================ */

.wiki-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 1.5em 0;
}

.wiki-column {
    min-width: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .wiki-jumbotron {
        padding: 32px 24px;
    }

    .wiki-jumbotron h1,
    .wiki-jumbotron h2 {
        font-size: 1.5em;
    }

    .wiki-cards {
        grid-template-columns: 1fr;
    }

    .wiki-features {
        grid-template-columns: 1fr;
    }

    .wiki-media {
        flex-direction: column !important;
    }

    .wiki-media-image {
        width: 100%;
    }

    .wiki-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .wiki-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .wiki-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wiki-gallery {
        grid-template-columns: 1fr;
    }

    .wiki-stats {
        grid-template-columns: 1fr;
    }
}
