/* ==========================================================================
   IceSpot (icespot.info) - Professionelles Deutsches Bautenschutz-Design
   Fokus: Maximale Lesbarkeit, Technische Präzision, EEAT & Conversion
   ========================================================================== */

:root {
    --primary: #0369a1;
    --primary-dark: #075985;
    --primary-light: #e0f2fe;
    --secondary: #0f766e;
    --secondary-dark: #115e59;
    --accent: #0284c7;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --container-width: 1200px;
    --content-width: 860px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Layout-Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.35rem;
    font-weight: bold;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-name span {
    color: var(--primary);
}

.brand-claim {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-decoration: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Hero / Banner
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Kategorien-Grid (Home)
   -------------------------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0 3.5rem;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    text-decoration: none;
}

.category-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.category-card-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Artikelliste / Grid
   -------------------------------------------------------------------------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-card-badge {
    align-self: flex-start;
    background: var(--bg-alt);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.article-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-snippet {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.6;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Artikelseite (Detailansicht)
   -------------------------------------------------------------------------- */
.article-header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-breadcrumbs a {
    color: var(--text-muted);
}

.article-breadcrumbs span.sep {
    color: var(--border-dark);
}

.article-title {
    font-size: 2.35rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.75px;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-body {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    line-height: 1.3;
    scroll-margin-top: 90px;
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
    scroll-margin-top: 90px;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.5rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   AEO Direkt-Antwort Box (Answer Engine Optimization)
   -------------------------------------------------------------------------- */
.quick-answer-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0 2rem;
}

.quick-answer-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-answer-content {
    font-size: 1.05rem;
    color: #03446a;
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Inhaltsverzeichnis (TOC)
   -------------------------------------------------------------------------- */
.sommario-box, .inhaltsverzeichnis-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0 2.5rem;
}

.sommario-titolo {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sommario-box ol, .inhaltsverzeichnis-box ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sommario-box li a, .inhaltsverzeichnis-box li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.15rem 0;
}

.sommario-box li a:hover, .inhaltsverzeichnis-box li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   DIN-Norm & Technische Infoboxen
   -------------------------------------------------------------------------- */
.norm-box {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-left: 5px solid #c026d3;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.norm-box-header {
    font-size: 0.95rem;
    font-weight: 800;
    color: #86198f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.alert-warnung {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    border-left: 5px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.alert-warnung-header {
    font-size: 0.95rem;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.alert-danger {
    background: var(--danger-light);
    border: 1px solid #fecaca;
    border-left: 5px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.alert-danger-header {
    font-size: 0.95rem;
    font-weight: 800;
    color: #991b1b;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Tabellen & Vergleichsmatrizen
   -------------------------------------------------------------------------- */
.tabella-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.tabella-tecnica {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.tabella-tecnica th {
    background: var(--bg-alt);
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.85rem 1.15rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.tabella-tecnica td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

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

.tabella-tecnica tr:nth-child(even) td {
    background: #fafafa;
}

/* --------------------------------------------------------------------------
   Schritt-für-Schritt Ablauf (Stepper Cards)
   -------------------------------------------------------------------------- */
.routine-stepper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.step-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.step-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    background: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Amazon Affiliate Produktbox (High-Conversion)
   -------------------------------------------------------------------------- */
.amazon-affiliate-card {
    background: #ffffff;
    border: 2px solid #0284c7;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.affiliate-badge {
    position: absolute;
    top: -14px;
    left: 1.5rem;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.affiliate-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

.affiliate-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.affiliate-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.5rem;
}

.affiliate-features li {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affiliate-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.affiliate-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #f59e0b;
    color: #000000;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid #d97706;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.affiliate-cta-btn:hover {
    background: #d97706;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.affiliate-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.85rem;
}

/* --------------------------------------------------------------------------
   FAQ-Sektion & Accordion
   -------------------------------------------------------------------------- */
.faq-section {
    margin: 3rem 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.faq-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    padding-top: 0.75rem;
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* --------------------------------------------------------------------------
   Interne Querverlinkung (Silo Mesh)
   -------------------------------------------------------------------------- */
.related-articles-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 3rem 0 1rem;
}

.related-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.related-list li a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-links li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.amazon-disclaimer-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .article-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .step-card {
        flex-direction: column;
        gap: 0.75rem;
    }
}
