/******************************************************
 *  Responsive Layout – BrainFly
 *  Desktop bleibt unverändert, alles nur <= 1024px
 ******************************************************/

/* ================== GLOBAL: bis 1024px ================== */
@media (max-width: 1024px) {

    html, body {
        margin: 0;
        padding: 0;
        max-width: 100%;
        overflow-x: hidden; /* keine horizontale Scrollbar */
    }

    /* Grund-Container */
    .website {
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 0;
        background-position: center top;
        background-size: cover;      /* header.png skaliert schön */
    }

    .website .container {
        max-width: 100%;
        min-width: 0;
    }

    .website .pageContainer {
        width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /***********************
     * HEADER / HEAD-BEREICH
     ***********************/
    .website .head {
        max-width: 100%;
        min-width: 0;
        margin: 0 auto 140px;   /* Platz unter Header/Slider */
        padding-top: 0px;      /* etwas Luft unter der .bar */
        position: relative;
    }
@media (max-width: 1024px) {

    .glass-header {
        height: 300px; /* Höhe des Header-Bildes */
        overflow: hidden;
    }

    .glass-header img {
        width: 100%;
        height: 300px; /* gleiche Höhe */
        object-fit: cover; /* füllt den Frame ohne Verzerrung */
    }
}

@media (max-width: 820px) {

    .glass-header {
        height: 340px;
		margin-top: -35px !important;
    }

    .glass-header img {
        height: 340px;
    }
}

    /* Oberes Logo: etwas kleiner & zentriert */
    .website .head .logo-container {
        position: absolute;
        margin-top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;          /* kleiner als Desktop */
        z-index: 20;
        text-align: center;
    }

    .website .head .logo-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    /***********************
     * SLIDER
     ***********************/
    .website .head .image_slider {
        padding-top: 38px;          /* wegen der .bar */
        width: 90vw;                /* 90% der Bildschirmbreite */
        max-width: 700px;
        /* Verhältnis der Slider-Bilder (z.B. 1365 x 521) */
        aspect-ratio: 1365 / 521;
        height: auto;
        position: relative;
        /*top: 80px;                  /* Abstand unter Logo */
        margin: 0 auto;
        border-radius: 10px;
        overflow: hidden;           /* Bilder sauber beschneiden */
    }
@media (max-width: 1024px) {
    .website .head .image_slider {
        top: 0 !important;
        margin-top: -100px !important; /* Slider auf das Header-Bild schieben */
        z-index: 20;
        position: relative;
    }
}

@media (max-width: 820px) {
    .website .head .image_slider {
        margin-top: -250px !important; /* mehr Overlap für sehr kleine Bildschirme */
    }
}

    .website .head .image_slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Dots im Slider unten, zentriert */
    .website .head .image_slider .slider-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
    }

    /***********************
     * CONTENT + BOXES
     ***********************/
    .website .content,
    .website .boxes {
        width: 100%;
        float: none;
        box-sizing: border-box;
    }

    .website .content {
        padding: 5px 0 25px 0;
    }

    /* News-Boxen sollen nicht abgeschnitten werden */
    .news {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Boxes unter dem Content, volle Breite */
    .website .boxes {
        margin-top: 10px;
    }

    .website .boxes .box {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .website .boxes .box-head,
    .website .boxes .box-inner {
        width: 100%;
        box-sizing: border-box;
    }

    .website .boxes img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Serverinfo-Box gleich breit wie Download-GIF */
    .serverinfo {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }


/* ================== kleine Handys: bis 768px ================== */
@media (max-width: 820px) {

    /* Header etwas höher, damit man mehr sieht */
    .website .head {
        margin-bottom: 120px;
        padding-top: 45px;
    }

    .website .head .logo-container {
        width: 160px;
        top: 8px;
    }

    .website .head .image_slider {
        width: 92vw;
        top: 75px;
    }

    /* News minimal mehr Rand */
    .website .pageContainer {
        padding: 0 8px;
    }
}

/* ================== DESKTOP-DOT-Korrektur ================== */
@media (min-width: 1025px) {
    /* Dots wie im ursprünglichen Desktop-Layout */
    .image_slider .slider-dots {
        bottom: 45px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 820px) {

    /* Zentrumsausrichtung */
    .site_content center,
    .site_content {
        text-align: center !important;
        width: 100% !important;
    }

    /* Download GIF volle Breite */
    center > a img {
        width: 90% !important;
        height: auto !important;
        border: none !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
    }

    /* Serverinfos-Box */
    .box {
        width: 90% !important;
        margin: 0 auto 30px auto !important;
        float: none !important;
        display: block !important;
    }

    .box-head {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .box-inner {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Entferne das feste Offset im inneren DIV */
    .box-inner > div {
        margin-left: 0 !important;
    }
}
@media (max-width: 820px) {

    /* Zentrale Breite für alle Boxen */
    .website .boxes {
        width: 100% !important;
        text-align: center !important;
    }

    /* Boxen definieren nun die Breite flexibel */
    .website .boxes .box {
        width: 90% !important;
        max-width: 320px !important; /* headline.png + Padding */
        margin: 0 auto 20px auto !important;
        float: none !important;
    }

    /* HEADLINE.PNG (Box-Kopf) RESPONSIVE */
    .website .boxes .box .box-head {
        width: 100% !important;      /* nicht mehr 290px */
        height: auto !important;
        padding: 8px 0 !important;

        background-size: 100% auto !important; /* Bild skaliert */
        background-position: center top !important;
    }

    /* BOX-INHALT */
    .website .boxes .box .box-inner {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px !important;

        /*border-left: 1px solid #F4E4B0 !important;
        border-right: 1px solid #F4E4B0 !important;*/
    }

    /* Entfernt den Desktop-Offset */
    .website .boxes .box .box-inner > div {
        margin-left: 0 !important;
    }

    /* DOWNLOAD GIF */
    center > a img {
        width: 90% !important;
        max-width: 320px !important; /* identisch zur Box */
        height: auto !important;
        border: 1px solid #F4E4B0 !important;
		border-radius: 4px !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
    }
	/* Download GIF MITTIG positioniert */
	@media (max-width: 820px) {
    .website .boxes img,
    center img {
        margin: 10px auto !important;
		}
	}

}

/******************************************************
 * MOBILER FOOTER – SAUBER VERSION
 ******************************************************/

/* BrainFly Logo – Standard: immer ausblenden (Desktop + Tablet) */


/* Alles ab hier nur für Bildschirme <= 768px */
@media (max-width: 820px) {

    .footer {
        background-size: cover !important;
        background-position: center !important;
        padding: 30px 0 20px 0 !important;
    }

    .footer-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box;
        text-align: center !important;
    }

    /* Alle p25-Spalten untereinander statt nebeneinander */
    .footer-inner .p25.float-left {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* ===== Desktop-Inhalte im Footer AUSBLENDEN ===== */
    /* 1. Kopfzeilen-Zeile (Brain Fly | Account | Support | Networks) */
    .footer-inner .p25.float-left:nth-of-type(-n+4) {
        display: none !important;
    }

    /* 2. Linkspalten (Was ist Brain Fly ... bis Unterstütze uns) */
    .footer-inner .p25.float-left:nth-of-type(5),
    .footer-inner .p25.float-left:nth-of-type(6),
    .footer-inner .p25.float-left:nth-of-type(7) {
        display: none !important;
    }

    /* Trennlinien etwas schmaler & zentriert */
    .footer-inner hr {
        width: 80% !important;
        margin: 10px auto !important;
        height: 1px !important;
    }

    /* Nutzungsbedingungen | Datenschutz | Impressum – nebeneinander */
    .footer-inner > a {
        display: inline-block !important;
        margin: 0 10px !important;
        float: none !important;
        text-align: center !important;
        font-size: 15px !important;
        white-space: nowrap;
    }

    /* Copyright-Zeile */
    .footer-inner small {
        display: block !important;
        margin-top: 18px !important;
        font-size: 12px !important;
        line-height: 1.4em !important;
        text-align: center !important;
    }
}

/******************************************************
 * FOOTER – FINAL CLEAN VERSION (MOBILE)
 ******************************************************/
@media (max-width: 820px) {

    /* Footer Layout mobil */
    .footer {
        background-size: cover !important;
        background-position: center !important;
        padding: 1px 0 1px 0 !important;
    }

    .footer-inner {
        width: 100% !important;
        padding: 20px 15px !important;
        text-align: center !important;
        box-sizing: border-box;
    }

    /* ==== Desktop-Spalten komplett ausblenden ==== */
    .footer-inner .p25.float-left {
        display: none !important;
    }
	
    /* ==== BrainFly-Logo ==== */
    .footer-bottom {
        flex-direction: column;   /* alles untereinander */
        align-items: center;      /* horizontal zentriert */
        text-align: center;       /* Text zentriert */
        gap: 10px;
    }

    .footer-bottom-left img.footer-bottom-logo {
        height: 45px;             /* optional kleiner für mobile */
		filter: grayscale(100%);
		
    }

    .footer-bottom-right .footer-links {
        text-align: center;
    }

    .footer-bottom-right .footer-copy {
        text-align: center;
    }
}
	
    /* ==== Discord-Logo ==== */
    .discord-footer {
        display: block !important;
        margin: 10px auto 0px auto;
        text-align: center !important;
    }

    .discord-footer img {
        width: min(200px, 85vw);
        height: auto;
        border: none; /*1px solid #F4E4B0;*/
        border-radius: 6px;
        display: inline-block;
		/* Neon-Pulse dauerhaft aktiv */
		animation: neonPulse 1.4s ease-in-out infinite;
    }

    /* ==== Mobile Trennlinie ==== */
    .mobile-separator {
        width: 85% !important;
        margin: 5px auto !important;
        height: 1px !important;
        background: #9b9b9b !important;
        border: none !important;
    }

    /* ==== Footer-Links ==== */
    .footer-links a {
        display: inline-block !important;
        margin: 0 5px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    /* ==== Copyright ==== */
    .footer-copy {
        display: block !important;
        margin-top: 15px !important;
        font-size: 12px !important;
        line-height: 1.4em !important;
        text-align: center !important;
    }
}
/* GANZ WICHTIG: Media Query GANZ UNTEN! */
@media (max-width: 820px) {
    .team_box {
        width: 100% !important;
        margin: 15px 0 !important;
        float: none !important;
        clear: both;
        box-sizing: border-box;
    }
}

/* MOBILE ANPASSUNG für download.php */
@media (max-width: 820px) {

    .download_treiber {
        width: 100% !important;
        float: none !important;
        display: block !important;
        padding: 10px 0 !important;
        margin: 0 auto 20px auto !important;
        border-right: none !important;
        box-sizing: border-box;
    }

    .downloadContainer {
        text-align: center !important;
    }
}
/* MOBILE ANPASSUNG für buy.php */
/* BUY.PHP – Paypal-Layout auf Mobile korrigieren */
@media (max-width: 820px) {

    /* die drei Spalten im Paypal-Formular untereinander statt nebeneinander */
    #Paypal > div[style] {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        margin: 0 0 15px 0;
        box-sizing: border-box;
    }

    /* PayPal-Button zentrieren */
    #donate-button-container,
    #donate-button {
        text-align: center !important;
        margin: 0 auto !important;
    }

    /* alle Eingaben und Selects im Spendenformular schön 100% breit */
    .formDonation .w250,
    .formDonation .w272,
    .formDonation input[type="text"],
    .formDonation input[type="email"],
    .formDonation select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}
@media (max-width: 820px) {

    .paysafecard_button,
    .paypal_button,
    .amazon_button {
        float: none !important;
        display: block !important;
        width: 120px !important;   /* oder 100px, wie du magst */
        height: 120px !important;
        margin: 10px auto !important;
    }
}
/* MOBILE ANPASSUNG für login.php */
/* LOGIN.PHP – Mobile Fix */
@media (max-width: 820px) {

    /* Login-Formular */
    .p50[style*="float"] {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* Login-Info rechts */
    .login-info {
        float: none !important;
        width: 100% !important;
        padding: 15px 10px !important;
        margin: 20px 0 0 0 !important;
        border-left: none !important;
        border-top: 1px solid #e6d9aa !important;
        box-sizing: border-box;
    }

    /* Formularfelder 100% */
    .p50 input,
    .p50 button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* MOBILE ANPASSUNG für registrieren.php */
