/* ============================================
   PROJEKT: site30-de | TheWeirdPlace.com | DISTRIBUTION CABLE JOINTING GROUP LIMITED | DE
   CSS: OOCSS (Object-Oriented – Struktur vs Skin)
   PALETTE: Weird Place (void-black, weird-teal, odd-coral, ghost-white, strange-gold, mutant-mint)
   EFFEKT: Neumorphism (weiche Schatten)
   TYPOGRAFIE: Oswald + Raleway (Bold Display)
   BUTTONS: 3D Effect
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Raleway:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden !important; width: 100% !important; max-width: 100%; }

:root {
  --header-height: 72px;
  --void-black: #0d0d0d;
  --weird-teal: #2dd4bf;
  --odd-coral: #f97316;
  --ghost-white: #f8fafc;
  --strange-gold: #eab308;
  --mutant-mint: #99f6e4;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

@media (max-width: 600px) {
  :root { --header-height: 60px; }
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #334155;
  background: var(--ghost-white);
  line-height: 1.6;
}

/* ========== OOCSS: Layout (l-) ========== */
.l-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.l-section { padding: 3rem 0; }

/* ========== OOCSS: Component (c-) + Skin ========== */
.c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--void-black);
  color: var(--ghost-white);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.c-header__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ghost-white);
  text-decoration: none;
}

.c-header__badge {
  display: inline-block;
  background: var(--weird-teal);
  color: var(--void-black);
  font-size: 0.65rem;
  padding: 4px 10px;
  margin-left: 8px;
  font-weight: 700;
}

.c-header__burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--ghost-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .c-header__burger { display: block; }
}

.c-header__nav { display: flex; align-items: center; }

.c-header__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-header__menu a {
  color: var(--ghost-white);
  text-decoration: none;
  font-weight: 600;
}

.c-header__menu a:hover { color: var(--weird-teal); }

@media (max-width: 768px) {
  .c-header__nav {
    display: none;
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    background: var(--void-black);
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
  .c-header__nav.is-open { display: block; }
  .c-header__menu { flex-direction: column; }
}

/* ========== HERO (Neumorphism-style bg) ========== */
.c-hero {
  padding: calc(var(--header-height) + 2rem) 1rem 3rem;
  text-align: center;
  color: var(--ghost-white);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a 0%, var(--void-black) 100%);
  position: relative;
}

.c-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(45, 212, 191, 0.15), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(249, 115, 22, 0.1), transparent 50%);
  pointer-events: none;
}

.c-hero .c-hero__inner { position: relative; z-index: 1; }

.c-hero__label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.c-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.c-hero__sub { margin: 0 0 1.5rem; opacity: 0.95; max-width: 560px; margin-left: auto; margin-right: auto; }
.c-hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== BUTTONS 3D Effect ========== */
.m-btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.m-btn--primary {
  background: var(--weird-teal);
  color: var(--void-black);
  box-shadow: 0 5px 0 #0f766e;
  transform: translateY(-2px);
}

.m-btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 7px 0 #0f766e;
}

.m-btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0f766e;
}

.m-btn--outline {
  background: transparent;
  color: var(--ghost-white);
  border: 2px solid var(--ghost-white);
}

.m-btn--outline:hover { background: rgba(255, 255, 255, 0.15); }

/* Кнопка-ссылка для светлого фона (контентные страницы) */
.m-btn--outline-dark {
  background: transparent;
  color: var(--weird-teal);
  border: 2px solid var(--weird-teal);
  text-decoration: none;
}
.m-btn--outline-dark:hover {
  background: var(--weird-teal);
  color: #ffffff;
  border-color: var(--weird-teal);
}

/* ========== Section title ========== */
.m-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--void-black);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* ========== Benefit cards (Neumorphism) ========== */
.m-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.m-benefit {
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  background: var(--ghost-white);
  box-shadow: 8px 8px 20px #e2e8f0, -8px -8px 20px #fff;
  border: none;
}

.m-benefit__icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.m-benefit__title { font-family: var(--font-heading); color: var(--void-black); margin: 0 0 0.5rem; }
.m-benefit__text { margin: 0; color: #64748b; }

/* ========== Game cards (Neumorphism) ========== */
.m-games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.m-game {
  flex: 0 0 auto;
  width: clamp(280px, 25vw, 350px);
  max-width: 350px;
  min-width: 280px;
  background: var(--ghost-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 8px 8px 24px #e2e8f0, -8px -8px 24px #fff;
  display: flex;
  flex-direction: column;
}

.m-game__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--void-black);
}

