/* =========================================
FONTS
========================================= */

/* Raleway Regular (Standard) */
@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Raleway Bold */
@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Raleway Black (Heavy) */
@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* =========================================
VARIABLES
========================================= */

:root {
    --color-white: #fcfcfc;
    --color-black: #001429;
    --color-lightblue: #cce5ff;

    /* TAGSCHICHT (Standard Theme) */
    --theme-text: var(--color-black);
    --theme-bg: var(--color-white);
    --startseite-bg: url('img/bg/intro-ts.webp');
    --blur-container: rgba(255, 255, 255, 0.8);
    --copyright-opacity: 1;
    --apps-logo: url('img/bg/logo-ts.webp');
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	--text-marking: var(--color-lightblue);
}

/* NACHTSCHICHT (Dark Mode) */
body.nachtschicht {
    --theme-text: var(--color-white);
    --theme-bg: var(--color-black);
    --startseite-bg: url('img/bg/intro-ns.webp');
    --blur-container: rgba(0, 0, 0, 0.8);
    --copyright-opacity: 0.4;
    --apps-logo: url('img/bg/logo.webp');
    --shadow: none;
	--text-marking: #404040;
}

/* =========================================
BASE STYLES
========================================= */

* {-webkit-tap-highlight-color: transparent;}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {scroll-behavior: smooth;}

body {
    width: 100%;
    min-height: 100vh; 
    height: auto;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    transition: background-color 0.4s ease, color 0.4s ease;
}

