/* ==== 2. Gemeinsame Komponenten ==== */

/* Farb-Helfer für Icons in Spiel-/Tool-Bereichen */
.color-green {
    color: #22c55e;
}

.color-yellow {
    color: #eab308;
}

.color-red {
    color: var(--c-danger);
}

.color-blue {
    color: #3b82f6;
}

.color-purple {
    color: var(--c-accent);
}

.color-gray {
    color: #999;
}

/* Kategorie-Badge */
.tool-category {
    display: inline-flex;
    padding: 4px 12px;
    background: var(--c-surface-2);
    color: var(--c-accent);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: flex-start;
    flex-shrink: 0;
}

/* Card (Spiel-/Tool-Karten) */
.main-card {
    display: block;
    height: auto;
    cursor: default;
    transition: none;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.tool-card .tool-button {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: auto;
}

/* Button */
.tool-button {
    display: inline-block;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.tool-card:hover .tool-button {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tool-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.tool-button:active:not(:disabled) {
    transform: translateY(0);
}

.tool-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Tool-/Game-Karten (tools.html & index.html) */
.tools-section {
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.tool-card {
    background: linear-gradient(165deg, rgba(102, 126, 234, 1) 5%, rgba(255, 255, 255, 0.95) 25%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.tool-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.tool-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tool-description {
    color: var(--c-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
}

/* Kategorie-Filter: muss die display:flex-Regel der Karten überschreiben */
.tools-grid .tool-card.hidden {
    display: none !important;
}

/* Hero (tools.html & index.html) */
.hero {
    text-align: center;
    padding: 40px 20px 10px 20px;
    background: linear-gradient(135deg, rgba(153, 172, 255, 0.65) 0%, rgba(118, 75, 162, 0.65) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero h1 {
    font-size: 3em;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero .subtitle {
    font-size: 1.3em;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Trust Badges (tools.html & index.html) */
.trust-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s;
    background: linear-gradient(165deg, rgb(179, 165, 255) 1%, rgba(255, 255, 255, 0.95) 15%);
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

.trust-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.trust-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.trust-description {
    color: var(--c-muted);
    line-height: 1.6;
    font-size: 16px;
}

/* SEO Section */
.seo-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.seo-section h2 {
    color: var(--c-accent);
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.seo-section h3 {
    color: var(--c-accent-2);
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.seo-section p {
    line-height: 1.8;
    color: var(--c-muted);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 400;
}

.seo-section ul {
    margin-left: 20px;
    line-height: 2;
    color: var(--c-muted);
}

.seo-section code {
    background: var(--c-surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--c-accent);
    font-size: 14px;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-section h2 {
    color: var(--c-accent);
    margin-bottom: 30px;
}

.acct-more {
    margin-top: 14px;
    font-size: 0.95em;
}

.acct-more a {
    color: var(--c-accent);
    font-weight: 600;
    text-decoration: none;
}

.acct-more a:hover {
    text-decoration: underline;
}

.faq-item {
    background: var(--c-surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.faq-question {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.2px;
}

.faq-answer {
    color: var(--c-muted);
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Related Tools / Games Section */
.related-tools {
    border-radius: 16px;
    padding: 40px;
    margin-top: 30px;
}

.info-section {
    background: #eef1ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.related-tools {
    background: var(--c-surface);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.related-tools h2 {
    color: var(--c-accent);
    font-size: 1.8em;
    margin-bottom: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: var(--c-accent);
}

.related-card .related-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.related-card h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.related-card p {
    font-size: 13px;
    color: var(--c-muted);
    line-height: 1.5;
}

/* Dark Theme – Gemeinsame Komponenten */
body.dark-theme .main-card,
body.dark-theme .info-section,
body.dark-theme .related-tools {
    background: #37376600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.dark-theme .tool-card {
    background: linear-gradient(165deg, rgba(102, 126, 234, 0.3) 5%, #1e1e2e00 25%);
    color: var(--c-text);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: none;
}

body.dark-theme .related-tools h2 {
    color: var(--c-accent);
}

body.dark-theme .related-card {
    background: #37376600;
    border-color: var(--c-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 22px rgba(102, 126, 234, 0.10);
}

body.dark-theme .related-card:hover {
    border-color: var(--c-accent);
}

body.dark-theme .related-card h3 {
    color: var(--c-text);
}

body.dark-theme .related-card p {
    color: var(--c-muted);
}

body.dark-theme .tool-category {
    background: var(--c-surface);
    color: var(--c-accent);
}

body.dark-theme .tool-title {
    color: var(--c-text);
}

body.dark-theme .tool-description {
    color: var(--c-muted);
}

body.dark-theme .trust-title {
    color: var(--c-text);
}

body.dark-theme .trust-description {
    color: var(--c-muted);
}

body.dark-theme .seo-section {
    background: #1e1e2e00;
    color: var(--c-text);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: none;
}

body.dark-theme .seo-section h2 {
    color: var(--c-accent);
}

body.dark-theme .seo-section h3 {
    color: #a78bfa;
}

body.dark-theme .seo-section p {
    color: #c0c0c0;
}

body.dark-theme .seo-section ul {
    color: #c0c0c0;
}

body.dark-theme .seo-section code {
    background: var(--c-surface);
    color: var(--c-accent);
}

body.dark-theme .faq-item {
    background: #37376600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 22px rgba(102, 126, 234, 0.10);
}

body.dark-theme .faq-question {
    color: var(--c-text);
}

body.dark-theme .faq-answer {
    color: var(--c-muted);
}

/* Responsive – Gemeinsame Komponenten (tools.html & index.html) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

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

/* ==== Embed-Widget Badge (boza.info Backlink in Widgets) ==== */
.boza-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--c-badge-bg, rgba(17, 24, 39, 0.82));
    color: var(--c-badge-fg, #fff);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.boza-badge:hover {
    background: var(--c-accent, #7e502b);
    transform: translateY(-1px);
}

.boza-badge img {
    width: 14px;
    height: 14px;
    display: block;
}

/* ==== Embed-Widgets: Stil-System fuer einbindende Seiten (URL-Params/PostMessage) ====
 * Variablen (--w-*) setzt das Early-Script der Widgets auf :root (documentElement).
 * Ohne gesetzte Variable greifen die Fallbacks in den var()-Aufrufen = Original-Look.
 */

/* Embed-Modus (?embed=1): Header/Footer/SEO/Info/FAQ ausblenden, kompakter Aufbau */
body.boza-widget {
    padding: 12px !important;
}

body.boza-widget #header-container,
body.boza-widget #footer-container,
body.boza-widget .seo-section,
body.boza-widget .info-section,
body.boza-widget .faq-section,
body.boza-widget .related-tools,
body.boza-widget .back-to-top {
    display: none !important;
}

body.boza-widget .container {
    max-width: 680px;
    padding: 0;
}

body.boza-widget .main-card {
    margin-bottom: 40px;
    padding: 16px;
}

body.boza-widget.custom-bg {
    background: var(--c-bg, #111827);
}

body.boza-widget.bg-transparent {
    background: transparent;
}

body.boza-widget.themed .main-card {
    background: var(--c-surface, #ffffff);
    border-radius: var(--c-radius, 16px);
}

body.boza-widget.themed .card-header h1 {
    color: var(--c-text, #1f2937);
}

body.boza-widget.themed .card-header p {
    color: var(--c-muted, #6b7280);
}

body.hide-header .card-header {
    display: none;
}
