/* ========================================================================== */
/*  GLOBAL BASE STYLES                                                        */
/* ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Aboreto', cursive;
  color: white;

  /* Hintergrundbild wird pro Seite im HTML gesetzt */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

h1 {
  font-size: 2.1rem; /* Einheitlicher globaler Standard */
  margin-bottom: 1rem;
  text-align: center;
}

a {
  color: #2ecc71;
  text-decoration: none;
}

a:hover {
  color: #27ae60;
}


/* ========================================================================== */
/*  HEADER                                                                    */
/* ========================================================================== */

.header-bar {
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
}

.header-logo {
  height: 80px;
}

.icon-btn {
  background-color: black;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
}


/* ========================================================================== */
/*  MAIN WRAPPER + GLOBAL OVERLAY                                             */
/* ========================================================================== */

main {
  position: relative;
  min-height: 100vh;
  padding: 4rem 2rem;
  z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}


/* ========================================================================== */
/*  CONTENT WRAPPER (WooCommerce Demo)                                        */
/* ========================================================================== */

.content-wrapper {
  max-width: 900px;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 12px;
  line-height: 1.5;
}

/* ============================================================
   IMAGE FULLSCREEN OVERLAY
   ============================================================ */

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 2rem;
}

.image-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

/* ========================================================================== */
/*  DEMO OVERVIEW WRAPPER (Startseite)                                        */
/* ========================================================================== */

.demo-wrapper {
  max-width: 800px;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 12px;
}


/* ========================================================================== */
/*  TABLE STYLES (Demo-Übersicht)                                             */
/* ========================================================================== */

.demo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.demo-table th,
.demo-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.demo-icon {
  width: 24px;
  height: 24px;
  stroke: #2ecc71;
  fill: none;
}


/* ========================================================================== */
/*  PAYMENT SECTION (WooCommerce Demo)                                        */
/* ========================================================================== */

.payment-section {
  margin-top: 2rem;
  width: 100%;
}

.payment-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.payment-button-wrapper {
  width: 100%;
  margin-top: 1.5rem;
}


/* ========================================================================== */
/*  PAYMENT BUTTON (WooCommerce Style)                                        */
/* ========================================================================== */

.payment-button {
  width: 100%;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(46, 204, 113, 0.9);
  color: black;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;

  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.payment-button:hover:not(.inactive-button) {
  background-color: rgba(39, 174, 96, 1);
}

/* WordPress / Browser überschreibt sonst die Textfarbe */
a.payment-button:not(.inactive-button):hover {
  color: black !important;
}

.payment-button.inactive-button {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  border: 1px solid #aaa;
}


/* ========================================================================== */
/*  INFO TEXT (WooCommerce Demo)                                              */
/* ========================================================================== */

.custom-textbox {
  margin-top: 2rem;
  padding: 0;
  background: none;
}

.custom-textbox ul {
  padding-left: 1rem;
  margin-left: 0;
}

.custom-textbox li {
  margin-left: 0;
  padding-left: 0;
}


/* ========================================================================== */
/*  FOOTER                                                                    */
/* ========================================================================== */

footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
}


/* ========================================================================== */
/*  MODALS (C2A, SUCCESS, FAILED)                                             */
/* ========================================================================== */

#c2aModal .modal-content {
  background-color: rgba(40, 167, 69, 0.95);
  color: black;
  border-radius: 16px;
  padding: 1.5rem;
  font-family: 'Aboreto', sans-serif !important;
  text-align: center;
}

#c2aModal .modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: black;
  text-align: center;
  width: 100%;
}

#c2aModal .modal-body {
  font-size: 1rem;
  line-height: 1.5;
  color: black !important;
  text-align: center;
}

#c2aModal .modal-header {
  background: transparent !important;
  border-bottom: none !important;
  padding-top: 0.5rem;
}

#c2aModal .custom-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background-color: rgba(255, 255, 255, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  color: black !important;
  font-size: 1.3rem;
  font-weight: bold;

  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#c2aModal .custom-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.success-modal {
  background-color: rgba(8, 176, 80, 0.9);
  color: black !important;
  font-family: 'Aboreto', sans-serif;
}

.failed-modal {
  background-color: rgba(211, 47, 47, 0.9);
  color: black !important;
  font-family: 'Aboreto', sans-serif;
}

