/* trommeln-tanzen-afrika.de — visual style based on original STRATO Baukasten layout */
:root {
  /* Brand blues taken from the original design (cm4all vars.css):
     #00b1e6 is the header/footer/accent blue, #e1f8ff the page ground,
     #032a36 the content text colour. --blue-link is a darkened #00b1e6,
     used where the accent has to carry small text legibly. */
  --blue:        #00b1e6;
  --blue-dark:   #009bcb;
  --blue-darker: #0086b0;
  --blue-text:   #00b1e6;
  --blue-link:   #0284ad;
  --page-bg:     #e1f8ff;
  --footer-text: #d2f4ff;
  --text:        #032a36;
  --text-light:  #8a8a8a;
  --white:       #ffffff;
  --content-w:   1200px;

  /* One family throughout: Roboto. Headlines are set apart by size and
     weight rather than by a second typeface. */
  --font-body:   'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Helvetica, Arial, sans-serif;
  --font-head:   var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg) url('/images/bg-pebbles.jpg') center top fixed no-repeat;
  background-size: cover;
  min-height: 100vh;
}

img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }

.site {
  max-width: var(--content-w);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
}

.site-header {
  background: var(--blue);
  display: flex;
  align-items: stretch;
  padding: 0;
  min-height: 110px;
}
.site-header .logo-wrap {
  background: var(--white);
  width: 168px;
  flex: 0 0 168px;
  padding: 0 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.site-header .logo-wrap img {
  display: block;
  margin: 0 auto;
  max-width: 140px;
  max-height: 86px;
}
.site-header .title-wrap {
  flex: 1;
  padding: 14px 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.site-header h1 {
  margin: 0 0 2px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-header .tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.main-row {
  display: flex;
  align-items: stretch;
  min-height: 500px;
}

.sidebar {
  width: 168px;
  flex: 0 0 168px;
  background: var(--white);
  border-right: 1px solid #f0f0f0;
  padding: 8px 0 30px;
}
.sidebar nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar nav li { margin: 0; }
.sidebar nav a {
  display: block;
  padding: 10px 16px 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue-link);
  border-bottom: 1px solid #e2f2f8;
  text-decoration: none;
  line-height: 1.25;
}
.sidebar nav a:hover { color: var(--white); background: var(--blue); }
.sidebar nav a[aria-current="page"] { color: var(--white); background: var(--blue); }

.content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #1a1a1a;
  display: block;
}
.hero .slides { position: absolute; inset: 0; }
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.hero .slide.is-active { opacity: 1; }
.hero .dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero .dots button {
  width: 10px; height: 10px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25); cursor: pointer; padding: 0;
  transition: background 0.2s;
}
.hero .dots button.is-active { background: rgba(255,255,255,0.9); }

.keyvisual { width: 100%; }
.keyvisual img { width: 100%; height: auto; display: block; }

main {
  padding: 22px 26px 32px;
  flex: 1;
  min-width: 0;
}
main h2, main h3 {
  font-family: var(--font-head);
  color: var(--blue-text);
  font-weight: 700;
  margin: 0 0 0.7em;
  line-height: 1.28;
  letter-spacing: -0.1px;
}
main h2 { font-size: 22px; }
main h3 { font-size: 19px; }
main h2 + p, main h3 + p { margin-top: -2px; }

/* Running text: normal weight, neutral dark — not the headline blue.
   Hyphenate instead of hard-coding line breaks the way the old site did. */
main p {
  margin: 0 0 1em;
  color: var(--text);
  font-weight: 400;
  hyphens: auto;
  -webkit-hyphens: auto;
}
main p:last-child { margin-bottom: 0; }

/* Italic intro paragraph, as on the original. */
main p.lead {
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--blue-text);
  margin-bottom: 1.4em;
}

main strong { font-weight: 500; }
main em { font-style: italic; }
main a { font-weight: 500; }

.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 6px;
}
.cols-3 p { font-size: 15px; line-height: 1.6; }
.cols-3 h3 { font-size: 18px; }
.cols-3 > div { min-width: 0; }

