/* =========================================================
   DC Gipsy Ebern Website
   Datei: assets/css/responsive.css
   Zweck: Responsive Anpassungen für Tablet und Handy
   Version: 1.3
   ========================================================= */

/* =========================================================
   Tablet bis 1000px
   ========================================================= */

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .feature-card {
    padding: 26px;
  }

  .section-bg-text {
    top: 60px;
    font-size: 9rem;
  }

  .gallerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gallerie-card,
  .gallerie-card img {
    min-height: 280px;
    height: 280px;
  }
}

/* =========================================================
   Tablet / kleine Desktops bis 900px
   ========================================================= */

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 82px;
    left: 4%;
    right: 4%;

    display: none;
    flex-direction: column;
    gap: 0;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: block;
  }

  .glitch-title::before,
  .glitch-title::after {
    content: none;
  }

  .hero-container,
  .about-container,
  .portal-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-left {
    max-width: none;
  }

  .hero-buttons,
  .hero-stats {
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-right img {
    width: 300px;
    margin-top: 20px;
  }

  .about-section,
  .portal-section,
  .news-section {
    padding: 100px 0;
  }

  .about-image img {
    height: 420px;
  }

  .about-content p,
  .portal-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .portal-content {
    text-align: center;
  }

  .portal-content h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .portal-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-bg-number {
    left: 50%;
    transform: translateX(-50%);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-intro-container,
  .club-history-container,
  .competition-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .club-intro-text p,
  .club-history-content p,
  .competition-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .club-history-label {
    order: -1;
  }

  .teams-grid,
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .next-event-container,
  .archive-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .next-event-card,
  .upcoming-card,
  .archive-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date {
    max-width: 260px;
    margin: 0 auto;
  }

  .next-event-card .btn-primary,
  .upcoming-card .btn-primary {
    justify-self: center;
    margin: 0 auto;
  }

  .event-meta,
  .archive-actions {
    justify-content: center;
  }

  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .live-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .competition-live-times {
    justify-content: center;
  }

  .contact-intro-container,
  .contact-form-container,
  .location-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .contact-intro-text p,
  .contact-form-info p,
  .location-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .location-details {
    text-align: left;
    max-width: 500px;
    margin: 28px auto 0;
  }
}

/* =========================================================
   Galerie Startseite bis 800px
   ========================================================= */

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallerie-intro-section {
    padding: 90px 0 55px;
  }

  .gallerie-filter {
    gap: 10px;
    margin-top: 35px;
  }

  .gallerie-filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .gallerie-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallerie-card,
  .gallerie-card img {
    min-height: 260px;
    height: 260px;
  }
}

/* =========================================================
   Vereinsheim Mobile bis 768px
   ========================================================= */

@media (max-width: 768px) {
  .clubhouse-section {
    min-height: 720px;
  }

  .clubhouse-bg {
    background-attachment: scroll;
    transform: scale(1);
  }

  .clubhouse-content h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .clubhouse-text {
    font-size: 1rem;
  }

  .clubhouse-box {
    min-width: 135px;
  }
}

/* =========================================================
   Mobile bis 700px
   ========================================================= */

