/* Datei: /Templates/app_template.css */

:root{
  --app-max: 1100px;
  --app-pad: 24px;

  --app-line: var(--line, #2a2a2a);
  --app-accent: var(--accent, #caa55f);
  --app-bg: rgba(255,255,255,0.02);
}

.ds-app{
  margin: 0;
}

.app-wrap{
  max-width: var(--app-max);
  margin: 0 auto;
  padding: 64px var(--app-pad) 80px;
}

/* =====================================================
   BACK BUTTON – FIXED AUF COLORBAR-EBENE
===================================================== */

/* Fixer Back Button (unten links) */
.app-back-button{
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 9999;

  display: inline-block;
  padding: 12px 18px;

  border: 1px solid var(--app-accent);
  border-radius: 0;

  color: var(--app-accent);
  background: rgba(0,0,0,0.25);
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.app-back-button:hover{
  background: var(--app-accent);
  color: #000;
  text-decoration: none;
}

.app-context{
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 18px;
  background: rgba(0,0,0,0.18);
}
.app-drawer{
  font-weight: 650;
  opacity: 0.9;
}
.app-drawer-sub{
  margin-top: 6px;
  opacity: 0.75;
}

.app-hero{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.app-title{
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
}

.app-subtitle{
  margin: 10px 0 14px;
  opacity: 0.85;
  max-width: 70ch;
}

.app-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 7px 12px;
  border-radius: 999px;

  border: 1px solid var(--app-line);
  background: rgba(0,0,0,0.18);
  opacity: 0.92;
  font-size: 0.95rem;
}

.app-icon{
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--app-line);
  background: rgba(0,0,0,0.25);
}

.app-divider{
  height: 1px;
  background: var(--app-line);
  opacity: 0.9;
  margin: 18px 0 18px;
}

.app-banner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--app-line);
}

.app-block{
  margin-top: 18px;
}

.app-block h2{
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.app-note{
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.015);
}

.app-list{
  margin: 0;
  padding-left: 22px;
}

.media-card{
  border: 1px solid var(--app-line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.22);
}

.media-img{
  width: 100%;
  height: auto;
  display: block;
}



/* =======================================================
   App Template – Bottom fixes
   (Videos nebeneinander + Footer zentriert)
======================================================= */

/* ---------- VIDEO AREA ---------- */

/* Container um beide Videos (wenn du ihn im Template nutzt) */
.video-section{
  margin-top: 18px;
}

/* Grid: 2 Spalten (Desktop), 1 Spalte (Mobile) */
.video-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* einzelne Video-Card */
.video-card{
  border: 1px solid var(--app-line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

/* Video selbst */
.video-card video{
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Caption unter Video */
.app-caption{
  padding: 12px 14px 14px;
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.35;
  border-top: 1px solid var(--app-line);
}

/* wenn nur 1 Video da ist: soll trotzdem schön breit wirken */
.app-video-grid.one{
  grid-template-columns: 1fr;
}

/* -------------------------------
   Download-Box: Layout fix
--------------------------------- */

.app-download{
  margin-top: 18px;
  border: 1px solid rgba(202,165,95,0.55);
  border-radius: 18px;
  padding: 18px;
  background: rgba(0,0,0,0.18);

  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 12px;
  align-items: start;
}

/* Button: feste Größe */
.app-download .btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 48px;
  min-width: 180px;
  padding: 0 28px;

  border-radius: 14px;
  border: 1px solid var(--app-accent);
  background: var(--app-accent);
  color: #000;

  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.app-download .btn-primary:hover{
  filter: brightness(1.05);
}

/* Meta rechts neben Button */
.app-download .download-meta{
  align-self: start;
}

/* Download-Counter (dezent) */
.app-download .download-count{
  margin-top: 2px;
  font-size: 0.85rem;
  opacity: 0.55;
}

/* WICHTIG: Warning über volle Breite unter Button + Meta */
.app-download .download-warning{
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);

  display: flex;
  gap: 10px;
  align-items: flex-start;

  opacity: 0.78;
  font-size: 0.92rem;
  line-height: 1.35;
}

.app-download .download-warning .warn-icon{
  flex: 0 0 auto;
  transform: translateY(1px);
}

.app-download .download-warning .warn-text{
  flex: 1 1 auto;
  max-width: 110ch;
}

/* Mobile */
@media (max-width: 560px){
  .app-download{ grid-template-columns: 1fr; }
  .app-download .download-warning{ grid-column: 1 / -1; }
}


/* ---------- FOOTER ---------- */

.app-footer{
  margin-top: 34px;
  padding: 22px 0 12px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.95rem;
}

/* Counter-Zeile */
.app-footer .counter{
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.counter-label{
  margin-right: 6px;
}

@media (max-width: 820px){
  .video-grid{ grid-template-columns: 1fr; }
  .app-hero{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .app-wrap{ padding: 56px 16px 80px; }
  .back-button{ left: 18px; bottom: 18px; }
  .app-download{ grid-template-columns: 1fr; }
}