:root {
    --bg-color: #0f1115;
    --card-color: #111318;
    --text-color: #eaeaea;
    --accent-color: #c51318;
    --hover-color: #fc1e25;
}

/* ======== WICHTIG: FIX FÜR WIDTH PROBLEM ========= */
* {
    box-sizing: border-box;
}

/* ======== GRUNDDESIGN ======== */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial;
    line-height: 1.6;
    padding: 20px;
}

.card {
    background-color: var(--card-color);
    color: var(--text-color);
    border-radius: 10px;
    border: 1px solid #222;
}

/* ======== HEADER ======== */
header {
    margin: 0 auto;
    padding: 15px 0;
}

.header-box {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.card-header {
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

.card-header h2 {
    margin: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* ======== LAYOUT / CONTAINER ========= */
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(17, 19, 24, 0.4);
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}

.featurette-divider {
    border-color: #333;
    opacity: 0.3;
}

.featurette-heading {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.featurette .lead {
    color: #c9c9c9;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

.title-divider {
    border: none;
    background-color: var(--hover-color);
    opacity: 0.7;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    margin: 15px auto 0 auto;
}

/* ======== TYPOGRAFIE (Text) ======== */
h1 {
    color: var(--accent-color);
    margin: 0;
}

h1, h2 {
    text-align: center;
}

.carousel-caption {
    color: lightgray;
    font-weight: bold;
    background-color: rgba(17, 19, 24, 0.75);
    border-radius: 6px;
    max-width: 500px;
    padding: 15px;
    bottom: 20px;
}

.carousel-title {
    color: var(--text-color);
    font-weight: bolder;
    text-align: left;
    padding-left: 10px;
}

.danke-carousel .carousel-caption {
    background: none;
    padding: 0;
    max-width: none;
}

label {
    font-weight: bold;
}

label:hover {
    color: var(--hover-color);
    cursor: pointer;
}

label.required:not(.privacy-label)::after {
    content: " *";
    color: red;
}

p {
    text-align: left;
    max-width: none;
    margin-bottom: 1rem;
    padding: 0;
    line-height: 1.8;
}

.card.text-center p {
    text-align: center;
}

::placeholder {
    color: #999;
    font-style: italic;
}

.subtitle {
    display: block;
    color: #b8b8b8;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.highlight-time {
    background-color: rgba(235, 16, 16, 0.436);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
    color: rgb(248, 233, 233);
}

/* ===== DARK POPOVER ===== */
.popover {
    background-color: var(--card-color);
    border: 1px solid #222;
}

.popover-header {
    background-color: var(--card-color);
    color: var(--text-color);
    border-bottom: 1px solid #333;
}

.popover-body {
    background-color: var(--card-color);
    color: var(--text-color);
}

/* ===== DARK DROPDOWN ===== */
.dropdown-menu {
    background-color: var(--card-color);
    border: 1px solid #222;
}

.dropdown-item {
    color: var(--text-color);
}

.dropdown-item.active {
    background-color:  rgba(197, 19, 24, 0.3);
    color: whitesmoke;
    border-radius: 6px;
}

.dropdown-item:hover {
    background-color: rgba(197, 19, 24, 0.3);
    color: white;
}

/* ====== Logo ====== */
.logo {
    width: 150px;
    border-radius: 50%;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}

/* ===== Bilder ====== */
img {
    border-radius: 12px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

img:hover {
    transform: scale(1.03);
}

.showcase-image {
    max-width: 95%;
    width: 100%;
    border-radius: 20px;
}

.minecraft-banner {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.modal img:hover {
    transform: none;
}

.profil-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.service-image {
    border-radius: 16px;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.2s ease;
}

.service-image:hover {
    transform: scale(1.02);
}

/* ======== FORMULAR ======== */
form {
    margin-top: 20px;
}

form a {
    color: var(--accent-color);
    text-decoration: none;
}

form a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.form-check-input:checked{
    background-color: var(--accent-color);
    border-color: var(--hover-color);
}

.form-hint {
    color: #b8b8b8;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

input, select, textarea,
.form-control,
.form-select {
    border: 1px solid darkgray;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
}

fieldset {
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--bg-color);
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: var(--accent-color);
}

/* ======== INPUT FELDER ======== */
input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    vertical-align: middle;
    border: 2px solid darkgray;
    border-radius: 5px;
    transition: all 0.2s ease;
}

/* Formularelemente: Auswahlfelder */
input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    margin-bottom: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    transform: scale(1.1);
}

input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(197, 19, 24, 0.3) !important;
    outline: none;
}

/* ======== SLIDER ========  */
input[type="range"] {
    cursor: pointer;
    accent-color: var(--accent-color);
    height: 6px;
}
    
.range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
    
.range-container span {
    font-size: 14px;
    color: #555;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}
    
.range-container input {
    flex: 1;
}

.form-range {
    cursor: pointer;
    accent-color: var(--accent-color);
}

.form-range:focus,
.form-range:active {
    outline: none !important;
    box-shadow: none !important;
}

.form-range:focus-visible {
    outline: none;
    box-shadow: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    margin-top: -5px;
}

.form-range::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 10px;
}

.form-range::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 10px;
}

.form-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
}

input {
    margin-bottom: 10px;
}

input:focus, select:focus, textarea:focus, 
.form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(197, 19, 24, 0.3) !important;
    border-color: var(--accent-color);
}

