/* =====
 * Bausteine aus der Hannover-Aktion: Anfrageformulare (han-form, han-feld), genutzt auf Ägypten [AEG-07],
 * Drehkreuz [HUB-06] und Umrah [UMR-07]. Die Regeln für han-linie…, han-luxor und han-wischen stammen aus
 * der Aktion und werden derzeit von keiner Seite benutzt.
 * ===== */


.han-linien { min-width: 0; }
.han-wischen { display: none; margin: 0 0 14px; font-size: var(--t-small); font-weight: 600; color: rgba(255, 255, 255, .84); }
.han-wischen::before { content: "← → "; color: var(--ac-orange); }
@media (max-width: 1339px) { .han-fluege .han-wischen { display: block; } }
.han-linie--neu .aeg-linie__weg::before { border-top-style: dashed; border-top-color: rgba(255, 255, 255, .42); }
.han-linie--neu .aeg-flug__tage { border-style: dashed; }
@media (max-width: 1339px) {
  .han-linien { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 12px; }
  .han-linien:focus-visible { outline: 2px solid var(--ac-yellow); outline-offset: 4px; }
  .han-fluege .aeg-linien__liste { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-width: 1060px; gap: clamp(26px, 3.6vh, 36px); }
  .han-fluege .aeg-linie { display: block; }
  .han-fluege .aeg-linie__weg { flex-direction: row; align-items: flex-start; }
  .han-fluege .aeg-linie__weg::before { top: 12px; bottom: auto; left: 8px; right: 8px; border-left: 0; border-top: 2px dotted rgba(255, 255, 255, .5); }
  .han-fluege .han-linie--neu .aeg-linie__weg::before { border-top-style: dashed; }
  .han-fluege .aeg-halt { flex: 0 0 var(--halt); flex-direction: column; flex-wrap: nowrap; align-items: center; padding: 34px 0 0; min-height: 0; text-align: center; }
  .han-fluege .aeg-halt--kultur { flex-basis: 124px; }
  .han-fluege .aeg-halt:first-child { flex: 0 0 auto; align-items: flex-start; text-align: start; }
  .han-fluege .aeg-halt:last-child { flex: 0 0 auto; align-items: flex-end; text-align: end; }
  .han-fluege .aeg-halt--heim::before { top: 5px; left: 50%; right: auto; margin-left: -8px; }
  .han-fluege .aeg-halt:first-child::before { left: 0; margin-left: 0; }
  .han-fluege .aeg-halt:last-child::before { left: auto; right: 0; margin-left: 0; }
  .han-fluege .aeg-halt__bild { top: 0; left: 50%; margin-left: -21px; }
  .han-fluege .aeg-flug { flex: 1 1 0; flex-direction: column; flex-wrap: nowrap; align-items: center; margin-inline: -18px; padding: 0; min-height: 0; text-align: center; }
  .han-fluege .aeg-flug__zeit { padding-inline: 26px; }
  .han-fluege .aeg-flug::after { top: 6px; right: 2px; bottom: auto; left: auto; transform: rotate(90deg); }
}

