/* ========== Grundlayout ========== */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0a0a0b;
  color: #fff;
  text-align: center;
  overflow: hidden;
  height: 100vh;
}

/* ========== Hero-Bereich ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding-top: 15vh;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* ========== Fixiertes, perfekt zentriertes Logo ========== */
.logo-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 35vh;            /* Logo im oberen Bereich positionieren */
  display: grid;
  place-items: center;     /* horizontal & vertikal zentriert */
  z-index: 10;
  pointer-events: none;    /* verhindert Klickblockade */
}

.logo {
  width: 300px;
  transform-origin: center;
  animation: heartbeat 2.2s ease-in-out infinite;
  will-change: transform;
}

/* ========== Pulsierende Animation ========== */
@keyframes heartbeat {
  0%   { transform: scale(0.96); }
  20%  { transform: scale(1.02); }
  40%  { transform: scale(0.97); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(0.96); }
}

/* ========== Überschrift & Text ========== */
h1 {
  font-size: clamp(1.3rem, 4.5vw, 2em);
  margin-top: 25vh;
  text-transform: uppercase;
  padding: 0 1rem;
  line-height: 1.2;
}

p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 1rem;
}

/* ========== Call-to-Action Button ========== */
.cta {
  margin-top: 1em;
  background: #e53935;
  color: #fff;
  border: none;
  padding: 1em 2em;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.cta:hover {
  filter: brightness(1.1);
}

/* ========== Footer ========== */
footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  z-index: 5;
}

/* ========== Modal-Stile ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  place-items: center;
  z-index: 50;
}

.modal-backdrop.active {
  display: grid;
}

.modal {
  width: min(640px, 94vw);
  background: #121319;
  color: #e9eaee;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  padding: 22px 18px;
  position: relative;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.modal.slide-out {
  transform: translateX(-100vw);
  opacity: 0;
}

.modal h2 {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
}

.modal-sub {
  margin: 0 0 14px 0;
  color: #a7abb4;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #bbb;
  font-size: 28px;
  cursor: pointer;
}

/* ========== Formular ========== */
#notifyForm {
  display: grid;
  gap: 10px;
}

#notifyForm input {
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 12px 12px;
  color: #fff;
}

#notifyForm input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .25);
}

.save {
  background: #e53935;
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(229, 57, 53, .35);
}

.save:hover {
  filter: brightness(1.05);
}

/* ========== Erfolgsmeldung ========== */
.success {
  text-align: center;
  padding: 10px 2px;
}

.success h3 {
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: .4rem 0;
}

/* ========== Opt-in Bestätigungsdialog ========== */
.confirm-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001; /* Höher als das normale Modal */
}

.confirm-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.confirm-backdrop.hiding {
  opacity: 0;
  visibility: hidden;
}

.confirm-modal {
  background: #1a1a1b;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.confirm-backdrop.active .confirm-modal {
  transform: scale(1);
}

.confirm-modal h3 {
  margin: 0 0 15px 0;
  font-size: 1.2em;
  font-weight: 500;
  color: #fff;
}

.confirm-modal p {
  margin: 0 0 25px 0;
  line-height: 1.5;
  color: #ccc;
  font-size: 0.95em;
}

.confirm-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.confirm-yes,
.confirm-no {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.confirm-yes {
  background: #007acc;
  color: white;
}

.confirm-yes:hover {
  background: #005a9a;
  transform: translateY(-1px);
}

.confirm-no {
  background: #333;
  color: #ccc;
  border: 1px solid #555;
}

.confirm-no:hover {
  background: #444;
  color: #fff;
  transform: translateY(-1px);
}

.confirm-yes:active,
.confirm-no:active {
  transform: translateY(0);
}

/* ========== Datenschutz Modal ========== */
.datenschutz-modal {
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.datenschutz-content {
  overflow-y: auto;
  padding: 0 10px 10px 10px;
  max-height: calc(85vh - 60px);
}

.datenschutz-content h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #fff;
  position: sticky;
  top: 0;
  background: #121319;
  padding: 10px 0;
  z-index: 1;
}

.datenschutz-content h3 {
  font-size: 1.3rem;
  color: #e9eaee;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.datenschutz-content h4 {
  font-size: 1.1rem;
  color: #d0d2d8;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

.datenschutz-content p {
  line-height: 1.7;
  color: #b8bac2;
  margin-bottom: 1em;
  text-align: left;
}

.datenschutz-content ul {
  color: #b8bac2;
  line-height: 1.7;
  margin-bottom: 1em;
}

.datenschutz-content li {
  margin-bottom: 0.5em;
}

.datenschutz-content a {
  color: #e53935;
  text-decoration: none;
}

.datenschutz-content a:hover {
  text-decoration: underline;
}

/* Scrollbar Styling für Datenschutz Modal */
.datenschutz-content::-webkit-scrollbar {
  width: 8px;
}

.datenschutz-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.datenschutz-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.datenschutz-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
