:root {
  --bg-primary: #23283b;
  --bg-secondary: #2e3451;
  --text-primary: #f3f6fa;
  --accent: #4c8bf5;
  --accent-discord: #5865F2;
  --accent-email: #4C6B44;
  --card-bg: #23283b;
  --inactive: #3E4451;
}

/* === Layout & Body === */
html, body {
  height: 100%;
  min-height: 100vh;
}
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
  max-width: 1100px;
  margin: 2.5rem auto 0 auto;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  box-shadow: 0 4px 24px #0003;
}

/* === Header & Navigation === */
header {
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px #0004;
  padding: 0;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}
.main-logo {
  height: 48px;
  width: 48px;
  border-radius: 10px;
  background: #222;
}
header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1.5px;
}
nav {
  border-top: 1px solid var(--inactive);
  background: var(--bg-secondary);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 2rem;
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
}
nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 1.08rem;
}
nav a.active,
nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* === Support Center Cards === */
.support-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.support-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.support-options {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.support-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 290px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.support-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px #0004;
}
.support-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 12px;
  object-fit: cover;
}
.support-card h3 {
  margin: 0.5rem 0 0.7rem 0;
  font-size: 1.2rem;
}
.support-card .fastest {
  color: var(--accent-discord);
  font-size: 0.9em;
  font-weight: bold;
}
.support-card p {
  color: #c7d0e0;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.support-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
  margin-top: auto;
}
.support-btn.discord {
  background: var(--accent-discord);
}
.support-btn.email {
  background: var(--accent-email);
}
.support-btn:hover {
  filter: brightness(1.1);
}
.support-btn:active {
  transform: scale(0.97);
}

/* === Support Form & Feedback === */
.support-input {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--inactive, #444);
  border-radius: 7px;
  background: #23283b;
  color: var(--text-primary, #fff);
  font-size: 1.08rem;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.support-input:focus {
  border: 1.5px solid var(--accent, #4ea1ff);
  box-shadow: 0 0 0 2px #4c8bf555;
}
#mail-support-error, #mail-support-success {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}
#mail-support-error {
  color: #e53935;
}
#mail-support-success {
  color: #4caf50;
}
.copy-discord, .copy-mail {
  margin-left: 8px;
  font-size: 1.1em;
  cursor: pointer;
  background: none;
  border: none;
}
.copy-discord { color: #5865F2; }
.copy-discord.copied,
.copy-mail.copied { color: #4caf50; }
.copy-mail { color: #4c8bf5; }

/* === Account Popup === */
.account-nav {
  margin-left: auto;
}
#account-popup {
  position: fixed;
  top: 90px;
  right: 40px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 18px;
  box-shadow: 0 8px 32px #000b, 0 1.5px 8px #4c8bf555;
  padding: 2.2rem 2.5rem 1.7rem 2.5rem;
  z-index: 1002;
  min-width: 260px;
  max-width: 95vw;
  display: block;
  border: 1.5px solid var(--accent);
  animation: popup-fadein 0.18s;
}
#account-popup .popup-content {
  position: relative;
}
#close-popup {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--inactive);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
  transition: background 0.2s;
}
#close-popup:hover {
  background: var(--accent);
}
.popup-btn {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.popup-btn:hover {
  background: #2563eb;
  box-shadow: 0 4px 16px #0004;
}
#account-popup h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}
#account-popup .popup-content > div {
  text-align: center;
}
.hidden {
  display: none !important;
}

/* === Modal (Live Chat) === */
#live-chat-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #0008;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#live-chat-modal .modal-content {
  background: var(--bg-secondary,#23283b);
  padding: 2rem;
  border-radius: 12px;
  max-width: 350px;
  text-align: center;
}
#close-chat-modal {
  float: right;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* === Footer === */
.site-footer {
  background: var(--bg-secondary, #2e3451);
  color: var(--inactive, #3E4451);
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
  border-top: 1.5px solid var(--inactive, #3E4451);
  margin-top: 3rem;
  flex-shrink: 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-primary, #f3f6fa);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-primary, #f3f6fa);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent, #4c8bf5);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social img {
  filter: brightness(0.9);
  transition: filter 0.2s;
}
.footer-social img:hover {
  filter: brightness(1.2);
}
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--inactive, #3E4451);
}

/* === Responsive === */
@media (max-width: 700px) {
  main {
    padding: 1rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .support-options {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .support-card {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .logo-title {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 0 1rem;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  main {
    padding: 1rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .support-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
  }
  .support-card {
    width: 45vw !important;
    min-width: 220px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .logo-title {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
}

/* === Animation === */
@keyframes popup-fadein {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Cookie-Banner für Support */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-secondary, #2e3451);
  color: var(--text-primary, #f3f6fa);
  z-index: 9999;
  padding: 1.2rem 0.5rem;
  box-shadow: 0 -2px 12px #0005;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid var(--accent, #4c8bf5);
}
.cookie-banner-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
}
#cookie-banner button {
  background: var(--accent, #4c8bf5);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
}
#cookie-banner button:hover {
  background: #2563eb;
}
#cookie-banner a {
  color: var(--accent, #4c8bf5);
  text-decoration: underline;
}
#cookie-banner a:hover {
  color: #2563eb;
}
/* --- Mail-Support-Panel Modernisierung --- */
.support-card.mail-support-panel {
  background: var(--bg-secondary, #2e3451);
  border-radius: 18px;
  box-shadow: 0 6px 32px #0005;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 700px; /* vorher 480px */
  min-width: 700px;
  margin: 0 auto;
  border: 1.5px solid var(--accent, #4c8bf5);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#mail-support-form label {
  font-weight: 600;
  color: var(--accent, #4c8bf5);
  margin-bottom: 0.3rem;
  margin-top: 0.7rem;
  text-align: left;
  letter-spacing: 0.2px;
}

#mail-support-form .support-input,
#mail-support-form textarea.support-input {
  background: #23283b;
  border: 1.5px solid var(--inactive, #3E4451);
  border-radius: 8px;
  color: var(--text-primary, #f3f6fa);
  font-size: 1.08rem;
  padding: 0.8rem 1.1rem;
  margin-bottom: 0.2rem;
  transition: border 0.2s, box-shadow 0.2s;
  resize: vertical;
  min-height: 44px;
}

#mail-support-form .support-input:focus,
#mail-support-form textarea.support-input:focus {
  border: 1.5px solid var(--accent, #4c8bf5);
  box-shadow: 0 0 0 2px #4c8bf555;
}

#mail-support-error, #mail-support-success {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  text-align: center;
}

#mail-support-error {
  background: #2e1a1a;
  color: #ff5a5a;
  border: 1px solid #e53935;
}

#mail-support-success {
  background: #1a2e1a;
  color: #4caf50;
  border: 1px solid #4caf50;
}

#mail-support-form .support-btn.email {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  padding: 0.9rem 0;
  border-radius: 8px;
  background: var(--accent-email, #4C6B44);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #0003;
  transition: background 0.2s, box-shadow 0.2s;
}

#mail-support-form .support-btn.email:hover {
  background: #35522e;
  box-shadow: 0 4px 16px #0004;
}

@media (max-width: 1000px) {
  .mail-support-panel {
    max-width: 98vw !important;
    min-width: unset;
  }
}