/* ==========================================================================
   GRUNDLAGEN & VARIABLEN
   ========================================================================== */
:root {
  /* --- Corporate Identity Farben --- */
  --brand-primary: #00457a;   /* Dein primäres, kräftiges Blau */
  --brand-dark: #395a7f;      /* Dein dunkleres, seriöses Blau */
  --brand-accent: #2ea3f2;    /* Dein helles Akzentblau */

  /* --- Funktionale Farben --- */
  --brand-light: #e6f0fb;     /* Sehr helles Blau für Hintergründe */
  --text: #0f172a;           /* Dunkler Text für Lesbarkeit */
  --text-muted: #64748b;      /* Abgedunkelter Text */
  --border: #e2e8f0;          /* Helle Ränder */
  --bg: #f8fafc;              /* Hintergrundfarbe für Hover-Effekte etc. */
  --danger: #dc2626;          /* Fehlerfarbe */
  --danger-light: #fee2e2;    /* Heller Hintergrund für Fehler */
  --brand-pdf: #E53E3E;       /* PDF-Rot für Buttons */
--brand-pdf-dark: #C53030; /* Dunkleres PDF-Rot für Hover */

}

.btn-primary {
	background: #00457a !important;
 
}

.btn-primary {
  background: #00457a !important;
  border-color: #00457a !important; /* Rahmenfarbe gleich setzen */
  color: #fff; /* Annahme: Text ist weiß */
  
  /* Optional: Sorgt für sanfte Übergänge */
  transition: background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, 
              box-shadow 0.15s ease-in-out;
}

/* 2. Hover (Maus darüber) - etwas heller */
.btn-primary:hover {
  background: #005a9e !important;
  border-color: #005a9e !important;
}

/* 3. Active (Wird geklickt) - etwas dunkler */
.btn-primary:active {
  background: #00335a !important;
  border-color: #00335a !important;
}

/* 4. Focus (Per Tastatur ausgewählt) - Wichtig für Accessibility! */
.btn-primary:focus {
  background: #005a9e !important; /* Oft wie der Hover-Zustand */
  border-color: #005a9e !important;
  outline: 0;
  /* Ein "Glow"-Effekt (Bootstrap-Stil) als Ersatz für die Outline */
  box-shadow: 0 0 0 0.25rem rgba(0, 90, 158, 0.5) !important;
}

