/* =========================================================================
   Schützenbruderschaft Sankt Sebastian 1924 e. V. Troisdorf
   Übergangsseite (statisch, ohne CMS, ohne PHP) — Oktober 2026

   Farben und Maße stammen aus der Vermessung des alten Ionosphere-
   Templates (siehe template-anpassungen/custom.css im Projekt).
   ========================================================================= */

@font-face {
  font-family: "TitilliumText22L";
  src: url("../schriften/TitilliumText22L004-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TitilliumText22L";
  src: url("../schriften/TitilliumText22L001-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --akzent: #506a39;
  --akzent-dunkel: #425e23;
  --grund: #283915;
  --modultitel: #354c1c;
  --rahmen: #34491a;
  --karte: #f9f9f9;
  --text: #515554;
  --link-hell: #add27e;
  --titel-font: "TitilliumText22L", "Titillium Web", Helvetica, Arial, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund) url("../bilder/vertical-linen.png") repeat;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--akzent-dunkel); }
a:hover, a:focus { color: var(--akzent); }

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

/* ---- Kopf: Logo-Zeile ---- */
.kopf {
  background: var(--akzent) url("../bilder/top-overlay.png") repeat-x 0 0;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.kopf .container {
  position: relative;
  min-height: 77px;
  padding: 17px 16px 8px 149px;
}
.kopf .wappen {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 119px;
  height: 108px;
  z-index: 20;
}
.kopf .schriftzug { display: block; height: 46px; width: auto; }
.kopf .schriftzug-link { display: inline-block; line-height: 0; }

/* ---- Menüleiste ---- */
.leiste {
  background: #999b9f url("../bilder/menu-overlay.png") repeat-x;
  background-size: auto 100%;
  border-top: 1px solid #babbbd;
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 -3px 5px rgba(0,0,0,.3), 0 2px 5px rgba(0,0,0,.35);
}
.leiste ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 139px;
  display: flex;
  flex-wrap: wrap;
  min-height: 61px;
}
.leiste a {
  display: block;
  padding: 16px 18px 10px;
  font-family: var(--titel-font);
  font-size: 17px;
  line-height: 30px;
  text-decoration: none;
  color: #2d3035;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  border-bottom: 5px solid transparent;
}
.leiste a:hover, .leiste a:focus, .leiste a.aktiv {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  background: url("../bilder/menu-overlay-active.png") repeat-x;
  background-size: auto 100%;
  border-bottom-color: var(--akzent);
}

/* ---- Inhalt ---- */
main { padding: 30px 0 40px; }
.panel {
  background: var(--akzent-dunkel);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  padding: 20px 16px;
}
.karte {
  background: var(--karte);
  color: var(--text);
  border: 4px solid var(--rahmen);
  border-radius: 6px;
  padding: 22px 26px;
  margin: 0 0 20px;
}
.karte:last-child { margin-bottom: 0; }
.karte h1, .karte h2 {
  font-family: var(--titel-font);
  font-weight: normal;
  color: var(--akzent-dunkel);
  margin: 0 0 14px;
  line-height: 1.2;
}
.karte h1 { font-size: 34px; }
.karte h2 { font-size: 24px; }
.karte h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 17px;
  color: var(--text);
  margin: 22px 0 8px;
}
.karte p { margin: 0 0 1em; }
.karte .gruss { margin-top: 1.4em; }
.karte .gruss strong { display: block; }

.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.zwei-spalten .karte { margin: 0; }

/* Kontaktliste */
.kontakte { list-style: none; margin: 0; padding: 0; }
.kontakte li {
  padding: 9px 0;
  border-bottom: 1px solid #e0e3dc;
}
.kontakte li:last-child { border-bottom: 0; }
.kontakte .rolle { display: block; font-weight: bold; }
.kontakte a.mail { word-break: break-all; }

/* Terminliste */
.termine { list-style: none; margin: 0; padding: 0; }
.termine li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e0e3dc;
}
.termine li:last-child { border-bottom: 0; }
.termine time { font-weight: bold; white-space: nowrap; }
.termine .ort { display: block; font-size: 13px; color: #777; }
.hinweis { font-size: 13px; color: #777; margin: 14px 0 0; }

/* Rechtstexte */
.rechtstext h2 { margin-top: 26px; font-size: 22px; }
.rechtstext h2:first-of-type { margin-top: 0; }
.rechtstext p { margin: 0 0 .8em; }

/* ---- Fuß ---- */
.fuss {
  background: var(--grund) url("../bilder/dark-50.png") repeat;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #ddd;
  font-size: 13px;
}
.fuss .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 16px;
}
.fuss a { color: var(--link-hell); font-weight: bold; text-decoration: none; }
.fuss a:hover, .fuss a:focus { color: #fff; }
.fuss nav a { margin-left: 18px; }
.fuss nav a:first-child { margin-left: 0; }

/* ---- Mobil ---- */
@media (max-width: 860px) {
  .zwei-spalten { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kopf .container { padding: 14px 16px 10px 104px; min-height: 0; }
  .kopf .wappen { width: 80px; height: auto; left: 12px; top: 4px; }
  .kopf .schriftzug { height: 34px; }
  .leiste ul { padding-left: 0; min-height: 0; }
  .leiste a { padding: 10px 14px 6px; font-size: 15px; line-height: 26px; }
  .panel { padding: 12px 10px; }
  .karte { padding: 18px 16px; }
  .karte h1 { font-size: 27px; }
  .termine li { grid-template-columns: 1fr; gap: 2px; }
  .fuss .container { flex-direction: column; }
}
