/* ============================================================
   Skischule Braunlage — Info-Seiten (Preise, FAQ, Kontakt)
   + Admin-Posteingang. Ergänzt site.css bzw. admin.css.
   ============================================================ */

/* ---------- Preise ---------- */
.pgroup { margin-top: clamp(34px, 4vw, 52px); }
.pgroup__title {
  font: 550 24px/1.2 var(--display); margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.pgroup__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.pricecard {
  background: var(--snow, #fff); border-radius: var(--rad, 18px);
  box-shadow: var(--shadow-1, 0 2px 6px rgba(14,27,38,.06));
  border: 1px solid rgba(14,27,38,.05); overflow: hidden;
}
.tablewrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.ptable th {
  text-align: left; font: 600 11px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mut); padding: 14px 18px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
.ptable td { padding: 15px 18px; border-bottom: 1px solid #EDF1F3; vertical-align: middle; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr { transition: background .12s; }
.ptable tbody tr:hover { background: #FAFCFD; }
.ptable__course { font: 600 15.5px/1.3 var(--text); color: var(--ink); text-decoration: none; }
a.ptable__course:hover { color: var(--red); }
.ptable td small { display: block; color: var(--mut); font-size: 13px; margin-top: 2px; }
.ptable__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable__num b { font: 600 17px/1.2 var(--display); }
.ptable__go { text-align: right; }
.btn--table { padding: 9px 15px; font-size: 13px; }
.ptable__ricon { display: inline-block; font-size: 17px; margin-right: 9px; }
.ptable__rsub { margin-left: 26px; }
.ptable__dash { color: var(--mut); }
.ptable__empty { color: var(--mut); text-align: center; padding: 26px !important; }

/* ---------- FAQ ---------- */
.faqwrap { max-width: 820px; display: grid; gap: 12px; }
.faq {
  background: var(--snow, #fff); border-radius: 16px;
  box-shadow: var(--shadow-1, 0 2px 6px rgba(14,27,38,.06));
  border: 1px solid rgba(14,27,38,.05);
  transition: box-shadow .18s;
}
.faq[open] { box-shadow: var(--shadow-2, 0 4px 10px rgba(14,27,38,.1)); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  font: 600 17px/1.35 var(--text); padding: 19px 58px 19px 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ice-soft); color: var(--ink-3);
  font: 500 19px/1 var(--text); transition: transform .18s, background .18s, color .18s;
}
.faq[open] summary::after { content: '−'; background: var(--ink); color: #fff; }
.faq summary:hover::after { background: var(--ink); color: #fff; }
.faq__body { padding: 0 24px 20px; color: #33414D; font-size: 15.5px; }
.faq__body a { color: var(--red); font-weight: 600; }
.faqcta {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--rad, 18px);
  padding: 26px 28px;
}
.faqcta h3 { font: 550 21px/1.25 var(--display); }
.faqcta p { color: rgba(255,255,255,.72); font-size: 14.5px; margin-top: 4px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 54px); align-items: start; }
.formmsg { min-height: 20px; font-size: 13.5px; margin-bottom: 12px; }
.formmsg--err { color: var(--red); font-weight: 600; }
.formhint { color: var(--mut); font-size: 13px; margin-top: 14px; }
.sentbox { text-align: center; padding: 26px 10px 10px; }
.sentbox__ico {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px;
  background: #E3F3E9; color: #266542; display: grid; place-items: center;
  font-size: 26px; font-weight: 700;
}
.sentbox h3 { font: 550 24px/1.2 var(--display); margin-bottom: 10px; }
.sentbox p { color: var(--mut); max-width: 42ch; margin: 0 auto 20px; }

.contact__side { display: grid; gap: 22px; }
.addrcard {
  background: var(--ink); color: #fff; border-radius: var(--rad, 18px); padding: 26px;
}
.addrcard h3 { font: 550 21px/1.2 var(--display); margin-bottom: 14px; }
.addrcard__addr { line-height: 1.7; margin-bottom: 16px; color: rgba(255,255,255,.85); }
.addrcard__addr b { color: #fff; }
.addrcard__row { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; margin-top: 6px; color: rgba(255,255,255,.85); }
.addrcard__row a { color: var(--ice, #9CC6D8); text-decoration: none; font-weight: 600; }
.addrcard__row a:hover { text-decoration: underline; }

.mapcard {
  background: var(--snow, #fff); border-radius: var(--rad, 18px);
  box-shadow: var(--shadow-1, 0 2px 6px rgba(14,27,38,.06));
  border: 1px solid rgba(14,27,38,.05); overflow: hidden; margin: 0;
}
.mapcard svg { width: 100%; height: auto; display: block; }
.mapcard figcaption { padding: 16px 20px 18px; font-size: 13.5px; color: var(--mut); line-height: 1.6; }
.mapcard figcaption b { color: var(--ink); }

.groupnote {
  border: 1.5px dashed var(--ice, #9CC6D8); border-radius: var(--rad, 18px);
  padding: 22px 24px; background: var(--ice-soft, #DCEAF1);
}
.groupnote h4 { font: 550 18px/1.25 var(--display); margin-bottom: 8px; }
.groupnote p { font-size: 14px; color: var(--ink-3); }

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

/* ---------- Admin: Posteingang ---------- */
tr.msg-neu td { background: #FDFAF3; }
tr.msg-neu:hover td { background: #FBF5E7; }
.msgtext { max-width: 460px; }
.msgtext summary {
  cursor: pointer; list-style: none; color: var(--ink); font-size: 13.5px; line-height: 1.5;
}
.msgtext summary::-webkit-details-marker { display: none; }
.msgtext summary::after { content: ' aufklappen ▾'; color: var(--ink-3); font-weight: 650; font-size: 12px; white-space: nowrap; }
.msgtext[open] summary { display: none; }
.msgtext__full { white-space: pre-line; font-size: 13.5px; line-height: 1.6; background: #F7FAFB; border-radius: 10px; padding: 12px 14px; margin: 4px 0 10px; }
.msgnote { display: grid; gap: 6px; justify-items: start; margin-bottom: 6px; }
.msgnote label { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.msgnote textarea {
  width: 100%; font: 500 13px/1.5 var(--text); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; resize: vertical;
}
.msgnote textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(74,122,150,.13); }
.msgnote__badge { margin-top: 6px; font: 600 11.5px/1 var(--text); color: var(--mut); }
.msg-actions { text-align: right; white-space: nowrap; }
.msg-actions form { display: inline-block; margin-left: 6px; }


/* Mobil: Kurstabellen als gestapelte Karten (kein Seitwaerts-Scrollen) */
@media (max-width: 640px) {
  .ptable { min-width: 0; font-size: 14px; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { padding: 14px 16px; border-bottom: 1px solid #E4EAEE; }
  .ptable tr:last-child { border-bottom: 0; }
  .ptable td { padding: 3px 0; border: 0; }
  .ptable td[data-label]::before {
    content: attr(data-label); display: inline-block; min-width: 64px;
    font: 600 11px/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--mut);
  }
  .ptable__num { text-align: left; }
  .ptable__go { padding-top: 10px; }
  .ptable__go .btn { width: 100%; justify-content: center; }
}