/* 5. Disabled (Deaktiviert) - ausgegraut */
.btn-primary:disabled,
.btn-primary[disabled] {
  background: #00457a !important; 
  border-color: #00457a !important;
  opacity: 0.65;
  cursor: not-allowed;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
.brand a { display: flex; align-items: center; }
.brand img { height: 28px; width: auto; }

.nav { display: flex; gap: 16px; align-items: center; }
.badge {
  background: var(--brand-light);
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #334155;
  font-size: 14px;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* ==========================================================================
   DROPDOWN-MENÜ
   ========================================================================== */
.menu { position: relative; }
.menu a:hover { text-decoration: none; } /* Keine Unterstreichung im Menü */

.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  cursor: pointer;
  transition: all .2s ease;
}
.menu-btn:hover, .menu.open .menu-btn {
  border-color: var(--border);
  background-color: var(--bg);
}
.menu-btn .chevron { transition: transform .2s ease; }
.menu.open .menu-btn .chevron { transform: rotate(180deg); }

.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  min-width: 280px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  z-index: 10;
  padding: 6px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu.open .menu-list {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.menu-header { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-header .name { font-weight: 600; font-size: 15px; }
.menu-header .email { font-size: 13px; color: var(--text-muted); }

.menu-item, .menu-item-form button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.menu-item svg, .menu-item-form button svg { flex: 0 0 18px; color: #475569; transition: color .15s ease; }
.menu-item:hover, .menu-item-form button:hover { background-color: var(--bg); color: var(--text); }

.menu-item-form { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.menu-item-form button:hover { background-color: var(--danger-light); color: var(--danger); }
.menu-item-form button:hover svg { color: var(--danger); }

/* ==========================================================================
   MAIN CONTENT & FORM STYLING
   ========================================================================== */
main { padding: 32px 24px; max-width: 980px; margin: 0 auto; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--border); background: #fff; margin-top: 15px; }
.footer-inner {
  padding: 16px 24px;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-copy { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   MODAL (GENERIC)
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; background: #fff; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(2,6,23,.2);
}
.modal header { padding: 14px 18px; border-bottom: 1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.modal header h3 { margin:0; font-size: 18px; }
.modal .modal-body { padding: 18px; }
.modal .modal-actions { padding: 12px 18px; border-top: 1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); padding:10px 14px; border-radius:8px; cursor:pointer; }

/* Social buttons */
.social-list { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.btn-social { width:100%; display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--border); border-radius:10px; padding:10px 12px; background:#fff; color:var(--text); cursor:pointer; }
.btn-social:hover { background: var(--bg); }
.btn-social .ico { display:inline-flex; width:18px; height:18px; }

/* Kontaktformular Wrapper */
.contact-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text);
  hyphens: auto;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 12px;
  margin: 0 0 20px 0;
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.products {
  display: grid;
  grid-template-columns: repeat(var(--products-cols, 2), 1fr);
  gap: var(--products-gap, 24px);
}
.card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(var(--products-cols-sm, 1), 1fr); }
}
@media (min-width: 801px) and (max-width: 1080px) {
  .products { grid-template-columns: repeat(var(--products-cols-md, 2), 1fr); }
}

form { display: flex; flex-direction: column; }
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 25%, transparent);
}

textarea {
  font-family: inherit;
  resize: vertical;
}

.row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   TOOL FORM (JSON-DRIVEN)
   ========================================================================== */
.tool-form { margin-top: 8px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tool-col-full { grid-column: 1 / -1; }
.tool-col-half { grid-column: span 1; }
.tool-label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; color: var(--text); }
.tool-input, .tool-textarea, .tool-select {
  display:block; width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:8px; font-size:15px; margin-bottom:16px; background:#fff;
}
.tool-input:focus, .tool-textarea:focus, .tool-select:focus { outline:none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 25%, transparent); }
.tool-textarea { resize: vertical; min-height: 110px; }
.tool-btn { all: unset; }
.tool-btn.btn-primary { display:inline-block; }

@media (max-width: 800px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.status, .errors {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
}
.status {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.errors {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fca5a5;
}
.errors ul {
  margin: 0;
  padding-left: 18px;
}


/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */


.hero {
	text-align: center;
	padding: 12px 24px;
	margin-bottom: 32px;
	background-color: var(--bg);
	border-radius: 12px;
}
.hero h1 {
  font-size: 42px;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.hero p.subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px auto;
  text-transform: uppercase;
}
.hero .btn-primary {
  padding: 12px 24px;
  font-size: 16px;
}

/* ==========================================================================
   INTRO TEXT
   ========================================================================== */
.intro-text {
	text-align: left;
	max-width: 800px;
	margin: 0 auto 48px auto;
}
.intro-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Responsivität für Tablets und mobile Geräte */
@media (max-width: 992px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.products .card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 0px;
  transition: all 0.3s ease-in-out;
}

.products .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-color: var(--border);
}

.card-image-container {
  width: 100%;
  height: 200px;
  background-color: var(--bg);
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.products .card h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--brand-dark);
}

.products .card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.products .card .row {
  justify-content: flex-start;
  margin-top: 24px;
}

/* ==========================================================================
   BUTTONS (Modifizierte Version mit Icon)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active {
  transform: scale(0.98);
}


/* ==========================================================================
   ZUSÄTZLICHES CSS FÜR MODAL
   Bitte fügen Sie dies zu Ihrer Haupt-CSS-Datei hinzu (z.B. frontend.css)
   ========================================================================== */

modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(2,6,23,.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-backdrop.open .modal {
  opacity: 1;
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin:0; font-size: 20px; font-weight: 600; }
.btn-close {
  background: none; border: none; padding: 4px; border-radius: 999px;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.btn-close:hover { background-color: var(--bg); color: var(--text); }
.btn-close svg { width: 24px; height: 24px; }

.modal-body { padding: 24px; }
.modal-actions { margin-top: 24px; }

.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 24px 0;
}
.social-divider::before, .social-divider::after {
  content: ''; flex: 1; border-bottom: 1px solid var(--border);
}
.social-divider:not(:empty)::before { margin-right: .5em; }
.social-divider:not(:empty)::after { margin-left: .5em; }

.social-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-social:hover {
  border-color: #d1d5db;
  background-color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.btn-social:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.btn-social .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.btn-social .ico svg { width: 100%; height: 100%; }


/* ==========================================================================
   COINS PAGE STYLING
   ========================================================================== */

/* Seiten-Header */
.page-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}
.page-header h1 {
  font-size: 36px;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.page-header .subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Zurück-Link */
.back-link-wrapper {
  position: absolute;
  top: 10px;
  left: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--brand-primary);
  text-decoration: none;
}
.back-link svg {
 
	width: 14px;
	height: 14px;
	padding-top: 5px;
 
}

/* Guthaben-Anzeige */
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 0 auto 48px auto;
  max-width: 600px;
}
.balance-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.balance-label svg {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
}
.balance-amount {
  background-color: var(--brand-light);
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

/* Preis-Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Einzelne Preiskarte */
.pricing-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Hervorgehobene Karte */
.pricing-card--popular {
  border: 2px solid var(--brand-primary);
  transform: scale(1.03);
}
.pricing-card--popular:hover {
  transform: scale(1.03) translateY(-5px);
}
.popular-badge {
  position: absolute;
  top: 18px;
  right: -45px;
  background-color: var(--brand-primary);
  color: #fff;
  padding: 6px 40px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0, 87, 184, 0.3);
}

/* Karten-Inhalt */
.card-header {
  margin-bottom: 24px;
}
.package-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}
.package-description {
  font-size: 14px;
  color: var(--text-muted);
  min-height: 40px; /* Sorgt für gleiche Höhe */
}

