:root {
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #64748b;
    --color-accent: #10b981;
    --color-accent-hover: #059669;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --sidebar-width: 280px;
    --header-height: 64px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Track (Hintergrund der Scrollbar) */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 0px;
    background-color: #0f172a;
}

/* Die Scrollbar selbst */
::-webkit-scrollbar {
    width: 12px;
    background-color: #1e293bb0;
}

/* Der Scrollbar-Daumen (der bewegliche Teil) */
::-webkit-scrollbar-thumb {
    border-radius: 0px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #1e293bb0;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #0a0f1f 100%);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-bg-tertiary);
    transform: translateX(-100%);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-bg-tertiary);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent) 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-menu {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.sidebar-nav {
    flex: 1;
    /*padding: 1rem;*/
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}
a.spa-link{
	display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
	
}

a.spa-link:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    transform: translateX(4px);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg-tertiary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
}

.user-details {
    flex: 1;
}

.user-email {
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.main-wrapper {
    min-height: 100vh;
    transition: margin-left var(--transition-speed);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-bg-tertiary);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--color-bg-tertiary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--color-bg-tertiary);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: var(--color-bg-tertiary);
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

.main-content {
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.loading {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-bg-tertiary);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.game-card {
    position: relative;
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(16, 185, 129, 0.2);
}

.game-card-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-card-image {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 70%, rgba(15, 23, 42, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.game-card:hover .play-btn {
    transform: translateY(0);
}
/* Container für Online-Spieler-Anzeige */
.game-card-online {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    z-index: 10;
}

/* Grüner Punkt */
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    background-color: #00ff29; /* wird im JS dynamisch überschrieben */
}

/* Anzahl Spieler */
.online-count {
    font-weight: bold;
}

.play-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    color: white;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: var(--color-danger);
    color: white;
    transform: scale(1.1);
}

.favorite-btn.active svg {
    fill: currentColor;
}

.game-card-content {
    padding: 1rem;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-provider {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}



footer {
  color: #ccc;
  padding: 3rem 1.5rem 1rem;
  font-family: "Poppins", sans-serif;
  background: var(--color-bg-secondary);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

/* Brand */
.footer-brand h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;

}

.footer-social a {
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #00adb5;
  transform: translateY(-3px);
}

/* Links */
.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #059669;
}

/* Kontaktinfos */
.footer-contact i {
  color: #00adb5;
  margin-right: 0.5rem;
}

/* Newsletter */
.footer-newsletter p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 6px;
  background: #334155;
  color: #fff;
  outline: none;
}

.footer-newsletter input::placeholder {
  color: #777;
}

.footer-newsletter button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: #059669;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.footer-newsletter button:hover {
  background: #10b981;
  transform: translateY(-2px);
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 3rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #777;
}

.footer-legal {
  display: flex;
  gap: 1.2rem;
}

.footer-legal a {
  color: #777;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #00adb5;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }
  .footer-newsletter form {
    flex-direction: column;
    align-items: stretch;
  }
}



/*Contact PAge Design */


.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

/* Info-Bereich */
.contact-info h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #aaa;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.info-list li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.info-list i {
  color: #00adb5;
  margin-right: 0.5rem;
}

/* Socials */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #00adb5;
  transform: translateY(-3px);
}

/* Formular */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.form-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form button {
  align-self: flex-start;
  background: #10b981;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #06c1c9;
  transform: translateY(-2px);
}

/* Karte */
.contact-map {
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form form {
    padding: 1.5rem;
  }
  .contact-info {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .contact-form button {
    align-self: center;
  }
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    width: 100%;
    max-width: 480px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-large .modal-content {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    background: var(--color-bg-tertiary);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    padding: 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    color: #fca5a5;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    opacity: 0.8;
}

.btn-full {
    width: 100%;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-accent);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.game-modal-header {
    margin-bottom: 1.5rem;
}

.game-provider {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.game-container {
    aspect-ratio: 16 / 9;
    background: var(--color-bg-primary);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.game-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem;
}

.game-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.game-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .header-search {
        max-width: none;
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}




.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-bg-tertiary);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menü Button */
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle:hover {
    background: var(--color-bg-tertiary);
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Suchfeld */
.header-search {
    position: relative;
    flex: 1;
    max-width: 500px;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--color-bg-tertiary);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.search-input::placeholder {
    color: var(--color-text-muted);
}

/* Header Aktionen */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Favoriten Button */
.btn-icon {
    background: var(--color-bg-tertiary);
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-icon:hover {
    background: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

/* Wallet Anzeige */
.wallet-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-tertiary);
    border-radius: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    height: calc(var(--header-height)/1.5);
}

.wallet-display span {
    font-weight: 600;
}

.btn-wallet {
    background: var(--color-accent);
    border: none;
    color: white;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.2s;
}
.btn-wallet:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

/* Responsives Verhalten */
@media (max-width: 1024px) {
    .header-search {
        max-width: 350px;
    }
}
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    .header-actions {
        margin-left: auto;
    }
}
@media (max-width: 480px) {
    .header-search {
        max-width: 100%;
    }
    .wallet-display span {
        font-size: 0.75rem;
    }
    .btn-wallet {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===== PLAY PAGE STYLING ===== */
.play-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    max-width: 1400px;
    animation: fadeIn 0.4s ease;
}

/* Header oben */
.play-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-back {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--color-accent);
    color: white;
    transform: translateX(-3px);
}

/* Infos zum Spiel */
.play-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.play-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.play-provider {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.play-mode {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-demo {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent);
}

.mode-real {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

/* Spielfeld */
.play-game-container {
    width: 100%;
    background: var(--color-bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.play-placeholder {
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem;
}

.play-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* Footer mit Beschreibung und Buttons */
.play-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.play-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.btn-success {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    /* display: flex; */
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

/* RESPONSIVE ANPASSUNGEN */
@media (max-width: 992px) {
    .play-page {
        padding: 1.5rem;
    }
    .play-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .play-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .play-game-container {
        aspect-ratio: 4 / 3;
    }
    .btn-success {
        width: auto;
        justify-content: center;
    }
}
