/* ============================================================
 * FireModus – Frontend Styles
 * ============================================================ */

/* ------------------------------------------------------------
 * 1. Reset & Basis
 * ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.firemodus-active,
body.firemodus-page {
    margin: 0;
    padding: 0;
    background: #f2f2f2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
 * 2. Layout
 * ------------------------------------------------------------ */
#firemodus-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.firemodus-header {
    background: #c1121f;
    color: #ffffff;
    padding: 40px 30px;
    text-align: center;
}

.firemodus-header h1 {
    margin: 0 0 12px 0;
    font-size: 2.2em;
    line-height: 1.25;
    color: #ffffff;
    font-weight: 700;
}

.firemodus-update-time {
    margin: 0 0 20px 0;
    font-size: 0.95em;
    opacity: 0.92;
    color: #ffffff;
}

.firemodus-main {
    padding: 40px;
    flex: 1;
}

.firemodus-featured-image {
    margin: 0 0 30px 0;
}

.firemodus-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ------------------------------------------------------------
 * 3. Typografie im Inhalt
 * ------------------------------------------------------------ */
.firemodus-content {
    font-size: 1.05em;
    color: #1a1a1a;
}

.firemodus-content > *:first-child {
    margin-top: 0;
}

.firemodus-content p {
    margin: 0 0 1.25em 0;
}

.firemodus-content h1,
.firemodus-content h2,
.firemodus-content h3,
.firemodus-content h4,
.firemodus-content h5,
.firemodus-content h6 {
    margin: 1.6em 0 0.6em 0;
    line-height: 1.3;
    color: #1a1a1a;
    font-weight: 700;
}

.firemodus-content h1 { font-size: 1.9em; }
.firemodus-content h2 { font-size: 1.6em; }
.firemodus-content h3 { font-size: 1.35em; }
.firemodus-content h4 { font-size: 1.15em; }
.firemodus-content h5 { font-size: 1.05em; }
.firemodus-content h6 { font-size: 1em; }

/* ------------------------------------------------------------
 * 4. Listen – ul / ol / li
 * ------------------------------------------------------------ */
.firemodus-content ul,
.firemodus-content ol {
    margin: 0 0 1.25em 0;
    padding-left: 1.75em;
    padding-right: 0;
}

.firemodus-content ul {
    list-style: disc outside;
}

.firemodus-content ol {
    list-style: decimal outside;
}

.firemodus-content ul ul {
    list-style: circle outside;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.firemodus-content ul ul ul {
    list-style: square outside;
}

.firemodus-content ol ol {
    list-style: lower-alpha outside;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.firemodus-content ol ol ol {
    list-style: lower-roman outside;
}

.firemodus-content li {
    margin: 0 0 0.6em 0;
    padding-left: 0.25em;
    line-height: 1.6;
}

.firemodus-content li > ul,
.firemodus-content li > ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.firemodus-content li:last-child {
    margin-bottom: 0;
}

.firemodus-content ul li::marker,
.firemodus-content ol li::marker {
    color: #c1121f;
    font-weight: 600;
}

/* ------------------------------------------------------------
 * 5. Weitere Inhalts-Elemente
 * ------------------------------------------------------------ */
.firemodus-content a {
    color: #0b5ed7;
    text-decoration: underline;
}

.firemodus-content a:hover,
.firemodus-content a:focus {
    color: #084298;
}

.firemodus-content strong,
.firemodus-content b {
    font-weight: 700;
}

.firemodus-content em,
.firemodus-content i {
    font-style: italic;
}

.firemodus-content blockquote {
    margin: 1.5em 0;
    padding: 15px 25px;
    background: #f8f9fa;
    border-left: 5px solid #c1121f;
    color: #495057;
    font-style: italic;
}

.firemodus-content blockquote p:last-child {
    margin-bottom: 0;
}

.firemodus-content hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 2em 0;
}

.firemodus-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.firemodus-content figure {
    margin: 1.5em 0;
}

.firemodus-content figcaption {
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5em;
}

.firemodus-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.firemodus-content th,
.firemodus-content td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
}

.firemodus-content th {
    background: #f1f3f5;
    font-weight: 700;
}

/* ------------------------------------------------------------
 * 6. Wichtige Links (wie normale Textlinks)
 * ------------------------------------------------------------ */
.firemodus-excluded-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.firemodus-excluded-links h3 {
    margin: 0 0 16px 0;
    font-size: 1.15em;
    color: #1a1a1a;
    font-weight: 700;
}

.firemodus-excluded-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.firemodus-excluded-links li {
    margin: 0 0 8px 0;
    padding: 0;
}

.firemodus-excluded-links a {
    color: #0b5ed7;
    text-decoration: underline;
    font-size: 1.05em;
}

.firemodus-excluded-links a:hover,
.firemodus-excluded-links a:focus {
    color: #084298;
}

/* ------------------------------------------------------------
 * 7. Aktualisieren-Button + Hinweis
 * ------------------------------------------------------------ */
.firemodus-refresh-top,
.firemodus-refresh {
    text-align: center;
}

.firemodus-refresh-top {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.firemodus-refresh {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.firemodus-refresh-hint {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    font-style: italic;
}

.firemodus-refresh-top .firemodus-refresh-hint {
    color: rgba(255, 255, 255, 0.9);
}

.firemodus-refresh .firemodus-refresh-hint {
    color: #6c757d;
}

.firemodus-refresh-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #ffffff;
    color: #c1121f;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.firemodus-refresh-top .firemodus-refresh-btn {
    background: #ffffff;
    color: #c1121f;
    border-color: #ffffff;
}

.firemodus-refresh-top .firemodus-refresh-btn:hover,
.firemodus-refresh-top .firemodus-refresh-btn:focus {
    background: transparent;
    color: #ffffff;
}

.firemodus-refresh .firemodus-refresh-btn {
    background: #c1121f;
    color: #ffffff;
    border-color: #c1121f;
}

.firemodus-refresh .firemodus-refresh-btn:hover,
.firemodus-refresh .firemodus-refresh-btn:focus {
    background: #ffffff;
    color: #c1121f;
}

.firemodus-refresh-btn:active {
    transform: scale(0.98);
}

/* ------------------------------------------------------------
 * 8. Footer
 * ------------------------------------------------------------ */
.firemodus-footer {
    background: #212529;
    color: #ffffff;
    padding: 22px 30px;
    text-align: center;
    font-size: 0.9em;
}

.firemodus-footer p {
    margin: 0;
    opacity: 0.85;
}

/* ------------------------------------------------------------
 * 9. Responsive
 * ------------------------------------------------------------ */
@media (max-width: 768px) {
    body.firemodus-active,
    body.firemodus-page {
        font-size: 16px;
    }

    .firemodus-header {
        padding: 28px 20px;
    }

    .firemodus-header h1 {
        font-size: 1.65em;
    }

    .firemodus-main {
        padding: 24px 20px;
    }

    .firemodus-content ul,
    .firemodus-content ol {
        padding-left: 1.4em;
    }

    .firemodus-refresh-btn {
        display: block;
        width: 100%;
    }
}
/* FireModus Karten-Zwei-Klick-Lösung */
.firemodus-map-placeholder {
    position: relative;
    margin: 20px 0;
}
.firemodus-map-consent {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    color: #333;
}
.firemodus-map-consent p {
    margin: 0 0 12px 0;
}
.firemodus-load-map-btn {
    background: #c1121f;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
}
.firemodus-load-map-btn:hover {
    background: #a00e18;
}