@media (max-width: 700px) {
  .features-section,
  .timeline-section {
    padding: 90px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .section-bg-text {
    top: 30px;
    font-size: 5rem;
    opacity: 0.4;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 42px;
    margin-bottom: 45px;
  }

  .timeline-year {
    font-size: 1.1rem;
  }

  .timeline-content {
    padding: 26px;
  }

  .timeline-content::before {
    left: -38px;
    top: 30px;
  }

  .dartboard-section {
    min-height: 620px;
  }

  .dartboard-bg {
    width: 118vw;
    opacity: 0.2;
  }

  .dartboard-content h2 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .dartboard-content h3 {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }
}

/* =========================================================
   Mobile bis 650px
   ========================================================= */

@media (max-width: 650px) {
  .teams-grid,
  .board-grid,
  .live-data-grid {
    grid-template-columns: 1fr;
  }

  .team-card,
  .board-card {
    padding: 32px 24px;
  }

  .board-section .section-title h2 {
    font-size: clamp(1.6rem, 8vw, 2.3rem);
    line-height: 1.15;
  }

  .tournament-hero-content h1,
  .competition-live-content h2,
  .live-data-content h2 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
    line-height: 1.05;
  }

  .next-event-section,
  .upcoming-section,
  .tournament-archive-section,
  .competition-live-section,
  .live-data-section {
    padding: 95px 0;
  }

  .live-time-box,
  .live-data-box,
  .upcoming-card,
  .archive-item,
  .hof-card,
  .next-event-card {
    padding: 26px;
  }

  .next-event-card .btn-primary,
  .upcoming-card .btn-primary {
    width: 100%;
    max-width: 260px;
  }

  .event-info h3 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .event-meta span {
    width: 100%;
    text-align: center;
  }

  .competition-live-content h3 {
    font-size: clamp(1.2rem, 8vw, 2rem);
  }

  .gallerie-intro-section,
  .gallerie-section {
    padding: 85px 0;
  }

  .gallerie-intro-content h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 1.15;
  }

  .gallerie-filter-btn {
    flex: 1 1 auto;
    min-width: 130px;
  }

  .gallerie-overlay {
    padding: 20px;
  }

  .gallerie-overlay h3 {
    font-size: 1.1rem;
  }

  .gallerie-lightbox {
    padding: 22px;
  }

  .gallerie-lightbox-img {
    max-height: 72vh;
    border-radius: 16px;
  }

  .gallerie-lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .gallerie-lightbox-caption {
    bottom: 22px;
    font-size: 0.8rem;
  }

  .contact-intro-section,
  .contact-form-section,
  .location-section {
    padding: 90px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-card,
  .contact-form,
  .contact-intro-box,
  .location-map-placeholder {
    padding: 28px;
  }

  .contact-intro-text h2,
  .contact-form-info h2,
  .location-content h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 1.15;
  }

  .location-map-placeholder {
    min-height: 280px;
  }

  .legal-section {
    padding: 90px 0;
  }

  .legal-card {
    padding: 28px;
  }

  .legal-card h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.15;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-card h3 {
    font-size: clamp(0.95rem, 4.8vw, 1.05rem);
    line-height: 1.25;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* =========================================================
   Footer Mobile bis 600px
   ========================================================= */

@media (max-width: 600px) {
  .site-footer {
    padding: 70px 0 28px;
  }

  .footer-brand {
    margin-bottom: 34px;
  }

  .footer-brand h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .footer-brand p {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }

  .footer-line {
    margin-bottom: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .footer-column h3 {
    margin-bottom: 12px;
  }

  .footer-column a,
  .footer-column p {
    margin-bottom: 8px;
  }

  .footer-column a:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-mini-logo {
    width: 36px;
  }
}

/* =========================================================
   Kleine Handys bis 520px
   ========================================================= */

@media (max-width: 520px) {
  .header-inner {
    height: 72px;
  }

  .brand img {
    height: 48px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-container {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .stat-box {
    width: 100%;
    max-width: 260px;
  }

  .about-section {
    padding: 85px 0;
  }

  .about-image {
    border-radius: 20px;
  }

  .about-image img {
    height: 300px;
  }

  .about-bg-number {
    top: -55px;
    font-size: 5rem;
  }

  .about-content h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .contact-card,
  .contact-form,
  .contact-intro-box {
    padding: 24px;
  }

  .contact-submit-btn {
    width: 100%;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px;
    font-size: 0.9rem;
  }

  .location-details {
    padding: 18px;
  }
}

/* =========================================================
   Touch Geräte
   Custom Cursor auf Geräten ohne Maus deaktivieren
   ========================================================= */

@media (hover: none) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}
/* =========================================================
   Archive + Hall of Fame Mobile Fix
   ========================================================= */

@media (max-width: 900px) {
  .archive-container {
    width: calc(100% - 32px);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;

    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    text-align: center;
  }

  .archive-column,
  .hof-column,
  .archive-list,
  .archive-item,
  .hof-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .archive-item {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .archive-actions {
    justify-content: center;
  }

  .hof-column {
    align-items: stretch;
  }

  .hof-card {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .archive-column h2,
  .hof-column h2,
  .archive-item h3,
  .archive-item p,
  .hof-card h3,
  .hof-card p,
  .hof-card span {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width: 650px) {
  .archive-container {
    width: calc(100% - 28px);
    gap: 46px;
  }

  .archive-column h2,
  .hof-column h2 {
    margin-bottom: 28px;
    font-size: clamp(1.65rem, 8.5vw, 2.5rem);
    line-height: 1.1;
  }

  .archive-item,
  .hof-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .archive-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .archive-actions a,
  .archive-actions span {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    text-align: center;
  }

  .hof-card span {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
    line-height: 1.1;
  }
}

@media (max-width: 420px) {
  .archive-container {
    width: calc(100% - 20px);
  }

  .archive-item,
  .hof-card {
    padding: 20px 14px;
  }

  .archive-column h2,
  .hof-column h2 {
    font-size: clamp(1.45rem, 9vw, 2.1rem);
  }
}
