/* ==========================================================================
   UTOPIA STORE — Kopf- und Fußzeile für Unterseiten
   Automatisch aus den Inline-Styles der Startseite extrahiert.
   Ohne diese Datei überlappt der fixierte Header den Inhalt und der Footer
   verliert sein Raster — das betrifft auch bestehende Unterseiten.
   ========================================================================== */

/* ================================================== */
/* FIXED HEADER */
/* ================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.9) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    z-index: 1000; 
    padding: 0.4rem 0;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 0.2rem 0;
    background-color: rgba(8, 10, 14, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-tagline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem; 
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85); 
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none; 
}

@media screen and (max-width: 500px) {
  .header-tagline {
        font-size: 0.55rem;
        letter-spacing: 0;
    }
}

.site-header .brand img {
    transition: transform 0.4s ease;
    transform-origin: left center;
}

.site-header.scrolled .brand img {
    transform: scale(0.85);
}

@media screen and (min-width: 900px) {
  .site-header {
        padding: 0.8rem 0;
    }
  .site-header.scrolled {
        padding: 0.3rem 0;
    }
  .site-header .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
  .site-header .menu {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
  .site-header .menu a,
    .submenu-btn {
        white-space: nowrap;
        font-size: clamp(12px, 1.1vw, 16px);
        padding: 0.5rem;
    }
  .header-tagline {
        display: none !important;
    }
}

/* ================================================== */
/* HEADER HOVER EFFEKTE */
/* ================================================== */

.site-header .menu a, 
.submenu-btn {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: #ffffff;
}

.site-header .menu a:hover, 
.site-header .menu a:focus,
.submenu-btn:hover,
.submenu-btn:focus {
    color: #ff6600 !important;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
}

.foot-legal a {
    word-break: break-word;
    hyphens: auto;
}

@media screen and (min-width: 2000px) {
  html::after,
    body::before,
    body::after,
    #retro-layer,
    footer.site-footer::before {
        display: none !important;
    }
}

/* ================================================== */
/* FOOTER */
/* ================================================== */

footer.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(13, 17, 23, 0.8) !important;
}

footer.site-footer::before {
    content: '';
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.15; 
    background-image: url('data:image/svg+xml,%3Csvg width=%221000%22 height=%221000%22 viewBox=%220 0 1000 1000%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cstyle%3E.line{fill:none;stroke:white;stroke-width:0.8;opacity:0.4}.node{fill:white;opacity:0.5}%3C/style%3E%3Cpolyline points=%22100,100 300,50 500,200 250,350 100,100%22 class=%22line%22/%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%222%22 class=%22node%22/%3E%3Ccircle cx=%22300%22 cy=%2250%22 r=%222%22 class=%22node%22/%3E%3Ccircle cx=%22500%22 cy=%22200%22 r=%222%22 class=%22node%22/%3E%3Ccircle cx=%22250%22 cy=%22350%22 r=%222%22 class=%22node%22/%3E%3Cpolyline points=%22600,600 700,500 800,650 900,550%22 class=%22line%22/%3E%3Ccircle cx=%22600%22 cy=%22600%22 r=%222%22 class=%22node%22/%3E%3Ccircle cx=%22700%22 cy=%22500%22 r=%222%22 class=%22node%22/%3E%3Ccircle cx=%22800%22 cy=%22650%22 r=%222%22 class=%22node%22/%3E%3C/svg%3E');
    background-size: 1000px 1000px;
    background-repeat: repeat;
    animation: deep-space-drift 200s linear infinite;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media screen and (min-width: 768px) {
  .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Vier Spalten erst, wenn sie wirklich nebeneinander passen */
@media screen and (min-width: 1040px) {
  .footer-inner {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
    }
}

/* Überschriften im Footer dürfen jetzt Links sein */
.footer-col h4 a { color: inherit; text-decoration: none; }
.footer-col h4 a:hover { color: var(--neon); }

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.brand-col p {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.5;
    font-size: 0.95rem;
    max-width: 300px;
}

.foot-links,
.foot-legal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.foot-links a,
.foot-legal a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.foot-links a:hover,
.foot-legal a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: center;
    gap: 1rem;
}

@media screen and (min-width: 768px) {
  .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Ausgleich für den fixierten Header. Ohne diese Regeln schiebt sich die
   Kopfzeile über den Seiteninhalt. In der Startseite stehen sie inline
   innerhalb der Media-Queries und wurden beim Extrahieren nicht mitgenommen.
   -------------------------------------------------------------------------- */
@media screen and (min-width: 900px) {
  body { padding-top: 95px; }
}
@media screen and (max-width: 899px) {
  body { padding-top: 70px; }
  html { scroll-padding-top: 80px; }
}