main img {
  margin: 14px auto;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 1px;
}
main video { width: 100%; margin: 14px 0; background: #000; }

/* YouTube embeds load only on click: the thumbnail is served from this site,
   so nothing reaches Google until the visitor asks for the video. */
.yt-embed { margin: 18px 0; }
.yt-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.yt-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  line-height: 0;
}
.yt-play img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; display: block; }
.yt-play-icon {
  position: absolute; top: 50%; left: 50%;
  width: 68px; height: 48px; margin: -24px 0 0 -34px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 10px;
  transition: background 0.15s;
}
.yt-play-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.yt-play:hover .yt-play-icon,
.yt-play:focus-visible .yt-play-icon { background: #cc0000; }
.yt-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-light);
}
.yt-note a { color: var(--blue-link); text-decoration: underline; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.gallery a img {
  margin: 0;
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.18s;
}
.gallery a:hover img { transform: scale(1.03); }

form.contact-form { margin: 1.5em 0; }
form.contact-form label { display: block; font-weight: 500; margin: 1em 0 0.35em; font-size: 0.95rem; }
form.contact-form .req { color: #c0382b; }
form.contact-form input[type=text],
form.contact-form input[type=email],
form.contact-form input[type=tel],
form.contact-form textarea {
  width: 100%; padding: 0.6em 0.75em; font: inherit;
  border: 1px solid #c8b89c; background: #fafafa; border-radius: 3px;
}
form.contact-form input:focus, form.contact-form textarea:focus {
  outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue);
}
form.contact-form textarea { min-height: 12em; resize: vertical; }
form.contact-form button {
  margin-top: 1.25em;
  background: var(--blue); color: #fff; border: 0;
  padding: 0.85em 2em; font: inherit; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  cursor: pointer; border-radius: 3px;
}
form.contact-form button:hover { background: var(--blue-darker); }

.site-footer {
  background: var(--blue);
  color: var(--footer-text);
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a {
  color: var(--white);
  text-decoration: underline;
  margin: 0 8px;
  font-weight: 700;
}

.thumb-rail {
  width: 168px;
  flex: 0 0 168px;
  max-width: 168px;
  background: var(--white);
  border-left: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  align-self: flex-start;
}
.thumb-rail .rail-btn {
  width: 100%;
  height: 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--blue-link);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex: 0 0 26px;
}
.thumb-rail .rail-btn:hover { background: var(--blue); color: var(--white); }
.thumb-rail .rail-btn:disabled { color: #d0d0d0; cursor: default; background: transparent; }
.thumb-rail .rail-viewport {
  overflow: hidden;
  position: relative;
  height: calc(100px * 10 + 8px * 9 + 16px); /* exactly 10 thumbs */
}
.thumb-rail .rail-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  width: 100%;
  transition: transform 0.35s ease;
}
.thumb-rail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100px;
  max-height: 100px;
  object-fit: cover;
  cursor: pointer;
  margin: 0;
  transition: opacity 0.15s;
  border-radius: 1px;
}
.thumb-rail img:hover { opacity: 0.85; }
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  cursor: default;
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 0; width: 44px; height: 44px;
  font-size: 22px; font-weight: 700; cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background 0.15s;
}
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.5px;
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .site-header { flex-direction: column; align-items: stretch; min-height: 0; }
  .site-header .logo-wrap { width: 100%; flex: none; padding: 14px; }
  .site-header .title-wrap { text-align: center; padding: 14px; }
  .main-row { flex-direction: column; }
  .sidebar { width: 100%; flex: none; padding: 0; border-right: 0; border-bottom: 1px solid #eef4f8; }
  .sidebar nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
  .sidebar nav li { flex: 1 1 33%; }
  .sidebar nav a { padding: 10px 8px; font-size: 11.5px; text-align: center; border-bottom: 1px solid #eef4f8; }
  main { padding: 18px 14px 26px; }
  .cols-3 { grid-template-columns: 1fr; gap: 0; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gallery a img { height: 140px; }
    .lightbox .lb-prev, .lightbox .lb-next { width: 38px; height: 38px; font-size: 18px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
  .lightbox .lb-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 18px; }
}
