/* Das Anfragefenster. Uebernommen von Physiotherapie Colin Wurzler (quelle/css/seite.css, Abschnitt "Das Anfragefenster"),
   Farben auf SchmiedeX umgestellt. Abweichungen: kein Editor (die Nachricht geht als einfacher Text ins Mailprogramm),
   kein Terminweg, kein Einverstaendnis-Haekchen (die Seite verarbeitet nichts). */
.fenster {
  --fenster-a: #1f1f26; --fenster-b: #121216; --kachel-a: #26262e; --kachel-b: #1b1b21; --fenster-innen: #1d1d23;
  --papier: #0b0b0e; --feldrand: var(--linie); --leise: var(--text-3); --tief: var(--text); --hell: #2c2c35;
  --rund-klein: 18px; --kurz: .2s; --weich: cubic-bezier(.22, 1, .36, 1);
  width: min(calc(100% - var(--a32)), 680px);
  max-width: 680px; max-height: calc(100dvh - var(--a24));
  margin: auto; padding: 0; border: 0;
  border-radius: 28px;
  background: linear-gradient(165deg, var(--fenster-a), var(--fenster-b));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(255 255 255 / .1), 0 3px 8px rgb(0 0 0 / .4), 0 30px 60px -12px rgb(0 0 0 / .7), 0 80px 130px -30px rgb(120 10 16 / .45);
  overscroll-behavior: contain;
}
.fenster::backdrop { background: rgb(0 0 0 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  .fenster.fx-overlay { opacity: 1; transition: opacity .24s ease, overlay .24s allow-discrete, display .24s allow-discrete; }
  @starting-style { dialog.fenster.fx-overlay[open] { opacity: 0; } }
  .fenster.fx-overlay .fenster-kasten { transition: transform .46s var(--weich); }
  @starting-style { dialog.fenster.fx-overlay[open] .fenster-kasten { transform: perspective(1200px) translate3d(0, 34px, -180px) rotateX(7deg); } }
}
.fenster[open] { display: flex; }
.fenster-kasten { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - var(--a24)); min-height: 0; border-radius: inherit; overflow: clip; }
.fenster-kopf {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--a12);
  padding: var(--a16) var(--a16) var(--a16) var(--a24);
  background: linear-gradient(135deg, #3a070b, #7a0d14 48%, var(--rot-tief));
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 8px 18px -10px rgb(0 0 0 / .7);
  position: relative; z-index: 1;
}
.fenster-kopf .gruss { margin: 0; color: #fff; }
.fenster-kopf h2 { font-size: var(--t-3); line-height: 1.2; margin: 0; max-width: none; color: #fff; }
.fenster-kopf .zu {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .32); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer;
  transition: background-color var(--kurz) ease, transform var(--kurz) var(--weich);
}
.fenster-kopf .zu:hover { background: rgb(0 0 0 / .55); transform: rotate(90deg); }
.fenster-kopf :focus-visible { outline-color: #fff; box-shadow: none; }
.fenster-bauch { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--a16) var(--a16) 0; display: flex; flex-direction: column; gap: var(--a12); }
.fenster-bauch > :last-child { margin-bottom: var(--a12); }
.zeile {
  flex: none; border-radius: var(--rund-klein);
  background: linear-gradient(165deg, var(--kachel-a), var(--kachel-b));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 1px 2px rgb(0 0 0 / .5), 0 12px 22px -14px rgb(0 0 0 / .8);
  transition: transform var(--kurz) var(--weich), box-shadow var(--kurz) ease;
}
.zeile[data-offen="true"] { background: var(--fenster-innen); box-shadow: inset 0 0 0 1px var(--hell), 0 16px 30px -18px rgb(0 0 0 / .9); }
.zeile h3 { font: inherit; letter-spacing: 0; margin: 0; }
.zeile-kopf {
  display: flex; align-items: center; gap: var(--a16); width: 100%; min-height: 76px; padding: var(--a12) var(--a16);
  border: 0; border-radius: var(--rund-klein); background: none; color: var(--tief); text-align: left; cursor: pointer; font: inherit;
}
.zeile-kopf:focus-visible { outline-offset: -4px; }
.fenster[data-zeiger] .zeile-kopf:focus-visible { outline: none; box-shadow: none; }
.zeile-kopf > svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: linear-gradient(150deg, var(--rot), var(--rot-tief)); color: #fff; box-shadow: 0 8px 14px -8px rgb(0 0 0 / .8); }
.zeile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zeile-text strong { font-size: var(--t-2); line-height: 1.2; font-weight: 700; }
.zeile-text small { font-size: var(--t-1); line-height: 1.3; color: var(--text-2); }
.zeile-pfeil { margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hell); font-size: 15px; line-height: 1; transition: transform .3s var(--weich); }
.zeile[data-offen="true"] .zeile-pfeil { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .zeile:not([data-offen="true"]):hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 2px 4px rgb(0 0 0 / .6), 0 22px 30px -16px rgb(0 0 0 / .9); }
}
.zeile-koerper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1); }
.zeile[data-offen="true"] .zeile-koerper { grid-template-rows: 1fr; }
.zeile-koerper > * { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .32s; }
.zeile[data-offen="true"] .zeile-koerper > * { visibility: inherit; transition-delay: 0s; }
.zeile-inhalt { padding: var(--a4) var(--a16) var(--a16); display: flex; flex-direction: column; gap: var(--a16); }
.feld-reihe { display: grid; grid-template-columns: 1fr; gap: var(--a12); }
.feld label, .kacheln-wahl legend { display: block; font-size: var(--t-1); font-weight: 600; color: var(--tief); margin-bottom: 4px; line-height: 1.3; }
.feld input, .feld textarea {
  width: 100%; min-height: 48px; padding: var(--a8) var(--a12); border: 0; border-radius: 12px;
  background: var(--papier); color: var(--text); font: 400 var(--t-1)/1.45 var(--schrift-text);
  box-shadow: inset 0 0 0 1.5px var(--feldrand);
}
.feld textarea { min-height: 8.5rem; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--chrom-hell); outline-offset: 1px; box-shadow: inset 0 0 0 1.5px var(--feldrand); }
.kacheln-wahl { display: flex; flex-wrap: wrap; gap: var(--a8); margin: 0; padding: 0; border: 0; }
.kacheln-wahl legend { padding: 0; width: 100%; }
.wahl { position: relative; display: inline-flex; }
.wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--a16); border-radius: 12px; background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--linie); color: var(--tief); font-size: var(--t-1); font-weight: 600; line-height: 1.15; text-align: center; }
.wahl input:checked + span { background: var(--rot-tief); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.wahl input:focus-visible + span { outline: 3px solid var(--chrom-hell); outline-offset: 2px; }
.grosse-nummer { font-family: var(--schrift-auftritt); font-size: var(--t-4); line-height: 1.15; font-weight: 700; color: var(--tief); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.fenster-meldung { padding: var(--a12); border-radius: 12px; background: var(--hell); color: var(--tief); font-weight: 500; line-height: 1.4; }
.fenster-hinweis { color: var(--text-2); font-size: var(--t-1); }
.fenster-fuss { flex: none; display: flex; flex-direction: column; gap: var(--a8); padding: var(--a12) var(--a16) calc(var(--a12) + env(safe-area-inset-bottom, 0px)); background: var(--fenster-b); box-shadow: 0 -10px 18px -14px rgb(0 0 0 / .8); position: relative; }
.fenster-senden { width: 100%; }
.fenster-danke {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--a8);
  padding: var(--a24) var(--a24) calc(var(--a32) + env(safe-area-inset-bottom, 0px)); text-align: center; overflow-y: auto; min-height: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgb(165 13 21 / .35), transparent 70%);
}
.danke-grafik { flex: 0 1 auto; width: min(220px, 50vw); height: auto; overflow: visible; fill: var(--rot); filter: drop-shadow(0 0 1.5rem rgb(224 26 34 / .5)); }
.danke-grafik.da { animation: danke-zeichen 1.5s var(--weich) .2s both; }
@keyframes danke-zeichen { 0% { opacity: 0; transform: perspective(700px) rotateY(-88deg) scale(.82); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.fenster-danke h2 { font-size: var(--t-4); line-height: 1.1; margin-top: var(--a8); max-width: none; }
.danke-unter { font-size: var(--t-2); font-weight: 700; color: var(--tief); }
.fenster-danke p:not(.danke-unter) { color: var(--text-2); max-width: 40ch; }
.fenster-danke .knopf { margin-top: var(--a16); min-width: 200px; }
@media (prefers-reduced-motion: reduce) { .danke-grafik.da { animation: none; } .zeile, .zeile-koerper, .zeile-pfeil, .fenster-kopf .zu { transition: none; } }
@media (max-height: 620px) {
  .fenster-kopf { padding: var(--a4) var(--a8) var(--a4) var(--a16); }
  .fenster-kopf .gruss { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fenster-kopf h2 { font-size: var(--t-2); }
  .zeile-kopf { min-height: 56px; padding: var(--a4) var(--a8) var(--a4) var(--a12); gap: var(--a12); }
  .zeile-kopf > svg { width: 40px; height: 40px; padding: 9px; }
  .zeile-text small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (min-width: 490px) { .feld-reihe { grid-template-columns: 1fr 1fr; } }
/* Das Fenster am Handy: ein Blatt von unten */
@media (max-width: 489.98px) {
  .fenster { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 28px 28px 0 0; max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px))); }
  .fenster-kasten { max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px))); }
}
/* Pfeil als gezeichneter Winkel statt Schriftzeichen: das Zeichen fehlt in den Schriften und war kaum zu sehen */
.zeile-pfeil { font-size: 0; }
.zeile-pfeil::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--text); border-bottom: 2.5px solid var(--text); transform: translateY(-2px) rotate(45deg); }
