/* ============================================================
   TVR Basketball – style.css
   Farben: Rot #C8221A, Schwarz #0d0d0d, Weiß #f5f5f5
   ============================================================ */

/* ── Selbst gehostete Fonts (DSGVO-konform, kein externer Request) ── */
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:400; font-display:swap; src:url('../assets/fonts/barlow-condensed-400.woff2') format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:600; font-display:swap; src:url('../assets/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:700; font-display:swap; src:url('../assets/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:800; font-display:swap; src:url('../assets/fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:900; font-display:swap; src:url('../assets/fonts/barlow-condensed-900.woff2') format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:italic; font-weight:700; font-display:swap; src:url('../assets/fonts/barlow-condensed-700i.woff2') format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:400; font-display:swap; src:url('../assets/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:500; font-display:swap; src:url('../assets/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:600; font-display:swap; src:url('../assets/fonts/barlow-600.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #C8221A;
  --red-dark:  #9e1914;
  --red-light: #e8302a;
  --black:     #0d0d0d;
  --dark:      #161616;
  --card:      #1e1e1e;
  --border:    #2a2a2a;
  --white:     #f5f5f5;
  --muted:     #888;
  --radius:    4px;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── GRID TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.018) 0 1px, transparent 1px 100px);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.1;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-light); }

/* ── LAYOUT HELPERS ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5vw;
  position: relative; z-index: 1;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

.accent { color: var(--red); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 40px; height: 40px; object-fit: contain;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.25rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); line-height: 1.1;
}

.nav-logo-text span { color: var(--red); display: block; font-size: .85rem; font-weight: 600; }

.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: .35rem .9rem;
  border-radius: var(--radius);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.burger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: .3s; }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 100px 5vw 80px;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,34,26,.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,34,26,.08) 0%, transparent 60%);
}

.hero-ring {
  position: absolute;
  right: -5vw; top: 50%; transform: translateY(-50%);
  width: min(55vw, 700px); height: min(55vw, 700px);
  opacity: .06;
  background: url('../assets/TVRLogo.png') center/contain no-repeat;
  filter: grayscale(1);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .85rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.1rem;
  color: #bbb;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
}

.btn-primary {
  background: var(--red); color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); }

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }

/* ── TEAM CARD ── */
.team-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s;
  text-decoration: none; color: var(--white);
}
.team-card:hover { border-color: var(--red); transform: translateY(-2px); color: var(--white); }

.team-card-badge {
  display: inline-block;
  background: rgba(200,34,26,.15);
  border: 1px solid rgba(200,34,26,.3);
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 2px;
  margin-bottom: 12px;
}
.team-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  text-transform: uppercase; margin-bottom: 6px;
}
.team-card-meta { font-size: .85rem; color: var(--muted); }

/* ── SPIELPLAN TABLE ── */
.spiel-table { width: 100%; border-collapse: collapse; }
.spiel-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spiel-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.spiel-table tr:last-child td { border-bottom: none; }
.spiel-table tr:hover td { background: rgba(255,255,255,.03); }

.badge-home {
  background: rgba(200,34,26,.15); color: var(--red);
  border: 1px solid rgba(200,34,26,.3);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 2px;
}
.badge-away {
  background: rgba(255,255,255,.07); color: var(--muted);
  border: 1px solid var(--border);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 2px;
}
.badge-result {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1rem;
}
.badge-win  { color: #4caf7d; }
.badge-loss { color: var(--red); }
.badge-draw { color: var(--muted); }

/* ── NEWS CARD ── */
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.news-card:hover { border-color: var(--red); transform: translateY(-2px); }

.news-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--border);
}
.news-card-body { padding: 20px; }
.news-card-date {
  font-size: .78rem; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; margin-bottom: 8px;
  color: var(--white);
}
.news-card-excerpt { font-size: .88rem; color: #aaa; }

/* ── DIVIDER ── */
.divider {
  height: 1px; background: var(--border); margin: 0;
}

.red-line {
  display: inline-block; width: 48px; height: 4px;
  background: var(--red); margin-bottom: 16px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 120px 5vw 60px;
  background: linear-gradient(180deg, rgba(200,34,26,.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header-title { font-size: clamp(2.5rem, 6vw, 5rem); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: .95rem;
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* ── ALERT ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
  border-left: 3px solid;
}
.alert-success { background: rgba(76,175,125,.1); border-color: #4caf7d; color: #4caf7d; }
.alert-error   { background: rgba(200,34,26,.1);  border-color: var(--red); color: #f77; }
.alert-info    { background: rgba(255,255,255,.05); border-color: var(--muted); color: var(--muted); }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 5vw 30px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-logo {
  width: 60px; height: 60px; object-fit: contain; margin-bottom: 16px;
}
.footer-brand-text {
  font-size: .9rem; color: var(--muted); max-width: 260px; line-height: 1.7;
}
.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #999; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted); flex-wrap: wrap; gap: 8px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  background: var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem;
  transition: background .2s, color .2s; text-decoration: none;
}
.social-link:hover { background: var(--red); color: var(--white); }

/* ── SPONSOREN ── */
.sponsor-grid {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.sponsor-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: center;
  min-width: 140px; min-height: 70px;
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.sponsor-item:hover { opacity: 1; border-color: var(--red); }
.sponsor-item img { max-height: 40px; max-width: 120px; object-fit: contain; filter: grayscale(1) brightness(2); }
.sponsor-item span { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--muted); font-size: 1.1rem; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--dark); border-right: 1px solid var(--border);
  padding: 24px 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s, background .2s;
}
.admin-nav-item:hover,
.admin-nav-item.active { color: var(--white); background: rgba(255,255,255,.05); }
.admin-nav-item.active { border-left: 3px solid var(--red); }
.admin-content { margin-left: 240px; flex: 1; padding: 32px; }
.admin-content-inner { max-width: 900px; }

/* ── MOBILE (768px) ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 64px 0 0 0;
    background: var(--dark); padding: 20px 0; z-index: 199;
    border-top: 1px solid var(--border);
  }
  .nav-links.open a { padding: 14px 5vw; }
  .burger { display: flex; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-content { margin-left: 0; padding: 20px; }
  .admin-layout { flex-direction: column; }
  .spiel-table { font-size: .8rem; }
  .spiel-table td, .spiel-table th { padding: 10px 8px; }

  /* iOS-Zoom verhindern + Touch-freundlich */
  input[type=text], input[type=email], input[type=password],
  input[type=time], input[type=date], select, textarea {
    font-size: 16px;
    padding: 11px 14px;
  }
  .btn { padding: 12px 18px; }
}

/* ── Mobile (600px) ── */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
}
