/* ==========================================================================
   Threemedia Group – Site Footer
   Datei: /companystyle/footer.css
   ========================================================================== */

.site-footer {
    background: #191919;
    color: #ffffff;
    margin-top: 80px;
    border-top: 1px solid #2a2a2a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 60px 30px;
}

/* --- Haupt-Grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 4px;
}

.footer-description {
    font-size: 13px;
    color: #808080;
    line-height: 1.6;
    max-width: 340px;
}

.footer-section h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-link:hover {
    color: #ffffff;
}

/* --- Artikel Liste --- */
.footer-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-article-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.footer-article-card:hover {
    opacity: 0.8;
}

.footer-article-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background: #242424;
    flex-shrink: 0;
    border-radius: 0;
}

.footer-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-article-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.footer-article-card:hover .footer-article-title {
    color: #ffffff;
}

.footer-article-date {
    font-size: 10px;
    color: #808080;
    font-weight: 500;
}

/* --- Hauptsponsor --- */
.footer-main-sponsor {
    padding: 28px 0;
    border-bottom: 1px solid #2a2a2a;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

/* Variante: kein echter Hauptsponsor — schlanker Hinweis-Streifen */
.footer-main-sponsor.is-empty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.footer-main-sponsor.is-empty .footer-main-sponsor-empty-text {
    font-size: 11px;
    color: #555;
    letter-spacing: 0.4px;
}

.footer-main-sponsor.is-empty .footer-main-sponsor-empty-text strong {
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 10px;
    margin-right: 10px;
}

.footer-main-sponsor.is-empty .footer-main-sponsor-empty-cta {
    font-size: 10px;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-main-sponsor.is-empty .footer-main-sponsor-empty-cta:hover {
    color: #fff;
    border-color: #555;
    background: #1f1f1f;
}

.footer-main-sponsor-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-main-sponsor-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #3a3a3a;
}

.footer-main-sponsor-name {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.3px;
}

.footer-main-sponsor-desc {
    font-size: 11px;
    color: #3a3a3a;
    line-height: 1.5;
    max-width: 420px;
}

.footer-main-sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 80px;
    background: #111;
    border: 1px solid #222;
    border-radius: 2px;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.footer-main-sponsor-logo:hover {
    border-color: #383838;
}

.footer-main-sponsor-logo img {
    max-width: 160px;
    max-height: 56px;
    object-fit: contain;
    filter: brightness(0.45);
    transition: filter 0.2s;
}

.footer-main-sponsor-logo:hover img {
    filter: brightness(0.65);
}

.footer-main-sponsor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-main-sponsor-placeholder-icon {
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
}

.footer-main-sponsor-placeholder-text {
    font-size: 9px;
    color: #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* --- Partner Strip --- */
.footer-sponsor-strip {
    padding: 28px 0;
    border-bottom: 1px solid #2a2a2a;
}

.footer-sponsor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.footer-sponsor-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #3a3a3a;
}

.footer-sponsor-cta {
    font-size: 10px;
    color: #3a3a3a;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-sponsor-cta:hover {
    color: #666;
    border-color: #444;
}

.footer-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.footer-sponsor-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 72px;
    background: #111;
    border: 1px solid #222;
    border-radius: 2px;
    text-decoration: none;
    gap: 8px;
    transition: border-color 0.2s;
}

.footer-sponsor-slot:hover {
    border-color: #383838;
}

.footer-sponsor-slot img {
    max-width: 80px;
    max-height: 36px;
    object-fit: contain;
    filter: brightness(0.4);
    transition: filter 0.2s;
}

.footer-sponsor-slot:hover img {
    filter: brightness(0.6);
}

.footer-sponsor-placeholder {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    flex-shrink: 0;
}

.footer-sponsor-slot-text {
    font-size: 9px;
    color: #2e2e2e;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

.footer-sponsor-slot.is-free {
    background: #0e0e0e;
    border-style: dashed;
    border-color: #252525;
}

.footer-sponsor-slot.is-free:hover {
    border-color: #383838;
}

.footer-sponsor-slot.is-free .footer-sponsor-slot-text {
    color: #282828;
}

.footer-sponsor-plus {
    font-size: 18px;
    color: #222;
    line-height: 1;
}

/* --- Disclaimer --- */
.footer-disclaimer {
    padding: 26px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 40px;
    align-items: start;
    border-bottom: 1px solid #2a2a2a;
}

.footer-disclaimer h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #c8c8c8;
}

.disclaimer-text {
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1.7;
    font-weight: 400;
}

.disclaimer-text strong {
    color: #e0e0e0;
    font-weight: 600;
}

.disclaimer-text a {
    color: #c8c8c8;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.disclaimer-text a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.disclaimer-text p + p {
    margin-top: 12px;
}

/* Korrektur-Hinweis */
.footer-correction-note {
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1.6;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #242424;
}

.footer-correction-note strong {
    color: #e0e0e0;
    font-weight: 600;
}

.footer-correction-note a {
    color: #c8c8c8;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 2px;
}

.footer-correction-note a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.footer-credit-box {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    margin-top: 8px;
    border-radius: 0;
}

.footer-credit-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #e0e0e0;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.footer-credit-note {
    font-size: 11px;
    color: #666;
    display: block;
}

/* --- Action Bar --- */
.footer-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Made in Germany Badge --- */
.footer-mig-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    height: 48px;
    border-radius: 2px;
    background: linear-gradient(135deg, #2e2e2e 0%, #1e1e1e 55%, #191919 100%);
    border: 1px solid #2e2e2e;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color 0.25s, background 0.25s;
}

