:root {
  --blue: #0b4f8a;
  --blue-dark: #062f55;
  --blue-soft: #eaf3fb;
  --red: #c9282d;
  --red-dark: #9e1d22;
  --gold: #f3bd28;
  --green: #2f7d32;
  --light: #f3f6f9;
  --line: #cbd5e1;
  --text: #172033;
  --muted: #607083;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(21, 48, 78, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(11,79,138,.12), transparent 28rem),
    linear-gradient(180deg, #eef5fb 0, #fff 560px);
}

.site-header, header {
  position: relative;
  background: linear-gradient(125deg, var(--blue-dark), var(--blue));
  color: white;
  box-shadow: 0 4px 18px rgba(0,0,0,.20);
}

.bowling-stripe {
  height: 7px;
  background: linear-gradient(90deg, var(--red) 0 22%, white 22% 28%, var(--red) 28% 50%, var(--gold) 50% 100%);
}

.header-inner {
  max-width: 1180px;
  margin: auto;
  padding: 25px 18px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  position: relative;
  flex: 0 0 auto;
}

.pin-shape {
  position: absolute;
  color: white;
  font-size: 55px;
  transform: scaleX(.52);
  left: 4px;
  top: 0;
  text-shadow: 0 -10px 0 var(--red);
}

.ball-shape {
  position: absolute;
  color: var(--gold);
  font-size: 46px;
  right: 2px;
  bottom: -4px;
  text-shadow: -8px -5px 0 rgba(6,47,85,.55);
}

.eyebrow {
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: bold;
  color: #dcecff;
}

h1 {
  margin: 0 0 5px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
}

.subtitle { margin: 0; opacity: .92; }

nav {
  max-width: 1180px;
  margin: auto;
  padding: 0 18px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  transition: .18s ease;
}

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

main {
  max-width: 1180px;
  margin: 24px auto 55px;
  padding: 0 16px;
}

.hero {
  overflow: hidden;
  position: relative;
  min-height: 260px;
  margin-bottom: 22px;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 52px);
  color: white;
  background:
    linear-gradient(110deg, rgba(6,47,85,.96), rgba(11,79,138,.90)),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(255,255,255,.04) 76px 78px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero h2 {
  max-width: 690px;
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.06;
}

.hero p {
  max-width: 690px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #e8f3fd;
}

.hero-kicker {
  display: inline-block;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: bold;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  width: 230px;
  height: 190px;
  flex: 0 0 230px;
}

.hero-ball {
  position: absolute;
  right: 15px;
  bottom: -40px;
  color: var(--red);
  font-size: 220px;
  line-height: 1;
  text-shadow: 0 18px 35px rgba(0,0,0,.28);
}

.hero-pin {
  position: absolute;
  right: 126px;
  top: -45px;
  font-size: 190px;
  color: white;
  transform: rotate(-10deg);
  text-shadow: 0 15px 30px rgba(0,0,0,.23), 0 -28px 0 var(--red);
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #e3ebf3;
}

.form-card { padding: clamp(20px, 4vw, 34px); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 { margin: 0; color: var(--blue-dark); }
.section-heading.compact { margin-top: 8px; margin-bottom: 8px; }

.section-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: bold;
}

.required-note, .help-text, .small {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 17px;
}

.full { grid-column: 1 / -1; }
.lower-fields { margin-top: 22px; }

label {
  display: block;
  font-weight: bold;
  margin-bottom: 7px;
}

input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  border: 1px solid #aeb9c7;
  border-radius: 10px;
  padding: 12px 13px;
  background: white;
  transition: border-color .16s, box-shadow .16s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,79,138,.13);
}

textarea { min-height: 94px; resize: vertical; }