.card-body {
  margin-bottom: 24px;
  flex-grow: 1;
}
.package-coins {
  font-size: 48px;
  font-weight: 1php 00;
  line-height: 1;
  color: var(--brand-dark);
}
.package-coins span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}
.package-price {
  margin-top: 16px;
}
.price-amount {
  font-size: 20px;
  font-weight: 700;
}
.price-note {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto; /* Button nach unten drücken */
}
.card-footer .btn-primary {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
}

.card-empty {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}


/* ==========================================================================
   GUTSCHEIN MODAL & TRIGGER
   ========================================================================== */

/* ==========================================================================
   TOOLTIP (custom, stylable)
   Markup: <span class="tip-trigger" tabindex="0">?<span class="tip-box" role="tooltip">Text…</span></span>
*/
.tip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  background: #e2e8f0; /* slate-200 */
  color: #0f172a; /* slate-900 */
  font-weight: 700;
  font-size: 11px;
  cursor: help;
  margin-left: 6px;
}
.tip-trigger .tip-box {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #0f172a; /* dark */
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(2,6,23,.15);
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  min-width: 200px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 30;
}
.tip-trigger .tip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}
.tip-trigger:hover .tip-box,
.tip-trigger:focus .tip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* Wrapper für den "Gutschein einlösen"-Link */
.redeem-link-wrapper {
  text-align: center;
  margin: -32px auto 48px auto;
  max-width: 600px;
}

/* Styling des Links selbst */
.redeem-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.redeem-link:hover {
  background-color: var(--brand-light);
  text-decoration: none;
  color: var(--brand-dark);
}
.redeem-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}
.redeem-link:hover svg {
  transform: scale(1.1);
}

