/* BR-Manager Website */

:root {
  --thw-blau: #003399;
  --thw-blau-dark: #002266;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-text: #444444;
  --max-width: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grey-text);
  line-height: 1.6;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--thw-blau); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Language toggle ── */
[data-lang="de"] .en, html:not([data-lang]) .en { display: none; }
[data-lang="en"] .de { display: none; }

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 1rem;
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ── Header ── */
.site-header {
  background: var(--thw-blau);
  color: var(--white);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}
.site-header .logo:hover { text-decoration: none; }
.site-header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.site-header nav {
  display: flex;
  align-items: center;
}
.site-header nav a {
  color: var(--white);
  margin-left: 1.5rem;
  font-size: .9rem;
  opacity: .85;
  transition: opacity .2s;
}
.site-header nav a:hover,
.site-header nav a.active {
  opacity: 1;
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--thw-blau) 0%, var(--thw-blau-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}
.hero .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.5px;
}
.hero .subtitle {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 1.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero .cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero .cta-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s;
}
.hero .cta-badge:hover {
  background: rgba(255,255,255,.2);
  text-decoration: none;
}

/* ── Features ── */
.features {
  padding: 4rem 1.5rem;
  background: var(--grey-light);
}
.features .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.features h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}
.feature-card h3 {
  font-size: 1rem;
  color: var(--thw-blau);
  margin-bottom: .25rem;
}
.feature-card p {
  font-size: .9rem;
  line-height: 1.5;
}
.version-badge {
  display: inline-block;
  background: var(--thw-blau);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: .25rem;
  letter-spacing: .5px;
}

/* ── Screenshots ── */
.screenshots {
  padding: 4rem 1.5rem;
}
.screenshots .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.screenshots h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}
.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--thw-blau) transparent;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--thw-blau); border-radius: 3px; }
.screenshots-scroll img {
  height: 480px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  scroll-snap-align: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.screenshots-scroll img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
  animation: lb-fade .25s ease forwards;
}
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2.5rem; cursor: pointer; opacity: .8;
  transition: opacity .2s; z-index: 1001;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 3rem; cursor: pointer; opacity: .7;
  padding: .75rem .5rem; border-radius: 8px; z-index: 1001;
  transition: opacity .2s, background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; background: rgba(255,255,255,.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Video ── */
.app-video {
  padding: 4rem 1.5rem;
  background: var(--grey-light);
}
.app-video .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.app-video h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}
.video-wrapper { display: flex; justify-content: center; }
.video-wrapper video {
  max-height: 600px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* ── Highlight box ── */
.highlight-box {
  background: linear-gradient(135deg, #e8f0fe, #dce8fc);
  border-left: 4px solid var(--thw-blau);
  color: var(--grey-text);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: .95rem;
  line-height: 1.6;
}

/* ── Content pages ── */
.content-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
}
.content-page h1 {
  color: var(--thw-blau);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.content-page h2 {
  color: var(--thw-blau);
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.content-page p { margin-bottom: 1rem; font-size: .95rem; }
.content-page ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-page li { margin-bottom: .5rem; line-height: 1.5; font-size: .95rem; }

/* ── Guide page ── */
.guide-page h2 { margin-top: 2.5rem; }
.guide-page .intro {
  font-size: 1.05rem;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
}
.step-number {
  width: 2rem;
  height: 2rem;
  background: var(--thw-blau);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.guide-step p { margin: 0; font-size: .95rem; padding-top: .2rem; }
.guide-screenshot {
  display: block;
  max-height: 420px;
  width: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.guide-page h3 {
  font-size: 1rem;
  color: var(--thw-blau);
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
.guide-page ol, .guide-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.guide-page li { margin-bottom: .4rem; font-size: .95rem; }

/* ── Footer ── */
.site-footer {
  background: var(--thw-blau);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-top: auto;
}
.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a {
  color: var(--white);
  opacity: .85;
  margin-left: 1.5rem;
  font-size: .9rem;
}
.site-footer a:hover { opacity: 1; text-decoration: none; }
.site-footer .copyright { font-size: .85rem; opacity: .7; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .site-header .container { flex-wrap: wrap; gap: .5rem; }
  .site-header nav a { margin-left: .75rem; font-size: .85rem; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .site-footer a { margin-left: 0; margin: 0 .75rem; }
  .screenshots-scroll img { height: 360px; }
  .video-wrapper video { max-height: 400px; }
  .lightbox-prev, .lightbox-next { font-size: 2rem; padding: .5rem; }
}
