/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #E9F5FF 0%, #F4FAFF 50%, #EAF4FF 100%);
  color: #1F3B57;
}

/* PAGE WRAPPER */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HERO SECTION */
.hero {
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.75rem;
  color: #52A7E8;
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0;
  font-size: 2.3rem;
  color: #0F2233;
}

.hero-subtitle {
  color: #1F3B57;
  margin-top: 0.6rem;
  font-size: 1rem;
}

.hero-text {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3A536D;
}

/* CONTENT AREA */
.content {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

/* SECTION */
.section {
  margin-bottom: 2rem;
}

.section-accent {
  background: rgba(233, 245, 255, 0.7);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #CFE8FF;
}

.section-muted {
  text-align: center;
  color: #3A536D;
  font-size: 0.85rem;
}

/* PRODUCT GRID */
.products {
  display: grid;
  gap: 1rem;
}

/* PRODUCT CARD */
.product {
  background: #FFFFFFEE;
  border-radius: 1rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid #CFE8FF;
  box-shadow: 0 6px 20px rgba(0, 60, 120, 0.08);
  transition: all 0.15s ease;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 60, 120, 0.12);
}

/* IMAGE */
.product-media {
  border-radius: 0.8rem;
  overflow: hidden;
  max-height: 180px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PRODUCT HEADER */
.product-header strong {
  font-size: 1.05rem;
  color: #0F2233;
}

.product-description {
  font-size: 0.9rem;
  color: #3A536D;
}

/* PROGRESS BAR */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.progress-label {
  font-size: 0.8rem;
  color: #1F3B57;
}

.progress-track {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: #D8EBFF;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #98CFFD, #52A7E8);
  animation: pulseBrightness 2s ease-in-out infinite alternate;
  transition: width 0.3s ease-out;
}

/* Full state: no pulse */
.progress-fill.is-full {
  animation: none;
  background: #1F3B57;
}

/* PULSE ANIMATION */
@keyframes pulseBrightness {
  0% { filter: brightness(0.5); }
  100% { filter: brightness(1); }
}

/* CART */
.cart {
  background: #FFFFFFEE;
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid #CFE8FF;
  box-shadow: 0 6px 20px rgba(0, 60, 120, 0.06);
  font-size: 0.95rem;
}

.cart ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.cart li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #CFE8FF;
  padding: 0.5rem 0;
}

.cart li:last-child {
  border-bottom: none;
}

/* BUTTONS */
button {
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #98CFFD;
  color: #0F2233;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

button:hover {
  background: #52A7E8;
  color: white;
  transform: translateY(-1px);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #52A7E8, #1F3B57);
  color: white;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* FORM */
.card {
  background: #FFFFFFEE;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #CFE8FF;
  box-shadow: 0 6px 20px rgba(0, 60, 120, 0.06);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  color: #0F2233;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #AECBFF;
  background: white;
}

input:focus {
  border-color: #52A7E8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 167, 232, 0.25);
}

/* MESSAGE */
.message {
  margin-top: 0.8rem;
  color: #0F2233;
}

/* RESPONSIVE GRID */
@media (min-width: 640px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}
.countdown {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #1F3B57;
  font-weight: 600;
}

/* Wenn Frist abgelaufen ist (Klasse wird von JS gesetzt) */
.countdown-expired {
  color: #b91c1c; /* etwas Rot als Warnhinweis */
}
.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #0F2233;
}

/* Alle Eingabeelemente: Text, E-Mail, Number, Select und Textarea */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #AECBFF;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  box-sizing: border-box;
}

/* Textarea explizit etwas höher, mit anpassbarer Höhe */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* Fokuszustand für alle Felder einheitlich */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #52A7E8;
  box-shadow: 0 0 0 3px rgba(82, 167, 232, 0.25);
}
