/* ============================
   GLOBAL
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* vorher 15px */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", "Roboto", sans-serif;
    color: #222;
    line-height: 1.55; /* vorher 1.45 */
}

/* Grid für die Cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* vorher 180px */
    gap: 1.6rem; /* vorher 1.4rem */
    margin: 2.4rem 0; /* vorher 2rem */
}

/* Einzelne Card */
.home-card {
    text-align: center;
    padding: 1rem; /* vorher 0.8rem */
}

/* Blob-Bild */
.home-card-img {
    width: 140px; /* vorher 120px */
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.8rem; /* vorher 0.6rem */
}

/* Titel */
.home-card h3 {
    font-size: 1.25rem; /* vorher 1.1rem */
    margin-bottom: 0.5rem;
}

/* Punkte-Liste */
.home-card ul {
    list-style: disc;
    padding-left: 1.4rem; /* vorher 1.2rem */
    text-align: left;
    font-size: 1rem; /* vorher 0.9rem */
    color: #444;
}

body.dark .home-card p {
    color: #ffb347;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: #f5f5f5;
    color: #333;
    padding: 2.4rem 1.4rem; /* vorher 2rem 1rem */
    margin-top: 3.4rem; /* vorher 3rem */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.4rem; /* vorher 2rem */
}

.footer-section h3 {
    margin-bottom: 0.8rem; /* vorher 0.6rem */
    color: #222;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
}

.footer-section a:hover {
    color: #ffb347;
}

.social-links {
    display: flex;
    gap: 1.2rem; /* vorher 1rem */
}

.social i {
    font-size: 1.6rem; /* vorher 1.4rem */
    color: #ffb347;
    transition: 0.3s;
}

.social i:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem; /* vorher 1.5rem */
    color: #777;
    font-size: 1rem;
}

/* ============================
   HEADER
   ============================ */
.page-content {
    margin-top: 120px; /* vorher 100px */
}

.gr-header {
    background: #e3eee7;
    border-bottom: 1px solid #d5e4db;
    padding: 0.9rem 1.4rem; /* vorher 0.6rem 1rem */
}

.gr-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.gr-logo img.logo {
    height: 48px; /* vorher 38px */
    width: auto;
}

/* Userbox */
.gr-userbox {
    font-size: 1.05rem; /* vorher 0.95rem */
    display: flex;
    gap: 0.6rem; /* vorher 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: 1rem; /* vorher 0.8rem */
}

/* Language Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* vorher 0.3rem */
    cursor: pointer;
}

.flag-icon {
    width: 24px; /* vorher 20px */
    height: 16px; /* vorher 14px */
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    min-width: 140px; /* vorher 120px */
    z-index: 1000;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* vorher 0.4rem */
    padding: 0.6rem 0.8rem; /* vorher 0.4rem 0.6rem */
    color: #222;
    text-decoration: none;
    font-size: 1rem; /* vorher 0.9rem */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Darkmode Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px; /* vorher 34px */
    height: 22px; /* vorher 18px */
}

.switch input {
    display: none;
}

/* Slider */
.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: 18px; /* vorher 14px */
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

input:checked + .slider {
    background: #0a7a4b;
}

input:checked + .slider:before {
    transform: translateX(18px); /* vorher 16px */
}

/* ============================
   SLIDER (Hero)
   ============================ */
.gr-slider {
    position: relative;
    width: 100%;
    height: 140px; /* vorher 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: 140px; /* vorher 110px */
    object-fit: cover;
}

.gr-caption {
    position: absolute;
    top: 26px; /* vorher 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 12px black;
}

.gr-slide.active .gr-caption {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gr-caption h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem); /* vorher 1.4–2.2 */
    margin: 0;
}

.gr-prev,
.gr-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem; /* vorher 2.5rem */
    color: white;
    text-shadow: 0 0 12px black;
    cursor: pointer;
    user-select: none;
    padding: 12px; /* vorher 10px */
}

.gr-prev { left: 24px; }
.gr-next { right: 24px; }

/* ============================
   BURGER MENU
   ============================ */
.gr-burger {
    font-size: 1.8rem; /* vorher 1.6rem */
    cursor: pointer;
    user-select: none;
}

.gr-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 70px; /* vorher 60px */
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0.6rem 0; /* vorher 0.4rem */
    width: 200px; /* vorher 180px */
    z-index: 2000;
}

.gr-menu li a {
    display: block;
    padding: 0.8rem 1rem; /* vorher 0.6rem 0.8rem */
    color: #222;
    text-decoration: none;
    font-size: 1.05rem; /* vorher 0.95rem */
}

.gr-menu li a:hover {
    background: #e3eee7;
}

.gr-open {
    display: block !important;
}

/* ============================
   MOBILE (Android)
   ============================ */
@media (max-width: 480px) {

    html {
        font-size: 15px;
    }

    .gr-nav {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .gr-logo img.logo {
        height: 34px; /* vorher 28px */
    }

    .gr-userbox {
        width: 100%;
        justify-content: center;
        margin-top: 0.3rem;
        font-size: 1rem;
    }

    .gr-right {
        position: absolute;
        top: 0.8rem;
        right: 1rem;
        gap: 0.8rem;
    }

    .gr-menu {
        width: 180px;
        top: 65px;
    }
}

/* ============================
   DARK MODE
   ============================ */

body.dark {
    background: #1a1a1a;
    color: #bbbbbb;
}

/* Dark Logo */
body.dark .gr-logo .logo {
    content: url("../images/logo/tombo-logo-dark.png");
}

/* Slider Caption */
body.dark .gr-caption {
    color: black;
    text-shadow: 0 0 12px #ffcc33;
}

/* Header */
body.dark .gr-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

/* 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;
}

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 */
body.dark .switch .slider {
    background: #08405a;
}

body.dark .switch .slider:before {
    background: #667085;
}

body.dark input:checked + .slider {
    background: #08405a;
}

body.dark input:checked + .slider:before {
    background: #667085;
    transform: translateX(18px);
}

/* Homecards */
body.dark .home-card h3,
body.dark .home-card ul {
    color: #bbbbbb;
}
