/* Fonts (Fontsource, OFL) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/poppins-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/raleway-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/raleway-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/raleway-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/raleway-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Handlee";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/handlee-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Design Tokens */
:root {
  --bg:#F2F1F7; --card:#FFFFFF; --text:#424541; --text-muted:#5F6267; --heading:#6A0DAD;
  --primary:#9C27B0; --primary-hover:#7B1FA2; --navy:#1A237E; --tint:#EFDCF2; --turquoise:#0CC0DF; --on-turquoise:#1D1D1D;
  --line:#DDDEE4; --error:#C62828; --success:#2E7D32; --focus:#1A237E;
  --radius-card:10px; --radius-pill:999px; --shadow:0 3px 6px rgba(182,184,192,.18);
  --font-heading:"Poppins",system-ui,sans-serif; --font-body:"Raleway",system-ui,sans-serif; --font-accent:"Handlee",cursive;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Fokus-Ring */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--card);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-card);
  border: 2px solid var(--focus);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: var(--card);
  border-bottom: 2px solid var(--primary);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
}

.header-logo-icon {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-card);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-nav-link:hover {
  color: var(--heading);
  background-color: var(--bg);
}

.inline-form {
  display: inline;
  margin: 0;
}

@media (max-width: 767px) {
  .site-header-auth .header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .site-header-auth .brand-title,
  .site-header-auth .header-nav-faq-auth,
  .site-header-auth .header-nav-sub-auth {
    display: none;
  }

  .site-header-auth .header-nav {
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-left: auto;
  }

  .site-header-auth .header-nav-link {
    font-size: 0.9375rem;
    padding: 0.375rem 0.5rem;
    white-space: nowrap;
  }

  .site-header-auth .btn-logout-compact {
    min-height: 40px;
    padding: 0.375rem 0.875rem;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
}

/* Main */
.site-main {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--heading);
  margin-top: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.section-heading {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
  margin-top: 0.625rem;
}

.section-heading-center {
  text-align: center;
}

.section-heading-center::after {
  margin-left: auto;
  margin-right: auto;
}

.accent-line {
  font-family: var(--font-accent);
  font-size: 1.375rem;
  color: var(--heading);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.text-muted {
  color: var(--text-muted);
}

a {
  color: var(--heading);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

/* Cards & Sections */
.card {
  background-color: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-tint {
  background-color: var(--tint);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-logo-wrap {
  margin-bottom: 1.25rem;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  display: inline-block;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.1875rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button-group-center {
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--primary);
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover,
.btn-secondary:active {
  background-color: var(--tint);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-small {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

/* Steps grid on homepage */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.step-card {
  background-color: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--tint);
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.375rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-hint {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.6875rem 1rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text);
  background-color: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
}

.form-control:focus {
  border-color: var(--focus);
}

.form-control-error {
  border-color: var(--error);
}

.form-control-code {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  letter-spacing: 0.35em;
  text-align: center;
  max-width: 240px;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--error);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox {
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.hp-field {
  display: none !important;
}

/* Alert / Hinweis-Boxen */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  border-left: 4px solid var(--primary);
  background-color: var(--card);
  margin-bottom: 1.5rem;
}

.notice-icon {
  font-weight: 700;
  flex-shrink: 0;
}

.notice-info {
  background-color: var(--tint);
  border-left-color: var(--heading);
  color: var(--text);
}

.notice-success {
  background-color: #EBF5EC;
  border-left-color: var(--success);
  color: var(--text);
}

.notice-warning {
  background-color: #FFF8E1;
  border-left-color: #B26A00;
  color: var(--text);
}

.notice-error {
  background-color: #FDF2F2;
  border-left-color: var(--error);
  color: var(--text);
}

.draft-todo {
  display: inline-block;
  background-color: #FFF3CD;
  color: var(--navy);
  border: 1px solid #D9A406;
  border-radius: 6px;
  padding: 0.125rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Progress bar & Badge */
.progress-wrap {
  margin: 1rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.progress-track {
  width: 100%;
  height: 16px;
  background-color: var(--bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-bar {
  height: 100%;
  background-color: var(--turquoise);
  color: var(--on-turquoise);
  border-radius: var(--radius-pill);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-turquoise {
  background-color: var(--turquoise);
  color: var(--on-turquoise);
}

.badge-tint {
  background-color: var(--tint);
  color: var(--heading);
}

/* FAQ list */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1875rem;
  color: var(--heading);
  margin: 0 0 0.5rem;
}

.faq-answer {
  margin: 0;
}

/* Tables (16 px; below 768 px as cards) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background-color: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--heading);
  background-color: var(--bg);
}

@media (max-width: 767px) {
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 0.5rem;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .data-table td:last-child {
    border-bottom: none;
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--heading);
  }
}

/* Footer */
.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: auto;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--heading);
  text-decoration: underline;
}

/* Responsive Breakpoints (768px / 1200px) */
@media (min-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .card {
    padding: 2rem;
  }

  .hero-card {
    padding: 3rem 2.5rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1160px;
  }
}

/* Dashboard, Auszahlungsdaten, Prämie anfordern & Profil (P2) */
.btn-disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.points-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.points-big {
  font-family: var(--font-heading);
  font-size: 2.375rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.15;
}

.points-euro {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.points-stand {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.redeem-action-box {
  margin-top: 1.25rem;
}

.redeem-lock-hint {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
}

.referral-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.referral-url-input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  background-color: var(--bg);
}

.referral-input-row .js-copy-btn,
.js-copy-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.offer-url-input {
  font-size: 1rem;
  background-color: var(--bg);
}

.share-buttons {
  margin-top: 1rem;
}

.qr-preview-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: inline-block;
}

.qr-preview-box[hidden] {
  display: none;
}

.qr-preview-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.offers-details {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg);
  padding: 0.75rem 1rem;
}

.offers-summary {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--heading);
  cursor: pointer;
  padding: 0.25rem 0;
}

.offers-list {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.offer-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "name"
    "btn";
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: 0.375rem 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
}

.offer-name {
  grid-area: name;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--heading);
  font-size: 1rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.offer-url-input {
  display: none;
  grid-area: url;
  min-width: 0;
  min-height: 36px;
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background-color: var(--bg);
}

.offer-copy-btn,
.offer-item .js-copy-btn {
  grid-area: btn;
  white-space: nowrap;
}

.copy-fallback-textarea {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.redemptions-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.redemption-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg);
}

.redemption-status-text {
  font-weight: 600;
}

.dashboard-footnote {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.payout-saved-box {
  margin-bottom: 1.5rem;
}

.payout-saved-summary {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payout-method-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.payout-method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.payout-method-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
  font-weight: 600;
  cursor: pointer;
}

.form-radio {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.payout-method-section {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg);
  margin-bottom: 1.25rem;
}

#payout-form:has(#method_iban:checked) #payout-section-paypal {
  display: none;
}

#payout-form:has(#method_paypal:checked) #payout-section-iban {
  display: none;
}

.redemption-summary-box p:first-child {
  margin-top: 0;
}

.redemption-summary-box p:last-child {
  margin-bottom: 0;
}

.redemption-summary-points {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--heading);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-email-box {
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

.end-confirm-box {
  margin-top: 1.25rem;
}

.end-confirm-box[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .referral-input-row {
    flex-direction: row;
    align-items: center;
  }

  .offer-item {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) auto;
    grid-template-areas: "name url btn";
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }

  .offer-url-input {
    display: block;
  }

  .offer-actions {
    flex-shrink: 0;
  }
}

/* CSP-safe progress bar widths (0%..100%) */
.progress-w-0 { width: 0%; }
.progress-w-1 { width: 1%; }
.progress-w-2 { width: 2%; }
.progress-w-3 { width: 3%; }
.progress-w-4 { width: 4%; }
.progress-w-5 { width: 5%; }
.progress-w-6 { width: 6%; }
.progress-w-7 { width: 7%; }
.progress-w-8 { width: 8%; }
.progress-w-9 { width: 9%; }
.progress-w-10 { width: 10%; }
.progress-w-11 { width: 11%; }
.progress-w-12 { width: 12%; }
.progress-w-13 { width: 13%; }
.progress-w-14 { width: 14%; }
.progress-w-15 { width: 15%; }
.progress-w-16 { width: 16%; }
.progress-w-17 { width: 17%; }
.progress-w-18 { width: 18%; }
.progress-w-19 { width: 19%; }
.progress-w-20 { width: 20%; }
.progress-w-21 { width: 21%; }
.progress-w-22 { width: 22%; }
.progress-w-23 { width: 23%; }
.progress-w-24 { width: 24%; }
.progress-w-25 { width: 25%; }
.progress-w-26 { width: 26%; }
.progress-w-27 { width: 27%; }
.progress-w-28 { width: 28%; }
.progress-w-29 { width: 29%; }
.progress-w-30 { width: 30%; }
.progress-w-31 { width: 31%; }
.progress-w-32 { width: 32%; }
.progress-w-33 { width: 33%; }
.progress-w-34 { width: 34%; }
.progress-w-35 { width: 35%; }
.progress-w-36 { width: 36%; }
.progress-w-37 { width: 37%; }
.progress-w-38 { width: 38%; }
.progress-w-39 { width: 39%; }
.progress-w-40 { width: 40%; }
.progress-w-41 { width: 41%; }
.progress-w-42 { width: 42%; }
.progress-w-43 { width: 43%; }
.progress-w-44 { width: 44%; }
.progress-w-45 { width: 45%; }
.progress-w-46 { width: 46%; }
.progress-w-47 { width: 47%; }
.progress-w-48 { width: 48%; }
.progress-w-49 { width: 49%; }
.progress-w-50 { width: 50%; }
.progress-w-51 { width: 51%; }
.progress-w-52 { width: 52%; }
.progress-w-53 { width: 53%; }
.progress-w-54 { width: 54%; }
.progress-w-55 { width: 55%; }
.progress-w-56 { width: 56%; }
.progress-w-57 { width: 57%; }
.progress-w-58 { width: 58%; }
.progress-w-59 { width: 59%; }
.progress-w-60 { width: 60%; }
.progress-w-61 { width: 61%; }
.progress-w-62 { width: 62%; }
.progress-w-63 { width: 63%; }
.progress-w-64 { width: 64%; }
.progress-w-65 { width: 65%; }
.progress-w-66 { width: 66%; }
.progress-w-67 { width: 67%; }
.progress-w-68 { width: 68%; }
.progress-w-69 { width: 69%; }
.progress-w-70 { width: 70%; }
.progress-w-71 { width: 71%; }
.progress-w-72 { width: 72%; }
.progress-w-73 { width: 73%; }
.progress-w-74 { width: 74%; }
.progress-w-75 { width: 75%; }
.progress-w-76 { width: 76%; }
.progress-w-77 { width: 77%; }
.progress-w-78 { width: 78%; }
.progress-w-79 { width: 79%; }
.progress-w-80 { width: 80%; }
.progress-w-81 { width: 81%; }
.progress-w-82 { width: 82%; }
.progress-w-83 { width: 83%; }
.progress-w-84 { width: 84%; }
.progress-w-85 { width: 85%; }
.progress-w-86 { width: 86%; }
.progress-w-87 { width: 87%; }
.progress-w-88 { width: 88%; }
.progress-w-89 { width: 89%; }
.progress-w-90 { width: 90%; }
.progress-w-91 { width: 91%; }
.progress-w-92 { width: 92%; }
.progress-w-93 { width: 93%; }
.progress-w-94 { width: 94%; }
.progress-w-95 { width: 95%; }
.progress-w-96 { width: 96%; }
.progress-w-97 { width: 97%; }
.progress-w-98 { width: 98%; }
.progress-w-99 { width: 99%; }
.progress-w-100 { width: 100%; }

/* Verwaltung (P3a) */
.header-nav-link-active {
  color: var(--heading);
  background-color: var(--tint);
}

.admin-header .header-inner {
  flex-wrap: wrap;
}

.admin-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-page-header,
.admin-card-header,
.admin-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-page-header > *,
.admin-card-header > *,
.admin-detail-header > * {
  min-width: 0;
  max-width: 100%;
}

.admin-page-header .section-heading,
.admin-card-header .section-heading,
.admin-detail-header .section-heading {
  margin-bottom: 0;
}

.admin-detail-subtitle {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-warnings-section {
  margin-bottom: 1.5rem;
}

.admin-notice-with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-notice-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 240px;
}

.admin-notice-paragraph {
  margin: 0 0 0.5rem;
}

.admin-notice-paragraph:last-child {
  margin-bottom: 0;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

a.admin-metric-card:hover {
  border-color: var(--primary);
  color: var(--text);
}

.admin-metric-card-highlight {
  border-left: 4px solid var(--primary);
}

.admin-metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-metric-value {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.2;
}

.admin-metric-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}

.admin-tab:hover {
  border-color: var(--primary);
  color: var(--heading);
}

.admin-tab-active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.admin-tab-active:hover {
  color: #FFFFFF;
}

.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg);
  color: var(--heading);
  font-size: 0.8125rem;
  font-weight: 600;
}

.admin-tab-active .admin-tab-badge {
  background-color: #FFFFFF;
  color: var(--heading);
}

.admin-ref-link {
  font-family: var(--font-heading);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-col-nowrap {
  white-space: nowrap;
}

.admin-hints-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9375rem;
}

.admin-empty-state {
  margin: 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-pagination-info {
  font-weight: 600;
  color: var(--text-muted);
}

.admin-back-link {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.admin-detail-item {
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-detail-item dt {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.admin-detail-item dd {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-preline {
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-payout-revealed-box p,
.card p,
.notice > div {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-payout-revealed-box p {
  margin: 0.35rem 0;
}

@media (max-width: 767px) {
  .data-table td {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (min-width: 768px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Verwaltung (P3b): Mitglieder & Protokoll Filter */
.admin-filter-form {
  margin: 0;
}

.admin-filter-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-filter-field {
  min-width: 0;
}

.admin-filter-field-grow {
  flex: 1 1 auto;
}

.admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-lookup-form {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .admin-filter-row {
    flex-direction: row;
    align-items: flex-end;
  }

  .admin-filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