.han-luxor__spalten { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .han-luxor__spalten { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.han-luxor h2 { margin: 0; font-size: var(--t-h2); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #fff; }
.han-luxor__satz { margin: 18px 0 0; font-size: var(--t-lead); line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 34rem; }
.han-luxor__folgt { margin: 14px 0 0; font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: var(--ac-yellow); }
.han-luxor .cta { margin-top: clamp(20px, 3vh, 28px); justify-content: flex-start; }
.han-luxor__bild { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(255, 255, 255, .14); }
.han-luxor__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

.han-anfrage .han-anfrage__raster { max-width: 76rem; width: 100%; display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .han-anfrage .han-anfrage__raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.han-anfrage__raster > * { min-width: 0; }
.han-anfrage .han-anfrage__raster--knoepfe { max-width: var(--breite); }
@media (min-width: 900px) {
  .han-anfrage .han-anfrage__raster--knoepfe { grid-template-rows: auto 1fr; row-gap: clamp(20px, 3vh, 28px); }
  .han-anfrage__raster--knoepfe > .han-form { grid-column: 2; grid-row: 1 / span 2; }
  .han-anfrage__raster--knoepfe > .cta { grid-column: 1; grid-row: 2; align-self: start; justify-content: flex-start; margin-top: 0; }
}
.han-anfrage__direkt { margin-top: 20px; }
.han-anfrage__direkt a { color: #fff; font-weight: 600; text-decoration-color: var(--ac-yellow); text-underline-offset: .2em; }

.han-form {
  display: grid; gap: 22px; padding: clamp(22px, 3vw, 40px); border-radius: 26px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 30px 60px -30px rgba(10, 0, 25, .7);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .han-form { background: rgba(29, 8, 48, .6); } }
.han-form__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.han-form__logo { display: block; height: 26px; width: auto; }
.han-form .han-form__titel { margin: 0; font-size: var(--t-small); font-weight: 700; letter-spacing: .04em; color: #fff; }
.han-form__teil { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 14px; }
.han-form__teil legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.han-form__n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ac-orange); color: #111111; font-size: .8rem; font-weight: 800;
}

.han-reisen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); }
.han-reise { position: relative; cursor: pointer; }
.han-reise input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.han-reise__karte {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 14px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.han-reise__bild { width: 36px; height: 26px; fill: currentColor; color: var(--ac-yellow); }
.han-reise__text { font-size: var(--t-small); font-weight: 700; line-height: 1.3; }
.han-reise:hover .han-reise__karte { background: rgba(255, 255, 255, .14); }
.han-reise input:checked + .han-reise__karte { background: #fff; border-color: #fff; color: var(--ac-purple); }
.han-reise input:checked + .han-reise__karte .han-reise__bild { color: var(--ac-orange); }
.han-reise input:focus-visible + .han-reise__karte { outline: 3px solid var(--ac-yellow); outline-offset: 3px; }

.han-form__rolle { display: flex; flex-wrap: wrap; gap: 8px; }
.han-form__rolle label { position: relative; cursor: pointer; }
.han-form__rolle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.han-form__rolle span {
  display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5);
  font-size: var(--t-small); font-weight: 600; color: #fff; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.han-form__rolle label:hover span { background: rgba(255, 255, 255, .14); }
.han-form__rolle input:checked + span { background: #fff; border-color: #fff; color: var(--ac-purple); }
.han-form__rolle input:focus-visible + span { outline: 3px solid var(--ac-yellow); outline-offset: 3px; }
.han-form__reihe { display: grid; gap: 14px; }
@media (min-width: 620px) { .han-form__reihe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.han-feld { display: grid; gap: 6px; min-width: 0; }
.han-feld__name { font-size: var(--t-small); font-weight: 600; color: #fff; }
.han-feld input, .han-feld textarea, .han-feld select {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, .95); border: 2px solid transparent; border-radius: 14px;
}
.han-feld textarea { resize: vertical; min-height: 96px; }
.han-feld select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-inline-end: 44px; text-overflow: ellipsis;
  background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233D1063' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
html[dir="rtl"] .han-feld select { background-position: left 16px center; }
html[dir="rtl"] .han-feld input[type="tel"] { text-align: right; }
.han-feld input:focus, .han-feld textarea:focus, .han-feld select:focus { outline: none; border-color: var(--ac-yellow); }
.han-feld.ist-fehler input, .han-feld.ist-fehler textarea { border-color: var(--ac-yellow); }
.han-feld.ist-fehler .han-feld__name::before, .han-form__einwilligung.ist-fehler span::before { content: "● "; color: var(--ac-yellow); }
.han-form__einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); line-height: 1.5; color: #fff; cursor: pointer; }
.han-form__einwilligung input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ac-orange); }
.han-form__einwilligung a { color: #fff; }
.han-form__senden { width: 100%; min-height: 54px; justify-content: center; }
.han-form__meldung { margin: 0; min-height: 1.4em; font-weight: 600; color: #fff; scroll-margin-block: 24px; }
.han-form__meldung[data-art="ok"]::before { content: "✓ "; color: var(--ac-yellow); }
.han-form__meldung:focus-visible { outline: 2px solid var(--ac-yellow); outline-offset: 6px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .han-form__rolle span, .han-reise__karte { transition: none; } }

.fangfeld { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.han-form .han-form__rolle + .han-reisen { margin-top: 4px; }

/* Arabisch ohne Sperrung */
html[dir="rtl"] .han-form .han-form__titel { letter-spacing: 0; }
/* E-Mail-Adressen laufen links nach rechts (sonst springen @ und Punkt an den Rand), rechtsbündig wie Telefon. */
html[dir="rtl"] .han-feld input[type="email"] { direction: ltr; text-align: right; }
