/* Stötzer Modern 3.5
   Kontaktseite, separates Impressum und spamgeschütztes Theme-Formular.
*/

/* Kontakt: Praxisdaten direkt unter der Hauptnavigation, anschließend kompakter Titel. */
.sto-contact-hero,
.sto-legal-hero {
  padding: 22px 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--sto-line);
}
.sto-contact-hero h1,
.sto-legal-hero h1 {
  margin: 0;
  color: var(--sto-ink);
  font-size: clamp(1.75rem, 2.35vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.sto-contact-hero > .sto-container > p:last-child {
  max-width: 800px;
  margin: 10px 0 0;
  color: #536b74;
}

.sto-contact-section { padding-top: 48px; padding-bottom: 76px; }
.sto-contact-modern-grid {
  display: grid;
  grid-template-columns: minmax(285px,.72fr) minmax(0,1.28fr);
  gap: 42px;
  align-items: start;
}
.sto-contact-options { display: grid; gap: 18px; }
.sto-contact-option-card,
.sto-contact-form-panel {
  border: 1px solid #d6e7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 11px 30px rgba(15,64,80,.07);
}
.sto-contact-option-card { padding: 26px; }
.sto-contact-option-card--light { background: #f7fbfb; }
.sto-contact-option-card h2 {
  margin: 16px 0 8px;
  color: var(--sto-ink);
  font-size: 1.28rem;
}
.sto-contact-option-card p { margin: 0 0 18px; color: #536b74; }
.sto-contact-option-card .sto-button { width: 100%; justify-content: center; }
.sto-contact-medical-note {
  padding: 17px 18px;
  border-left: 4px solid var(--sto-red);
  border-radius: 10px;
  background: #fff7f7;
  color: #53606a;
  font-size: .93rem;
}
.sto-contact-form-panel { padding: 32px 34px; }
.sto-contact-form-panel h2 {
  margin: 0;
  color: var(--sto-ink);
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.sto-contact-form-intro { margin: 10px 0 24px; color: #60757d; }

.sto-contact-form { display: grid; gap: 18px; }
.sto-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; }
.sto-contact-form label { display: grid; gap: 7px; color: var(--sto-ink); font-weight: 700; }
.sto-contact-form label > span { font-size: .92rem; }
.sto-contact-form input[type="text"],
.sto-contact-form input[type="email"],
.sto-contact-form input[type="tel"],
.sto-contact-form input[type="number"],
.sto-contact-form textarea {
  width: 100%;
  border: 1px solid #cbdfe2;
  border-radius: 10px;
  background: #fff;
  color: var(--sto-text);
  padding: 12px 13px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sto-contact-form textarea { resize: vertical; min-height: 155px; }
.sto-contact-form input:focus,
.sto-contact-form textarea:focus {
  border-color: var(--sto-accent);
  box-shadow: 0 0 0 3px rgba(23,126,141,.12);
}

.sto-form-human {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 16px 22px;
  align-items: end;
  padding: 15px 16px;
  background: #fbfdfd;
  border: 1px solid #dcebed;
  border-radius: 10px;
}
.sto-form-human input[type="number"] { max-width: 150px; }
.sto-form-human p { margin: 0 0 11px; color: #60757d; font-size: .86rem; }
@media (max-width: 680px) {
  .sto-form-human { grid-template-columns: 1fr; align-items: start; }
  .sto-form-human p { margin: -5px 0 0; }
}

.sto-form-warning {
  padding: 14px 16px;
  background: #f5fafb;
  border-radius: 10px;
  color: #526b74;
  font-size: .9rem;
}
.sto-form-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  gap: 10px !important;
  align-items: flex-start;
  font-weight: 500 !important;
  color: #526b74 !important;
}
.sto-form-checkbox input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.sto-form-checkbox span { font-size: .9rem !important; }
.sto-privacy-check-label {
  display: inline;
  font: inherit;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}
.sto-contact-submit { justify-self: start; min-width: 190px; }
.sto-form-small { margin: -4px 0 0; color: #75878e; font-size: .8rem; }
.sto-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sto-form-message { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.sto-form-message--success { background: #edf8f1; border: 1px solid #b8dfc5; color: #24613a; }
.sto-form-message--error { background: #fff2f2; border: 1px solid #ecc4c4; color: #8b2c2c; }

/* Impressum */
.sto-legal-section { padding-top: 48px; }
.sto-legal-wrap { max-width: 1080px; }
.sto-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sto-legal-card {
  padding: 28px;
  border: 1px solid #d6e7e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(15,64,80,.055);
}
.sto-legal-card h2,
.sto-legal-text h2 {
  margin: 0 0 13px;
  color: var(--sto-ink);
  font-size: 1.35rem;
  line-height: 1.2;
}
.sto-legal-card p { margin: 0 0 16px; }
.sto-legal-card p:last-child { margin-bottom: 0; }
.sto-legal-text { margin-top: 32px; padding-top: 8px; }
.sto-legal-text h2 { margin-top: 30px; }
.sto-legal-text p { line-height: 1.72; }
.sto-admin-legal-note {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: #fff9df;
  border: 1px solid #eadf9e;
  border-left: 4px solid #c89c13;
  border-radius: 10px;
  color: #62551c;
}

@media (max-width: 900px) {
  .sto-contact-modern-grid { grid-template-columns: 1fr; gap: 28px; }
  .sto-contact-options { grid-template-columns: 1fr 1fr; }
  .sto-contact-medical-note { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .sto-contact-hero, .sto-legal-hero { padding: 20px 0 18px; }
  .sto-contact-section, .sto-legal-section { padding-top: 34px; padding-bottom: 56px; }
  .sto-contact-options, .sto-form-grid, .sto-legal-grid { grid-template-columns: 1fr; }
  .sto-contact-form-panel { padding: 24px 20px; }
  .sto-contact-option-card { padding: 22px 20px; }
  .sto-contact-submit { width: 100%; justify-content: center; }
}

/* ============================================================
   Version 5.8 – Datenschutz-Dialog + "Nach oben"
   ============================================================ */
.sto-privacy-modal-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sto-privacy-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  height: min(88vh, 860px);
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: var(--sto-text);
  box-shadow: 0 28px 90px rgba(6, 41, 53, .35);
}
.sto-privacy-dialog::backdrop {
  background: rgba(7, 34, 44, .68);
  backdrop-filter: blur(3px);
}
.sto-privacy-dialog__panel {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
}
.sto-privacy-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 15px 22px;
  background: var(--sto-ink);
  color: #fff;
}
.sto-privacy-dialog__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  line-height: 1.2;
}
.sto-privacy-dialog__close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.sto-privacy-dialog__close:hover,
.sto-privacy-dialog__close:focus-visible {
  background: var(--sto-red);
  outline: none;
  transform: scale(1.04);
}
.sto-privacy-dialog__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.sto-back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 950;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: var(--sto-ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(8, 51, 64, .24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.sto-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.sto-back-to-top:hover,
.sto-back-to-top:focus-visible {
  background: var(--sto-accent-dark);
  outline: 3px solid rgba(23,126,141,.2);
  outline-offset: 3px;
}
.sto-back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 680px) {
  .sto-privacy-dialog {
    width: calc(100vw - 18px);
    height: 92vh;
    max-height: 92vh;
    border-radius: 14px;
  }
  .sto-privacy-dialog__header { padding: 13px 12px 13px 16px; }
  .sto-privacy-dialog__close { width: 40px; height: 40px; flex-basis: 40px; }
  .sto-back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sto-back-to-top,
  .sto-privacy-dialog__close { transition: none; }
}

@media print {
  .sto-back-to-top,
  .sto-privacy-dialog { display: none !important; }
}