.m-game__img { width: 100%; height: 100%; object-fit: cover; }
.m-game__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; text-align: center; }
.m-game__title { font-family: var(--font-heading); color: var(--void-black); margin: 0 0 0.5rem; }
.m-game__desc { margin: 0 0 1rem; flex: 1; color: #64748b; font-size: 0.95rem; }
.m-game__cta .m-btn { width: 100%; }

@media (max-width: 768px) {
  .m-games-grid { flex-direction: column; align-items: center; }
  .m-game { width: 100%; max-width: 400px; }
}

/* ========== FAQ ========== */
.m-faq-list { max-width: 640px; margin: 0 auto; }
.m-faq-item { border-bottom: 1px solid #e2e8f0; }

.m-faq-item__q {
  width: 100%;
  padding: 1rem 0;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--void-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-faq-item__q::after { content: '+'; font-size: 1.25rem; color: var(--weird-teal); }
.m-faq-item__q.is-open::after { content: '−'; }
.m-faq-item__a {
  padding: 0 0 1rem;
  color: #64748b;
  display: none;
}
.m-faq-item__a.is-open { display: block; }

/* ========== Disclaimer ========== */
.c-disclaimer {
  background: linear-gradient(135deg, var(--void-black), #1a1a1a);
  color: var(--ghost-white);
  padding: 2rem 1rem;
  text-align: center;
}

.c-disclaimer__title { font-family: var(--font-heading); margin: 0 0 1rem; font-size: 1.25rem; }
.c-disclaimer__text { margin: 0 0 0.5rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.c-disclaimer__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.c-disclaimer__badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== Footer ========== */
.c-footer {
  background: var(--void-black);
  color: var(--ghost-white);
  padding: 2rem 1rem 1rem;
}

.c-footer__title { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 0.75rem; }
.c-footer__intro { margin: 0 0 1rem; opacity: 0.9; font-size: 0.95rem; }
.c-footer__label { font-size: 0.8rem; opacity: 0.8; margin-bottom: 0.25rem; }
.c-footer__address { font-style: normal; line-height: 1.6; }
.c-footer__address span { display: block; }
.c-footer__links { list-style: none; margin: 0; padding: 0; }
.c-footer__links a { color: var(--ghost-white); text-decoration: none; }
.c-footer__links a:hover { color: var(--weird-teal); }
.c-footer__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.5rem;
}

.c-footer__compliance a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.c-footer__compliance a:hover { opacity: 0.95; }

.compliance-logo {
  height: 24px !important;
  width: auto !important;
  display: block;
}

.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; } }
.c-footer__nav-wrap { display: flex; gap: 2rem; flex-wrap: wrap; }
.c-footer__bottom { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; opacity: 0.9; }
.c-footer__bottom a { color: var(--weird-teal); }

/* ========== Modals ========== */
.age-modal, .cookie-consent {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 1rem;
}

.age-modal__box, .cookie-consent__box {
  background: var(--ghost-white);
  color: var(--void-black);
  padding: 2rem;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.3);
}

.age-modal__title, .cookie-consent p { margin: 0 0 1rem; font-family: var(--font-heading); }
.age-modal__body p { margin: 0 0 0.5rem; }
.age-modal__buttons, .cookie-consent .m-btn { margin-top: 1rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.age-modal__warning { font-size: 0.9rem; opacity: 0.9; margin-top: 1rem !important; }

/* Обе кнопки в плашке возраста видны на светлом фоне */
.age-modal__box .m-btn--primary {
  color: #ffffff !important;
}
.age-modal__box .m-btn--outline {
  color: #0d0d0d !important;
  border-color: #334155 !important;
  background: transparent;
}
.age-modal__box .m-btn--outline:hover {
  background: #e2e8f0;
  color: #0d0d0d !important;
}

.cookie-consent {
  align-items: flex-end;
  justify-content: flex-end;
  background: transparent;
  padding: 1rem;
}

.cookie-consent__box {
  max-width: 360px;
  border: 2px solid var(--weird-teal);
}

/* Кнопка в плашке cookies — контрастный текст */
.cookie-consent__box .m-btn--primary {
  color: #ffffff !important;
}
.cookie-consent__box .m-btn--primary:hover {
  color: #ffffff !important;
}

/* ========== Page content ========== */
.page-main { padding-top: var(--header-height); min-height: 60vh; }
.content-wrap { max-width: 720px; margin: 0 auto; }
.content-wrap h1 { font-family: var(--font-heading); color: var(--void-black); }
.content-wrap h2, .content-wrap h3 { font-family: var(--font-heading); color: var(--void-black); margin-top: 1.5rem; }

/* ========== Blog / List ========== */
.article-grid, .guide-grid, .review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Страница Bewertungen — блоки по центру */
.reviews-page .content-wrap {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.reviews-page .review-grid {
  max-width: 960px;
  margin: 2rem auto 0;
  justify-content: center;
}
.reviews-page .review-card {
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.reviews-page .review-card > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.reviews-page .review-card .m-btn--primary {
  margin-top: auto;
  padding-top: 0.5rem;
  color: #ffffff !important;
}
.reviews-page .review-card .m-btn--primary:hover {
  color: #ffffff !important;
}

/* Страница Blog — блоки по центру */
.blog-page .content-wrap {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.blog-page .article-grid {
  max-width: 960px;
  margin: 2rem auto 0;
  justify-content: center;
}
.blog-page .article-card {
  max-width: 320px;
  margin: 0 auto;
}
.blog-page .article-card .m-btn--primary,
.blog-page .article-card .m-btn--primary:hover {
  color: #ffffff !important;
  text-decoration: none;
}
.blog-page .article-card .m-btn--primary { margin-top: 0.5rem; }

.article-card, .guide-card, .review-card {
  background: var(--ghost-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 6px 6px 18px #e2e8f0, -6px -6px 18px #fff;
}

.article-card a, .guide-card a, .review-card a { text-decoration: none; color: inherit; }
.article-card a:hover, .guide-card a:hover, .review-card a:hover { color: var(--weird-teal); }

/* ========== Inner pages: hero + content ========== */
.page-hero {
  padding: calc(var(--header-height) + 2rem) 1rem 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, #1a1a1a, var(--void-black));
  color: var(--ghost-white);
}
.page-hero__title { font-family: var(--font-heading); margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.content-area { padding: 2rem 0; }
.content-area p { margin: 0 0 1rem; }
.content-area h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-area a { color: var(--weird-teal); }
.content-area a:hover { text-decoration: underline; }
/* Кнопки в контенте: текст всегда виден (переопределяет .content-area a) */
.content-area .m-btn--primary,
.content-area .m-btn--primary:hover { color: #ffffff !important; text-decoration: none; }

/* Account tabs */
.account-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid #e2e8f0; }
.account-tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.account-tab.is-active { color: var(--weird-teal); border-bottom-color: var(--weird-teal); }
.account-panel.is-hidden { display: none !important; }
.account-panel { margin-bottom: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.form-input {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font-body);
}
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .account-grid { grid-template-columns: 1fr; } }

/* Guide blocks */
.guide-block { margin-bottom: 2rem; padding: 1.5rem; background: var(--ghost-white); border-radius: 12px; box-shadow: 6px 6px 18px #e2e8f0; }
.guide-block__title { font-family: var(--font-heading); margin: 0 0 0.75rem; }
.guide-block__text { margin: 0 0 0.75rem; }
.guide-block .m-btn { margin-top: 0.5rem; }

/* Кнопки на странице Anleitungen — контрастный текст */
.guide-block .m-btn--primary {
  color: #ffffff !important;
}
.guide-block .m-btn--primary:hover {
  color: #ffffff !important;
}

/* Anleitungen: мобильная версия — центрирование и отступы */
@media (max-width: 768px) {
  .guides-page.content-area.l-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
  .guides-page .content-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .guides-page .guide-block {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Verantwortungsvoll spielen: мобильная версия — центрирование и отступы */
@media (max-width: 768px) {
  .responsible-play-page.content-area.l-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
  .responsible-play-page .content-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .responsible-play-page .help-cards {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Konto: мобильная версия — центрирование и отступы */
@media (max-width: 768px) {
  .account-page.content-area.l-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
  .account-page .content-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .account-page .account-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Nutzungsbedingungen: мобильная версия — центрирование и отступы */
@media (max-width: 768px) {
  .terms-page.content-area.l-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
  .terms-page .content-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Hilfsangebote – плашки со ссылками (Verantwortungsvoll spielen) */
.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.help-card {
  display: block;
  padding: 1.25rem;
  background: var(--ghost-white);
  border-radius: 12px;
  box-shadow: 6px 6px 18px #e2e8f0, -6px -6px 18px #fff;
  text-decoration: none;
  color: var(--void-black);
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.help-card:hover {
  box-shadow: 8px 8px 22px #cbd5e1, -4px -4px 14px #fff;
  border-color: var(--weird-teal);
  color: var(--weird-teal);
}
.help-card__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.help-card__desc {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
}
.help-card:hover .help-card__desc {
  color: #475569;
}