input:hover, select:hover, textarea:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(197, 19, 24, 0.3) !important;
}

input:focus-visible {
    outline: 2px solid var(--accent-color) !important;
}

/* ======== NAVIGATION ======= */
nav a {
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

nav a:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: whitesmoke;
    transform: translateY(-2px);
}

nav a.active {
    background-color:  rgba(197, 19, 24, 0.3);
    color: whitesmoke;
    border-radius: 6px;
}

nav {
    margin-top: 5px;
}

.gaming-navbar {
    background-color: var(--card-color);
    border-bottom: 2px solid var(--accent-color);
}

.nav-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.nav-logo,
.profil-image {
    max-width: 100%;
    height: auto;
}

.profil-image {
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #b8b8b8;
    margin-top: -2px;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-color);
}

/* ======= BUTTON ======== */
.btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    border:none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

button:active {
    transform: scale(0.95);
}

.newsletter-btn,
.form-btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    border:none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.2s ease;
    margin-top: 15px;
}

.profile-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* ======= FOOTER ======= */
footer a {
    color: var(--hover-color);
    text-decoration: none;
    margin-right: 0;
    font-weight: bold;
    padding: 4px 0;
    transition: all 0.2s ease;
    border-radius: 6px;
    display:block;
}

footer a:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: whitesmoke;
    transform: translateY(-2px);
}

footer a:active {
    background-color:  rgba(197, 19, 24, 0.3);
    color: whitesmoke;
    border-radius: 6px;
}

.footer-text {
    max-width: 250px;
    margin: 10px auto 0;
}

footer .row {
    align-items: flex-start;
}

footer form {
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-box {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.newsletter-box p {
    max-width: 280px;
    margin: 0 auto 15px;
    text-align: center;
    color: #b8b8b8;
}

footer {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid var(--accent-color);
    text-align: center;
    background-color: var(--card-color);
}

.newsletter-box label a {
    display: inline;
    color: var(--hover-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    transform: none;
}

.newsletter-box label a:hover {
    text-decoration: underline;
    background: none;
    transform: none;
    color: var(--hover-color);
}

.required-star {
    color: red;
}

.newsletter-box .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin: 0 auto;
    max-width: 320px;
}

.newsletter-box .form-check-input {
    margin-top: 5px;
    flex-shrink: 0;
}

/* ======= TEXTLINKS (z. B. auf der Bücher & Autorin Seite) ======= */
.accent-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.accent-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* ======= WELT-DOWNLOAD ======= */
.download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    border: 1px solid #222;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: var(--bg-color);
}

.download-row.disabled {
    opacity: 0.55;
}

.download-row-info strong {
    display: block;
    color: var(--text-color);
}

.download-row-info small {
    color: #b8b8b8;
}

.download-row .btn {
    white-space: nowrap;
    margin: 0;
}

.badge-soon {
    background-color: #333;
    color: #b8b8b8;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.download-counter {
    text-align: center;
    margin-top: 10px;
}