/* Modal-Hintergrund */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Das Modal-Fenster */
.modal {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-backdrop.open .modal {
  opacity: 1;
  transform: translateY(0);
}

/* Modal-Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.btn-close {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-close:hover {
  background-color: var(--bg);
  color: var(--text);
  transform: rotate(90deg);
}
.btn-close svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Modal-Body */
.modal-body {
  padding: 24px;
}
.modal-body p {
  margin: 0 0 20px 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.modal-body .form-group {
  margin-bottom: 20px;
}
.modal-body .form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.modal-body .form-group input {
  margin-bottom: 0;
  text-transform: uppercase;
}
.modal-body .form-group input::placeholder {
  text-transform: none;
}

/* Modal-Footer / Aktionen */
.modal-actions {
  display: flex;
  justify-content: flex-end;
}
.modal-actions .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* ==========================================================================
   INVOICE PAGE SPECIFIC STYLES
   ========================================================================== */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.invoice-table th,
.invoice-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.invoice-table tr:last-child td {
  border-bottom: none;
}
.invoice-table thead th {
  background-color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.invoice-table tbody tr:hover {
  background-color: var(--bg);
}
.invoice-table .text-right {
  text-align: right;
}

/* NEUE BUTTON-STYLES für spezielle Aktionen */
.btn-action-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-action-ghost:hover {
  background-color: var(--bg);
  border-color: #cbd5e1;
  color: var(--text);
}
.btn-action-ghost svg {
  transition: transform .2s ease;
}
.btn-action-ghost:hover svg {
  transform: rotate(5deg);
}

.btn-action-icon {
    padding-left: 14px !important;
    padding-right: 14px !important;
}
.btn-action-icon svg {
    margin-right: 6px;
}

/* Button-Style speziell für PDF-Downloads */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-pdf);
  color: #fff;
  border: none;
  padding: 8px 16px; /* Kleineres Padding */
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px; /* Kleinere Schrift */
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
  text-decoration: none;
}
.btn-pdf:hover {
  background-color: var(--brand-pdf-dark);
  color: #fff;
  text-decoration: none;
}
.btn-pdf:active {
  transform: scale(0.98);
}


/* ==========================================================================
   WEBHOOK PRELOADER MODAL (UPGRADED)
   ========================================================================== */

/* General modal adjustments for this specific modal */
#whModalBackdrop .modal {
  width: min(640px, 92vw); /* A bit wider for better readability */
}
#whModalBackdrop .modal-header {
  background-color: var(--bg); /* Subtle background for the header */
}
#whModalBackdrop .modal-body {
  padding: 16px 24px 24px 24px;
}
#whModalBackdrop .modal-actions {
  background-color: var(--bg); /* Matching background for footer */
}

/* Intro text with the main spinner */
.wh-intro {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.wh-intro .spinner {
  width: 32px;
  height: 32px;
  box-shadow: none;
  flex-shrink: 0;
}
.wh-intro-text strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}
.wh-intro-text span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Progress List container */
#whProgressList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 45vh; /* Limit height and allow scrolling */
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
}

/* Single Progress Item */
.wh-progress-item {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Number | Name | Status */
  align-items: center;
  gap: 16px;
  padding: 12px;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wh-progress-item__number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.wh-progress-item__name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Handle long webhook names */
}

.wh-progress-item__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  background-color: var(--bg);
  white-space: nowrap;
}
.wh-progress-item__status .ico {
  width: 16px;
  height: 16px;
}
.wh-progress-item__status .ico-spin {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; border-top-color: var(--brand-primary); animation: spin .8s linear infinite;
}

/* === Item States === */
.wh-progress-item.is-running {
  border-color: var(--brand-accent);
  background-color: var(--brand-light);
}
.wh-progress-item.is-running .wh-progress-item__number {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: #fff;
}
.wh-progress-item.is-running .wh-progress-item__status {
  color: var(--brand-primary);
  background-color: #fff;
}

.wh-progress-item.is-success {
  border-color: #bbf7d0; /* Green border */
  background-color: #f0fdf4; /* Light green background */
}
.wh-progress-item.is-success .wh-progress-item__status {
  color: #166534;
  background-color: #dcfce7;
}

