/* Live-Beispiel hops24.de/demo (demo/index.php, docs/demo-seite.md).
   Oben die HOPS24-Leiste mit dem Schalter, darunter die Website eines erfundenen Verleihs – bewusst in eigenem Look. */
:root {
  --hops-blue: #0367d3; --hops-ink: #12223a; --hops-line: #dbe5f1;
  --vs-sun: #f59e0b; --vs-sun-dark: #b45309; --vs-teal: #0f766e; --vs-cream: #fffbf2; --vs-ink: #3b2a12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; color: var(--vs-ink); background: #f3efe6; }
img { max-width: 100%; height: auto; }

/* Sichtbarkeit je Ansicht */
[data-show] { display: none; }
body[data-mode="before"] [data-show="before"],
body[data-mode="free"] [data-show="free"],
body[data-mode="business"] [data-show="business"] { display: block; }

/* ── HOPS24-Leiste ── */
.demo-bar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--hops-blue); box-shadow: 0 6px 18px rgba(18, 34, 58, .12); color: var(--hops-ink); }
.demo-bar__inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.demo-bar__logo img { display: block; height: 28px; width: auto; }
.demo-bar__label { margin: 0; font-size: .92rem; flex: 1 1 240px; }
.demo-bar__label strong { background: #fcc000; color: #3b2a00; border-radius: 6px; padding: 2px 8px; margin-right: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.demo-switch { display: inline-flex; flex-wrap: wrap; background: #eef4fb; border: 1px solid var(--hops-line); border-radius: 999px; padding: 4px; gap: 4px; }
.demo-switch button { font: inherit; font-weight: 700; font-size: .92rem; border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--hops-ink); cursor: pointer; }
.demo-switch button[aria-pressed="true"] { background: var(--hops-blue); color: #fff; box-shadow: 0 2px 8px rgba(3, 103, 211, .35); }
.demo-switch button:focus-visible { outline: 3px solid #fcc000; outline-offset: 2px; }
.demo-bar__text { max-width: 1120px; margin: 0 auto; padding: 2px 16px 10px; font-size: .92rem; color: #42536b; }
body[data-mode] .demo-bar__text[data-show] { display: none; }
body[data-mode="before"] .demo-bar__text[data-show="before"],
body[data-mode="free"] .demo-bar__text[data-show="free"],
body[data-mode="business"] .demo-bar__text[data-show="business"] { display: block; }

/* ── Erfundene Verleih-Website ── */
.vs { max-width: 1120px; margin: 22px auto; background: var(--vs-cream); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(59, 42, 18, .14); }
.vs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 28px; background: #fff; border-bottom: 4px solid var(--vs-sun); }
.vs-brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; color: var(--vs-sun-dark); text-decoration: none; }
.vs-brand span:last-child { color: var(--vs-teal); }
.vs-brand__sun { color: var(--vs-sun); }
.vs-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.vs-nav a { color: var(--vs-ink); text-decoration: none; font-weight: 600; }
.vs-nav a:hover { color: var(--vs-teal); }
.vs-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 40px 28px; background: linear-gradient(135deg, #fff3d6, #ffe0a3); }
.vs-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; margin: 4px 0 12px; color: #2b1d07; }
.vs-hero img { border-radius: 16px; box-shadow: 0 10px 26px rgba(59, 42, 18, .18); }
.vs-kicker { margin: 0; color: var(--vs-teal); font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
.vs-btn { display: inline-block; margin-top: 8px; background: var(--vs-teal); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 10px; }
.vs-section { padding: 34px 28px; }
.vs-section--alt { background: #fff7e6; }
.vs-section h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; margin: 0 0 16px; color: #2b1d07; }
.vs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.vs-card { background: #fff; border: 1px solid #f0dfbd; border-radius: 12px; padding: 12px; }
.vs-card img { border-radius: 8px; display: block; }
.vs-card h3 { font-size: 1.05rem; margin: 10px 0 4px; }
.vs-price { margin: 0; font-weight: 700; color: var(--vs-sun-dark); }
.vs-muted { color: #7a6448; margin: 4px 0 0; }
.vs-small { font-size: .88rem; }
.vs-box { background: #fff; border: 1px dashed #e5c98f; border-radius: 12px; padding: 16px 18px; margin: 0; }
.vs-foot { padding: 22px 28px; background: #2b1d07; color: #f7e8c8; }
.vs-foot p { margin: 4px 0; }
.vs-foot a { color: #ffd47a; }

/* Hinweise zur jeweiligen Ansicht */
.demo-note { display: flex; gap: 12px; align-items: flex-start; background: #eaf3ff; border: 1px solid #b9d6fb; border-left: 5px solid var(--hops-blue); color: var(--hops-ink); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
body[data-mode="before"] .demo-note { background: #fff1f1; border-color: #f6c3c4; border-left-color: #e51f23; }
.demo-note p { margin: 0; }
.demo-note__num { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hops-blue); color: #fff; font-weight: 800; font-size: .9rem; }
body[data-mode="before"] .demo-note__num { background: #e51f23; }
.demo-code { margin-top: 12px; color: var(--hops-ink); }
.demo-code summary { cursor: pointer; color: var(--hops-blue); font-weight: 700; }
.demo-code p { margin: 6px 0; font-size: .9rem; }
.demo-code pre { background: #12223a; color: #e5eefb; border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: .8rem; margin: 0; white-space: pre-wrap; word-break: break-all; }

/* ── Abschluss & Erklärseite (HOPS24-Stil) ── */
.demo-cta { max-width: 760px; margin: 10px auto 48px; padding: 28px 22px; text-align: center; background: #fff; border-radius: 18px; border: 1px solid var(--hops-line); color: var(--hops-ink); }
.demo-cta h2 { margin: 0 0 8px; }
.demo-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.demo-cta__small { font-size: .88rem; color: #5a6b82; margin: 8px 0 0; }
.demo-btn { display: inline-block; background: var(--hops-blue); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 10px; }
.demo-btn--ghost { background: #fff; color: var(--hops-blue); border: 2px solid var(--hops-blue); }
.demo-info { background: #f3f7fc; color: var(--hops-ink); }
.demo-info__card { max-width: 620px; margin: 8vh auto; background: #fff; border-radius: 18px; padding: 28px 24px; border: 1px solid var(--hops-line); }
.demo-info__card h1 { font-size: 1.5rem; margin: 18px 0 10px; }

.demo-switch__short { display: none; }

@media (max-width: 720px) {
  html { scroll-padding-top: 190px; }
  .vs { margin: 12px 8px; border-radius: 14px; }
  .vs-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 18px; }
  .vs-hero img { display: none; }
  .vs-section, .vs-head, .vs-foot { padding-left: 18px; padding-right: 18px; }
  .demo-bar__inner { padding: 8px 12px 8px; gap: 6px 10px; }
  .demo-bar__logo img { height: 22px; }
  .demo-bar__label { font-size: .8rem; flex-basis: auto; }
  .demo-bar__label strong { margin-right: 0; }
  .demo-bar__label > :not(strong) { display: none; }
  body[data-mode] .demo-bar__text[data-show] { display: none; }
  .demo-switch { width: 100%; flex-wrap: nowrap; }
  .demo-switch button { flex: 1 1 0; padding: 8px 6px; font-size: .85rem; white-space: nowrap; }
  .demo-switch__long { display: none; }
  .demo-switch__short { display: inline; }
}
