/*
Theme Name: TuS 08 Senne I Fußball
Theme URI: https://tus08senne1-fussball.de
Author: Jonas Bönsch
Description: Offizielles Theme für die Fußballabteilung TuS 08 Senne I
Version: 1.0
*/
:root {
  --blue-dark: #0a2a66;
  --blue: #1450b8;
  --blue-light: #3b76e0;
  --white: #ffffff;
  --gray: #f4f6fa;
  --gray-text: #4a5568;
  --max-width: 1140px;
}

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1a1a1a;
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header.site-header {
  background: var(--blue-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.logo .crest {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid var(--blue-light);
}

.logo .crest-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-light);
  object-fit: contain;
  padding: 2px;
}

nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

nav a {
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

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

/* Dropdown */
nav ul li,
nav .menu-item {
  position: relative;
}

nav ul li ul,
nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  background: var(--blue-dark);
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--blue-light);
  border-radius: 0 0 6px 6px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  list-style: none;
}

nav ul li:hover > ul,
nav .menu-item-has-children:hover > .sub-menu {
  display: flex;
}

nav ul li ul li,
nav .sub-menu .menu-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav ul li ul a,
nav .sub-menu a {
  display: block;
  padding: 0.55rem 1rem;
  border-bottom: none;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
}

nav ul li ul a:hover,
nav .sub-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    border-top: 2px solid var(--blue-light);
    z-index: 200;
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  nav ul li ul,
  nav .sub-menu {
    position: static;
    display: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    min-width: unset;
  }

  nav ul li.open > ul,
  nav .menu-item-has-children.open > .sub-menu { display: flex; }

  nav ul li ul a,
  nav .sub-menu a {
    padding-left: 1.8rem;
  }

  nav > ul > li > a {
    display: block;
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, var(--blue-light));
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: heroLogoSpin 60s linear infinite;
}

@keyframes heroLogoSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 600px) {
  .hero-bg-logo {
    width: 300px;
    height: 300px;
  }
}

.hero > *:not(.hero-bg-logo) {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: #dbe6ff;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue-dark);
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 0.8rem;
}

/* Sections */
section {
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.bg-gray { background: var(--gray); }

/* Cards */
.grid {
  display: grid;
  gap: 1.8rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(10,42,102,0.08);
  border: 1px solid #e8edf7;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10,42,102,0.14);
}

.card h3 {
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.card .tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* News list */
.news-item {
  border-left: 4px solid var(--blue);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.8rem;
  background: var(--white);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(10,42,102,0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.news-item { display: flex; }
.news-item .news-date { margin-bottom: 0.4rem; }
.news-item h3 { margin: 0 0 0.5rem; color: var(--blue-dark); font-size: 1.05rem; }
.news-item p { margin: 0 0 0.7rem; font-size: 0.95rem; opacity: 0.8; line-height: 1.5; }
.news-read-more { font-size: 0.88rem; font-weight: 600; color: var(--blue); margin-top: auto; }
.news-item:hover { box-shadow: 0 4px 16px rgba(10,42,102,0.13); }

.news-date {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(10,42,102,0.08);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8edf7;
}

th {
  background: var(--blue-dark);
  color: var(--white);
}

tr:last-child td { border-bottom: none; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

form { display: flex; flex-direction: column; gap: 1rem; }

label { font-weight: 600; font-size: 0.9rem; color: var(--blue-dark); }

input, textarea, select {
  padding: 0.7rem 0.9rem;
  border: 1px solid #d4dbe8;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--blue-light);
  border-color: var(--blue-light);
}

button[type="submit"] {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover { background: var(--blue-dark); }

.info-block {
  background: var(--gray);
  padding: 1.8rem;
  border-radius: 10px;
}

.info-block h3 {
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
}

.info-block p { margin-bottom: 0.4rem; }

/* Sponsoren */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.sponsor-tile {
  background: var(--white);
  border: 1px solid #e8edf7;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10,42,102,0.12);
}

.sponsor-tile img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.sponsor-tile.main-sponsor {
  grid-column: span 1;
  border: 2px solid var(--blue-light);
}

/* Footer */
footer {
  background: var(--blue-dark);
  color: #cdd9f5;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Klickbare Karten */
a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.card-link:hover {
  color: inherit;
}

.card-team {
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 130px;
}

.card-team h3 {
  font-size: 1.3rem;
  margin: 0.4rem 0 0;
}

.u-badge {
  display: inline-block;
  background: #e8edf7;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.card-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Mannschaft Unterseite */
.team-page-header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.team-page-header a {
  color: var(--blue);
  font-weight: 600;
}

.team-block {
  background: var(--white);
  border: 1px solid #e8edf7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10,42,102,0.07);
  margin-bottom: 2rem;
}

.team-block-photo {
  background: #e8edf7;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: #9aa3b5;
  font-size: 0.88rem;
  overflow: hidden;
}
.team-block-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.team-block-photo span {
  font-size: 2.5rem;
}

.team-block-body {
  padding: 1.6rem;
}

.team-block-body h3 {
  color: var(--blue-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.team-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2rem;
  font-size: 0.9rem;
}

.team-info-grid dt {
  color: var(--gray-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-info-grid dd {
  color: var(--blue-dark);
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .team-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .grid-3, .grid-2, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav ul { gap: 1rem; flex-wrap: wrap; }
  .nav-wrap { flex-direction: column; gap: 0.8rem; }
  .hero h1 { font-size: 2rem; }
}

.social-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.88rem; font-weight: 600; text-decoration: none; color: white; transition: opacity 0.15s; }
.social-btn:hover { opacity: 0.85; }
.social-btn-instagram { background: #C13584; }
.social-btn-facebook { background: #1877F2; }

/* Shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
.product-img { background: #e8eef5; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.product-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-name { font-weight: 700; font-size: 1.05rem; }
.product-desc { font-size: 0.9rem; opacity: 0.75; flex: 1; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--blue-light); }
.product-sizes { font-size: 0.82rem; opacity: 0.65; }
.shop-banner { background: var(--blue-dark); color: #fff; border-radius: 10px; padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.shop-banner-icon { font-size: 2.5rem; }
.shop-banner h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.shop-banner p { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.shop-banner a { color: #7dd3fc; }
.fruchtalarm-note { background: #fef3c7; border-left: 4px solid #f59e0b; border-radius: 0 8px 8px 0; padding: 1rem 1.2rem; margin-bottom: 2rem; font-size: 0.9rem; color: #78350f; }