/* Gemeinsame Struktur-Anpassungen für Success & Failed */
.success-modal,
.failed-modal {
  border-radius: 16px;
  padding: 1.5rem;
  position: relative; /* WICHTIG: macht den Close-Button klickbar */
  text-align: center;
}

/* Header wie beim C2A Modal */
.success-modal .modal-header,
.failed-modal .modal-header {
  background: transparent !important;
  border-bottom: none !important;
  padding-top: 0.5rem;
}

/* Close-Button identisch wie beim C2A Modal */
.success-modal .custom-close,
.failed-modal .custom-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background-color: rgba(255, 255, 255, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  color: black !important;
  font-size: 1.3rem;
  font-weight: bold;

  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.success-modal .custom-close:hover,
.failed-modal .custom-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Body-Text wie beim C2A Modal */
.success-modal .modal-body,
.failed-modal .modal-body {
  font-size: 1rem;
  line-height: 1.5;
  color: black !important;
  text-align: center;
}



/* ========================================================================== */
/*  TOOLTIP                                                                   */
/* ========================================================================== */

.tooltip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  position: relative;
  cursor: help;
  justify-content: center;
  text-align: center;
  width: fit-content;
}

.info-circle {
  background-color: rgba(40, 167, 69, 0.95);
  color: black;
  font-weight: bold;
  font-size: 15px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(40, 167, 69, 0.95);
  color: black;
  padding: 1.5em;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-inline:hover .tooltip-text,
.tooltip-inline:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -48%);
}


/* ========================================================================== */
/*  GLOBAL TEXT SIZE NORMALIZATION                                            */
/* ========================================================================== */

.content-wrapper,
.content-wrapper p,
.content-wrapper li,
footer,
#c2aModal .modal-body,
#c2aModal .modal-title,
.success-modal,
.failed-modal {
  font-size: 0.9rem;
}

/* ========================================================================== */
/*  FIX: SUCCESS & FAILED MODALS – remove Bootstrap borders                   */
/* ========================================================================== */

/* Entfernt grauen Balken / Border von Bootstrap */
.success-modal,
.failed-modal {
  border: none !important;
  box-shadow: none !important;
}

/* Entfernt den Bootstrap-Top-Border, der wie ein grauer Balken aussieht */
.success-modal .modal-body,
.failed-modal .modal-body {
  border-top: none !important;
  padding-top: 1.5rem !important; /* identisch wie C2A */
}

/* Close-Button identisch wie C2A */
.success-modal .custom-close,
.failed-modal .custom-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: black !important;
  font-size: 1.3rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.success-modal .custom-close:hover,
.failed-modal .custom-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* ========================================================================== */
/*  C2A MODAL – FORCE TYPOGRAPHY OVERRIDES                                    */
/* ========================================================================== */

/* Titel größer erzwingen */
#c2aModal .modal-title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: black !important;
}

/* Body-Text größer erzwingen */
#c2aModal .modal-body {
  font-size: 1.0rem !important;
  line-height: 1.6 !important;
  color: black !important;
}

/* Schwarze Trennlinie über dem OK-Button */
#c2aModal .modal-footer {
  border-top: 1px solid black !important;
  padding-top: 1.2rem !important;
}

/* ========================================================================== */
/*  ÜBERSICHTSSEITE – Typografie                                              */
/* ========================================================================== */

/* Titel */
.demo-wrapper h1,
#title {
  font-size: 2.0rem !important;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* Absatztexte */
.demo-wrapper p,
#welcomeText,
#descriptionText {
  font-size: 1.20rem !important;
  line-height: 1.6;
}

/* Tabellen-Header */
.demo-table th {
  font-size: 1.2rem !important;
  font-weight: 700;
}

/* Tabellen-Zeilen */
.demo-table td {
  font-size: 1.2rem !important;
}

/* Service-Namen (linke Spalte) */
#services0,
#services1,
#services2,
#services3,
#services4,
#services5,
#services6 {
  font-size: 1.05rem !important;
  font-weight: 500;
}

/* ========================================================================== */
/*  GLOBAL FIXED BACK BUTTON – Feintuning                                     */
/* ========================================================================== */

/* Button fixiert, aber optisch im Header zentriert */
#backBtn {
  position: fixed !important;
  top: 33px !important; /* exakt mittig im 110px Header */
  right: 20px;

  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px;
  padding: 0.5rem;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(4px);
}

/* Pfeil dünner */
#backBtn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 1.4 !important; /* dünner, eleganter */
}
