/* ============================================
   Segeltörn Manager — Campus Afloat Style
   Navy / Gold-Sand / Cream, nautical & energetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  --stm-navy:    #1b3556;
  --stm-navy-2:  #234469;
  --stm-gold:    #f0a93b;
  --stm-gold-2:  #d98f1f;
  --stm-cream:   #faf3e7;
  --stm-white:   #ffffff;
  --stm-text:    #1c2b3a;
  --stm-green:   #3ba776;
  --stm-yellow:  #e8b730;
  --stm-orange:  #d98f1f;
  --stm-red:     #d9534f;
  --stm-blue:    #2f7fc1;
  --stm-font:    'Poppins', sans-serif;
  --stm-font-hand: 'Caveat', cursive;
}

.stm-uebersicht-wrap,
.stm-toern-grid,
.stm-regionen-grid,
.stm-buchungsform-wrap,
.stm-faq-wrap,
.stm-slider-wrap {
  font-family: var(--stm-font);
}

/* ---------- Region grid ---------- */
.stm-regionen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stm-region-card {
  background: var(--stm-white);
  border: 2px solid var(--stm-navy);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stm-region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(13, 39, 64, 0.15);
  background: var(--stm-navy);
}
.stm-region-card:hover .stm-region-name { color: var(--stm-gold); }
.stm-region-icon { font-size: 2.2rem; }
.stm-region-name {
  font-weight: 700;
  color: var(--stm-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

/* ---------- Toern grid & cards ---------- */
.stm-toern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}
.stm-toern-card {
  background: var(--stm-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 39, 64, 0.10);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stm-toern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(13, 39, 64, 0.18);
}
.stm-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.stm-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.stm-status-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--stm-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.stm-status--buchbar    { background: var(--stm-green); }
.stm-status--wenige     { background: var(--stm-yellow); color: var(--stm-navy); }
.stm-status--garantiert { background: var(--stm-blue); }
.stm-status--warteliste { background: var(--stm-orange); }
.stm-status--abgesagt   { background: var(--stm-red); }

.stm-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.stm-card-region {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--stm-gold-2);
}
.stm-card-title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.stm-card-title a { color: var(--stm-navy); text-decoration: none; }
.stm-card-title a:hover { color: var(--stm-gold-2); }
.stm-card-datum { font-size: 0.9rem; color: #5a6b7a; }
.stm-card-preis { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.3rem 0; }
.stm-alter-preis { text-decoration: line-through; color: #aab5bf; font-size: 0.95rem; }
.stm-preis { font-size: 1.5rem; font-weight: 800; color: var(--stm-navy); }
.stm-preis-hint { font-size: 0.8rem; color: #5a6b7a; }
.stm-card-plaetze { font-size: 0.85rem; color: #5a6b7a; margin-bottom: 0.4rem; }

/* ---------- Buttons ---------- */
.stm-btn {
  display: inline-block;
  text-align: center;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.1s ease;
}
.stm-btn--primary {
  background: var(--stm-gold);
  color: var(--stm-navy);
}
.stm-btn--primary:hover { background: var(--stm-gold-2); transform: translateY(-2px); }
.stm-btn--warteliste {
  background: var(--stm-navy);
  color: var(--stm-white);
}
.stm-btn--warteliste:hover { background: var(--stm-navy-2); transform: translateY(-2px); }

/* ---------- Booking form ---------- */
.stm-buchungsform-wrap {
  background: var(--stm-cream);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 2px solid rgba(13,39,64,0.08);
}
.stm-form-header h3 {
  color: var(--stm-navy);
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.stm-form-header p { color: #4a5a68; margin: 0 0 0.6rem; }
.stm-plaetze-hinweis {
  display: inline-block;
  background: var(--stm-gold);
  color: var(--stm-navy);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.stm-form { margin-top: 1rem; }
.stm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stm-form-group { margin-bottom: 1.1rem; }
.stm-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--stm-navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.stm-form-group input,
.stm-form-group select,
.stm-form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid #dfe3e8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--stm-white);
  color: var(--stm-text);
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.stm-form-group input:focus,
.stm-form-group select:focus,
.stm-form-group textarea:focus {
  border-color: var(--stm-gold);
}
.stm-form-group textarea { resize: vertical; min-height: 90px; }

.stm-agb-check {
  font-size: 0.85rem;
  color: #4a5a68;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.stm-agb-check input { margin-top: 0.2rem; }
.stm-agb-check a { color: var(--stm-navy); font-weight: 700; }

.stm-form button[type="submit"] { width: 100%; font-size: 1rem; }

.stm-form-result {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.stm-form-result--success { background: #e6f5ee; color: #1f6b48; border: 1px solid #b6e3cd; }
.stm-form-result--error   { background: #fbeaea; color: #a33; border: 1px solid #f1c2c2; }

.stm-notice {
  padding: 1rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
}
.stm-notice--abgesagt { background: #fbeaea; color: #a33; }

.stm-leer { color: #5a6b7a; font-style: italic; padding: 2rem 0; text-align: center; }

/* ---------- Törnübersicht: Filter + gruppierte Regionen ---------- */
.stm-uebersicht-wrap { margin: 2rem 0; }

.stm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(13,39,64,0.08);
}
.stm-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--stm-white);
  border: 2px solid var(--stm-navy);
  color: var(--stm-navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.stm-filter-btn:hover { transform: translateY(-2px); }
.stm-filter-btn.is-active {
  background: var(--stm-navy);
  color: var(--stm-white);
}
.stm-filter-count {
  background: rgba(13,39,64,0.08);
  color: var(--stm-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.stm-filter-btn.is-active .stm-filter-count {
  background: var(--stm-gold);
  color: var(--stm-navy);
}

.stm-region-section { margin-bottom: 3.5rem; }
.stm-region-section:last-of-type { margin-bottom: 1rem; }

.stm-region-heading {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 1.6rem;
  color: var(--stm-navy);
  margin: 0 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--stm-gold);
}
.stm-region-heading-icon { font-size: 1.4rem; }
.stm-region-heading-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: #5a6b7a;
  margin-left: 0.3rem;
}

.stm-leer--gefiltert { text-align: center; padding: 3rem 0; }

@media (max-width: 700px) {
  .stm-filter-bar { gap: 0.5rem; }
  .stm-filter-btn { font-size: 0.82rem; padding: 0.5rem 0.9rem; }
  .stm-region-heading { font-size: 1.3rem; }
}

/* ---------- Rechnungsadresse Abschnitt ---------- */
.stm-section-divider { margin: 2rem 0 1rem; }
.stm-section-title {
  font-family: var(--stm-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--stm-navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--stm-gold);
  margin: 0;
}
.stm-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: #7a8a99;
}
.stm-agb-error {
  display: block;
  color: var(--stm-red);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ---------- Törn-Karten: Polaroid-Stil ---------- */
.stm-toern-card {
  background: var(--stm-white);
  border-radius: 4px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(13, 39, 64, 0.13), 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.stm-toern-card:hover {
  transform: translateY(-6px) rotate(0.3deg);
  box-shadow: 0 16px 40px rgba(13, 39, 64, 0.18);
}
.stm-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
}
.stm-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.stm-card-body {
  padding: 1.2rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  background: var(--stm-white);
}
.stm-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.2rem 0;
}
.stm-card-region {
  font-family: var(--stm-font-hand);
  font-size: 1rem;
  color: var(--stm-gold-2);
}
.stm-card-preis {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.stm-preis {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--stm-gold-2);
}
.stm-preis::before { content: 'ab '; font-size: 0.8rem; font-weight: 400; color: #7a8a99; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .stm-form-row { grid-template-columns: 1fr; }
  .stm-buchungsform-wrap { padding: 1.4rem; }
}

/* ---------- FAQ Akkordeon ---------- */
.stm-faq-wrap {
  max-width: 760px;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.stm-faq-item {
  background: var(--stm-white);
  border: 2px solid rgba(13,39,64,0.10);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.stm-faq-item.is-open { border-color: var(--stm-gold); }

.stm-faq-frage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--stm-navy);
  font-family: inherit;
}
.stm-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--stm-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--stm-navy);
  transition: transform 0.2s ease, background 0.2s ease;
}
.stm-faq-item.is-open .stm-faq-icon {
  background: var(--stm-gold);
  transform: rotate(45deg);
}

.stm-faq-antwort {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.stm-faq-item.is-open .stm-faq-antwort {
  max-height: 600px;
}
.stm-faq-antwort p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: #4a5a68;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- Bilderslider ---------- */
.stm-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  background: var(--stm-navy);
}
.stm-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.stm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}
.stm-slide.is-active { opacity: 1; visibility: visible; }
.stm-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.stm-slide-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--stm-navy) 0%, var(--stm-navy-2) 100%);
  color: rgba(255,255,255,0.35);
}
.stm-slide-icon { font-size: 2.4rem; }
.stm-slide-hint { font-size: 0.85rem; letter-spacing: 0.04em; }

.stm-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 2rem 1.6rem;
  background: linear-gradient(to top, rgba(13,39,64,0.85), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stm-slide-kategorie {
  color: var(--stm-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stm-slide-titel {
  color: var(--stm-white);
  font-size: 1.5rem;
  margin: 0;
}

.stm-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--stm-navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}
.stm-slider-arrow:hover { background: var(--stm-gold); }
.stm-slider-arrow--prev { left: 16px; }
.stm-slider-arrow--next { right: 16px; }

.stm-slider-dots {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}
.stm-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.stm-slider-dot.is-active {
  background: var(--stm-gold);
  border-color: var(--stm-gold);
  transform: scale(1.2);
}

@media (max-width: 700px) {
  .stm-slider-wrap { aspect-ratio: 4/5; }
  .stm-slide-titel { font-size: 1.2rem; }
  .stm-slider-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}