.wh-progress-item.is-error {
  border-color: #fecaca; /* Red border */
  background-color: #fef2f2; /* Light red background */
}
.wh-progress-item.is-error .wh-progress-item__status {
  color: var(--danger);
  background-color: var(--danger-light);
}

/* ==========================================================================
   ANALYSEERGEBNISSE (TAB-LAYOUT)
   ========================================================================== */
.analysis-wrapper {
	background-color: #fff;
	overflow: hidden;
	margin-bottom: 100px;
	border-bottom: 1px solid var(--border);
}

/* --- Projektzusammenfassung (Unverändert) --- */
.summary-card { padding: 24px; border-bottom: 1px solid var(--border); }
.summary-card h3 { margin: 0 0 20px 0; font-size: 20px; font-weight: 600; color: var(--brand-dark); }
.summary-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-item { background-color: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--border); text-align: center; }
.stat-item .label { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; display: block; }
.stat-item .value { font-size: 28px; font-weight: 700; color: var(--brand-primary); line-height: 1.2; }
.summary-details-list { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-details-item { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; padding: 12px 0; font-size: 15px; }
.summary-details-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.summary-details-item .label { color: var(--text); font-weight: 600; }
.summary-details-item .value { color: var(--text-muted); }

/* --- Haupt-Akkordeon --- */
.accordion-section-header { padding: 24px 24px 16px 24px; background-color: #fff; border-bottom: 1px solid var(--border); }
.accordion-section-header h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--brand-dark); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-group > .accordion-item:last-child { border-bottom: none; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 24px; cursor: pointer; background-color: #fff; transition: background-color 0.2s ease; }
.accordion-header:hover { background-color: var(--bg); }
.accordion-title { font-size: 16px; font-weight: 600; color: var(--text); }
.accordion-icon { width: 20px; height: 20px; color: var(--brand-primary); transition: transform 0.3s ease; flex-shrink: 0; }
.is-open > .accordion-header .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background-color: var(--bg); }
.accordion-content-inner { padding: 24px; }

/* --- NEU: Tab-Navigation innerhalb des Akkordeons --- */
.cost-point-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 16px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transform: translateY(1px);
  transition: all 0.2s ease-in-out;
}
.tab-btn:hover {
  color: var(--brand-primary);
}
.tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* --- NEU: Tab-Inhalt --- */
.cost-point-tab-content {
  display: none; /* Standardmäßig ausgeblendet */
}
.cost-point-tab-content.active {
  display: block; /* Nur der aktive Tab wird angezeigt */
}

/* --- Vereinfachte Inhaltskarten --- */
.insight-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.insight-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.insight-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.insight-card-header h5 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.insight-card-body { padding: 16px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.insight-card-body .detail-item:not(:last-child) { margin-bottom: 12px; }
.insight-card-body .detail-item strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ==========================================================================
   ARGUMENTEN-KARTEN (NEU)
   ========================================================================== */

/* Container für die Liste der Argumente */
.argument-list {
  display: grid;
  gap: 16px; /* Etwas mehr Abstand */
}

/* Stil für eine einzelne Argumenten-Karte */
.argument-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: all 0.2s ease-in-out;
}
.argument-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Titel der Karte mit Icon */
.argument-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.argument-card__title svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand-primary);
}

/* Haupttext/Erklärung in der Karte */
.argument-card__body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  padding-left: 34px; /* Einrücken unter dem Icon */
}

/* Container für die Meta-Informationen (Potenzial, Gegenargument etc.) */
.argument-card__meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  font-size: 14px;
}
.argument-card__meta-item {
  color: var(--text-muted);
}
.argument-card__meta-item strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

/* Styling for the new argument number */
.argument-card__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
/* Mobile Header Layout: Logo zentriert, Navigation darunter */
@media (max-width: 640px) {
  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .brand { width: 100%; display: flex; justify-content: center; }
  .brand a { justify-content: center; }
  .nav { width: 100%; justify-content: center; margin-top: 4px; }
}
.btn-custom-black {
    /* Text- und Hintergrundfarbe */
    color: #fff;
    background-color: #111;
    border-color: #111;

    /* Allgemeine Stile (ähnlich zu Bootstrap) */
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    border-radius: 0.55rem;

    /* Sanfter Übergang für Hover-Effekte */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: #111;
    background-color: rgb(17, 17, 17);
}