.form-divider {
  height: 1px;
  margin: 27px 0 24px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

button, .button {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:disabled { opacity: .58; cursor: wait; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); }
.danger { background: var(--red); color: white; }
.secondary { background: #e5ebf2; color: #1a2a3d; }
.success { background: var(--green); color: white; }
.large-button { padding: 14px 22px; font-size: 17px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-actions { align-items: center; }

.message {
  padding: 13px 15px;
  border-radius: 10px;
  margin: 14px 0;
  font-weight: bold;
  line-height: 1.45;
}

.message.info { background: #e7f1ff; color: #164d80; }
.message.success { background: #e5f5e7; color: #205d27; }
.message.error { background: #ffe8e8; color: #8b1c1c; }

.start-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 13px;
}

.start-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #b8c5d3;
  border-radius: 12px;
  padding: 13px;
  background: #f8fbff;
  cursor: pointer;
  transition: .16s ease;
}

.start-check:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  background: #eef6ff;
  box-shadow: 0 5px 14px rgba(11,79,138,.10);
}

.start-check:has(input:checked) {
  border-color: var(--green);
  background: #eef9ef;
  box-shadow: inset 4px 0 0 var(--green);
}

.start-check input {
  width: auto;
  margin-top: 4px;
  transform: scale(1.2);
}

.start-check.full-start {
  opacity: .55;
  background: #f3f3f3;
  cursor: not-allowed;
}

.start-check.full-start:hover { transform: none; box-shadow: none; }

.start-check .start-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.start-check .free-count {
  margin-top: 4px;
  font-size: 13px;
  font-weight: bold;
  color: var(--green);
}

.start-check.full-start .free-count { color: var(--red); }

.privacy-note {
  margin-top: 21px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff9df;
  color: #4d4324;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.info-card {
  background: white;
  border: 1px solid #e3ebf3;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 5px 18px rgba(21,48,78,.07);
}

.info-card h3 { margin: 9px 0 7px; color: var(--blue-dark); }
.info-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.info-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-weight: bold;
}

/* Meldeliste */
.day-section { margin-bottom: 28px; }
.day-title {
  background: var(--blue-dark);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 13px 17px;
  margin: 0;
}
.start-table-wrap, .admin-table-wrap { overflow-x: auto; }
.start-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 720px;
}
.start-table th, .start-table td {
  border: 1px solid #6f7f91;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.start-table th { background: #f6dc52; text-align: center; }
.start-table .start-head { background: #9cd26d; font-weight: bold; }
.start-table .free { background: #fff; font-weight: bold; text-align: center; }
.start-table .slot { background: #dfeafa; min-height: 34px; }
.start-table .slot.wait { background: #f8d9df; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: bold;
}
.badge.green { background: #dff3e2; color: #246529; }
.badge.red { background: #ffe2e2; color: #9a2323; }

/* Verwaltung */
.admin-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 8px; }
.admin-table th { background: #e8eef5; text-align: left; }
.admin-table tr.storniert { opacity: .55; text-decoration: line-through; }

.hidden { display: none !important; }
.setup-box { border: 2px dashed var(--gold); background: #fff9df; }

footer {
  text-align: center;
  color: var(--muted);
  padding: 25px 15px 38px;
}

@media (max-width: 820px) {
  .hero-visual { display: none; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .grid, .start-check-grid { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
  .brand-mark { width: 58px; height: 58px; }
  .hero { padding: 27px 21px; min-height: 0; }
  .hero h2 { font-size: 31px; }
  .hero p { font-size: 16px; }
  .card { padding: 17px; }
  .section-heading { align-items: flex-start; }
  .required-note { display: none; }
}


/* Kompaktes TSV-Logo im Kopfbereich; keine Schachfigur. */
.club-logo {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  background: white;
  color: #111;
  border: 3px solid white;
  outline: 2px solid rgba(255,255,255,.35);
  clip-path: polygon(8% 0, 92% 0, 100% 72%, 50% 100%, 0 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.club-logo-year { font-size: 15px; font-weight: bold; letter-spacing: .12em; }
.club-logo-name { margin-top: 4px; font-size: 28px; font-weight: 900; }
.hero { min-height: 0; }
.hero-visual { display: none !important; }

.start-list-head,
.start-row {
  display: grid;
  grid-template-columns: 48px 90px minmax(230px, 1fr) 110px 90px;
  align-items: center;
}

.start-list-head {
  margin-top: 14px;
  background: var(--blue-dark);
  color: white;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
}
.start-list-head > * { padding: 11px 10px; text-align: center; }

.start-row-list {
  border: 1px solid #9ba9b8;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.start-row {
  background: white;
  border-top: 1px solid #c8d2dc;
  transition: background .15s ease;
}
.start-row:first-child { border-top: 0; }
.start-row:nth-child(even) { background: #f5f8fb; }
.start-row:hover,
.start-row.selected { background: #e9f6ea; }

.start-row > * {
  min-height: 48px;
  padding: 10px;
  border-right: 1px solid #d4dce5;
  display: flex;
  align-items: center;
}
.start-row > *:last-child { border-right: 0; }
.start-check-cell { justify-content: center; }
.start-checkbox { width: 20px; height: 20px; cursor: pointer; }
.start-name { margin: 0; font-weight: bold; color: var(--blue-dark); }
.start-date { margin: 0; font-weight: normal; }
.start-row .free-count { justify-content: center; font-weight: bold; color: var(--green); }
.start-row.full-start { opacity: .55; background: #eee; }
.team-count { width: 66px; min-height: auto; padding: 7px; text-align: center; margin: 0 auto; }

@media (max-width: 760px) {
  .start-list-head { display: none; }
  .start-row-list { border-top: 1px solid #9ba9b8; border-radius: 10px; }
  .start-row { grid-template-columns: 42px 80px 1fr 74px; padding: 4px 0; }
  .start-row .start-date {
    grid-column: 2 / 5;
    grid-row: 2;
    border-top: 1px dashed #d4dce5;
    border-right: 0;
    min-height: 36px;
    font-size: 13px;
  }
  .start-row .free-count { grid-column: 3; grid-row: 1; }
  .start-row .team-count { grid-column: 4; grid-row: 1; }
}


/* Vereinsbild als dezenter Seitenhintergrund */
body.bowling-background {
  position: relative;
  background:
    linear-gradient(rgba(243,246,249,.92), rgba(255,255,255,.94)),
    url("bilder/tsv_bowling_hintergrund.jpg") center top / cover fixed no-repeat;
}

body.bowling-background::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(255,255,255,.18);
  z-index: -1;
}

.club-logo-image {
  width: 168px;
  flex: 0 0 168px;
}

.club-logo-image img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,.9);
  background: white;
}

.header-title-block {
  min-width: 0;
  flex: 1 1 auto;
}

.sponsor-top {
  margin-left: auto;
  flex: 0 0 285px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.85);
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.sponsor-top img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.site-header .header-inner {
  align-items: center;
}

.card,
.info-card,
.hero {
  backdrop-filter: blur(2px);
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .sponsor-top {
    flex: 1 1 100%;
    max-width: 360px;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  body.bowling-background {
    background-attachment: scroll;
    background-size: auto 560px;
  }

  .club-logo-image {
    width: 118px;
    flex-basis: 118px;
  }

  .club-logo-image img {
    height: 72px;
  }

  .sponsor-top {
    max-width: 100%;
  }

  .sponsor-top img {
    height: auto;
  }
}

.sponsor-group{display:flex;gap:12px;margin-left:auto;align-items:center}.sponsor-group .sponsor-top{margin-left:0;flex:0 0 240px}


/* Neuer Turnierkopf: Sponsor links, Titel mittig, Sponsor rechts */
.tournament-header {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  width: 100%;
  padding: 24px 0;
}

.header-center {
  text-align: center;
  min-width: 0;
}

.header-center .eyebrow {
  margin: 0 0 6px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-center h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.header-center .subtitle {
  margin: 10px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.header-sponsor {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.header-sponsor:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.header-sponsor img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.header-sponsor-left {
  justify-self: start;
}

.header-sponsor-right {
  justify-self: end;
}

.header-sponsor-right img {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.site-header {
  overflow: visible;
}

/* Alte Sponsor-Anordnung aus früheren Versionen deaktivieren */
.sponsor-group,
.club-logo-image,
.header-title-block {
  display: none !important;
}

@media (max-width: 1100px) {
  .tournament-header {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 16px;
  }

  .header-sponsor img {
    height: 120px;
  }
}

@media (max-width: 820px) {
  .tournament-header {
    grid-template-columns: 1fr 1fr;
  }

  .header-center {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .header-sponsor-left {
    grid-column: 1;
    grid-row: 2;
  }

  .header-sponsor-right {
    grid-column: 2;
    grid-row: 2;
  }

  .header-sponsor img {
    height: 105px;
  }
}

@media (max-width: 560px) {
  .tournament-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-center,
  .header-sponsor-left,
  .header-sponsor-right {
    grid-column: 1;
  }

  .header-center {
    grid-row: 1;
  }

  .header-sponsor-left {
    grid-row: 2;
  }

  .header-sponsor-right {
    grid-row: 3;
  }

  .header-sponsor img {
    height: auto;
    max-height: 145px;
  }
}


/* Korrigierter Kopfbereich */
.site-header .tournament-header {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(330px, 1.2fr) minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 20px;
}

.site-header .header-center {
  display: block !important;
  text-align: center;
}

.site-header .header-center .eyebrow,
.site-header .header-center h1,
.site-header .header-center .subtitle {
  display: block !important;
}

.site-header .header-center h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  white-space: nowrap;
}

.site-header .header-sponsor {
  display: block !important;
  width: 100%;
  max-width: 430px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.92);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
}

.site-header .header-sponsor-left {
  justify-self: start;
}

.site-header .header-sponsor-right {
  justify-self: end;
}

.site-header .header-sponsor img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.site-header .header-sponsor-right img {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
}

.site-header nav {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .site-header .tournament-header {
    grid-template-columns: 1fr 1fr;
  }

  .site-header .header-center {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-header .header-sponsor-left {
    grid-column: 1;
    grid-row: 2;
  }

  .site-header .header-sponsor-right {
    grid-column: 2;
    grid-row: 2;
  }

  .site-header .header-center h1 {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .site-header .tournament-header {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 560px);
  }

  .site-header .header-center,
  .site-header .header-sponsor-left,
  .site-header .header-sponsor-right {
    grid-column: 1;
  }

  .site-header .header-center { grid-row: 1; }
  .site-header .header-sponsor-left { grid-row: 2; }
  .site-header .header-sponsor-right { grid-row: 3; }

  .site-header .header-sponsor {
    max-width: none;
  }

  .site-header .header-sponsor img {
    height: auto;
    max-height: 160px;
  }
}


/* Sponsoren außerhalb des Inhalts links und rechts */
.simple-header {
  display: flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 18px;
}

.simple-header .header-center {
  display: block !important;
  text-align: center;
}

.simple-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.outside-sponsors {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.outside-sponsor {
  position: fixed;
  top: 160px;
  width: clamp(220px, 16vw, 320px);
  display: block;
  pointer-events: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 4px solid rgba(255,255,255,.95);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}

.outside-sponsor:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.outside-left {
  left: 18px;
}

.outside-right {
  right: 18px;
}

.outside-sponsor img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 130px;
  object-fit: cover;
}

.outside-right img {
  object-fit: contain;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}

/* Genug Rand für die außenstehenden Sponsoren auf großen Bildschirmen */
@media (min-width: 1500px) {
  main,
  .main-content,
  .container {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Bei schmaleren Bildschirmen wandern die Banner unter den Kopf */
@media (max-width: 1499px) {
  .outside-sponsors {
    position: static;
    display: flex;
    gap: 18px;
    justify-content: center;
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 4px;
    pointer-events: auto;
  }

  .outside-sponsor {
    position: static;
    flex: 1 1 360px;
    max-width: 430px;
    width: auto;
  }
}

@media (max-width: 700px) {
  .outside-sponsors {
    flex-direction: column;
    align-items: center;
  }

  .outside-sponsor {
    width: 100%;
    max-width: 520px;
  }

  .outside-sponsor img {
    min-height: 0;
  }
}

/* Sponsorbanner komplett anzeigen */
.outside-sponsor{
  width:clamp(300px,19vw,360px)!important;
  background:#fff!important;
}
.outside-sponsor img{
  object-fit:contain!important;
  object-position:center center!important;
  height:180px!important;
  padding:12px!important;
  background:#fff!important;
  box-sizing:border-box;
}
@media (max-width:1499px){
  .outside-sponsor{
    max-width:360px!important;
  }
}


/* Mobile Optimierung */
@media (max-width: 700px) {
  body.bowling-background {
    background:
      linear-gradient(rgba(248,250,252,.96), rgba(255,255,255,.98)),
      url("bilder/tsv_bowling_hintergrund.jpg") center top / 700px auto no-repeat;
  }

  .simple-header {
    width: calc(100% - 24px) !important;
    padding: 16px 0 12px !important;
  }

  .simple-header .eyebrow {
    font-size: .72rem !important;
    margin-bottom: 5px !important;
  }

  .simple-header h1 {
    font-size: clamp(1.65rem, 9vw, 2.35rem) !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  .simple-header .subtitle {
    font-size: .9rem !important;
    margin-top: 7px !important;
  }

  .site-header nav {
    width: calc(100% - 20px) !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .site-header nav a {
    padding: 9px 4px !important;
    font-size: .82rem !important;
    text-align: center;
  }

  /* Auf dem Handy beide Sponsoren kompakt nebeneinander */
  .outside-sponsors {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    width: calc(100% - 20px) !important;
    margin: 12px auto 8px !important;
    align-items: stretch !important;
  }

  .outside-sponsor {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-width: 2px !important;
    border-radius: 9px !important;
    box-shadow: 0 5px 12px rgba(0,0,0,.16) !important;
  }

  .outside-sponsor img {
    width: 100% !important;
    height: 92px !important;
    min-height: 0 !important;
    padding: 5px !important;
    object-fit: contain !important;
  }

  main,
  .main-content,
  .container {
    width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .card,
  .info-card,
  .hero {
    border-radius: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Starttabelle auf schmalen Displays lesbarer */
  .starts-table {
    font-size: .82rem !important;
  }

  .starts-table th,
  .starts-table td {
    padding: 7px 4px !important;
  }

  .starts-table input[type="number"] {
    width: 58px !important;
  }
}

@media (max-width: 420px) {
  .outside-sponsor img {
    height: 78px !important;
  }

  .site-header nav a {
    font-size: .75rem !important;
  }

  .simple-header h1 {
    font-size: 1.65rem !important;
  }
}

/* Werbung unten */
.outside-sponsors{display:none!important;}

.bottom-sponsors{
  width:min(900px,calc(100% - 24px));
  margin:40px auto 30px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.bottom-sponsor{
  display:block;
  background:#fff;
  border:2px solid #ddd;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.bottom-sponsor img{
  display:block;
  width:100%;
  height:170px;
  object-fit:contain;
  background:#fff;
  padding:10px;
  box-sizing:border-box;
}

@media(max-width:700px){
  .bottom-sponsors{margin:24px auto 20px;}
  .bottom-sponsor img{height:120px;}
}


/* Nur den roten/gelben Streifen ganz oben ausblenden */
.bowling-stripe { display: none !important; }