button, 
.btn,
.app-btn,
.back-btn,
.nav-item, 
.mode-label, 
.switch,
.app-wrapper a,
.app-wrapper p {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button:active, 
.btn:active, 
.app-btn:active,
.back-btn:active,
.nav-item:active, 
.mode-label:active, 
.switch:active,
.app-wrapper a:active,
.app-wrapper p:active {
    transform: scale(0.96);
    opacity: 0.7;
    transition: none;
}

/* =========================================
TYPOGRAPHY & ELEMENTS
========================================= */
p {
    font-size: 1em;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 1.5em;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 1.25em;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

@media (max-width: 440px) {
    p, td {font-size: 0.875em;}
    h1 {font-size: 1.25em;}
    h2 {font-size: 1em;}
}

/* Spezielle Klassen */
.txt-break {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    text-wrap: pretty;
}

.bold {font-weight: 700;}

.name {
    font-weight: 900;
    white-space: nowrap;
}

.red {color: #CE0000;}

.small {font-size: 0.6em;}

.bigger {font-size: 1.2em;}

.copyright {
    color: var(--color-white);
    margin-bottom: 47px;
    opacity: var(--copyright-opacity);
	-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.copyright a {
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .copyright a:hover {text-decoration: underline;}
}

hr {
    border: 0;
    border-top: 1px solid var(--theme-text);
    width: 100%;
    opacity: 0.1;
}

.email a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
	transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .email a:hover {text-decoration: underline;}
}

/* =========================================
UTILITIES
========================================= */

::selection {background-color: var(--text-marking);}
::-moz-selection {background-color: var(--text-marking);}

#custom-alert-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-alert {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 30px;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInAlert 0.3s forwards;
    pointer-events: auto;
    border-left: 6px solid #d32f2f;
}

@keyframes slideInAlert {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-alert.fade-out {
    animation: fadeOutAlert 0.3s forwards;
}

@keyframes fadeOutAlert {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#custom-confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInOverlay 0.2s forwards;
}

.custom-confirm-box {
    background: var(--theme-bg);
    color: var(--theme-text);
    padding: 20px 30px;
    border-radius: 3px;
    border: 1px solid var(--theme-text);
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: scale(0.9);
    animation: popInBox 0.2s forwards;
}

.custom-confirm-box p {
    font-size: 1em;
    margin-bottom: 20px;
}

.custom-confirm-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.custom-confirm-buttons button {
    flex: 1;
    padding: 10px 5px;
    background: #fff;
    color: var(--color-black);
    border: 1px solid var(--color-black);
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-confirm-yes {
    font-weight: bold;
    font-size: 1em;
    font-family: 'Raleway', sans-serif;
}

.btn-confirm-no {
    font-weight: bold;
    font-size: 1em;
    font-family: 'Raleway', sans-serif;
}

@media (hover: hover) and (pointer: fine) {
    .btn-confirm-yes:hover {background: var(--color-lightblue);}
    .btn-confirm-no:hover {background: var(--color-lightblue);}
}

@keyframes fadeInOverlay { to { opacity: 1; } }
@keyframes popInBox { to { transform: scale(1); } }

.legal-notice {
    width: 100%;
    height: auto;
    padding: 10px 10px 10px 15px;
    background-color: #ccc;
    border-left: 4px solid #f57c00;
    color: var(--color-black);
    margin-bottom: 10px;
}

/* =========================================
MENÜ
========================================= */

nav {
    width: 100%;
    height: 72px;
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 40px;
    padding: 0 20px;
    z-index: 99;
    background-color: var(--blur-container);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

nav a {cursor: pointer;}

nav img {
    width: 48px;
    height: auto;
    padding: 6px;
    border: 1px solid var(--theme-text);
    border-radius: 3px;
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
    nav img:hover {background-color: var(--color-lightblue);}
}

nav a.active img {background-color: var(--color-lightblue);}

@media (max-width: 440px) {
    nav {
        justify-content: space-between;
        gap: 20px;
        }
    nav img {width: 40px;}
}

/* =========================================
START
========================================= */

#start {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100vh;
    z-index: 1;
    background-image: var(--startseite-bg);
    background-size: cover;
    background-position: top right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.start-container {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}
    
.logo {
    width: 100%;
    max-width: 740px;
    height: 60px;
    background-image: url('img/bg/logo.webp');
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
}

.intro-txt {
    width: 100%;
    max-width: 740px;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    background-color: var(--blur-container);
}

.intro-txt p, .intro-txt h1 {text-align: left;}

.site-logo {
    width: 100%;
    max-width: 740px;
    height: 60px;
    background-image: var(--apps-logo);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

.install-wrapper {
	width: 90%;
	max-width: 200px;
	height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.install-cta-btn {
    background-color: #fff;
    color: var(--color-black);
    border: 1px solid var(--theme-text);
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .install-cta-btn:hover {background-color: var(--color-lightblue);}
}

.install-cta-btn .icon {
    font-size: 1.4em;
    font-weight: bold;
}

.install-info {color: var(--theme-text);}

#einstellungen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100vh;
    z-index: 2;
    background-color: var(--theme-bg);
    display: none;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 40px;
    padding: 20px 40px 112px 40px;
}

@media (max-width: 640px) {#einstellungen {gap: 20px;}}
@media (max-width: 500px) {#einstellungen {gap: 10px;}}
@media (max-width: 400px) {#einstellungen {gap: 0px;}}

.einstellungen-container {
    width: 100%;
    max-width: 740px;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
}

.setting-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.setting-info {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mode-label {
    font-size: 1em;
    font-weight: 500;
    color: var(--theme-text);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

@media (max-width: 400px) {
    .mode-label {font-size: 0.875em;}
}

.mode-label.active {
    opacity: 1;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {opacity: 0; width: 0; height: 0;}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {background-color: var(--color-lightblue);} 
input:checked + .slider:before {transform: translateX(22px);}

.font-size-controls {
    display: flex;
    align-items: center;
}

.font-btn {
    background-color: #fff;
    border: 1px solid var(--theme-text);
    border-radius: 3px;
    color: var(--color-black);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:first-child {
    width: 40px;
    height: 30px;
}

.font-btn:nth-child(2) {
    width: 60px;
    height: 40px;
    margin: 0 5px;
}
.font-btn:last-child {
    width: 80px;
    height: 50px;
}

.font-btn.active {background-color: var(--color-lightblue);}

.font-btn:hover:not(.active) {background-color: var(--color-lightblue);}

body.font-small {font-size: 80%;}

body.font-medium {font-size: 100%;}

body.font-large {font-size: 120%;}


.btn {
    width: auto;
    padding: 5px 15px;
    font-size: 1em;
    letter-spacing: 0.5px;
    color: var(--color-black);
    background-color: #fff;
    border: 1px solid var(--theme-text);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {background-color: var(--color-lightblue);}
}

#current-version {
    font-weight: bold;
}

.update-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    border: 1px solid #2e7d32;
    animation: pulseGreen 2s infinite;
    display: block;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

#apps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100vh;
    z-index: 3;
    background-color: var(--theme-bg);
    display: none;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 40px;
    padding: 20px 40px 112px 40px;
}

@media (max-width: 640px) {#apps {gap: 20px;}}
@media (max-width: 500px) {#apps {gap: 10px;}}
@media (max-width: 400px) {#apps {gap: 0px;}}

.app-container {
    width: 100%;
    max-width: 740px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 40px;
    justify-content: center;
}

@media (max-width: 640px) {
    .app-container{
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .app-container{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.app-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
}

.app-wrapper a {cursor: pointer;}

.app-wrapper img {
    width: 84px;
    height: auto;
    padding: 6px;
    border: 1px solid var(--theme-text);
    border-radius: 3px;
    background-color:  #fff;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
    .app-wrapper img:hover {background-color: var(--color-lightblue);}
}

.app-wrapper p {text-align: center;}

/* =========================================
SUBAPPS
========================================= */

.sub-app-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--theme-bg);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.sub-app-layer.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.sub-app-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 20px 10px 10px;
    background-color: var(--theme-text);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}

.back-btn {
    width: 48px;
    min-width: 40px;
    height: 48px;
    border: 1px solid var(--theme-bg);
    border-radius: 3px;
    color: var(--color-black);
    background-color: #fff;
    cursor: pointer;
    font-size: 20px;
    rotate: 180deg;
    padding: 8px 12px 12px 12px;    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
    .back-btn:hover {background-color: var(--color-lightblue);}
}

.sub-app-header h2 {
    color: var(--theme-bg);
    hyphens: auto; 
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.sub-app-header img {
    width: 48px;
    height: auto;
    padding: 6px;
    border: 1px solid var(--theme-bg);
    border-radius: 3px;
    background-color: var(--color-lightblue);
    box-shadow: var(--shadow);
}

.sub-app-content {
    width: 100%;
    max-width: 1200px;
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    padding-bottom: 60px;
    background-color: var(--theme-bg);
    border-left: 1px solid var(--theme-text);
    border-right: 1px solid var(--theme-text);
    border-bottom: 1px solid var(--theme-text);
    box-shadow: var(--shadow);
}

.game-app-content {
    padding: 0!important;
    padding-bottom: 0!important;
}

#game-catalog h2 {margin: 40px 20px 20px 40px}

@media (max-width: 1200px) {
    .sub-app-content {
        padding: 20px;
        padding-bottom: 60px;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    .game-app-content {
		padding: 0!important;
		padding-bottom: 0!important;
	}
	#game-catalog h2 {margin: 20px}
}

.info-box {
    width: 100%;
    height: auto;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 6px;
    background-color: var(--theme-text);
    color: var(--theme-bg);
    margin-bottom: 30px;
}

.info-text {
    width: auto;
    max-width: 100%;

}

@media (max-width: 400px) {
   .info-text {font-size: 0.875em;}
}

.info-symbol {
    width: auto;
    max-width: 100%;
    font-size: 1em;
    margin-right: 6px;
    border: 2px solid var(--theme-bg);
    border-radius: 50%;
    padding: 1px 10px;

}

.info-box a {
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 2px;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .info-box a:hover {text-decoration: underline;}
}

/* =========================================
TARIFLOHN
========================================= */

#app-tariflohn-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
	padding: 0 10px;
}

#tarif-content-wrapper {
    display: none; 
    animation: fadeIn 0.3s ease-in;
}

.tarif-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 30px 0;
    background-color: var(--theme-bg);
}

.input-label {
    font-size: 1em;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 5px;
    display: block;
}

.app-select {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    border: 1px solid var(--theme-text);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    border-radius: 3px;
    font-size: 1.1em;
    font-family: 'Raleway', sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--theme-text) 50%),
                      linear-gradient(135deg, var(--theme-text) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 16px) calc(1em + 2px);
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
}

@media (max-width: 440px) {
    .app-select {font-size: 0.875em;}
}

#tarif-content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#tarif-content-wrapper.loading {
    opacity: 0;
    transform: translateY(10px);
}

.vertical-table-wrapper h2 {
    width: 100%;
    height: auto;
    background-color: var(--color-lightblue);
    color: var(--color-black);
    padding: 10px;
}

.vertical-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.vertical-table a {
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    color: var(--theme-text);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .vertical-table a:hover {text-decoration: underline;}
}

.vertical-table td {
    font-size: 1em;
    height: 40px;
    padding: 0px 10px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    vertical-align: middle;
}

.vertical-table td:first-child {
    font-weight: bold;
    color: var(--theme-text);
    width: 50%;
}

.vertical-table td:last-child {
    text-align: right;
    color: var(--theme-text);
}

.vertical-table tr td.table-sub-header {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.875em;
    font-weight: normal;
    letter-spacing: 1px;
    padding: 15px 10px;
    color: #808080;
    cursor: default;
    background-color: transparent;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

@media (max-width: 460px) {
	.vertical-table td {font-size: 0.875em;}
    .vertical-table td {padding: 10px 4px;}
    .vertical-table td:first-child {
        width: 35%; 
        white-space: normal;
        hyphens: auto;
    }
    .vertical-table td:last-child {word-break: break-word;}
}

.vertical-table tr:not(.is-header):hover {
    background-color: rgba(128, 128, 128, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-end-box {
	width: 100%;
	height: auto;
	background-color: var(--color-lightblue);
	color: var(--color-black);
	margin: 40px 0 5px 0;
	padding: 20px;
    font-size: 0.875em;
}

.info-end-box ul {
    list-style-type: none;
    margin: 10px 0;
}

.info-end-box li {
    padding: 5px 0;
    margin: 0;
}


.tarife-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 10px;
}

.tv-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 20px 0;
    background-color: var(--theme-bg);
}

.input-tv-label {
    font-size: 1em;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 5px;
    display: block;
}

.tv-card-header {
    width: 100%;
    height: auto;
    padding: 10px;
    text-align: left;
    background-color: var(--color-lightblue);
    color: var(--color-black);
}

.tv-card {
    width: 100%;
    background-color: var(--theme-bg);
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 3px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tv-header {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    padding-bottom: 10px;
}

.tv-title {
    display: block;
    font-size: 1em;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 5px;
    font-family: 'Raleway', sans-serif;
}

.tv-subtitle {
    font-size: 0.875em;
    font-family: 'Raleway', sans-serif;
}

.accordion-btn {
    background-color: rgba(128, 128, 128, 0.15);
    color: var(--theme-text);
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    border-radius: 3px;
    font-size: 0.875em;
    transition: 0.3s;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn::after {
    content: '+';
    font-size: 1.5em;
    float: right;
    margin-left: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

.accordion-btn.active::after {content: '-';}

.accordion-panel {
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 5px;
}

.accordion-panel p {
    margin: 0;
    padding: 15px 0;
    font-size: 1em;
    line-height: 1.5;
}

.tv-link-btn {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-size: 0.875em;
    font-weight: bold;
    font-family: 'Raleway', sans-serif;
    background-color: #fff;
    color: var(--color-black);
    border: 1px solid var(--theme-text);
    padding: 8px 15px;
    border-radius: 3px;
    transition: all 0.2s;
    width: auto;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .tv-link-btn:hover {
        background-color: var(--color-lightblue);
        color: var(--color-black);
    }
}

@media (max-width: 440px) {
    .tv-title, .accordion-panel p {font-size: 0.875em;}
}


.quelle-link {
    color: var(--theme-text);
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .quelle-link:hover {text-decoration: underline;}
}

#tv-content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
}

#tv-content-wrapper.loading {
    opacity: 0;
    transform: translateY(10px);
}

.qualifikationen-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 10px 0 30px 0;
}

.quali-intro-box {margin-bottom: 10px;}


.intro-headline {margin-bottom: 10px;}

.career-paths {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.path-card {
    background-color: rgba(128, 128, 128, 0.15);
    padding: 15px;
}

.path-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
}

.path-icon {font-size: 1.5em;}

.path-title {
    font-weight: bold;
    color: var(--theme-text);
    font-size: 1em;
}

.path-card p {
    font-size: 0.875em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--theme-text);
}

.path-benefit {
    margin-top: 10px;
    background-color: #eefcf1;
    color: var(--color-black);
    padding: 8px;
    border-radius: 3px;
    font-size: 0.875em;
    line-height: 1.5;
    letter-spacing: 0.25px;
    border-left: 4px solid #2e7d32;
}

@media (max-width: 440px) {
    .path-icon {font-size: 1em;}
    .path-title {font-size: 0.875em;}
}

@media (min-width: 600px) {
    .career-paths {flex-direction: row;}
    .path-card {flex: 1;}
}

.quali-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quali-section-header {
    background-color: var(--color-lightblue);
    color: var(--color-black);
    padding: 10px 15px;
    font-weight: bold;
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quali-card {
    background-color: var(--theme-bg);
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-left: 4px solid var(--theme-text);
    border-radius: 3px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .quali-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }
}

.quali-title {
    color: var(--theme-text);
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
}

.quali-desc {
    color: var(--theme-text);
    font-size: 0.875em;
    line-height: 1.5;
    margin: 0;
}

.highlight {font-weight: bold;}

.info-note {
    display: block;
    margin-top: 8px;
    font-size: 0.875em;
    color: var(--theme-text);
    font-style: italic;
}

.quali-list-card {
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 3px;
    padding: 15px;
}

.quali-list-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.quali-list-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 1em;
    color: var(--theme-text);
    display: flex;
    align-items: center;
}

.quali-list-card li::before {
    content: '-';
    color: var(--theme-text);
    margin-right: 10px;
    font-size: 1.2em;
}

.quali-list-card .info-note {
    display: block;
    margin-top: 15px;
    font-size: 0.75em;
    color: var(--theme-text);
    font-style: italic;
}

@media (max-width: 440px) {
    .quali-section-header, .quali-title, .quali-desc, .quali-list-card li {font-size: 0.875em;}
}

/* =========================================
NEWSLETTER
========================================= */

.nl-info-text {
    margin: 15px 0 25px 0;
    font-size: 0.875em;
    line-height: 1.5;
}

.newsletter-header {
    width: 100%;
    text-align: center;
    color: var(--theme-text);
    opacity: 0.1;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1;
    white-space: nowrap;
    font-size: min(8vw, 160px);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

.nl-hidden-trap {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.nl-checkbox-group {
    width: 100%;
    height: auto;
    margin: 15px 0;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nl-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: default;
}

.nl-checkbox-group input[type="checkbox"] {
    width: 30px; height: 30px;
    cursor: pointer;
}

.ds-text {line-height: 30px;}

.nl-link {
    color: var(--theme-text);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .nl-link:hover {text-decoration: underline;}
}

.nl-captcha-group {
    margin: 25px 0 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid var(--theme-text);
    border-radius: 3px;
}

.nl-captcha-group label {
    font-size: 0.875em;
    font-weight: bold;
    color: #333;
}

.nl-captcha-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

#nl-captcha-question {
    font-size: 1.3em;
    font-weight: bold;
    white-space: nowrap;
    color: var(--color-black);
}

#nl-submit-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

#nl-name, #nl-email {
    margin-bottom: 15px;
}

#nl-captcha-answer::-webkit-outer-spin-button,
#nl-captcha-answer::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#nl-captcha-answer {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 100%;
    max-width: 100px;
    text-align: center;
}

/* =========================================
FIRMENRANKING
========================================= */

.firmenranking-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 3px;
    border: 1px solid var(--theme-text);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.ranking-table tr {
    border-bottom: 1px solid var(--theme-text);
}

.ranking-table th {
    background-color: var(--theme-text);
    color: var(--theme-bg);
    padding: 12px 8px;
    text-align: left;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.ranking-table th.sortable {
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .ranking-table th.sortable:hover {
        background-color: var(--color-lightblue);
        color: var(--color-black);
    }
}

.sort-arrow {
    display: inline-block;
    width: 10px;
    text-align: center;
    font-size: 1em;
    margin-left: 5px;
}

.ranking-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(128,128,128, 0.2);
}

.ranking-table tr:nth-child(even) {
    background-color: rgba(128,128,128, 0.05);
}

.rank-col {
    width: 40px;
    text-align: center!important;
    font-weight: bold;
    color: #888;
}

.ranking-table th:nth-child(2),
.ranking-table th:nth-child(3),
.ranking-table th:nth-child(4),
 .ranking-table th:nth-child(5) {
    border-left: 1px solid rgba(128,128,128, 0.6);
 }

.ranking-table td:nth-child(3),
.ranking-table td:nth-child(4),
.ranking-table td:nth-child(5) {
    text-align: left;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .ranking-table th,
    .ranking-table td {font-size: 0.875em;}
}

.ranking-table th:nth-child(3), .ranking-table td:nth-child(3),
.ranking-table th:nth-child(4), .ranking-table td:nth-child(4),
.ranking-table th:nth-child(5), .ranking-table td:nth-child(5)
{
    width: 1%;
    white-space: nowrap;
}

.ranking-table th:nth-child(2), 
.ranking-table td:nth-child(2) {
    width: auto; 
}

.firmenranking-wrapper a {
    color: var(--theme-text);
    text-decoration: none;
    transition: all 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .firmenranking-wrapper a:hover {text-decoration: underline;}
}

/* =========================================
ARBEITGEBERBEWERTUNGEN
========================================= */

.ag-bewertungen-intro {margin: 20px 0 30px 0;}

.ag-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.ag-card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    overflow: hidden;
    color: var(--color-black);
}

.ag-card-header {
    padding: 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

@media (hover: hover) and (pointer: fine) {
    .ag-card-header:hover {background: #f0f0f0;}
}

.ag-title {
    font-weight: bold;
    font-size: 1em;
}

.ag-stars-overall {
    color: #f39c12;
    font-size: 1.2em;
}

.ag-reviews-count {
    font-size: 0.8em;
    color: #7f8c8d;
    white-space: nowrap;
}

.ag-card-details {
    padding: 15px;
    display: none;
    background: #fff;
}

.no-stars-yet {font-size: 0.875em;}

.ag-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.ag-unrated {
    padding-left: 5px; 
    color: #f57c00;
    font-size: 0.875em;
    cursor: pointer;
    text-align: right;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ag-unrated:hover {text-decoration: underline;}
}

.ag-modal-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.ag-modal-content {
    background-color: #fff;
    color: #333;
    margin: 10px;
    padding: 20px;
    border-radius: 3px;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ag-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .ag-modal-close:hover {color: #000;}
}

.bewertung-info {
    font-size: 0.875em;
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    margin: 20px 0;
    text-align: center;
}

.ag-select-header {font-size: 1em;}

#ag-select {margin: 5px 0 10px 0;}

.ag-rating-group {
    margin-top: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.ag-rating-group > label { font-weight: bold; font-size: 0.9em; }

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input { display: none; }
.star-rating label {
    font-size: 2em;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f39c12;
}

.app-btn {
    width:100%;
    padding: 10px 5px;
    margin-top:15px;
    background: #fff;
    color: var(--color-black);
    border: 1px solid var(--color-black);
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .app-btn:hover {background: var(--color-lightblue);}
}


@media (max-width: 440px) {
    .ag-title, .ag-detail-row, .ag-select-header,
    .ag-rating-group > label {font-size: 0.875em;}
}

.bewertungen-checkbox-group {
    width: 100%;
    height: auto;
    margin: 20px 0 15px 0;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.bewertungen-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.bewertungen-checkbox-group .bewertungen-checkbox {cursor: pointer;}

.bewertungen-checkbox-text {line-height: 20px;}

/* =========================================
OBJEKTBEWERTUNGEN
========================================= */

.obj-bewertungen-intro {margin: 20px 0 30px 0;}

.obj-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.obj-card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    overflow: hidden;
    color: var(--color-black);
}

.obj-card-header {
    padding: 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

@media (hover: hover) and (pointer: fine) {
    .obj-card-header:hover {background: #f0f0f0;}
}

.obj-title {
    font-weight: bold;
    font-size: 1em;
}

.obj-stadt {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: normal;
}

.obj-stars-overall {
    color: #f39c12;
    font-size: 1.2em;
}

.obj-reviews-count {
    font-size: 0.8em;
    color: #7f8c8d;
    white-space: nowrap;
}

.obj-card-details {
    padding: 15px;
    display: none;
    background: #fff;
}

.obj-detail-row {
    display: flex;
    justify-content: space-between; 
    margin-bottom: 5px;
    font-size: 0.9em;
}

.obj-unrated {
    padding-left: 5px;
    color: #e67e22;
    font-size: 0.875em;
    cursor: pointer;
    text-align: right;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .obj-unrated:hover {text-decoration: underline;}
}

.obj-modal-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.obj-modal-content {
    background-color: #fff;
    color: #333;
    margin: 10px;
    padding: 20px;
    border-radius: 3px;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

.obj-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .obj-modal-close:hover {color: #000;}
}

.obj-select-header {font-size: 1em;}

#obj-select {margin: 5px 0 10px 0;}

.obj-rating-group {
    margin-top: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.obj-rating-group > label {font-weight: bold; font-size: 0.9em;}

@media (max-width: 440px) {
    .obj-title, .obj-detail-row, .obj-select-header, .obj-rating-group > label {font-size: 0.875em;}
}

/* =========================================
SCHULUNGEN
========================================= */

.schulung-hero {
    background: linear-gradient(135deg, rgba(49, 142, 222, 0.1), rgba(49, 142, 222, 0.05));
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.trust-badges span {
    background: var(--theme-bg);
    color: var(--theme-text);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schulung-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.schulung-card {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border, #ccc);
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .schulung-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }
}

.card-ribbon {
    position: absolute;
    top: 15px;
    right: -45px;
    width: 160px;
    text-align: center;
    background: #e74c3c;
    color: white;
    padding: 15px 0;
    font-size: 0.8em;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.premium-ribbon {
    background: #f39c12;
}

.expert-ribbon {
    background: #228b22;
}

.card-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.level-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.level-1 { background: #e8f5e9; color: #2e7d32; }
.level-2 { background: #e3f2fd; color: #1565c0; }
.level-3 { background: #fff8e1; color: #f57f17; } 

.nachtschicht .level-1 { background: #1b5e20; color: #c8e6c9; }
.nachtschicht .level-2 { background: #0d47a1; color: #bbdefb; }
.nachtschicht .level-3 { background: #f57f17; color: #fff8e1; }

.card-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--theme-text);
    line-height: 1.3;
}

.card-body {
    padding: 15px 20px 20px 20px;
}

.card-intro {
    font-size: 0.95em;
    color: var(--theme-text);
    opacity: 0.85;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.card-features li {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: var(--theme-text);
    display: flex;
    align-items: flex-start;
}

.card-features li::before {
    content: "✔";
    color: var(--color-primary, #1565c0); 
    margin-right: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

.schulung-card.bestseller .card-features li::before {
    color: #2e7d32; 
}

.schulung-card.expert .card-features li::before {
    color: #f57f17; 
}


.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 12px;
    font-size: 1em;
    border-radius: 3px;
    text-decoration: none;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
}

.btn-group-vertical a:last-child {
    margin-bottom: 0;
}

/* =========================================
JOBBÖRSE
========================================= */

.jobboerse-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
}

#secareer-jobs-container {
    width: 100%;
    height: auto;
}

#secareer-jobs-container hr {margin-bottom: 10px;}
.jobs-loading-text {
    width: 100%;
    text-align: center;
}

.search-container {width: 100%;}

/* =========================================
GEHALTSRECHNER & STUNDENZETTEL
========================================= */

.sz-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
}

.sz-section {
    background-color: var(--theme-bg);
    border: 1px solid rgba(128, 128, 128, 0.15);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sz-section-title {
    background-color: var(--color-lightblue);
    color: var(--color-black);
    padding: 10px;
    margin: -20px -20px 20px -20px;
    font-size: 1.1em;
}

.sz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .sz-grid {grid-template-columns: 1fr 1fr;}
}

.sz-input-group label {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 5px;
}

.sz-checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-weight: normal !important;
    margin-top: 5px;
    cursor: pointer;
}

#sz-at-zuschlag, #sz-ol-zuschlag {cursor: pointer;}

.sz-zulage-box {
    display: flex;
    flex-direction: column;
}

.sz-tarif-matrix {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(128, 128, 128, 0.05);
    padding: 15px; 
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 3px;
}

.sz-matrix-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    flex-wrap: wrap; 
}

.sz-row-label {width: 60px; font-weight: bold;}
.sz-time-label {font-size: 0.9em; color: #666;}

.app-input-sm {
    width: 55px;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid var(--theme-text);
    background: var(--theme-bg);
    color: var(--theme-text);
    border-radius: 3px;
}

.app-input-time {
    width: 65px;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--theme-text);
    background: var(--theme-bg);
    color: var(--theme-text);
    border-radius: 3px;
}

.sz-split-box {display: flex; gap: 10px;}
.sz-split-item {display: flex; align-items: center; gap: 5px;}

.sz-quick-actions {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    margin: 30px 0 15px 0;
}
.sz-quick-actions .app-input { width: 100%; min-width: 160px; max-width: 380px; margin: 0; }
.sz-quick-actions .app-btn {
    width: 100%;
    max-width: 140px;
    height: 45px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 400px) {
    .sz-quick-actions .app-btn {font-size: 0.75em;}
}

#sz-monat-ueberschrift {margin: 10px 0;}

.sz-table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ccc;
    padding-bottom: 8px;
    background-color: var(--color-white);
}

.sz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    text-align: center;
    min-width: 800px; 
}

.sz-table th, .sz-table td {
    border: 1px solid #aaa;
    padding: 4px;
    vertical-align: middle;
}

.sz-table th {
    background-color: #eee;
    color: #000;
    padding: 8px 4px;

}

.sz-table input, .sz-table select {
    width: 100%;
    border: 1px solid #ccc;
    padding: 6px 2px;
    border-radius: 3px;
    text-align: center;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

.sz-sticky-col {
    position: sticky;
    left: 0;
    background-color: #eee;
    z-index: 2;
    box-shadow: inset -0.2px 0 0 #888 !important;
}
.sz-table td.sz-sticky-col {
    background-color: #fff;
    font-weight: bold;
    color: var(--color-black);
    font-size: 0.875em;
}
.sz-row-weekend td,
.sz-row-weekend td.sz-sticky-col {background-color: #eee;}

.sz-status {cursor: pointer}

.res-std::-webkit-inner-spin-button,
.res-std::-webkit-outer-spin-button,
.res-nacht::-webkit-inner-spin-button,
.res-nacht::-webkit-outer-spin-button,
.res-so::-webkit-inner-spin-button,
.res-so::-webkit-outer-spin-button,
.res-fei::-webkit-inner-spin-button,
.res-fei::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.res-std, 
.res-nacht, 
.res-so, 
.res-fei {
    cursor: not-allowed;
    -moz-appearance: textfield;
    appearance: textfield;
    user-select: none;
    caret-color: transparent;
}

.res-std:focus, 
.res-nacht:focus, 
.res-so:focus, 
.res-fei:focus {outline: none;}

.sz-warn-input {
    background-color: #ffebee !important;
    border-color: #d32f2f !important;
    color: #d32f2f !important;
}

.sz-ausfall-box {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #3498db;
    border-radius: 3px;
}

.sz-ausfall-box label,
.sz-ausfall-box p {color: var(--color-black);}

.sz-summary-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(128,128,128, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(128,128,128, 0.3);
}

.sz-summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
}

.sz-summary-item {
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #ccc;
    flex: 1;
    width: 100%;
    min-width: 140px;
    max-width: 140px;
    overflow-wrap: break-word; 
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.sz-result-card {
    background: #333;
    color: #fff;
    padding: 20px;
    border-radius: 3px;
    text-align: right;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sz-result-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffcc00;
}

.sz-total-line {
    font-size: 1.2em;
    font-weight: bold;
    border-top: 1px solid #555;
    margin-top: 10px;
    padding-top: 10px;
}

.sz-print-header {display: none;}

@media print {
   
    body.print-gehalt > div:not(#app-gehaltsrechner) {display: none !important;}

    body.print-gehalt nav, 
    body.print-gehalt .no-print, 
    body.print-gehalt .sub-app-header {display: none !important;}

    .sub-app-layer {
        position: static !important;
        height: auto !important;
        transform: none !important;
        background-color: #fff !important;
    }
    
    .sub-app-content {
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .sz-section {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sz-print-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }
    .sz-print-header h2 {margin: 0; font-size: 18pt;}
    .sz-print-header p {margin: 5px 0 0 0; font-size: 11pt;}

    .sz-table-responsive {
        border: none !important;
        overflow: visible !important;
    }

    .sz-table {
        width: 100% !important;
        font-size: 8pt !important;
        border: 2px solid #000 !important;
    }

    .sz-sticky-col {
        position: static !important;
        box-shadow: none !important;
    }

    .sz-table th, .sz-table td {
        border: 1px solid #000 !important;
        padding: 4px 2px !important;
    }

    .sz-table input {
        border: none !important;
        background: transparent !important;
        font-size: 8pt !important;
        padding: 0 !important;
        color: #000 !important;
    }

    body.print-gehalt .sz-print-status {
        display: block !important;
        font-size: 8pt !important;
    }

    .sz-row-weekend td {
        background-color: #eee !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sz-summary-box {
        margin-top: 15px !important;
        border: 1px solid #000 !important;
        background: transparent !important;
    }
    .sz-summary-item { border: 1px solid #000 !important; }

    .sz-print-footer {
        display: block !important;
        page-break-inside: avoid;
    }

    #sz-summary-area {
        break-before: auto;
        page-break-before: auto; 
        margin-top: 15px !important; 
        page-break-inside: avoid;
    }

    #sz-brutto-vorschau {
        break-before: page;
        page-break-before: always; 
        margin-top: 0 !important; 

        color: #000 !important;
        background: transparent !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid; 
    }
    
    #sz-brutto-vorschau h3 {color: #000 !important;}

    #sz-brutto-vorschau div {
        background: #eee !important;
        border-color: #000 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.print-gehalt .sz-wrapper::after {
        content: "erstellt mit dem Gehaltsrechner von WERKSCHUTZ.iNFO\AStundenlöhne, Tarifverträge, Dienstplan Maker und vieles mehr findest Du auf unserer Website: werkschutz.info";
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%!important;
        text-align: center;
        font-size: 9pt !important;
        letter-spacing: 1px;
        color: rgba(0, 0, 0, 1) !important;
        z-index: 9999;
        pointer-events: none;
        white-space: pre-wrap !important;
        line-height: 1.4 !important;
    }

    body.print-gehalt .sz-table input[type="number"]::-webkit-inner-spin-button,
    body.print-gehalt .sz-table input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
        display: none !important;
    }

    body.print-gehalt .sz-table input[type="number"] {
        -moz-appearance: textfield !important;
        appearance: textfield !important;
    }
       
    body.print-gehalt .sz-table input::placeholder,
    body.print-gehalt .sz-table input::-webkit-input-placeholder,
    body.print-gehalt .sz-table input::-moz-placeholder,
    body.print-gehalt .sz-table input:-ms-input-placeholder {
        color: transparent !important;
        opacity: 0 !important;
        -webkit-text-fill-color: transparent !important;
    }
}

.sz-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.sz-modal-content {
    background: var(--theme-bg, #fff);
    color: var(--theme-text, #000);
    padding: 25px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

.sz-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .sz-modal-close:hover {color: #000;}
}

.sz-netto-box {
    background: rgba(128,128,128,0.1);
    border-left: 4px solid var(--color-lightblue);
    padding: 15px;
    margin-top: 15px;
    border-radius: 3px;
}

.sz-copy-group {
    display: flex; gap: 10px; margin-top: 8px;
}

.sz-copy-group input {
    flex: 1;
    min-width: 0;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f9f9f9;
    color: #333;
    text-align: right;
}

.sz-copy-group button {
    margin: 0; width: 130px;
}

.sz-btn-copied {
    background: #2e7d32 !important;
    color: white !important;
    border-color: #2e7d32 !important;
}

@media (max-width: 400px) {
    .sz-copy-group {flex-direction: column;}
    .sz-copy-group button {width: 100%;}
}

/* =========================================
LOHNVERGLEICH
========================================= */

.gehalt-check-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
}

.gehalt-check-wrapper .tarif-controls {padding: 10px 0;}

#gehalt-ergebnis-area {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 20px;
}

.gehalt-info-box {
	width: 100%;
	height: auto;
	background-color: var(--color-lightblue);
	color: var(--color-black);
	padding: 20px;
    font-size: 0.875em;
    margin-bottom: 20px;
}

.lohn-cell {
    position: relative;
    padding-bottom: 15px !important;
}

.visual-comparison {
    margin-top: 30px;
    padding: 10px 30px;
    background-color: var(--theme-bg);
    border: 1px solid var(--theme-text);
}

.visual-comparison p {
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
}

.scale-wrapper {
    margin: 40px 20px 10px 20px;
    position: relative;
    padding: 0 10px;
}

.scale-line {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #d32f2f, #2e7d32);
    border-radius: 3px;
    position: relative;
}

.marker {
    position: absolute;
    top: -20px;
    width: 4px;
    height: 15px;
    background-color: var(--theme-text);
    transform: translateX(-50%);
    transition: left 1s ease-out;
    z-index: 5;
}

.marker::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--theme-text);
}

.marker-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.8em;
    color: var(--theme-text);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.75em;
    font-weight: bold;
    line-height: 1.2;
    align-items: flex-start;
}

#scale-min {text-align: left;}
#scale-max {text-align: right;}

/* =========================================
DIENSTPLAN MAKER
========================================= */

.dp-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
}

.dp-section {
    background-color: var(--theme-bg);
    border: 1px solid rgba(128, 128, 128, 0.15);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dp-section-title {
    background-color: var(--color-lightblue);
    color: var(--color-black);
    padding: 10px;
    margin: -20px -20px 20px -20px;
    font-size: 1.1em;
}

.dp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 600px) {
.dp-grid {grid-template-columns: 1fr 1fr;}
}

.dp-input-group label {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 5px;
}

.app-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--theme-text);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    border-radius: 3px;
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    outline: none;
}

.dp-shift-card {
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-left: 4px solid var(--color-lightblue);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.dp-shift-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dp-btn-remove {
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8em;
}

.dp-days-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.dp-day-label {
    background: rgba(128,128,128, 0.1);
    border: 1px solid rgba(128,128,128, 0.3);
    padding: 5px 10px;
    font-size: 0.85em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--theme-text);
}

.dp-day-label input {display: none;}

.dp-day-label:has(input:checked) {
    background: #2e7d32;
    color: var(--theme-bg);
    border-color: var(--theme-text);
}

.dp-time-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.dp-time-group input[type="time"] {
    padding: 8px;
    border: 1px solid var(--theme-text);
    border-radius: 3px;
    background: var(--theme-bg);
    color: var(--theme-text);
}

.dp-print-container {
    background: #fff;
    color: #000;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.dp-print-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.dp-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.dp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 20px;
}

.dp-table th, .dp-table td {
    border: 1px solid #aaa;
    padding: 6px;
}

.dp-table th {
    background-color: #eee;
    font-weight: bold;
}

.dp-row-weekend {background-color: rgba(0, 0, 0, 0.05);}

.dp-warn-text {
    color: #d32f2f;
    font-weight: bold;
}

.dp-warning-box {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px;
    border-left: 4px solid #d32f2f;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 0.9em;
}

@media (max-width: 440px) {
    .dp-section-title {font-size: 1em;}
    .app-input {font-size: 0.875em!important;}
    .action-btn {font-size: 1em!important;}
    .no-print .btn {font-size: 0.875em;}
}

@media print {
    
    html, body {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: #fff !important;
        overflow: visible !important;
    }

    body.print-dienstplan > div:not(#app-dienstplan-maker) {display: none !important;}
    
    body.print-dienstplan nav,
    body.print-dienstplan .sub-app-header, 
    body.print-dienstplan .dp-wrapper, 
    body.print-dienstplan #dp-warnings, 
    body.print-dienstplan .no-print,
    body.print-dienstplan .info-end-box {display: none !important;}

    .sub-app-layer {
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        transform: none !important;
        background-color: #fff !important;
    }
    
    .sub-app-content {
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
    }

    #dp-result-area {
        margin: 0 !important;
        padding: 0 !important;
    }

    #dp-print-container {
        position: static !important; 
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-sizing: border-box !important;
        page-break-inside: avoid;
    }

    .dp-table {
        table-layout: fixed;
        width: 100% !important;
        border-collapse: collapse;
        border: 1px solid #000 !important; 
        font-size: 6pt !important;
    }

    .dp-table th, .dp-table td {
        border: 1px solid #000 !important;
        padding: 2px !important;
        text-align: center;
        overflow: hidden;
        word-wrap: break-word;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
    }

    .dp-table th:first-child, 
    .dp-table td:first-child {
        width: 32px; 
        font-size: 7pt !important;
    }

    .dp-sticky-col {
        position: static !important;
        box-shadow: none !important;
        border-right: 1px solid #aaa !important;
    }

    .dp-shift-box {
        background: transparent !important;
        border: none !important;
        border-bottom: 1px dotted #888 !important; 
        padding: 1px 0 !important;
        margin: 0 0 1px 0 !important;
        color: #000 !important;
    }
    
    .dp-shift-box:last-child {border-bottom: none !important;}
    
    .dp-shift-box strong {
        font-size: 5pt !important;
        display: block;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
    }

    .dp-shift-box span {
        font-size: 4.5pt !important;
        white-space: normal !important; 
        display: block !important;
        line-height: 1.1 !important;
    }

    .dp-row-weekend {
        background-color: #f2f2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #dp-out-title { font-size: 14pt !important; margin: 0 0 5px 0 !important; }
    #dp-out-subtitle { font-size: 10pt !important; margin: 0 0 10px 0 !important; }
    #dp-stats-area { font-size: 8pt !important; margin-top: 15px !important; page-break-inside: avoid; }
    
    * {line-height: 1.2 !important;}

    #dp-print-container::after {
        content: "erstellt mit dem Dienstplan Maker von WERKSCHUTZ.iNFO\AStundenlöhne, Tarifverträge, Gehaltsrechner und vieles mehr findest Du auf unserer Website: werkschutz.info";
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%!important;
        text-align: center;
        font-size: 9pt !important;
        letter-spacing: 1px;
        color: rgba(0, 0, 0, 1) !important;
        z-index: 9999;
        pointer-events: none;
        white-space: pre-wrap !important; 
        line-height: 1.4 !important;
    }
}

/* =========================================
SHOP / AUSRÜSTUNG / MERCHANDISE
========================================= */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.shop-card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #333;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .shop-card:hover {transform: translateY(-3px);}
}

.shop-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0; 
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-title {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    line-height: 1.2;
}

.shop-desc {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.shop-btn {
    text-align: center;
    text-decoration: none;
    font-size: 0.85em;
    padding: 8px 5px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
}

/* =========================================
GAMES
========================================= */

#game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.game-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    background-color: var(--theme-text);
    color: var(--theme-bg);
    border-radius: 3px;
    padding: 20px;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.game-overlay p {font-size: 0.875em;}

.ds-game-link {
    color: var(--theme-bg);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .ds-game-link:hover {text-decoration: underline;}
}

.game-overlay .app-btn {font-size: 1em;}

#game-player {
    position: relative;
    width: 100%;
    height: calc(100vh - 68px)!important;
    display: block;
    background: #000;
    overflow: hidden;
}

.game-close-overlay {
    position: absolute;
    top: 10px;
    right: 25px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-bottom: 2px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .game-close-overlay:hover {
        transform: scale(1.1);
        background: #d32f2f;
    }
}

#game-container {
    width: 100%;
    height: 100%;
}

.game-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
}

.game-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .game-card-mini:hover {transform: scale(1.05);}
}

.game-card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: #222;
}

.game-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-title {
    margin-top: 8px;
    font-size: 0.75em;
    font-weight: 600;
    text-align: center;
    color: var(--theme-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* =========================================
MODALS
========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: default;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    width: 90%;
    max-width: 360px;
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--theme-text);
    cursor: default;
}

.modal-overlay.show .modal-box {transform: scale(1);}

.modal-box h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.modal-box p {
    font-size: 1em;
    margin-bottom: 25px;
	white-space: pre-line;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: bold;
    flex: 1;
    background-color: #fff;
    color: var(--color-black);
    border: 1px solid var(--theme-text);
}

@media (hover: hover) and (pointer: fine) {
    .modal-btn:hover {background-color: var(--color-lightblue);}
}

.modal-box.large {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    cursor: default;
}

.legal-text-content {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.legal-box {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.legal-box h3 {
    font-size: 1em;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.legal-box p {
    font-size: 0.875em;
    white-space: normal;
    margin: 0;
}

.legal-box a {
    font-size: 1em;
    color: var(--theme-text);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .legal-text-content a:hover {text-decoration: underline;}
}

.legal-text-content button {margin-top: 20px;}

@media (max-width: 440px) {
    .legal-box h2, .legal-box h3 {font-size: 0.875em;}
    .legal-box p {font-size: 0.6em;}
}

.app-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.app-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 3px;
    border: 1px solid var(--color-black);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.app-modal-content h3 {
    margin-top: 0;
    color: var(--color-black);
}

.app-modal-content p {
    margin: 10px 0;
    line-height: 1.5;
    color: var(--color-black);
}

.dp-holiday-btn-choice {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    margin-top: 25px;
}

#dp-btn-holiday-yes,
#dp-btn-holiday-no {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 160px;
    height: 60px;
    padding: 10px;
    color: white; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
}

#dp-btn-holiday-yes {
    background: #2e7d32; 
}

#dp-btn-holiday-no {
    background: #d32f2f; 
}

/* =========================================
NOSCRIPT
========================================= */
   
.no-js-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #001429;
    color: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    font-family: 'Raleway', sans-serif;
}
.no-js-box {
    width: 90%;
    max-width: 500px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.no-js-icon {
    font-size: 40px;
    display: block;
}