/* ============================
   GLOBAL
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", "Roboto", sans-serif;
    color: #222;
    line-height: 1.45;
}

/* Grid für die Cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
    margin: 2rem 0;
}

/* Einzelne Card */
.home-card {
    text-align: center;
    padding: 0.8rem;
}

/* Blob-Bild */
.home-card-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* Blob-Form */
    margin-bottom: 0.6rem;
}

/* Titel */
.home-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

/* Punkte-Liste */
.home-card ul {
    list-style: disc;
    padding-left: 1.2rem;
    text-align: left;
    font-size: 0.9rem;
    color: #444;
}

body.dark .home-card p {
    color: #ffb347; /* dein Orange */
}
.footer {
    background: #f5f5f5;
    color: #333;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 0.6rem;
    color: #222;
}

.footer-section p,
.footer-section a {
    color: #555;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ffb347; /* dein gelb-orange */
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social i {
    font-size: 1.4rem;
    color: #ffb347;
    transition: 0.3s;
}

.social i:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    color: #777;
}



/* ============================
   HEADER
   ============================ */
.page-content {
    margin-top: 100px; /* Höhe deines Headers */
}
.gr-header {
    background: #e3eee7;
    border-bottom: 1px solid #d5e4db;
    padding: 0.6rem 1rem;
}

.gr-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.gr-logo img.logo {
    height: 38px;
    width: auto;
}

/* Userbox */
.gr-userbox {
    font-size: 0.95rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    white-space: nowrap;
}

.gr-balance strong {
    color: #0a7a4b;
}

/* ============================
   RIGHT SIDE (Lang + Dark + Burger)
   ============================ */
.gr-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Language Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.flag-icon {
    width: 20px;
    height: 14px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    min-width: 120px;
    z-index: 1000;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    color: #222;
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Darkmode Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.switch input {
    display: none;
}
/* GR SLIDER */
.gr-slider {
    position: relative;
    width: 100%;
    height: 110px;
    overflow: hidden;
}

.gr-slide {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.gr-slide.active {
    opacity: 1;
}

.gr-slide img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.gr-caption {
    position: absolute;
    top: 20px;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 1s ease, transform 1s ease;
    text-align: center;
    width: 100%;
    color: white;
    text-shadow: 0 0 10px black;
}

.gr-slide.active .gr-caption {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gr-caption h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    margin: 0;
}

.gr-prev,
.gr-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 0 10px black;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.gr-prev { left: 20px; }
.gr-next { right: 20px; }

.slider {
    position: absolute;
    cursor: pointer;
    background: #ccc;
    border-radius: 20px;
    transition: .3s;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

input:checked + .slider {
    background: #0a7a4b;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

/* ============================
   BURGER MENU
   ============================ */
.gr-burger {
    font-size: 1.6rem;
    cursor: pointer;
    user-select: none;
}

/* Menu hidden by default */
.gr-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 60px;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0.4rem 0;
    width: 180px;
    z-index: 2000;
}

.gr-menu li a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #222;
    text-decoration: none;
    font-size: 0.95rem;
}

.gr-menu li a:hover {
    background: #e3eee7;
}

/* When opened */
.gr-open {
    display: block !important;
}
/* ============================
   MOBILE (Android)
   ============================ */
@media (max-width: 480px) {

    html {
        font-size: 14px;
    }

    .gr-nav {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    /* LOGO kleiner machen */
    .gr-logo img.logo {
        height: 28px;
        width: auto;
    }

    /* Welcome + Balance nach unten zentriert, aber näher am Header */
    .gr-userbox {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.2rem;
        font-size: 0.9rem;
    }

    /* rechte Seite oben fixieren */
    .gr-header {
        position: relative;
    }

    .gr-right {
        position: absolute;
        top: 0.6rem;
        right: 1rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .gr-menu {
        width: 160px;
        top: 55px;
    }

    .list-group-item {
        font-size: 0.9rem;
    }
}

/* ============================
   DARK MODE
   ============================ */

body.dark {
    background: #1a1a1a;
    color: #bbbbbb;
}

body.dark .gr-logo .logo {
    content: url("../images/logo/tombo-logo-dark.png");
}

body.dark .gr-caption {
    color: black;
    text-shadow: 0 0 10px #ffcc33;
}



/* Header */
body.dark .gr-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

/* Logo bleibt gleich */

/* Userbox */
body.dark .gr-userbox span,
body.dark .gr-userbox strong {
    color: #bbbbbb;
}

/* Dropdown */
body.dark .dropdown-content {
    background: #2a2a2a;
    border-color: #555;
}

body.dark .dropdown-content a {
    color: #bbbbbb;
}

body.dark .dropdown-content a:hover {
    background: #3a3a3a;
}

/* Burger Menü */
body.dark .gr-menu {
    background: #2a2a2a;
    border-color: #555;
}

body.dark .gr-menu li a {
    color: #bbbbbb;
}

body.dark .gr-menu li a:hover {
    background: #3a3a3a;
}

/* Footer */
body.dark .footer {
    background: #111;
    color: #bbbbbb;
}

body.dark .footer-section h3 {
    color: #00ff66; /* dein Neon-Grün */
}

body.dark .footer-section p,
body.dark .footer-section a {
    color: #bbbbbb;
}

body.dark .footer-section a:hover {
    color: #00ff66;
}

body.dark .social i {
    color: #00ff66;
}

body.dark .social i:hover {
    transform: scale(1.2);
    color: #00ffaa;
}

body.dark .footer-bottom {
    color: #888;
}


/* List items */
body.dark .list-group-item {
    border-bottom-color: #444;
    color: #bbbbbb;
}

/* ============================
   DARK MODE – SWITCH COLORS
   ============================ */

/* Schiene (Hintergrund) – gedämpftes Retro-Grün */
body.dark .switch .slider {
    background: #08405a; /* gedämpftes, natürliches Retro-Grün */
}

/* Knopf – schlichtes Grau */
body.dark .switch .slider:before {
    background: #667085; /* neutrales Grau */
}

/* Checked-State (Knopf rechts) */
body.dark input:checked + .slider {
    background: #08405a; /* gleiche Schiene wie oben */
}

body.dark input:checked + .slider:before {
    background: #667085; /* Knopf bleibt grau */
    transform: translateX(16px);
}

body.dark .blob-card h3 {
    color: #bbbbbb;
}

body.dark .blob-card ul {
    color: #bbbbbb;
}
body.dark .home-card h3 {
    color: #bbbbbb;
}

body.dark .home-card ul {
    color: #bbbbbb;
}




