/* ==========================================================================
   onlinecasinoapplepay.com — Haupt-Stylesheet
   Palette: Bergsee-Petrol (Hintergrund) · Schweizer Rot (Aktionen) · Gletscher (Inhalt)
   ========================================================================== */

:root {
  --bg: #0f3a46;            /* Seitenhintergrund: Bergsee-Petrol */
  --bg-deep: #0a2a33;       /* Header / Footer / Popup */
  --surface: #eef4f3;       /* Inhaltsfläche: Gletscher */
  --surface-2: #dfeae8;     /* Tabellenzeilen, Zitate, Autorenblock */
  --text: #1c2b31;
  --text-muted: #4d6269;
  --heading: #0b2e37;
  --accent: #d52b1e;        /* Schweizer Rot – Buttons */
  --accent-dark: #b01f14;
  --mint: #1fb5a5;          /* Sekundärakzent */
  --mint-dark: #0f7c71;     /* Links im Text */
  --border: #c9dad7;
  --on-dark: #e6f1f0;
  --on-dark-muted: #9fbdbe;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(3, 20, 26, .6);
  --container: 1140px;
  --content: 880px;
  --header-h: 72px;
  --popup-offset: 0px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 8% -10%, rgba(31, 181, 165, .22), transparent 60%),
    radial-gradient(900px 500px at 105% 30%, rgba(213, 43, 30, .10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- Buttons (Header / Popup) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.btn--ghost {
  color: var(--on-dark);
  background: transparent;
  border-color: rgba(230, 241, 240, .45);
}
.btn--ghost:hover {
  border-color: var(--on-dark);
  background: rgba(255, 255, 255, .08);
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px -10px rgba(213, 43, 30, .9);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 42, 51, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header__inner {
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.header__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN – alle Inhaltsstile
   ========================================================================== */
main {
  flex: 1 0 auto;
  width: calc(100% - 40px);
  max-width: var(--content);
  margin: 40px auto 56px;
  padding: 56px 64px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

main > :first-child { margin-top: 0; }
main > :last-child { margin-bottom: 0; }

/* Überschriften */
main h1, main h2, main h3, main h4, main h5, main h6 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 1.8em 0 .6em;
}
main h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  letter-spacing: -.02em;
  margin-top: 0;
}
main h2 {
  position: relative;
  font-size: clamp(23px, 3vw, 30px);
  padding-left: 18px;
}
main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
}
main h3 { font-size: clamp(20px, 2.4vw, 23px); }
main h4 { font-size: 19px; }
main h5 { font-size: 17px; }
main h6 { font-size: 16px; color: var(--text-muted); }

/* Text */
main p { margin: 0 0 1.2em; }

main a {
  color: var(--mint-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
main a:hover { color: var(--accent-dark); }

main strong, main b { color: var(--heading); font-weight: 700; }
main em, main i { font-style: italic; }
main small { font-size: .85em; color: var(--text-muted); }
main mark { background: #ffe2dc; color: inherit; padding: 0 .2em; border-radius: 3px; }

/* Listen */
main ul, main ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}
main li {
  margin-bottom: .45em;
  padding-left: .25em;
}
main li::marker {
  color: var(--accent);
  font-weight: 700;
}
main li > ul, main li > ol { margin: .5em 0 0; }

/* Zitat */
main blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--heading);
  font-style: italic;
}
main blockquote p:last-child { margin-bottom: 0; }
main blockquote cite {
  display: block;
  margin-top: .6em;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

/* Trennlinie */
main hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--border);
}

/* Code */
main code {
  font-family: var(--mono);
  font-size: .9em;
  padding: .15em .4em;
  border-radius: 6px;
  background: var(--surface-2);
}
main pre {
  margin: 1.6em 0;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--on-dark);
}
main pre code { padding: 0; background: none; color: inherit; }

/* Bilder, Videos, Einbettungen */
main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px -16px rgba(10, 42, 51, .5);
}
main figure { margin: 2em 0; }
main figure img { margin: 0 auto; }
main figcaption {
  margin-top: .7em;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
main video, main iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2em auto;
  border: 0;
  border-radius: var(--radius-sm);
}
main iframe { aspect-ratio: 16 / 9; height: auto; }

/* Tabellen */
main table {
  width: 100%;
  margin: 2em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fbfa;
  font-size: 15px;
  line-height: 1.5;
}
main caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-weight: 700;
  color: var(--heading);
}
main th, main td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
main th {
  background: var(--bg);
  color: #fff;
  font-weight: 700;
}
main tbody th {
  background: var(--surface-2);
  color: var(--heading);
}
main tbody tr:nth-child(even) td { background: #e7f0ee; }
main tbody tr:hover td { background: #d9e8e5; }
main tr:last-child th, main tr:last-child td { border-bottom: 0; }

/* Zentrierter CTA-Button im Inhalt */
main .btn-cta {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 2.2em auto;
  padding: 18px 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 32px -14px rgba(213, 43, 30, .85);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
main .btn-cta:hover {
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(213, 43, 30, .95);
}

/* Autorenblock */
main .author {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 3em 0 0;
  padding: 26px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
main .author__avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent);
}
main .author__body { min-width: 0; }
main .author__label {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
main .author__name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--heading);
}
main .author__text {
  margin: 0;
  font-style: italic;
}

/* 404-Seite */
main.error-page { text-align: center; }
main .error-page__code {
  margin: 0 0 .1em;
  font-size: clamp(96px, 22vw, 190px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--accent);
}
main.error-page h1 { margin-bottom: .4em; }
main.error-page p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 32px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-dark);
}
.footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__list a {
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 241, 240, .3);
  transition: color .2s, border-color .2s;
}
.footer__list a:hover {
  color: var(--mint);
  border-color: var(--mint);
}
.footer__text { margin: 0; }

/* ---------- Nach-oben-Pfeil ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--popup-offset));
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mint-dark);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, visibility .25s, transform .25s, bottom .35s, background-color .2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: var(--mint); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Popup ---------- */
.popup {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 70;
  width: calc(100% - 32px);
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  background: var(--bg-deep);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility .45s;
}
.popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.popup__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}
.popup__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.popup__btn { flex-shrink: 0; min-height: 42px; padding: 8px 18px; font-size: 14px; }
.popup__close {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--bg-deep);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.popup__close:hover { background: var(--surface-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  main {
    width: calc(100% - 24px);
    margin: 20px auto 32px;
    padding: 28px 20px;
    border-radius: 14px;
  }

  /* Breite Tabellen scrollen horizontal, statt die Seite zu verbreitern */
  main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    font-size: 14px;
  }
  main th, main td {
    min-width: 130px;
    padding: 10px 12px;
  }

  main .btn-cta {
    padding: 16px 28px;
    font-size: 16px;
  }

  main .author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
  }
}

@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .header__inner { padding: 0 14px; gap: 10px; }
  .header__logo img { height: 30px; }
  .header__actions { gap: 8px; }
  .btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }

  .popup {
    bottom: 12px;
    width: calc(100% - 24px);
    flex-wrap: wrap;
    padding: 14px;
  }
  .popup__logo { width: 40px; height: 40px; }
  .popup__text { flex: 1 1 calc(100% - 56px); font-size: 14px; }
  .popup__btn { flex: 1 1 100%; }

  .to-top { right: 14px; bottom: calc(14px + var(--popup-offset)); width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .header__logo img { height: 24px; }
  .btn { padding: 7px 10px; font-size: 12px; letter-spacing: .01em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
