/* Tischtennis SV Allensbach – statische Ersatzseiten */
:root {
  --blue: #1f4fa3;
  --blue-dark: #163a7a;
  --blue-deep: #0f2a5a;
  --blue-light: #e9f0fb;
  --yellow: #f8dc3b;
  --yellow-soft: #fff7cc;
  --text: #1d2433;
  --muted: #5b6474;
  --line: #dde3ec;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 90, .06), 0 6px 20px rgba(15, 42, 90, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

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

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--blue-deep); }
h1 { font-size: 2rem; margin: 0 0 .25em; }
h2 { font-size: 1.4rem; margin: 0 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hinweisleiste ---------- */
.notice {
  background: var(--yellow);
  color: #3b3100;
  font-size: .92rem;
}
.notice .wrap {
  display: flex;
  gap: .6em;
  align-items: flex-start;
  padding-top: .6em;
  padding-bottom: .6em;
}
.notice svg { flex: none; margin-top: .2em; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background:
    linear-gradient(90deg, rgba(15, 42, 90, .92) 0%,
      rgba(31, 79, 163, .78) 55%, rgba(31, 79, 163, .35) 100%),
    url("../img/head_netz.png") center / cover no-repeat;
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.brand-text strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: .01em;
}
.brand-text span {
  display: block;
  opacity: .88;
  font-size: .95rem;
}

/* ---------- Navigation ---------- */
.nav {
  background: var(--blue-deep);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.nav .wrap { position: relative; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 13px 16px;
  color: #dfe7f5;
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--yellow);
}
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: #fff;
  padding: 12px 0;
  font-weight: 600;
  user-select: none;
}
.nav-toggle-label .bars,
.nav-toggle-label .bars::before,
.nav-toggle-label .bars::after {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  vertical-align: middle;
  content: "";
}
.nav-toggle-label .bars { margin-right: 10px; }
.nav-toggle-label .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-label .bars::after { position: absolute; top: 6px; left: 0; }

/* ---------- Unternavigation ---------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.subnav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: .92rem;
  color: var(--blue-dark);
}
.subnav a:hover { border-color: var(--blue); }
.subnav a[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- Inhalt ---------- */
main { padding: 34px 0 56px; }

.page-head { margin-bottom: 18px; }
.page-head p.lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .3em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.stack > * + * { margin-top: 24px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.card > :last-child { margin-bottom: 0; }
.card.accent { border-top: 4px solid var(--yellow); }
.card.blue {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.card.blue h2, .card.blue h3 { color: #fff; }
.card.blue a { color: var(--yellow); }

.callout {
  background: var(--yellow-soft);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 1em;
}
.callout > :last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.yellow,
.card.blue .btn.yellow { background: var(--yellow); color: var(--blue-deep); }
.btn.yellow:hover { background: #ecd02a; color: var(--blue-deep); }

/* ---------- Startseite ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}
.hero-text { padding: 34px 34px 30px; }
.hero-text h1 { font-size: 2.1rem; }
.hero-img { min-height: 260px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.tile {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: var(--text);
  border-top: 4px solid var(--blue);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15, 42, 90, .08),
    0 12px 28px rgba(15, 42, 90, .12);
  color: var(--text);
}
.tile h3 { margin: 0 0 .35em; color: var(--blue-deep); }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile .more {
  display: inline-block;
  margin-top: .8em;
  color: var(--blue);
  font-weight: 600;
  font-size: .92rem;
}

/* ---------- Zeiten ---------- */
.times { display: grid; gap: 12px; margin: 0 0 1em; }
.time {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--blue-light);
}
.time .who { font-weight: 700; color: var(--blue-deep); }
.time .when strong { color: var(--blue-deep); }
.time .where { color: var(--muted); font-size: .94rem; }

/* ---------- Personen ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  align-items: start;
}
.person {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.person .photo {
  aspect-ratio: 4 / 4.4;
  background: var(--blue-light);
  overflow: hidden;
}
.person .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.person .photo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 2.6rem;
  font-weight: 700;
  aspect-ratio: auto;
  height: 120px;
}
.person .info { padding: 18px 20px 20px; font-size: .95rem; }
.person .role {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
}
.person .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: .15em 0 .5em;
}
.person p { margin: 0; }
.person a { word-break: break-word; }

/* ---------- Spielstätten ---------- */
.venue {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.venue img { border-radius: 10px; width: 100%; }
.venue h2 { margin-bottom: .3em; }
.venue .addr { color: var(--muted); }

table.plain {
  border-collapse: collapse;
  width: 100%;
  font-size: .96rem;
}
table.plain th, table.plain td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.plain th { color: var(--blue-deep); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: #c9d4ea;
  font-size: .92rem;
  padding: 26px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.site-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-img { min-height: 0; max-height: 260px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1, .hero-text h1 { font-size: 1.6rem; }
  .card { padding: 20px 18px; }
  .hero-text { padding: 24px 20px; }
  .site-header .wrap { padding-top: 18px; padding-bottom: 18px; }
  .brand img { width: 56px; height: 56px; }
  .brand-text strong { font-size: 1.2rem; }
  .brand-text span { font-size: .85rem; }

  .nav-toggle-label { display: block; }
  .nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav a { padding: 10px 4px; border-bottom: 0; border-left: 3px solid
    transparent; padding-left: 12px; }
  .nav a[aria-current="page"] { border-left-color: var(--yellow); }

  .time { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .venue { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .nav, .notice, .subnav { display: none; }
  .card, .person, .tile { box-shadow: none; border: 1px solid #ccc; }
}