/* Hover-, Fokus- und Aktiv-Zustand */
.btn-custom-black:hover,
.btn-custom-black:focus,
.btn-custom-black:active {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

/* Visuelles Feedback bei Fokus für Barrierefreiheit */
.btn-custom-black:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); /* Ein dunkler Schatten für den Fokus */
}

.result-disclaimer {
	font-style: italic;
	border: 1px solid var(--border);
	padding: 15px;
}
/* Responsive table stack for result_dynamic tables */
@media (max-width: 760px) {
  .rt-stack thead { display: none; }
  .rt-stack,
  .rt-stack tbody,
  .rt-stack tr,
  .rt-stack td { display: block; width: 100%; }
  .rt-stack tr {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 8px 0;
    overflow: hidden;
    background: #fff;
  }
  .rt-stack td {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f1f5f9;
  }
  .rt-stack td:last-child { border-bottom: 0; }
  .rt-stack td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 600;
  }
}

/* Inputs overview grid on result pages */
.inputs-overview {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px;
  align-items: start;
}
.inputs-overview__label { color: #64748b; }
.inputs-overview__value { color: #0f172a; font-weight: 500; }

.ueberblick{
  display:grid; 
  grid-template-columns: 240px 1fr; 
  gap:8px; 
  align-items:start;
}

@media (max-width: 768px) {
  .ueberblick {
    grid-template-columns:150px 1fr !important;

   
  }
  a.back_nav{font-size: 12px;} 
h1.result {
	font-size: 28px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 0;
	color: var(--text);
	/* text-align: center; */
	font-size: 30px;
	margin-left: 15px;
}

.main{
	padding: 15px 5px;
}

.div-label{font-size: 13px;}
.div-label-input{font-size: 13px;}

h2.ueberblick-h2{font-size: 14px; margin-top: 5px; margin-left:15px;}
.back-link-wrapper {
	position: relative;
	top: 0;
	left: 0;
}

.balance-card {
	display: block;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background-color: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px 24px;
	margin: 0 auto 48px auto;
	max-width: 100%;
}
.balance-amount {
	background-color: var(--brand-light);
	color: var(--brand-primary);
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
  text-align: center;
}

.btn-close {
	background: none;
	border: none;
	padding: 4px;
	border-radius: 999px;
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.2s;
	position: absolute;
	right: 10px;
}

#login-modal-grid.grid {
	display: grid;
	grid-template-columns: repeat(1fr);
	gap: 0px;
}

#login-modal-grid-pass.grid {
	display: grid;
	grid-template-columns: repeat(1fr);
	gap: 0px;
}
input[type="text"], input[type="email"], input[type="password"], textarea {
 
	margin-bottom: 5px;
 
}
.modal .modal-actions {
	padding: 12px 18px 5px 18px;
 
}
}
.login-btn-container{

	padding: 0px 18px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;

}

.login-modal-btn{
  margin-top: 8px;
  display: inline-block;
  width: 100%;
  padding: 12px 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 8px;
  margin: 24px 0;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--pagination-border);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* --- HIER IST DIE KORRIGIERTE REGEL --- */
/* Hover-Effekt für klickbare Links */
.pagination li a:hover {
  background-color: var(--brand-accent); /* Deine Akzentfarbe als Hintergrund */
  border-color: var(--brand-accent);     /* Rahmen in der gleichen Farbe */
  color: #ffffff;                        /* Schrift wird weiß */
}

/* Aktive Seite */
.pagination li.active span {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  cursor: default;
}

/* Deaktivierte Buttons */
.pagination li.disabled span {
  background-color: var(--pagination-disabled-bg);
  color: var(--pagination-disabled-text);
  cursor: not-allowed;
}
