/* ============================================
   CLUB SUIZO COSTA BLANCA – Shared Stylesheet
   Mobile-First, Kachel-System
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  max-width: 100%;
  margin: 0 auto;
}

a {
  color: #CC0000;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === FARBEN === */
:root {
  --rot:    #CC0000;
  --gelb:   #F5C800;
  --schwarz:#1a1a1a;
  --grau:   #f5f5f5;
  --hellrot:#fff0f0;
  --hellgelb:#fffbe6;
  --rand:   #e0e0e0;
}

/* === HEADER === */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--rot);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header .logo-flag {
  font-size: 2rem;
}

.site-header .logo-text strong {
  display: block;
  color: var(--rot);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.site-header .logo-text small {
  display: block;
  color: #777;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* Back button (inner pages) */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grau);
  border: 1px solid var(--rand);
  color: var(--schwarz);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* === HERO === */
.hero {
  background: #8B0000;
  background-image: linear-gradient(rgba(139,0,0,0.75), rgba(80,0,0,0.85)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  color: white;
}

.hero-greeting {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero-greeting .h-red    { color: var(--rot); }
.hero-greeting .h-yellow { color: var(--gelb); }

.hero-sub {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 1.5px;
}

/* === CTA BUTTON === */
.cta-wrap {
  padding: 18px 16px 10px;
  text-align: center;
}

.btn-cta {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--rot);
  color: #fff;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(204,0,0,0.25);
}

.btn-cta:active { opacity: 0.88; }

.btn-gelb {
  background: var(--gelb);
  color: var(--schwarz);
  box-shadow: 0 3px 10px rgba(245,200,0,0.3);
}

/* === FOTO TILE (grosse Kachel) === */
.foto-tile-wrap {
  padding: 10px 16px 6px;
}

.foto-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--rot);
  color: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(204,0,0,0.3);
}

.foto-tile:active { opacity: 0.9; }

.foto-tile .ft-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.foto-tile .ft-text strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
}

.foto-tile .ft-text span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* === TILE GRID === */
.tiles-wrap {
  padding: 14px 16px 8px;
}

.tiles-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--grau);
  border: 2px solid var(--rand);
  border-radius: 14px;
  padding: 20px 10px;
  text-decoration: none;
  color: var(--schwarz);
  min-height: 110px;
  text-align: center;
  gap: 8px;
}

.tile:active {
  border-color: var(--rot);
  background: var(--hellrot);
}

.tile .t-icon  { font-size: 2.2rem; }
.tile .t-label { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.tile .t-sub   { font-size: 0.78rem; color: #777; }

.tile.t-rot    { background: var(--hellrot);  border-color: var(--rot); }
.tile.t-gelb   { background: var(--hellgelb); border-color: var(--gelb); }
.tile.t-dunkel { background: var(--schwarz);  border-color: var(--schwarz); color: #fff; }

/* === NEWSLETTER BOX === */
.newsletter-box {
  margin: 16px 16px;
  background: var(--grau);
  border-left: 5px solid var(--rot);
  border-radius: 0 10px 10px 0;
  padding: 18px 16px;
}

.newsletter-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.newsletter-box p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

.btn-dark {
  display: inline-block;
  background: var(--schwarz);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: var(--rot);
  color: #fff;
  padding: 28px 20px 24px;
  text-align: left;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.page-header p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* Gelber Page Header */
.page-header.gelb {
  background: var(--gelb);
  color: var(--schwarz);
}

/* === CONTENT === */
.content {
  padding: 20px 16px;
}

.content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--rot);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--hellrot);
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--schwarz);
  margin: 18px 0 8px;
}

.content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 14px;
}

.content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.content ul li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 6px;
}

/* Sub-menu Kacheln (z.B. Club-Infos) */
.sub-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.sub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--grau);
  border: 2px solid var(--rand);
  border-radius: 14px;
  padding: 22px 12px;
  text-decoration: none;
  color: var(--schwarz);
  min-height: 100px;
  text-align: center;
  gap: 8px;
}

.sub-tile .st-icon  { font-size: 2rem; }
.sub-tile .st-label { font-size: 1rem; font-weight: 700; line-height: 1.25; }

/* Info Karte */
.info-card {
  background: var(--grau);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 14px;
  border-left: 4px solid var(--gelb);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* Kontakt Karte */
.kontakt-card {
  background: var(--grau);
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 16px;
}

.kontakt-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--rot);
}

.kontakt-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rand);
  font-size: 1rem;
  text-decoration: none;
  color: var(--schwarz);
}

.kontakt-zeile:last-child { border-bottom: none; }
.kontakt-zeile .kz-icon { font-size: 1.5rem; flex-shrink: 0; }
.kontakt-zeile .kz-text strong { display: block; font-size: 0.85rem; color: #888; }

/* === KALENDER === */
.kalender-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--rot);
  color: white;
}

.kalender-header h2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.kalender-nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.kalender-nav-btn:active { background: rgba(255,255,255,0.35); }

.wochentage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #1a1a1a;
  color: white;
}

.wochentag {
  padding: 10px 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--rand);
  border-top: 1px solid var(--rand);
}

.kal-tag {
  border-right: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand);
  padding: 6px 4px;
  min-height: 52px;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
}

.kal-tag:active { background: var(--hellrot); }
.kal-tag.leer   { background: #fafafa; color: #bbb; }
.kal-tag.heute  { background: var(--hellgelb); font-weight: 900; }
.kal-tag.hat-events { background: var(--hellrot); }

.kal-tag .tag-nr { font-weight: 700; }

.event-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--rot);
  border-radius: 50%;
  margin: 3px auto 0;
}

.event-liste {
  padding: 16px;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rand);
}

.event-item:last-child { border-bottom: none; }

.event-datum {
  flex-shrink: 0;
  background: var(--rot);
  color: white;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  min-width: 54px;
}

.event-datum .e-tag   { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-datum .e-monat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.event-info { flex: 1; }
.event-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.event-info p  { font-size: 0.88rem; color: #555; margin: 0; }

.event-badge {
  display: inline-block;
  background: var(--hellgelb);
  border: 1px solid var(--gelb);
  color: #7a6000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

/* === FOOTER === */
.site-footer {
  background: #8B0000;
  color: #f5d0d0;
  padding: 28px 16px 24px;
  margin-top: 32px;
  text-align: center;
}

.site-footer .f-logo {
  color: var(--rot);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.site-footer p {
  font-size: 0.88rem;
  margin: 5px 0;
}

.site-footer a {
  color: var(--gelb);
}

.site-footer .f-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.site-footer .f-links a {
  font-size: 0.85rem;
  color: #aaa;
}

/* === DESKTOP (ab 600px) === */
@media (min-width: 600px) {
  html { font-size: 19px; }

  .hero-greeting { font-size: 2.6rem; }
  .hero { min-height: 260px; }

  .tile-grid     { grid-template-columns: repeat(3, 1fr); }
  .sub-tile-grid { grid-template-columns: repeat(3, 1fr); }

  .page-header { padding: 36px 28px 30px; }
  .page-header h1 { font-size: 2.2rem; }

  .kal-tag { min-height: 70px; font-size: 1rem; }

  .content { padding: 28px 28px; }
  .tiles-wrap { padding: 20px 28px 12px; }
  .foto-tile-wrap { padding: 14px 28px 8px; }
  .cta-wrap { padding: 22px 28px 12px; }
  .newsletter-box { margin: 16px 28px; }
}