.footer-mig-badge:hover {
    border-color: #484848;
    background: linear-gradient(135deg, #383838 0%, #262626 55%, #1e1e1e 100%);
}

.footer-mig-badge img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%) brightness(0.72) contrast(1.05);
    transition: filter 0.25s;
}

.footer-mig-badge:hover img {
    filter: grayscale(10%) brightness(0.88) contrast(1.05);
}

/* --- Buttons Gruppe rechts --- */
.footer-actions-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn,
.footer-user-badge {
    display: inline-flex;
    align-items: center;
    height: 48px;
    background: transparent;
    border: 1px solid #333;
    text-decoration: none;
    border-radius: 2px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.action-btn {
    padding: 0 20px;
    gap: 10px;
}

.footer-user-badge {
    padding: 0 16px 0 10px;
    gap: 12px;
}

.action-btn:hover,
.footer-user-badge:hover {
    background: #222;
    border-color: #444;
}

/* --- Partner Button --- */
.action-btn.btn-partner {
    border-color: #ffcc00;
}

.action-btn.btn-partner .action-label {
    color: #ffcc00;
}

.action-btn.btn-partner:hover {
    background: #ffcc00;
    border-color: #ffcc00;
}

.action-btn.btn-partner:hover .action-label {
    color: #191919;
}

/* --- Partner Button DISABLED --- */
.action-btn.btn-partner.is-disabled {
    border-color: #2a2a2a;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.action-btn.btn-partner.is-disabled .action-label {
    color: #3a3a3a;
}

.action-btn.btn-partner.is-disabled .btn-partner-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2e2e2e;
    border: 1px solid #2a2a2a;
    padding: 2px 5px;
    border-radius: 2px;
    margin-left: 2px;
}

/* --- Divider --- */
.footer-actions-divider {
    width: 1px;
    height: 24px;
    background: #333;
    margin: 0 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red   { background: #dc2626; box-shadow: 0 0 5px rgba(220,38,38,0.4); }
.dot-blue  { background: #3b82f6; box-shadow: 0 0 5px rgba(59,130,246,0.4); }
.dot-green { background: #22c55e; box-shadow: 0 0 5px rgba(34,197,94,0.4); }

.action-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s;
}

.action-btn:hover .action-label {
    color: #ffffff;
}

/* --- User Badge --- */
.footer-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0;
    object-fit: cover;
    background: #2a2a2a;
    display: block;
    flex-shrink: 0;
}

.footer-user-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    flex-shrink: 0;
    text-transform: uppercase;
    box-sizing: border-box;
}

.footer-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.footer-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: 0.3px;
    line-height: 1.1;
    transition: color 0.2s;
}

.footer-user-badge:hover .footer-user-name {
    color: #ffffff;
}

.footer-user-role {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.1;
}

/* --- Footer Bottom --- */
.footer-bottom {
    padding: 28px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-copyright {
    font-size: 12px;
    color: #808080;
    font-weight: 500;
}

/* --- Social Icons --- */
.footer-social {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 34px;
    height: 34px;
    background: #242424;
    border: 1px solid #2a2a2a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
    border-radius: 2px;
}

.social-link:hover {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #404040;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 12px;
    color: #808080;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-disclaimer { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-sponsor-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-main-sponsor { grid-template-columns: 1fr; gap: 20px; }
    .footer-main-sponsor-logo { width: 100%; }
}

@media (max-width: 768px) {
    .footer-content { padding: 40px 24px 24px; }
    .site-footer { margin-top: 60px; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-disclaimer { grid-template-columns: 1fr; gap: 30px; }
    .footer-sponsor-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-newsletter-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-newsletter-form { flex-direction: column; align-items: stretch; }
    .footer-newsletter-submit { width: 100%; justify-content: center; }
    .footer-bottom, .footer-bottom-left, .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-actions {
        flex-wrap: wrap;
    }
    .footer-actions-right {
        margin-left: 0;
        flex-wrap: wrap;
        width: 100%;
    }
    .action-btn,
    .footer-user-badge { width: 100%; justify-content: flex-start; }
    .footer-mig-badge { width: 100%; justify-content: flex-start; }
    .footer-actions-divider { width: 100%; height: 1px; margin: 4px 0; }
}

/* ==========================================================================
   Newsletter Sektion
   ========================================================================== */
.footer-newsletter {
    padding: 32px 0;
    border-bottom: 1px solid #2a2a2a;
}

.footer-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.footer-newsletter-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: 0.2px;
}

.footer-newsletter-text p {
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

.footer-newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-newsletter-input {
    flex: 1;
    height: 44px;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    font-size: 13px;
    padding: 0 14px;
    border-radius: 2px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    outline: none;
}

.footer-newsletter-input::placeholder {
    color: #555;
}

.footer-newsletter-input:focus {
    border-color: #555;
    background: #161616;
}

.footer-newsletter-submit {
    height: 44px;
    padding: 0 22px;
    background: #ffffff;
    color: #191919;
    border: 1px solid #ffffff;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.footer-newsletter-submit:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

.footer-newsletter-submit svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-newsletter-privacy {
    font-size: 10px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}

.footer-newsletter-privacy a {
    color: #888;
    text-decoration: underline;
    text-decoration-color: #333;
    text-underline-offset: 2px;
}

.footer-newsletter-privacy a:hover {
    color: #ddd;
    text-decoration-color: #888;
}