/*
 * Hotelmappe Guest App CSS
 *
 * Active plugin-hosted CSS source since task 38.
 * AppCSS.css remains the legacy fallback/mirror for rollback.
 */

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.section,
h3,
p {
  padding-left: 15px;
  padding-right: 15px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  background: #F6F4EF;
  color: #1f2937;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

html{
	scroll-behavior:smooth;
}

/* 🔥 ADMIN BAR AUSBLENDEN */
#wpadminbar {
  display: none !important;
}

/* ===== VARIABLES ===== */
:root {
  --hotelmappe-css-version: "2026.07.07.43";
  --green: #5F7F73;
  --green-light: #7FA596;
  --gold: #C8A96A;
  --bg: #F6F4EF;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #8e8e93;
  --font-body: 'Manrope', -apple-system, system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --auth-bar-height: 54px;
  --viewport-bottom-offset: 0px;
  --guest-global-header-bottom: calc(var(--auth-bar-height) + env(safe-area-inset-top));
  --guest-visible-viewport-bottom: 0px;
  --guest-case-keyboard-inset: 0px;
  --guest-case-viewport-offset-top: 0px;
  --guest-case-composer-height: 0px;
  --guest-login-viewport-height: 100dvh;
  --guest-login-viewport-offset-top: 0px;
  --guest-login-keyboard-inset: 0px;
  --guest-floating-nav-pill-height: 64px;
  --guest-floating-nav-bottom-gap: max(10px, env(safe-area-inset-bottom));
  --guest-floating-nav-outer-height: calc(var(--guest-floating-nav-pill-height) + var(--guest-floating-nav-bottom-gap) + 8px);
  --guest-floating-nav-reserved-space: calc(var(--guest-floating-nav-outer-height) + 12px);
  --guest-communication-header-overlap: 14px;
  --tabbar-current-height: var(--guest-floating-nav-reserved-space);
}

/* ===== BODY FIX ===== */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: 0;

  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  overflow: hidden;
  position: relative;
}

html.guest-case-detail-root-open,
html.guest-case-detail-root-open body {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.guest-case-detail-root-open body.guest-case-detail-open {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
}

html.guest-case-detail-root-open #appWrapper {
  overflow: hidden !important;
}

#appWrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Aufgabe 46a: keep iOS app chrome tappable without disabling pinch zoom. */
#appWrapper,
#appWrapper .tap,
#appWrapper button,
#appWrapper a,
#appWrapper [role="button"],
#appWrapper input,
#appWrapper select,
#appWrapper textarea,
#appWrapper .tabbar,
#appWrapper .tabbar-inner,
#appWrapper .tab,
#appWrapper .item,
#appWrapper .relaunch-tile,
#appWrapper .relaunch-action,
#appWrapper .home-location-action,
#appWrapper .home-booking-prompt-action,
#appWrapper .home-help-action,
#appWrapper .home-header-action-link,
#appWrapper .message-card-button,
#appWrapper .guest-case-card-button,
#appWrapper .guest-case-icon-button,
#appWrapper .guest-case-new-button,
#appWrapper .guest-case-empty-button,
#appWrapper .guest-case-load-more,
#appWrapper .guest-case-close-button,
#appWrapper .guest-case-reply-send,
#appWrapper #clearSearch {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Aufgabe 46b-fix: touch controls should activate on the first tap instead of entering selection/hover state. */
#appWrapper .tap,
#appWrapper button,
#appWrapper a,
#appWrapper [role="button"],
#appWrapper .tabbar,
#appWrapper .tabbar-inner,
#appWrapper .tab,
#appWrapper .item,
#appWrapper .relaunch-tile,
#appWrapper .relaunch-action,
#appWrapper .home-location-action,
#appWrapper .home-booking-prompt-action,
#appWrapper .home-help-action,
#appWrapper .home-header-action-link,
#appWrapper .home-store-badge-link,
#appWrapper .message-card-button,
#appWrapper .guest-case-card-button,
#appWrapper .guest-case-icon-button,
#appWrapper .guest-case-new-button,
#appWrapper .guest-case-empty-button,
#appWrapper .guest-case-load-more,
#appWrapper .guest-case-close-button,
#appWrapper .guest-case-reply-send,
#appWrapper #clearSearch {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Aufgabe 46b: closed overlays must not catch first taps. */
#appWrapper .hotelmappe-app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

#appWrapper .hotelmappe-app-loading-overlay.hidden,
#appWrapper .hotelmappe-app-loading-overlay[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#appWrapper .hotelmappe-app-loading-box {
  width: min(280px, calc(100vw - 48px));
  border: 1px solid rgba(95, 127, 115, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(31, 49, 43, 0.16);
  padding: 24px 20px;
  text-align: center;
  color: #20352c;
  font-family: var(--font-body);
}

#appWrapper .hotelmappe-app-loading-logo {
  width: 86px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

#appWrapper .hotelmappe-app-loading-spinner {
  width: 28px;
  height: 28px;
  display: inline-block;
  border: 3px solid rgba(95, 127, 115, 0.2);
  border-top-color: #5f7f73;
  border-radius: 999px;
  animation: hotelmappeAppSpin 0.85s linear infinite;
}

#appWrapper .hotelmappe-app-loading-text {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

@keyframes hotelmappeAppSpin {
  to {
    transform: rotate(360deg);
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.03), transparent 70%);
  pointer-events: none;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(160deg, var(--green), var(--green-light));
  color: white;
  padding: calc(34px + var(--auth-bar-height) + env(safe-area-inset-top)) 20px 45px;
  border-radius: 0 0 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#home > .header {
  padding: calc(4px + var(--auth-bar-height) + env(safe-area-inset-top)) 20px 28px;
}

.header.small {
  padding: calc(14px + var(--auth-bar-height) + env(safe-area-inset-top)) 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}

.auth-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  height: calc(var(--auth-bar-height) + env(safe-area-inset-top));
  padding: calc(env(safe-area-inset-top) + 8px) 15px 8px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--green), var(--green-light));
}

.auth-bar-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-messages {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(12px);
}

.auth-network-status {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(12px);
}

.auth-network-status i,
.auth-network-status svg {
  width: 25px !important;
  height: 25px !important;
  color: #ffffff;
  stroke: currentColor;
  stroke-width: 2.05 !important;
  display: block;
}

.network-status-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 25px;
}

.network-status-offline-slash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 2px;
  border-radius: 1px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(69, 24, 24, 0.34);
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
  display: none;
  pointer-events: none;
}

.auth-network-status.is-offline .network-status-offline-slash {
  display: block;
}

.network-status-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.auth-network-status.is-checking .network-status-icon::after {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  background: rgba(47, 74, 64, 0.9);
  opacity: 1;
  animation: hotelmappe-network-check 1.2s linear infinite;
}

.auth-network-status.is-limited .network-status-icon::after {
  background: #f2c66d;
  box-shadow: 0 0 0 2px rgba(91, 59, 20, 0.55);
  opacity: 1;
}

@keyframes hotelmappe-network-check {
  to { transform: rotate(360deg); }
}

.auth-network-status.is-offline {
  border-color: rgba(255, 196, 196, 0.58);
  background: rgba(145, 53, 53, 0.35);
}

.auth-network-status.is-checking {
  border-color: rgba(225, 237, 231, 0.58);
  background: rgba(77, 108, 96, 0.38);
}

.auth-network-status.is-limited {
  border-color: rgba(255, 221, 166, 0.66);
  background: rgba(153, 101, 33, 0.42);
}

.auth-network-status.is-online {
  border-color: rgba(210, 235, 221, 0.56);
  background: rgba(31, 82, 61, 0.38);
}

.network-status-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(calc(-50% + var(--network-status-popover-offset-x, 0px)), -2px);
  width: min(280px, calc(100vw - 32px));
  min-width: min(230px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(36, 76, 58, 0.14);
  border-left-width: 3px;
  border-radius: 18px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #263d34;
  background: rgba(250, 247, 240, 0.98);
  box-shadow: 0 12px 30px rgba(26, 46, 38, 0.18);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: normal;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.network-status-popover__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: #58776b;
  background: rgba(88, 119, 107, 0.13);
}

.network-status-popover__content {
  min-width: 0;
  display: block;
}

.network-status-popover__title {
  display: block;
  margin: 0 0 3px;
  color: #385b4e;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.network-status-popover__detail {
  display: block;
  color: #34483f;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
}

.network-status-popover__icon-slash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
  display: none;
  pointer-events: none;
}

.auth-network-status.status-visible .network-status-popover {
  opacity: 1;
  transform: translate(calc(-50% + var(--network-status-popover-offset-x, 0px)), 0);
}

.network-status-popover--online {
  border-left-color: #4f7867;
}

.network-status-popover--online .network-status-popover__icon {
  color: #3f6b59;
  background: rgba(79, 120, 103, 0.14);
}

.network-status-popover--checking {
  border-left-color: #70877d;
}

.network-status-popover--checking .network-status-popover__icon {
  color: #587168;
  background: rgba(112, 135, 125, 0.14);
}

.network-status-popover--limited {
  border-left-color: #a1712b;
}

.network-status-popover--limited .network-status-popover__icon,
.network-status-popover--limited .network-status-popover__title {
  color: #805719;
}

.network-status-popover--limited .network-status-popover__icon {
  background: rgba(161, 113, 43, 0.14);
}

.network-status-popover--offline {
  border-left-color: #a05252;
}

.network-status-popover--offline .network-status-popover__icon,
.network-status-popover--offline .network-status-popover__title {
  color: #894141;
}

.network-status-popover--offline .network-status-popover__icon {
  background: rgba(160, 82, 82, 0.13);
}

.network-status-popover--offline .network-status-popover__icon-slash {
  display: block;
}

.auth-messages i {
  width: 25px !important;
  height: 25px !important;
  color: #ffffff;
}

.auth-messages svg {
  width: 25px !important;
  height: 25px !important;
  color: #ffffff;
  stroke: currentColor;
  stroke-width: 2.05 !important;
  display: block;
}

.auth-message-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e05a5a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border: 1.5px solid rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 0 6px;
}

.auth-message-badge[aria-hidden="true"] {
  display: none !important;
}

.auth-trigger {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 11px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  max-width: calc(100vw - 40px);
  backdrop-filter: blur(12px);
}

.auth-trigger.logged-in {
  border-color: rgba(255,255,255,0.48);
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.auth-icon-wrap {
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-icon-wrap i {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.auth-icon-wrap svg,
.auth-chevron {
  color: #ffffff;
}

.auth-chevron {
  width: 14px;
  height: 14px;
  color: #ffffff;
  opacity: 0.86;
}

.auth-dropdown {
  position: absolute;
  top: calc(var(--auth-bar-height) + env(safe-area-inset-top) - 2px);
  right: 15px;
  min-width: 182px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe4df;
  box-shadow: 0 20px 35px rgba(22, 33, 28, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-dropdown-item {
  border: none;
  background: #f4f7f5;
  color: #1f2f27;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
}

.home-header-insights {
  position: absolute;
  top: calc(var(--auth-bar-height) + env(safe-area-inset-top) + 8px);
  right: 14px;
  z-index: 2;
  width: clamp(220px, 24vw, 300px);
  max-width: calc(100% - 28px);
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.home-header-insights-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.home-header-insights-actions {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.home-header-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(240, 248, 244, 0.64);
  color: #2f4d41;
  border: 1px solid rgba(255,255,255,0.45);
  white-space: nowrap;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-header-chip i {
  width: 13px;
  height: 13px;
  color: #2f4d41;
}

.home-header-chip-link {
  cursor: pointer;
}

.home-header-action-link {
  text-decoration: none;
  color: #2f4d41;
}

@media (max-width: 560px) {
  .home-header-insights {
    position: relative;
    top: auto;
    right: auto;
    margin: 8px auto 0;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    padding: 10px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
  }

  .home-header-insights-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }

  .home-header-chip {
    padding: 6px 8px;
    font-size: 11px;
    flex: none;
    min-width: 0;
    justify-content: center;
    min-height: 34px;
  }

  .home-header-chip i {
    width: 12px;
    height: 12px;
  }

  .home-header-insights-actions {
    margin-top: 6px;
    gap: 6px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    align-items: stretch;
  }

  .home-header-insights-actions .home-header-chip {
    width: 100%;
    flex: none;
    justify-content: center;
  }

  .home-header-action-link {
    width: 100%;
    justify-content: center;
  }
}

/* ===== LOGO ===== */
.logo {
  width: clamp(220px, 42vw, 340px);
  margin-bottom: 0;
}

#home > .header .logo {
  width: clamp(320px, 56vw, 580px);
  margin-top: -8px;
}

.logo.logo-home-link {
  cursor: pointer;
}

.logo.small {
  width: 120px;
  margin: 0 auto;
}

/* ===== TITLE ===== */
.title h2 {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin: 0;
}

.title h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  margin: 0;
}

.title p {
  font-size: 14px;
  opacity: 0.85;
  margin: 5px 0 0;
}

.section h3 {
  margin: 10px 15px 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 38px);
  line-height: 1.05;
  color: #1f2f27;
}

/* ===== LIST ===== */
.list {
  margin: 10px auto 0;
  width: calc(100% - 40px);
  padding-left: 0;
  padding-right: 0;
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.06),
    0 25px 60px rgba(0,0,0,0.08);
}

.list-title {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1a6;
  margin: 25px 20px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== ITEM ===== */
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: var(--text);
  background: white;
  transition: transform 0.15s ease, background 0.15s ease;
}

button.item {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.item:last-child {
  border-bottom: none;
}

.item:active{
  transform: translateX(6px);
  background:#f2f4f3;
}

.item.item-placeholder {
  opacity: 0.72;
  cursor: default;
}

.item.item-placeholder:active {
  transform: none;
  background: white;
}

@media (hover: hover) and (pointer: fine) {
  .item:hover {
    background: #f4f7f5;
    box-shadow: inset 0 0 0 1px rgba(95,127,115,0.14);
  }

  .item.item-placeholder:hover {
    background: white;
    box-shadow: none;
  }
}

.item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.item-left > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;

  background: #f2f4f3;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 4px 10px rgba(0,0,0,0.06);
}

.item-icon i {
  width: 18px;
  height: 18px;
  color: #5F7F73;
}

.item-arrow {
  color: #c7c7cc;
  font-size: 18px;
  flex: 0 0 auto;
  margin-left: 10px;
}

/* ===== BUTTON ===== */
.button {
  background: var(--green);
  color: white;
  font-weight: 500;
  border-radius: 14px;
  padding: 12px;
  border: none;
  cursor: pointer;
  display: block;
  width: calc(100% - 30px);
  margin: 15px auto;
  box-shadow: 0 6px 18px rgba(31,58,47,0.25);
  transition: 0.2s;
}

.button:active {
  opacity: 0.9;
  transform: scale(0.96);
}

/* ===== INFO BOX ===== */
/*
.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 15px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  font-size: 14px;
}
  */

.info-box {
  display: block; /* 🔥 geändert */
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 15px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  font-size: 14px;
}

/* Statische Gäste-Inhaltskarten wachsen ausschließlich mit ihrem Inhalt.
   Bewusst hohe Bereiche wie Verzeichnisse, Widgets, Safe-Galerien, Modals
   und Chat-Komponenten bleiben von diesem Reset unberührt. */
:is(
  #checkin,
  #parken,
  #fruehstueck,
  #info,
  #kiosk,
  #service,
  #lounge,
  #tagundnacht,
  #waldpavillon,
  #mobilitaet,
  #bus,
  #flexline
) > .section > .info-box {
  height: auto;
  min-height: 0;
  align-self: flex-start;
}

:is(
  #checkin,
  #parken,
  #fruehstueck,
  #info,
  #kiosk,
  #service,
  #lounge,
  #tagundnacht,
  #waldpavillon,
  #mobilitaet,
  #bus,
  #flexline
) > .section > .info-box > .info-row,
:is(#kiosk, #service) .info-content {
  height: auto;
  min-height: 0;
}

.highlight {
  background: linear-gradient(180deg,#f4f7f6,#ffffff);
  border: 1px solid rgba(95,127,115,0.12);
}

.warning {
  background: #fff4f4;
  border: 1px solid #ffdede;
}

/* ===== MAP ===== */
.map-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 16px;
  border-radius: 18px;
  margin: 12px 15px;
}

.nav-btn {
  text-decoration: none;
  background: #1F3A2F;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

/* ===== TABBAR ===== */
.tabbar {
  position: fixed;
  bottom: var(--viewport-bottom-offset);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--guest-floating-nav-outer-height);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  touch-action: manipulation;
  z-index: 1000;
}

.tabbar-inner{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  width: min(calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)), 460px);
  min-height: var(--guest-floating-nav-pill-height);
  height: var(--guest-floating-nav-pill-height);
  margin: 0 auto var(--guest-floating-nav-bottom-gap);
  padding: 6px;
  box-sizing: border-box;
  border-radius: 999px;
  pointer-events: auto;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-align:center;
  font-size:12px;
  justify-content:center;
  color:#8e8e93;
  text-decoration:none;
  position:relative;
  z-index:2;
}

.tab-indicator.moving{
  transform: none;
}

.tab span {
  font-size: 22px;
}

.tab.active {
  color:#5F7F73;
  transform: none;
  font-weight: 600;
}

/* 🔥 INDICATOR */

.tab-indicator{
  position:absolute;
  bottom:0;
  height:3px;
  left:0;
  width:20%;
  background:#5F7F73;
  border-radius:2px;
  transition:transform 0.3s ease, width 0.3s ease;
  will-change: transform;
}

/*
.tab-indicator{
  position:absolute;
  left:0;
  bottom:6px;

  height:28px;
  width:60px;

  background: rgba(95,127,115,0.12);
  border-radius:999px;

  backdrop-filter: blur(10px);

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.3s ease;

  z-index:1;
}

.tab-indicator::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  box-shadow: 0 4px 12px rgba(95,127,115,0.25);
  opacity:0.6;
}
*/
/* 🔥 GLOBAL TAP EFFECT */
.tap{
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.tap:active{
  transform: scale(0.985);
  opacity: 0.92;
}

/* ===== SCREEN ===== */
/*
.screen {
  background: var(--bg);
  transform: translateX(100%);
  opacity: 0;
  overflow-y: auto;
  z-index: 1;
  top:0;
  left:0;
  right:0;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;

  position: absolute;
  inset: 0;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 140px;
}
*/

.screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  /* 🔥 Platz für Tabbar inklusive iOS viewport offset */
  bottom: var(--viewport-bottom-offset);

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  background: var(--bg);

  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;

  padding-bottom: var(--guest-floating-nav-reserved-space);
  scroll-padding-bottom: var(--guest-floating-nav-reserved-space);

  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

.screen.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* ===== SWIPE BACK ===== */
.screen{
  touch-action: pan-y;
}

.screen.swiping{
  transition: none !important;
}
/*
.screen.prev{
  transition: none !important;
}

*/
.screen.prev{
  transition: none !important;
}

.screen.prev,
.screen.transitioning-out {
  pointer-events: none !important;
}

/* ===== CARD GROUP ===== */
.card-group {
  background: white;
  border-radius: 22px;
  margin: 0 auto;
  width: calc(100% - 30px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.home-section {
  margin-top: 25px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #a1a1a6;
  margin: 0 20px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section{
  padding-bottom: 0;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.95);
  z-index: 999999;
  pointer-events: none;
}

.lightbox.active {
  display: flex;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
}

/* ===== SPLASH ===== */
#appSplash{
	position:fixed;
	inset:0;
	background:#5F7F73;
	display:flex;
	align-items:center;
	justify-content:center;
	z-index:9999;
	transition:opacity 0.16s ease;
}

#appSplash img{
	width:clamp(190px, 52vw, 300px);
}

#appSplash .hotelmappe-splash-brand{
	animation:splashZoom 0.28s cubic-bezier(0.22,1,0.36,1);
}

#appSplash.hide{
	opacity:0;
	pointer-events:none;
}

@keyframes splashZoom{
	0%{transform:scale(0.6); opacity:0;}
	60%{transform:scale(1.1); opacity:1;}
	100%{transform:scale(1);}
}

/* ===== iOS HEADER ===== */
.ios-header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter: blur(20px);
  background:rgba(246,244,239,0.85);
}

/* NAV BAR (klein) */
.nav-bar{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.nav-title{
  font-size:17px;
  font-weight:600;
  opacity:0;
  transition:0.25s;
}

/* BACK BUTTON */
.back-btn{
  position:absolute;
  left:15px;
  font-size:22px;
  background:none;
  border:none;
  color:var(--green);
}

/* LARGE TITLE */
.large-title{
  padding:10px 20px 12px;
  transition:0.3s;
}

.large-title h1{
  font-size:34px;
  font-weight:700;
  margin:0;
}

/* ===== SCROLLED STATE ===== */
.ios-header.compact .large-title{
  transform:translateY(-20px);
  opacity:0;
}

.ios-header.compact .nav-title{
  opacity:1;
}

/* iOS shadow beim scroll */
.ios-header.compact{
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* ===== SEARCH BAR ===== */
.search-bar{
  position: relative;
  margin: -30px 15px 15px;
  z-index: 5;
  margin-top: -40px;
}

.search-bar input{
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: 16px;
  border: none;
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Icon */
.search-bar::before{
  content: "search";
  font-family: "Material Icons";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  font-size: 20px;
}

/* Focus Effekt */
.search-bar input:focus{
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* ===== SEARCH RESULTS ===== */
.search-results{
  margin: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* einzelne Treffer */
.search-item{
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Pfeil */
.search-item::after{
  content: "›";
  font-size: 18px;
  opacity: 0.5;
}

.search-item.active{
  background: var(--green);
  color: white;
}

/* Highlight Text */
.search-highlight{
  font-weight: 600;
}

.search-wrapper {
  position: relative;
}

#searchInput {
  width: 100%;
  padding-right: 40px; /* Platz für X */
}

#clearSearch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

#clearSearch.visible {
  opacity: 0.6;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  /* Hover Effekt (Desktop wichtig) */
  .search-item:hover{
    background: var(--green);
    color: white;
    transform: translateY(-1px);
  }

  #clearSearch:hover {
    opacity: 1;
  }
}

.login-banner{
  background:linear-gradient(160deg,var(--green),var(--green-light));
  color:white;
  margin:15px;
  padding:14px 16px;
  border-radius:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(31,58,47,0.25);
}

/* LEFT SIDE */
.login-left{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ICON */
.login-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(255,255,255,0.2);

  display:flex;
  align-items:center;
  justify-content:center;
}

.login-icon i{
  width:20px;
  height:20px;
  color:white;
}

/* ===== LOGIN ===== */

.login-box{
  width:calc(100% - 30px);
  margin:20px auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.login-box input{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid #e5e5ea;
  font-size:15px;
  background:white;
  outline:none;
  transition:0.2s;
}

.login-box input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 2px rgba(95,127,115,0.15);
}

.login-hint{
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin-top:10px;
}

.login-text{
  font-size:15px;
  font-weight:500;
  text-align:left; /* 🔥 wichtig: linksbündig */
}

/* ARROW */
.login-arrow{
  font-size:20px;
  opacity:0.7;
}

/* TAP EFFECT (falls noch nicht global) */
.login-banner:active{
  transform:scale(0.97);
}

/* Login Animation */
#login{
  animation:fadeSoft 0.4s ease;
}

.login-banner-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
}

.logout-hint{
  font-size:12px;
  opacity:0.8;
}

.button.secondary{
  background:#e5e5ea;
  color:#1f2937;
}

/* ===== MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
  pointer-events: none;
  visibility: hidden;
}

.modal.active{
  display:block;
  pointer-events: auto;
  visibility: visible;
}

/* BACKDROP */
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.4);
  backdrop-filter:blur(4px);
}

.modal:not(.active) .modal-backdrop,
.modal:not(.active) .modal-sheet {
  pointer-events: none;
}

/* SHEET */
.modal-sheet{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:#f2f2f7;
  border-radius:20px 20px 0 0;
  padding:15px;
  animation:slideUp 0.25s ease;
}

/* TEXT */
.modal-title{
  text-align:center;
  font-weight:600;
  margin-bottom:6px;
}

.modal-sub{
  text-align:center;
  font-size:13px;
  color:#666;
  margin-bottom:12px;
}

/* BUTTONS */
.modal-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  margin-top:8px;
  font-size:15px;
  background:white;
}

.modal-btn.danger{
  color:#ff3b30;
  font-weight:600;
}

.modal-btn.cancel{
  margin-top:10px;
  font-weight:500;
}

.commerce-notice-modal .modal-sheet {
  max-width: 520px;
  margin: 0 auto;
}

.commerce-notice-modal .modal-btn.cancel {
  color: #ffffff;
  background: #315f4d;
  font-weight: 700;
}

/* ANIMATION */
@keyframes slideUp{
  from{ transform:translateY(100%); }
  to{ transform:translateY(0); }
}

.quick-access{
  padding:15px;
}

.quick-title{
  color:#8e8e93;
  margin-bottom:10px;
  font-size:13px;
  line-height:1.2;
  font-weight: 500;
  margin-top: 6px;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* max 2 Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-size: clamp(12px, 2.5vw, 14px);
}

.quick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 15px;
  margin-bottom: 8px;

  font-weight: 500;
  cursor: pointer;

  border-radius: 12px;
  transition: background 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .quick-header:hover {
    background: rgba(0,0,0,0.05);
  }
}

/* Chevron Animation */
.quick-header .chevron {
  transition: transform 0.25s;
  font-size: 18px;
}

.quick-header.open .chevron {
  transform: rotate(180deg);
}

/* Grid Animation */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  transition: all 0.3s ease;
  overflow: hidden;

  gap:12px;
  padding:0 15px;
}

/* collapsed Zustand */
.quick-grid.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

/* geöffnet */
.quick-grid.open {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 15px;
}

.quick-item{
  background:white;
  border-radius:18px;
  text-align:center;
  font-size:13px;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
  cursor:pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔥 verteilt oben / unten */
  height: 130px; /* wichtig! feste Höhe */
  padding: 12px;
}

.quick-item span{
  display:block;
  margin-top:5px;
  font-size:12px;
}

.quick-item:active{
  transform: scale(0.94);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  background:#f2f4f3;
}

.quick-item:active i{
  transform: scale(0.9) rotate(-3deg);
}

.quick-item i{
  transition: transform 0.2s ease;
}

.quick-list{
  margin:10px 15px;
}

.quick-row{
  display:flex;
  align-items:center;
  gap:12px;
  background:white;
  padding:14px;
  border-radius:16px;
  margin-bottom:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.05);
  font-size:15px;
  cursor:pointer;
  transition:0.2s;
}

.quick-row:active{
  transform:scale(0.98);
  background:#f2f4f3;
}

.quick-row .arrow{
  margin-left:auto;
  color:#8e8e93;
}

/* Standard Icon */
i[data-lucide]{
  width:20px;
  height:20px;
  stroke-width:2;
  color:#5F7F73;
}

/* Tabbar */
.tab i{
  width:22px;
  height:22px;
  margin-bottom:2px;
  transition: transform 0.2s ease;
  display:block;
  margin:0 auto 2px;
}

.tab.active i{
  color:#5F7F73;
  transform: none;
}

.quick-btn.primary i{
  color:white;
}

/* 🔥 ICON CONTAINER (wichtig!) */
.quick-icon{
  width:40px;
  height:40px;
  margin:0 auto 8px;
  border-radius:12px;
  background:#f2f4f3;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 6px;
}

/* ICON */
.quick-icon i{
  width:20px;
  height:20px;
  color:#5F7F73;
}


.quick-sub{
  color:#8e8e93;
  font-size: 12px;
  opacity: 0.6;
  margin-top: auto; /* 🔥 schiebt es ganz nach unten */
  text-align: center;
}

.quick-item.primary{
  background: linear-gradient(160deg, #5F7F73, #7FA596);
  color:white;
}

.quick-item.primary .quick-icon{
  background: rgba(255,255,255,0.2);
}

.quick-item.primary i{
  color:white;
}

.fade-in{
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  margin-right: 10px;

  border-radius: 12px;
  background: #f2f4f3;

  flex-shrink: 0; /* 🔥 verhindert Zusammendrücken */

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 4px 10px rgba(0,0,0,0.08);
}

.header-icon i {
  width: 18px;
  height: 18px;

  stroke-width: 2;
  color: #5F7F73;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 42px;
  margin-right: 8px;

  border-radius: 12px;
  background: #f3f4f6;

  flex-shrink: 0;
}

.info-icon i {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: #5F7F73;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* CONTENT */
.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-title {
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
}

.info-text {
  font-size: 14px;
  color: #6b7280;
}

.benefit-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.benefit-list li {
  position: relative;
  padding-left: 20px;
  color: #56636a;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #5f7f73;
  font-weight: 800;
}

.push-debug-text {
  border-top: 1px solid rgba(95, 127, 115, .18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 8px;
  padding-top: 8px;
  word-break: break-word;
}

.marketing-push-panel {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1e8e4;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 33, 26, 0.07);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 15px 14px;
  padding: 14px;
}

.marketing-push-copy {
  min-width: 0;
}

.marketing-push-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.marketing-push-description {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.marketing-push-status {
  color: #5f6f74;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 7px;
  min-height: 17px;
}

.marketing-push-switch {
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}

.marketing-push-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.marketing-push-slider {
  background: #c9d3cf;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 30px;
  position: relative;
  transition: background 0.18s ease;
  width: 52px;
}

.marketing-push-slider::before {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20, 33, 26, 0.24);
  content: "";
  height: 24px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.18s ease;
  width: 24px;
}

.marketing-push-switch input:checked + .marketing-push-slider {
  background: #5f7f73;
}

.marketing-push-switch input:checked + .marketing-push-slider::before {
  transform: translateX(22px);
}

.marketing-push-switch input:focus-visible + .marketing-push-slider {
  outline: 3px solid rgba(95, 127, 115, 0.28);
  outline-offset: 3px;
}

.marketing-push-switch input:disabled + .marketing-push-slider {
  cursor: wait;
  opacity: 0.65;
}

.marketing-push-prompt-sheet {
  padding-top: 34px;
}

/* LINK */
.info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #1F3A2F;
  margin-top: 4px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.info-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-inline-link {
  color: #1f3a2f;
  font-weight: 600;
  text-decoration: underline;
}

/* IMAGE */
.info-media img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== VARIANTS ===== */

.info-box.highlight {
  background: #F3F7F5;
}

.info-box.highlight .info-icon {
  background: #E3EFEA;
}

.info-box.highlight svg {
  stroke: #1F3A2F;
}

/* WARNING */
.info-box.warning {
  background: #FFF4F4;
}

.info-box.warning .info-icon {
  background: #FFE3E3;
}

.info-box.warning svg {
  stroke: #E05A5A;
}

/* NEUTRAL */
.info-box.neutral {
  background: #F9FAFB;
}

/* ===== SMALL VARIANT ===== */

.info-box.compact .info-row {
  align-items: center;
}

.info-box.compact .info-media {
  display: none;
}

.dirs21-widget-shell {
  width: 100%;
  min-height: 280px;
}

/* ===== GALLERY NEU ===== */
/*
.info-gallery {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.info-gallery img {
  height: 120px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
*/

.info-gallery{
	display:grid;
	gap:10px;
	margin-top:10px; /* 🔥 AUTO RESPONSIVE */
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.info-gallery img{
	width:100%;
	height:120px;
	object-fit:cover;
	border-radius:12px;
	cursor:zoom-in;
	transition:0.2s;
	margin-left:auto;
	margin-right:auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: scale(0.97);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Desktop Optimierung */
@media(min-width:900px){
	.info-gallery{
		grid-template-columns: repeat(3, 1fr); /* max 3 nebeneinander */
		max-width:700px; /* 👈 verhindert "zu breit" */
	}
	.info-gallery img{
		height:140px;
	}
}

/* OPTIONAL: schöner Scroll */
.info-gallery::-webkit-scrollbar {
  height: 6px;
}

.info-gallery::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.header-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-icon i {
  width: 16px;
  height: 16px;
  stroke: #5F7F73;
}

.map-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/*
@keyframes bouncePin {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(2px);
  }
}
*/

@keyframes bouncePin {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-8px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* nur das Icon animieren */
.header-inline svg {
  animation: bouncePin 1.4s ease-in-out infinite;
}

/* ===== FORM ===== */

.form-group {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: #1F3A2F;
  box-shadow: 0 0 0 2px rgba(31,58,47,0.1);
}

#loginCaptchaWrap {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

#loginCaptchaWrap.hidden {
  min-height: 0;
}

#loginFriendlyCaptcha {
  width: 100%;
  min-height: 60px;
  overflow: hidden;
}

@media (max-width: 600px) {
  #loginCaptchaWrap {
    min-height: 56px;
  }

  #loginFriendlyCaptcha {
    min-height: 52px;
  }
}

/* BUTTON FULL WIDTH */
.button.full {
  width: 100%;
  justify-content: center;
}

.button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.button.is-loading {
  opacity: 0.85;
}

.form-feedback {
  min-height: 18px;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.form-feedback.is-error {
  color: #b42318;
}

.form-feedback.is-success {
  color: #1f7a45;
}

.account-summary {
  margin: 0 15px 14px;
}

.account-summary-card {
  margin: 0;
}

.account-summary-head h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-summary-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8f1ed;
}

.account-summary-title-icon svg {
  width: 18px;
  height: 18px;
  color: #426457;
  stroke-width: 2;
}

.account-summary-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-data-cell {
  border-radius: 12px;
  border: 1px solid #dfe8e3;
  background: #f6faf8;
  padding: 10px 11px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.account-summary-grid strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #647177;
  text-transform: uppercase;
}

.account-summary-grid span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: #1f2937;
  word-break: break-word;
}

.account-summary-note {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px solid #dde8e2;
  background: #f3f7f5;
  padding: 10px 11px;
}

.account-summary-note strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #647177;
  text-transform: uppercase;
}

.account-summary-note span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: #1f2937;
}

.account-rooms {
  margin: 0 15px 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-room-card {
  border-radius: 16px;
  border: 1px solid #e4ebe7;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(31, 58, 47, 0.08);
  padding: 16px;
}

.account-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-room-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-family: var(--font-display);
  color: #1f2f27;
}

.account-room-label {
  font-size: 12px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #647177;
  margin-right: 6px;
}

.account-room-change-note {
  font-size: 12px;
  font-family: var(--font-body);
  color: #647177;
  font-weight: 500;
}

.account-room-status {
  border-radius: 999px;
  padding: 5px 10px;
  background: #eff5f2;
  color: #355548;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.account-inline-link,
.account-room-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #5f7f73, #7fa596);
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(95, 127, 115, 0.26);
}

@media (hover: hover) and (pointer: fine) {
  .account-inline-link:hover,
  .account-room-inline-link:hover {
    filter: brightness(1.04);
  }
}

.account-room-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-room-grid strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #647177;
  text-transform: uppercase;
}

.account-room-grid span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: #1f2937;
}

.account-room-safe {
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 11px;
  background: #f3f7f5;
  border: 1px solid #dde8e2;
  min-height: 78px;
}

.account-room-safe strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #5d6d74;
  text-transform: uppercase;
}

.account-room-safe span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.account-room-safe span.is-visible {
  color: #1f2f27;
}

.account-room-safe span.is-pending {
  color: #6b7280;
}

.account-room-guests {
  margin-top: 12px;
}

.account-room-guests strong {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5c6970;
}

.account-room-guests ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.account-room-guests li {
  margin-bottom: 3px;
  font-size: 14px;
  color: #253036;
}

.wlan-auto-hint {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: #4b5563;
}

.wlan-profiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wlan-profile-entry {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(95, 127, 115, 0.22);
  background: rgba(255, 255, 255, 0.62);
}

.wlan-profile-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #51616a;
}

.wlan-profile-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media (max-width: 420px) {
  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-data-cell,
  .account-room-safe {
    min-height: 0;
  }

  .account-room-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-room-grid {
    grid-template-columns: 1fr;
  }
}

.icon-green i { color: #5F7F73; stroke: #5F7F73; }
.icon-gold i { color: #C8A96A; stroke: #C8A96A; }
.icon-blue i { color: #4A90E2; stroke: #4A90E2; }
.icon-red i { color: #E05A5A; stroke: #E05A5A; }
.icon-copper i { color: #A66A4D; stroke: #A66A4D; }

.icon-green { color: #5F7F73; }
.icon-gold { color: #C8A96A; }
.icon-blue { color: #4A90E2; }
.icon-red { color: #E05A5A; }
.icon-copper { color: #A66A4D; }

/* ===== GUEST CASES ===== */
.guest-help-lead {
  margin: -2px 0 14px;
  color: #52615a;
  font-size: 14px;
  line-height: 1.55;
}

.guest-help-app {
  margin-bottom: 0;
}

body.guest-case-detail-open .tabbar {
  display: none !important;
}

body.guest-case-detail-open #mitteilungen.screen,
#mitteilungen.case-detail-screen {
  top: 0 !important;
  bottom: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  transform: none !important;
  -webkit-transform: none !important;
}

#mitteilungen.case-detail-screen > .header,
#mitteilungen.case-detail-screen > .button,
#mitteilungen.case-detail-screen .communication-head,
#mitteilungen.case-detail-screen .communication-segment,
#mitteilungen.case-detail-screen .guest-help-lead {
  display: none !important;
}

#mitteilungen.case-detail-screen > .section {
  position: static;
  margin: 0;
  padding: 0;
}

.guest-help-app.case-detail-mode {
  position: fixed;
  top: var(--guest-global-header-bottom);
  right: 0;
  bottom: var(--guest-case-keyboard-inset, 0px);
  left: 0;
  z-index: 2500;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

body.guest-case-detail-open.guest-case-keyboard-active,
body.guest-case-detail-open.guest-case-keyboard-active #appWrapper {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.guest-help-app.case-detail-mode .guest-help-notice {
  margin: 0 0 8px;
}

.guest-help-app.case-detail-mode #guestHelpContent {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.guest-case-detail-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--bg);
}

.guest-case-detail-back-header {
  position: relative;
  z-index: 3;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 64px;
  align-items: center;
  padding: 9px 10px;
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid rgba(95, 127, 115, 0.1);
  backdrop-filter: blur(20px);
  overflow: visible;
}

.guest-case-detail-back-header .guest-case-back {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: fit-content;
  max-width: min(42vw, 190px);
  margin: 0;
  padding: 10px 13px;
  white-space: nowrap;
}

.guest-case-detail-header-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.guest-case-detail-title {
  margin: 0;
  color: #1f3a2f;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-case-detail-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.guest-case-detail-status-row span,
.guest-case-detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(95, 127, 115, 0.1);
  color: #365044;
  font-size: 11px;
  font-weight: 800;
}

.guest-case-detail-scroll-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  overflow-anchor: none;
}

.guest-case-detail-summary {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.guest-case-detail-summary .guest-case-detail-notice {
  margin: 0 0 8px;
}

.guest-case-detail-summary .guest-case-detail-card {
  margin: 0;
  padding: 11px 12px;
}

.guest-case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.guest-case-detail-thread-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.guest-case-detail-scroll-content .guest-case-detail-thread {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(var(--guest-case-composer-height, 0px) + 18px + env(safe-area-inset-bottom));
  background: transparent;
  border-color: transparent;
}

.guest-case-detail-fixed-composer {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: rgba(246, 244, 239, 0.96);
  border-top: 1px solid rgba(95, 127, 115, 0.1);
  backdrop-filter: blur(20px);
  overscroll-behavior: contain;
  transform: translateZ(0);
  will-change: transform;
}

body.guest-case-detail-open.guest-case-keyboard-active .guest-help-app.case-detail-mode,
body.guest-case-detail-open.guest-case-keyboard-active .guest-case-detail-shell,
body.guest-case-detail-open.guest-case-keyboard-active .guest-case-detail-fixed-composer {
  transition: none !important;
  animation: none !important;
}

.guest-case-detail-fixed-composer:empty {
  min-height: max(8px, env(safe-area-inset-bottom));
  padding-top: 0;
}

.guest-case-detail-fixed-composer .guest-case-reply {
  margin: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.guest-case-detail-composer-inner {
  min-width: 0;
  min-height: 0;
}

.guest-case-detail-fixed-composer .guest-case-reply textarea {
  display: block;
  min-height: 46px;
  max-height: 132px;
  resize: none;
  padding: 11px 12px;
  font-size: 16px;
  overflow-anchor: none;
}

.guest-case-detail-fixed-composer .guest-case-reply .button {
  width: 100%;
  min-height: 46px;
  margin: 0;
}

.guest-case-detail-fixed-composer .guest-case-form-error {
  min-height: 0;
  margin: 0;
}

.guest-help-notice {
  margin: 12px 15px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf6f0 0%, #ffffff 100%);
  border: 1px solid rgba(95, 127, 115, 0.18);
  color: #1f3a2f;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(31, 58, 47, 0.08);
}

.guest-case-toolbar {
  margin: 12px 15px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guest-case-toolbar-copy {
  display: grid;
  gap: 2px;
}

.guest-case-toolbar-copy strong {
  font-size: 15px;
  color: #1f3a2f;
}

.guest-case-toolbar-copy span {
  font-size: 12px;
  color: #75817d;
}

.guest-case-icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(95, 127, 115, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #1f3a2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(31, 58, 47, 0.09);
}

.guest-case-icon-button svg {
  width: 19px;
  height: 19px;
}

.guest-case-new-button {
  margin-top: 8px;
}

.guest-case-load-more {
  margin: 14px 15px 120px;
}

.guest-case-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 15px 120px;
}

.guest-case-card,
.guest-case-detail-card,
.guest-case-wizard-card,
.guest-case-empty {
  border-radius: 18px;
  border: 1px solid #e7ece9;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 33, 26, 0.07);
  overflow: hidden;
}

.guest-case-card.unread {
  border-color: rgba(95, 127, 115, 0.45);
  background: linear-gradient(180deg, #edf7f1 0%, #ffffff 72%);
  box-shadow: 0 14px 32px rgba(95, 127, 115, 0.16);
}

.guest-case-card.urgent,
.guest-case-detail-card.urgent {
  border-color: rgba(224, 90, 90, 0.34);
  background: linear-gradient(180deg, #fff6f6 0%, #ffffff 48%);
}

.guest-case-card.done {
  opacity: 0.92;
}

.guest-case-card-button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 15px;
  text-align: left;
  color: inherit;
}

.guest-case-card-head,
.guest-case-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.guest-case-card h4,
.guest-case-detail-card h4,
.guest-case-empty h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}

.guest-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.guest-case-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(95, 127, 115, 0.1);
  color: #365044;
  font-size: 11px;
  font-weight: 800;
}

.guest-case-meta .guest-case-status-badge.status-done,
.guest-case-detail-status-row .guest-case-status-badge.status-done {
  background: #eef1f0;
  color: #69746f;
}

.guest-case-meta .guest-case-status-badge.status-in_progress,
.guest-case-detail-status-row .guest-case-status-badge.status-in_progress {
  background: rgba(200, 169, 106, 0.18);
  color: #7b5b19;
}

.guest-case-meta .guest-case-urgency-badge.urgency-important,
.guest-case-detail-status-row .guest-case-urgency-badge.urgency-important {
  background: #fff3dd;
  color: #8a5a0a;
}

.guest-case-meta .guest-case-urgency-badge.urgency-urgent,
.guest-case-detail-status-row .guest-case-urgency-badge.urgency-urgent {
  background: #fff0f0;
  color: #b54747;
}

.guest-case-new-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: #5F7F73;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(95, 127, 115, 0.22);
}

.guest-case-new-pill svg {
  width: 13px;
  height: 13px;
}

.guest-case-unread-line {
  margin-top: 10px;
  color: #365044;
  font-size: 13px;
  font-weight: 900;
}

.guest-case-preview {
  margin-top: 10px;
  color: #33413b;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guest-case-empty {
  margin: 10px 15px 120px;
  padding: 24px 18px;
  text-align: center;
}

.guest-case-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5f1;
  color: #5F7F73;
}

.guest-case-empty p {
  margin: 8px 0 0;
  padding: 0;
  color: #65736d;
  font-size: 14px;
  line-height: 1.5;
}

.guest-case-empty-button {
  margin-top: 16px;
}

.guest-case-back {
  margin: 4px 15px 12px;
  border: 1px solid rgba(95, 127, 115, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: #365044;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  padding: 11px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(20, 33, 26, 0.07);
}

.guest-case-back-primary {
  width: calc(100% - 30px);
  background: linear-gradient(135deg, #5F7F73 0%, #365044 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(54, 80, 68, 0.18);
}

.guest-case-back svg {
  width: 18px;
  height: 18px;
}

.guest-case-detail-card {
  margin: 0 15px 12px;
  padding: 16px;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(200, 169, 106, 0.12), transparent 55%),
    #ffffff;
}

.guest-case-thread {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 15px 12px;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(95, 127, 115, 0.09);
}

.guest-case-message {
  width: 100%;
  max-width: none;
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  overflow: visible;
}

.guest-case-message.guest {
  justify-content: flex-end;
  align-self: stretch;
}

.guest-case-message.admin {
  justify-content: flex-start;
  align-self: stretch;
}

.guest-case-message-bubble {
  width: fit-content;
  max-width: min(86%, 560px);
  display: grid;
  gap: 5px;
  padding: 11px 13px 10px;
  border-radius: 20px;
  border: 1px solid rgba(95, 127, 115, 0.1);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 33, 26, 0.08);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guest-case-message.guest .guest-case-message-bubble {
  color: #ffffff;
  background: linear-gradient(135deg, #5F7F73 0%, #365044 100%);
  border-color: rgba(95, 127, 115, 0.32);
  border-bottom-right-radius: 7px;
  box-shadow: 0 12px 24px rgba(54, 80, 68, 0.18);
}

.guest-case-message.admin .guest-case-message-bubble {
  color: #1f2937;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.96));
  border-color: rgba(200, 169, 106, 0.24);
  border-bottom-left-radius: 7px;
}

.guest-case-message-author {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  opacity: 0.82;
}

.guest-case-message-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-height: 13px;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.72;
  margin: 1px 0 0;
}

.guest-case-message-body {
  font-size: 14.5px;
  line-height: 1.5;
}

.guest-case-thread-empty {
  align-self: center;
  width: min(100%, 420px);
  margin: auto 0;
  text-align: center;
}

.guest-case-done-note {
  margin: 12px 0 0;
  color: #65736d;
  font-size: 13px;
  line-height: 1.45;
}

.guest-case-close-action {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(95, 127, 115, 0.12);
}

.guest-case-close-action .button {
  margin: 0;
}

.guest-case-close-action span {
  color: #65736d;
  font-size: 12px;
  line-height: 1.4;
}

.guest-case-reply,
.guest-case-wizard-card {
  margin: 0 15px 120px;
  padding: 16px;
}

.guest-case-reply {
  border-radius: 22px;
  border: 1px solid rgba(95, 127, 115, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(20, 33, 26, 0.08);
}

.guest-case-reply label,
.guest-case-field-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #365044;
  margin-bottom: 8px;
}

.guest-case-reply textarea,
.guest-case-wizard-card textarea {
  width: 100%;
  border: 1px solid rgba(95, 127, 115, 0.18);
  border-radius: 16px;
  padding: 13px;
  resize: vertical;
  min-height: 104px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: #1f2937;
  background: #fbfcfb;
}

.guest-case-form-error {
  min-height: 18px;
  margin-top: 8px;
  color: #b54747;
  font-size: 13px;
  font-weight: 700;
}

.guest-case-form-error.visible {
  min-height: auto;
  margin-bottom: 12px;
}

.guest-case-wizard-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.guest-case-wizard-head {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.guest-case-wizard-head span {
  color: #71807a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guest-case-wizard-head strong {
  color: #1f3a2f;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.08;
}

.guest-case-wizard-progress span {
  border-radius: 999px;
  background: #f1f4f2;
  color: #71807a;
  padding: 7px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.guest-case-wizard-progress span.active,
.guest-case-wizard-progress span.done {
  background: #5F7F73;
  color: #ffffff;
}

.guest-case-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guest-case-topic-option,
.guest-case-check-option,
.guest-case-urgency-option {
  border: 1px solid rgba(95, 127, 115, 0.16);
  border-radius: 16px;
  background: #fbfcfb;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #25362f;
  min-height: 64px;
  line-height: 1.25;
}

.guest-case-topic-copy,
.guest-case-check-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.guest-case-topic-option.selected,
.guest-case-urgency-option.selected,
.guest-case-check-option:has(input:checked) {
  border-color: rgba(95, 127, 115, 0.48);
  background: #eef5f1;
}

.guest-case-topic-option.disabled {
  opacity: 0.58;
  background: #f4f3ee;
}

.guest-case-topic-option.disabled input {
  cursor: not-allowed;
}

.guest-case-topic-copy {
  display: grid;
  gap: 3px;
}

.guest-case-topic-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.guest-case-topic-copy small {
  display: block;
  color: #7b827c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.guest-case-topic-option input,
.guest-case-check-option input,
.guest-case-urgency-option input {
  width: 18px;
  height: 18px;
  accent-color: #5F7F73;
  flex: 0 0 auto;
}

.guest-case-topic-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5f1;
  color: #5F7F73;
  flex: 0 0 auto;
}

.guest-case-topic-icon svg {
  width: 18px;
  height: 18px;
}

.guest-case-service-list,
.guest-case-urgency-group {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.guest-case-urgency-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guest-case-step-copy {
  margin: 0 0 12px;
  color: #65736d;
  font-size: 13px;
  line-height: 1.45;
}

.guest-case-stay-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 139, 78, 0.28);
  border-radius: 14px;
  background: rgba(255, 247, 232, 0.82);
  color: #6d5738;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.guest-case-urgency-option {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.guest-case-urgency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.guest-case-urgency-option span {
  font-size: 14px;
}

.guest-case-urgency-option small {
  color: #65736d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.guest-case-urgency-option.selected small {
  color: #365044;
}

.guest-case-summary {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(200, 169, 106, 0.16), transparent 60%),
    #fbfcfb;
  border: 1px solid rgba(95, 127, 115, 0.14);
}

.guest-case-summary h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
}

.guest-case-summary-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(95, 127, 115, 0.12);
}

.guest-case-summary-row:first-of-type {
  border-top: none;
}

.guest-case-summary-row > span {
  color: #71807a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guest-case-summary-row strong,
.guest-case-summary-row p,
.guest-case-summary-row ul {
  margin: 0;
  color: #25362f;
  font-size: 14px;
  line-height: 1.45;
}

.guest-case-summary-row ul {
  padding-left: 18px;
}

.guest-case-wizard-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 14px;
}

.guest-case-wizard-actions.single {
  grid-template-columns: 1fr;
}

.guest-case-wizard-actions .button {
  width: 100%;
  margin: 0;
}

.account-help-shortcut {
  margin: 14px 15px 120px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 33, 26, 0.06);
}

.account-help-shortcut .item {
  width: 100%;
  border: none;
  margin: 0;
  text-align: left;
  cursor: pointer;
}

.account-help-shortcut .item-left > div:last-child {
  display: grid;
  gap: 2px;
}

.account-help-shortcut strong {
  font-size: 15px;
}

.account-help-shortcut span {
  font-size: 12px;
  color: #6b746f;
}

@media (max-width: 430px) {
  .guest-case-wizard-actions {
    grid-template-columns: 1fr;
  }

  .guest-help-lead {
    margin-left: 2px;
    margin-right: 2px;
  }

  .guest-case-toolbar,
  .guest-case-list,
  .guest-case-load-more,
  .guest-case-empty,
  .guest-case-detail-card,
  .guest-case-thread,
  .guest-case-reply,
  .guest-case-wizard-card {
    margin-left: 10px;
    margin-right: 10px;
  }

  .guest-case-back {
    margin-left: 10px;
    margin-right: 10px;
  }

  .guest-case-back-primary {
    width: calc(100% - 20px);
  }

  .guest-case-toolbar {
    align-items: stretch;
  }

  .guest-case-card-button,
  .guest-case-detail-card,
  .guest-case-reply,
  .guest-case-wizard-card {
    padding: 14px;
  }

  .guest-case-card-head,
  .guest-case-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .guest-case-card h4,
  .guest-case-detail-card h4,
  .guest-case-empty h4 {
    font-size: 20px;
  }

  .guest-case-topic-grid {
    grid-template-columns: 1fr;
  }

  .guest-case-topic-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 74px;
    padding: 14px;
    gap: 12px;
  }

  .guest-case-topic-option input {
    grid-column: 3;
    grid-row: 1;
    margin-left: auto;
  }

  .guest-case-topic-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .guest-case-topic-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .guest-case-topic-copy strong {
    font-size: 15px;
  }

  .guest-case-topic-copy small {
    font-size: 12px;
  }

  .guest-case-topic-copy,
  .guest-case-check-option span {
    line-height: 1.32;
  }

  .guest-case-urgency-group {
    grid-template-columns: 1fr;
  }

  .guest-case-wizard-progress {
    grid-template-columns: 1fr;
  }

  .guest-case-wizard-progress span {
    text-align: left;
    padding: 9px 11px;
  }

  .guest-case-wizard-head strong {
    font-size: 22px;
  }

  .guest-case-message {
    max-width: 94%;
  }

  .guest-case-reply textarea,
  .guest-case-wizard-card textarea {
    min-height: 118px;
    font-size: 16px;
  }

  .guest-case-detail-fixed-composer .guest-case-reply textarea {
    min-height: 46px;
  }
}

/* ===== PREMIUM DIRECTORY ===== */
.hidden {
  display: none !important;
}

.directory-shell {
  margin: 12px 15px;
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(140% 80% at 0% 0%, rgba(95,127,115,0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fcfcfb 100%);
  box-shadow: 0 18px 45px rgba(31, 58, 47, 0.08);
}

.directory-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  border: 1px solid rgba(95, 127, 115, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #f5f7f6;
  color: #355548;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.filter-chip i {
  width: 14px;
  height: 14px;
}

.filter-chip.active {
  background: linear-gradient(135deg, #5f7f73, #7fa596);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(95, 127, 115, 0.35);
}

.directory-loading,
.directory-empty {
  border-radius: 16px;
  border: 1px solid #e6ebe8;
  background: #f8fbf9;
  color: #4b5563;
  font-size: 13px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-offline-notice,
.directory-error-card {
  border-radius: 16px;
  border: 1px solid rgba(200, 169, 106, 0.28);
  background: #fffaf0;
  color: #3c3322;
  padding: 12px 13px;
  margin-bottom: 12px;
  box-shadow: 0 10px 22px rgba(88, 68, 30, 0.07);
}

.directory-offline-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.directory-error-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.directory-offline-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.directory-offline-copy strong {
  color: #2f432e;
  font-size: 13px;
}

.directory-offline-time {
  color: #6b5b34;
  font-size: 12px;
  font-weight: 700;
}

.directory-retry-button {
  appearance: none;
  border: 1px solid rgba(95, 127, 115, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #305244;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  touch-action: manipulation;
}

.directory-retry-button:active {
  transform: translateY(1px);
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5f7f73;
  box-shadow: 0 0 0 0 rgba(95, 127, 115, 0.45);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 127, 115, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(95, 127, 115, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 127, 115, 0);
  }
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.directory-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(95, 127, 115, 0.12);
  box-shadow: 0 14px 30px rgba(18, 38, 30, 0.09);
  overflow: hidden;
}

.directory-media {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: linear-gradient(140deg, #edf4f0 0%, #f7f7f5 100%);
}

.directory-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.directory-image-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f7f73;
}

.directory-image-placeholder i {
  width: 26px;
  height: 26px;
}

.directory-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.directory-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.directory-headline h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 600;
  color: #1f2f27;
  min-width: 0;
  overflow-wrap: anywhere;
}

.premium-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8f2e3;
  color: #846127;
}

.directory-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #4b5563;
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.directory-meta i {
  width: 14px;
  height: 14px;
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f3f6f4;
  color: #345749;
  font-size: 11px;
  font-weight: 600;
}

.directory-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.directory-action {
  text-decoration: none;
  color: #305244;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #dfe8e2;
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.directory-action.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #1f3a2f, #5f7f73);
  color: #ffffff;
}

.directory-action i {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.directory-action span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.taxi-directory-card .directory-content {
  padding: 16px;
}

@media (max-width: 430px) {
  .directory-offline-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-retry-button {
    justify-content: center;
    width: 100%;
  }

  .taxi-directory-card .directory-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .directory-shell {
    padding: 18px;
  }

  .directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ===== MESSAGES ===== */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 15px 120px;
}

.marketing-messages-panel {
  margin: 18px 15px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 58, 47, 0.14);
}

.marketing-messages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.marketing-messages-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.marketing-messages-head .button {
  width: auto;
  min-height: 40px;
  padding: 8px 14px;
  margin: 0;
  flex-shrink: 0;
}

.marketing-message-list {
  margin: 12px 0 0;
}

.message-card {
  border-radius: 16px;
  border: 1px solid #e7ece9;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 33, 26, 0.07);
  padding: 0;
  overflow: hidden;
}

.message-card-button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px;
  margin: 0;
  display: block;
  text-align: left;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.message-card-button:focus-visible {
  outline: 2px solid rgba(95, 127, 115, 0.55);
  outline-offset: 6px;
  border-radius: 10px;
}

.message-card.unread {
  border-color: rgba(95, 127, 115, 0.45);
  background: linear-gradient(180deg, #eef5f1 0%, #e4efe9 100%);
  box-shadow: 0 10px 22px rgba(41, 70, 58, 0.13);
}

.message-card.unread .message-card-button {
  background: transparent;
}

.message-card.read {
  opacity: 0.86;
}

.message-card.urgent {
  border-color: rgba(224, 90, 90, 0.38);
  background: linear-gradient(180deg, #fff6f6 0%, #ffffff 38%);
}

.message-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.message-headline h4 {
  margin: 0;
  font-size: 21px;
  font-family: var(--font-display);
  line-height: 1.1;
}

.message-pill {
  border-radius: 999px;
  background: #1f3a2f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.message-time {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.message-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #253036;
}

.message-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-i18n-preline="1"] {
  white-space: pre-line;
}

.message-cta {
  margin-top: 12px;
  width: fit-content;
}

.message-detail-sheet {
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  border-radius: 18px;
  max-height: calc(88vh - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 22px 48px rgba(12, 22, 17, 0.3);
}

.message-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(31, 58, 47, 0.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1f3a2f;
  box-shadow: 0 6px 18px rgba(31, 58, 47, 0.12);
}

.message-detail-close:focus-visible {
  outline: 2px solid rgba(95, 127, 115, 0.55);
  outline-offset: 2px;
}

.message-detail-close-glyph {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 34px;
  font-weight: 700;
  margin: 0;
  transform: translateY(-1px);
}

.message-detail-title {
  text-align: left;
  font-size: 24px;
  line-height: 1.15;
  margin: 4px 38px 6px 0;
}

.message-detail-time {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.message-detail-body {
  font-size: 15px;
  line-height: 1.6;
  color: #253036;
  white-space: normal;
}

.message-copy-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  margin: 0 3px;
  padding: 2px 6px 2px 10px;
  border: 1px solid rgba(31, 58, 47, 0.2);
  border-radius: 999px;
  background: #edf4f0;
  max-width: 100%;
}

.message-copy-token code {
  font-size: 13px;
  line-height: 1.2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #1f3a2f;
  word-break: break-all;
}

.message-copy-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 58, 47, 0.28);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  color: #1f3a2f;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.85);
  padding: 0;
  position: relative;
}

.message-copy-glyph {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.message-copy-glyph::before,
.message-copy-glyph::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.message-copy-glyph::before {
  top: 5px;
  left: 1px;
  opacity: 0.9;
}

.message-copy-glyph::after {
  top: 2px;
  left: 6px;
}

.message-copy-button:focus-visible {
  outline: 2px solid rgba(95, 127, 115, 0.6);
  outline-offset: 2px;
}

.message-copy-button.is-copied {
  background: #1f3a2f;
  color: #ffffff;
}

.message-copy-button.is-error {
  background: #dc2626;
  color: #ffffff;
}

.message-detail-cta {
  margin-top: 14px;
  width: fit-content;
}

.message-detail-back {
  margin-top: 14px;
}


/* ===== MOVED FROM APP.HTML INLINE STYLE (2026-04-20) ===== */
:root {
  --viewport-bottom-offset: 0px;
  --tabbar-current-height: var(--guest-floating-nav-reserved-space);
}

html, body {
  height: 100% !important;
  overflow: hidden !important;
}

#appWrapper {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

.tabbar {
  bottom: var(--viewport-bottom-offset) !important;
}

.screen {
  bottom: var(--viewport-bottom-offset) !important;
}

.home-header-insights {
  align-items: stretch !important;
  width: clamp(220px, 24vw, 300px) !important;
  max-width: calc(100% - 28px) !important;
  border-radius: 14px !important;
}

.account-inline-link,
.account-room-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #5f7f73, #7fa596);
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-inline-link {
  color: #1f3a2f;
  font-weight: 600;
  text-decoration: underline;
}

.account-room-change-note {
  font-size: 12px;
  font-family: "Manrope", sans-serif;
  color: #647177;
  font-weight: 500;
}

.home-header-insights-actions {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.home-header-action-link {
  text-decoration: none !important;
  color: #2f4d41 !important;
}

.home-header-insights-top {
  width: 100% !important;
  align-items: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.home-header-chip {
  width: 100% !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  min-height: 34px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #2f4d41 !important;
  font-weight: 700 !important;
  background: rgba(240, 248, 244, 0.64) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
}

.home-header-chip i,
.home-header-chip svg {
  color: #2f4d41 !important;
}

.section-title,
.section h3 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  text-align: left;
}

.section-title .header-icon,
.section h3 .header-icon,
.quick-header .header-inline .icon-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-header .header-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.i18n-inline-text {
  display: inline;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  position: relative;
  justify-content: center;
  flex: 0 0 auto;
  width: 72px;
  height: 40px;
}

.language-switcher-trigger {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px 0 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.language-switcher-trigger:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

.language-switcher-value {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.language-switcher-chevron {
  width: 14px;
  height: 14px;
  color: #ffffff;
  opacity: 0.9;
  flex-shrink: 0;
}

.language-switcher.menu-visible .language-switcher-trigger {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.language-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -2px) scale(0.96);
  min-width: 172px;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(95, 127, 115, 0.20);
  box-shadow: 0 18px 34px rgba(14, 24, 20, 0.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.language-select {
  display: none !important;
}

.language-switcher.menu-visible .language-switcher-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

#authBar #authMessagesButton i,
#authBar #authMessagesButton svg,
#authBar #networkStatusButton i,
#authBar #networkStatusButton svg {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  stroke-width: 2.05 !important;
  color: #ffffff !important;
  stroke: currentColor !important;
  transform: none !important;
  display: block !important;
}

.auth-icon-wrap i {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

#authBar #networkStatusButton .network-status-popover {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  width: min(280px, calc(100vw - 32px)) !important;
  min-width: min(230px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  transform: translate(calc(-50% + var(--network-status-popover-offset-x, 0px)), -2px) !important;
}

#authBar #networkStatusButton .network-status-popover__icon svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.login-connectivity-notice {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(101, 119, 111, 0.28);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--color-text-main);
  background: rgba(236, 242, 239, 0.9);
  font-size: 13px;
  line-height: 1.35;
}

.login-connectivity-notice.hidden {
  display: none;
}

.login-connectivity-notice.is-offline,
.login-connectivity-notice.is-error {
  border-color: rgba(145, 53, 53, 0.28);
  background: rgba(252, 239, 239, 0.95);
}

.login-connectivity-notice.is-limited {
  border-color: rgba(153, 101, 33, 0.3);
  background: rgba(252, 246, 234, 0.96);
}

.login-connectivity-retry {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(31, 82, 61, 0.28);
  border-radius: 6px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .auth-network-status.is-checking .network-status-icon::after {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.55);
  }
}

#authBar #networkStatusButton.status-visible .network-status-popover {
  transform: translate(calc(-50% + var(--network-status-popover-offset-x, 0px)), 0) !important;
}

@media (max-width: 480px) {
  #authBar #networkStatusButton .network-status-popover {
    position: fixed !important;
    top: calc(var(--auth-bar-height) + env(safe-area-inset-top) + 8px) !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    max-width: 280px !important;
    margin-inline: 0 !important;
    transform: translate(calc(-50% + var(--network-status-popover-offset-x, 0px)), -2px) !important;
  }

  #authBar #networkStatusButton.status-visible .network-status-popover {
    transform: translate(calc(-50% + var(--network-status-popover-offset-x, 0px)), 0) !important;
  }
}

.language-option {
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.2;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  white-space: nowrap;
}

.language-option:focus-visible {
  background: rgba(95, 127, 115, 0.10);
  border-color: rgba(95, 127, 115, 0.16);
  color: var(--color-text-main);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .language-option:hover {
    background: rgba(95, 127, 115, 0.10);
    border-color: rgba(95, 127, 115, 0.16);
    color: var(--color-text-main);
    outline: none;
  }
}

.language-option-check {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.language-option-check i,
.language-option-check svg {
  width: 15px !important;
  height: 15px !important;
  color: var(--color-sage-dark) !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
}

.language-option-label {
  display: inline-block;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.language-option.active {
  background: rgba(95, 127, 115, 0.13);
  border-color: rgba(95, 127, 115, 0.22);
  color: var(--color-sage-dark);
}

.language-option.active .language-option-check {
  opacity: 1;
}

.language-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 52, 45, 0.28);
  backdrop-filter: blur(3px);
}

.language-loading-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #2f4d41;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.language-loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(95, 127, 115, 0.25);
  border-top-color: #5f7f73;
  animation: hmLanguageSpin 0.75s linear infinite;
}

@keyframes hmLanguageSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .home-header-insights {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 8px auto 0 auto !important;
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    padding: 10px 12px !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(10px) !important;
  }

  .home-header-insights-top {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .home-header-chip {
    padding: 6px 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    flex: none !important;
    min-width: 0 !important;
    justify-content: center !important;
    min-height: 34px !important;
  }

  .home-header-chip i,
  .home-header-chip svg {
    width: 12px !important;
    height: 12px !important;
  }

  .home-header-insights-actions {
    margin-top: 6px !important;
    gap: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .home-header-insights-actions .home-header-chip {
    width: 100% !important;
    flex: none !important;
    justify-content: center !important;
  }

  .home-header-action-link {
    width: 100% !important;
    justify-content: center !important;
  }

  .language-switcher {
    width: 64px;
    height: 36px;
  }

  .language-switcher-trigger {
    padding: 0 10px 0 11px;
  }

  .language-switcher-value {
    font-size: 12px;
  }

  .language-switcher-chevron {
    width: 12px;
    height: 12px;
  }

  .language-switcher-menu {
    min-width: 172px;
    width: max-content;
    max-width: calc(100vw - 24px);
    border-radius: 16px;
    padding: 8px;
  }

  .language-option {
    min-height: 40px;
    font-size: 14px;
    border-radius: 10px;
    padding: 8px 10px;
  }
}

@supports (-webkit-touch-callout: none) {
  .form-group input,
  .search-bar input {
    font-size: 16px !important;
  }
}

.auth-bar-controls {
  width: 100% !important;
  justify-content: flex-end !important;
}

/* Normale Elementor-Seiten mit der zentralen Datenschutzerklärung müssen
   trotz der global eingebundenen App-CSS vertikal scrollbar bleiben. */
html:has(.hotelmappe-datenschutz),
body:has(.hotelmappe-datenschutz) {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
}

body:has(.hotelmappe-datenschutz) {
  position: static;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* ===== GUEST UI RELAUNCH ===== */
:root {
  --color-bg-warm: #f7f3eb;
  --color-bg-soft: #fbfaf6;
  --color-surface: rgba(255,255,255,0.92);
  --color-surface-strong: #ffffff;
  --color-sage: #6f887c;
  --color-sage-dark: #263d34;
  --color-sage-soft: #e9f0eb;
  --color-text-main: #1f2f27;
  --color-text-muted: #60756d;
  --color-border-soft: rgba(95,127,115,0.18);
  --shadow-soft: 0 10px 28px rgba(31,49,43,0.08);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.7), 0 12px 32px rgba(31,49,43,0.08);
  --radius-card: 18px;
  --radius-control: 12px;
  --space-page-x: clamp(14px, 4vw, 28px);
  --guest-header-compact-height: calc(58px + env(safe-area-inset-top));
  --guest-bottom-nav-height: var(--guest-floating-nav-reserved-space);
  --tabbar-current-height: var(--guest-bottom-nav-height);
  --guest-global-header-bottom: calc(var(--auth-bar-height) + env(safe-area-inset-top));
}

html, body,
.screen {
  background: var(--color-bg-warm);
  color: var(--color-text-main);
}

body::after {
  display: none;
}

.auth-bar,
.header {
  background: linear-gradient(150deg, #5f7f73 0%, #7c9487 100%);
}

.auth-bar {
  box-shadow: 0 1px 0 rgba(255,255,255,0.14), 0 8px 24px rgba(31,49,43,0.11);
}

#home > .header {
  min-height: 150px;
  padding: calc(6px + var(--auth-bar-height) + env(safe-area-inset-top)) var(--space-page-x) 22px;
  border-radius: 0 0 26px 26px;
}

#home > .header .logo {
  width: clamp(220px, 46vw, 430px);
  margin-top: 0;
}

.header.small {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--guest-header-compact-height);
  padding: calc(8px + env(safe-area-inset-top)) var(--space-page-x) 10px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 24px rgba(31,49,43,0.12);
}

.logo.small {
  width: 58px;
  max-height: 38px;
  object-fit: contain;
}

.screen > .button[data-i18n-key="guest.nav.back"] {
  position: sticky;
  top: calc(var(--guest-header-compact-height) + 8px);
  z-index: 35;
  width: auto;
  min-height: 44px;
  margin: 10px var(--space-page-x) 4px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--color-sage-dark);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.section,
h3,
p {
  padding-left: var(--space-page-x);
  padding-right: var(--space-page-x);
}

.section h3 {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 36px);
  color: var(--color-text-main);
  letter-spacing: 0;
}

.search-bar,
.quick-access,
.home-section,
.home-context-panel,
.relaunch-overview-section {
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.search-bar {
  margin-top: 14px;
  padding: 0 var(--space-page-x);
}

.search-wrapper {
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  background: var(--color-surface-strong);
}

.home-context-panel {
  padding: 0 var(--space-page-x);
  margin-top: 14px;
}

.relaunch-context-card,
.account-stay-hero,
.relaunch-tile,
.account-room-card,
.info-box,
.card-group,
.list,
.app-settings-card,
.message-card,
.guest-case-card,
.guest-case-wizard-card {
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-card);
}

.relaunch-context-card {
  display: grid;
  grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-surface-strong);
}

.relaunch-context-media {
  min-height: 180px;
  background: linear-gradient(145deg, #e7eee9, #f7f3eb);
  background-size: cover;
  background-position: center;
  position: relative;
}

.relaunch-context-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,61,52,0.02), rgba(38,61,52,0.24));
}

.relaunch-context-logo {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.relaunch-context-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.relaunch-context-copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.relaunch-eyebrow,
.account-stay-hero-content > span {
  color: var(--color-sage);
  font: 800 11px/1.2 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.relaunch-context-copy h2 {
  margin: 0;
  color: var(--color-text-main);
  font: 700 clamp(25px, 5vw, 36px)/1 var(--font-display);
  letter-spacing: 0;
}

.relaunch-context-copy p,
.relaunch-section-lead,
.relaunch-tile span,
.account-stay-hero-content p {
  color: var(--color-text-muted);
  font: 600 14px/1.45 var(--font-body);
  margin: 0;
}

.relaunch-stay-dates {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-sage-dark);
  font-weight: 800;
  font-size: 13px;
}

.relaunch-stay-dates svg {
  width: 16px;
  height: 16px;
}

.relaunch-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.relaunch-action {
  min-height: 44px;
  border: 1px solid var(--color-border-soft);
  border-radius: 999px;
  background: var(--color-sage-soft);
  color: var(--color-sage-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  font: 800 13px/1.15 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.relaunch-action.primary {
  background: var(--color-sage-dark);
  color: #fff;
  border-color: var(--color-sage-dark);
}

.relaunch-action svg {
  width: 16px;
  height: 16px;
}

.card-group,
.list,
.info-box,
.account-room-card,
.app-settings-card {
  border-radius: var(--radius-card);
  background: var(--color-surface-strong);
}

.app-settings-card .app-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(95,127,115,0.12);
  font: 750 13.5px/1.35 var(--font-body);
}

.app-settings-card h4 + .app-settings-row {
  border-top: 0;
}

.app-settings-card .app-settings-row span {
  min-width: 0;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.app-settings-card .app-settings-row strong {
  justify-self: end;
  min-width: 0;
  color: var(--color-text-main);
  text-align: right;
  overflow-wrap: anywhere;
}

.app-settings-versions-card {
  padding: 18px 18px 20px;
  border-color: rgba(95,127,115,0.14);
  background: #ffffff;
}

.app-settings-versions-card h4 {
  margin: 0 0 16px;
  padding: 0;
  color: var(--color-text-main);
  font: 850 17px/1.25 var(--font-body);
  letter-spacing: 0;
}

.app-settings-versions-card .app-settings-row {
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 18px;
  min-height: 48px;
  padding: 12px 0;
  border-top-color: rgba(95,127,115,0.10);
}

.app-settings-versions-card .app-settings-row strong {
  min-width: 118px;
  padding: 7px 10px;
  border: 1px solid rgba(95,127,115,0.12);
  border-radius: 12px;
  background: rgba(95,127,115,0.075);
  color: var(--color-sage-dark);
  user-select: text;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.app-settings-version-status {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px 15px;
  font: 750 13px/1.5 var(--font-body);
}

.app-settings-version-status.match {
  background: rgba(95,127,115,0.12);
  color: var(--color-sage-dark);
  border: 1px solid rgba(95,127,115,0.18);
}

.app-settings-version-status.neutral {
  background: rgba(95,127,115,0.10);
  color: var(--color-text);
  border: 1px solid rgba(95,127,115,0.16);
}

.app-settings-version-status.mismatch {
  background: rgba(181,71,71,0.10);
  color: #8f3838;
  border: 1px solid rgba(181,71,71,0.20);
}

.app-settings-technical-versions {
  margin-top: 14px;
  border-top: 1px solid rgba(95,127,115,0.12);
  padding-top: 12px;
}

.app-settings-technical-versions summary {
  cursor: pointer;
  color: var(--color-text-muted);
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 8px 4px;
  font: 800 13px/1.35 var(--font-body);
}

.app-settings-technical-version-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.app-settings-technical-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font: 700 12px/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.app-settings-technical-version-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-settings-technical-version-row .version-status-ok {
  color: var(--color-sage-dark);
}

.app-settings-technical-version-row .version-status-missing,
.app-settings-technical-version-row .version-status-deviating {
  color: #8f3838;
}

@media (max-width: 420px) {
  .app-settings-card .app-settings-row,
  .app-settings-versions-card .app-settings-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .app-settings-card .app-settings-row strong,
  .app-settings-versions-card .app-settings-row strong {
    justify-self: start;
    text-align: left;
  }

  .app-settings-versions-card .app-settings-row strong {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .app-settings-versions-card {
    padding: 18px 16px 22px;
  }

  .app-settings-versions-card h4 {
    margin-bottom: 14px;
  }

  .app-settings-versions-card .app-settings-row {
    min-height: 0;
    padding: 13px 0;
  }

  .app-settings-versions-card .app-settings-row span {
    font-size: 13px;
  }

  .app-settings-versions-card .app-settings-row strong {
    justify-self: stretch;
    padding: 9px 11px;
    text-align: left;
  }

  .app-settings-version-status {
    margin-top: 18px;
    padding: 14px 13px;
  }

  .app-settings-technical-versions {
    margin-top: 16px;
    padding-top: 12px;
  }

  .app-settings-technical-versions summary {
    padding-left: 2px;
    padding-right: 2px;
  }
}

.item {
  min-height: 58px;
  background: var(--color-surface-strong);
  border-bottom-color: rgba(95,127,115,0.13);
}

.item-icon,
.info-icon,
.header-icon {
  background: var(--color-sage-soft);
  color: var(--color-sage-dark);
  box-shadow: none;
}

.button {
  min-height: 46px;
  border-radius: var(--radius-control);
  background: var(--color-sage-dark);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(31,49,43,0.16);
}

.button.secondary,
button.secondary {
  background: var(--color-sage-soft) !important;
  color: var(--color-sage-dark) !important;
  border: 1px solid var(--color-border-soft);
  box-shadow: none;
}

.quick-access,
.home-section {
  padding: 0 var(--space-page-x);
  margin-top: 18px;
}

.quick-grid,
.card-group {
  border-radius: var(--radius-card);
}

.section-title {
  color: var(--color-sage);
  letter-spacing: .08em;
}

.tabbar {
  height: var(--guest-floating-nav-outer-height);
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  pointer-events: none;
}

.tabbar-inner {
  width: min(calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)), 460px);
  min-height: var(--guest-floating-nav-pill-height);
  height: var(--guest-floating-nav-pill-height);
  margin: 0 auto var(--guest-floating-nav-bottom-gap);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: #244c3a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px rgba(20,38,30,0.24);
  pointer-events: auto;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .tabbar-inner {
    background: rgba(36,76,58,0.94);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
  }
}

.tab {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 4px 2px;
  box-sizing: border-box;
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  background: transparent;
  opacity: 0.88;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  gap: 3px;
  transform: none;
}

.tab span {
  width: 100%;
  max-width: 100%;
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: normal;
}

.tab svg {
  width: 21px;
  height: 21px;
}

.tab.active {
  transform: none;
  color: #244c3a;
  background: #faf7f0;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(16,38,28,0.18), inset 0 0 0 1px rgba(111,139,107,0.20);
}

.tab:focus-visible {
  outline: 2px solid #faf7f0;
  outline-offset: 2px;
}

.tab.active i,
.tab.active svg,
.tab i,
.tab svg {
  transform: none;
}

@media (max-width: 360px) {
  .tabbar-inner {
    width: min(calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)), 460px);
    padding-left: 4px;
    padding-right: 4px;
    gap: 1px;
  }

  .tab,
  .tab span {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab {
    transition: none;
  }
}

.tab-indicator {
  display: none;
}

.relaunch-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--space-page-x) 20px;
}

.relaunch-tile {
  min-height: 142px;
  border-radius: 18px;
  background: var(--color-surface-strong);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--color-text-main);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.relaunch-tile:active {
  background: var(--color-surface-strong);
}

.relaunch-tile:focus:not(:focus-visible) {
  outline: 0;
}

.relaunch-tile svg {
  width: 24px;
  height: 24px;
  color: var(--color-sage);
}

.relaunch-tile strong {
  font: 800 15px/1.22 var(--font-body);
}

.relaunch-more-list .item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(95,127,115,0.13);
  text-align: left;
  cursor: pointer;
}

/* Explicit tap/scroll contract for audited internal navigation controls. */
#appWrapper .relaunch-more-list [data-guest-interaction="navigation"],
#appWrapper .relaunch-tile-grid [data-guest-interaction="navigation"] {
  touch-action: pan-y;
}

#appWrapper [data-guest-interaction="navigation"].is-guest-gesture-pressed {
  transform: scale(0.985);
  opacity: 0.92;
}

#appWrapper .relaunch-more-list [data-guest-interaction="navigation"].is-guest-gesture-pressed {
  background: rgba(95,127,115,0.12);
}

@media (prefers-reduced-motion: reduce) {
  #appWrapper [data-guest-interaction="navigation"].is-guest-gesture-pressed {
    transition: none;
  }
}

.account-logged-out-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(95,127,115,0.16);
  display: grid;
  gap: 8px;
}

.account-logged-out-links strong {
  color: var(--color-sage-dark);
  font-size: 13px;
}

.account-logged-out-links a,
.text-link-button {
  min-height: 40px;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-sage-soft);
  color: var(--color-sage-dark);
  display: flex;
  align-items: center;
  padding: 9px 11px;
  text-decoration: none;
  font: 800 13px/1.2 var(--font-body);
  cursor: pointer;
}

.text-link-button {
  width: 100%;
  text-align: left;
}

.account-stay-hero {
  min-height: 190px;
  border-radius: 22px;
  margin: 4px 0 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #dde8e1, #fbfaf6);
  background-size: cover;
  background-position: center;
  position: relative;
}

.account-stay-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,47,39,0.06), rgba(31,47,39,0.62));
}

.account-stay-hero-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
}

.account-stay-hero-content > span,
.account-stay-hero-content p {
  color: rgba(255,255,255,0.88);
}

.account-stay-hero-content h4 {
  margin: 4px 0 6px;
  font: 700 clamp(26px, 6vw, 38px)/1 var(--font-display);
  letter-spacing: 0;
}

.message-tabs {
  border-radius: 999px;
  padding: 5px;
  background: var(--color-sage-soft);
}

.message-tab {
  border-radius: 999px;
  min-height: 44px;
}

.message-tab.active,
.message-tab.active:active,
.message-tab.active:focus-visible {
  background: var(--color-sage-dark) !important;
}

@media (hover: hover) and (pointer: fine) {
  .message-tab.active:hover {
    background: var(--color-sage-dark) !important;
  }
}

.guest-case-card-button,
.message-card-button {
  border-radius: var(--radius-card);
}

@media (max-width: 680px) {
  .relaunch-context-card {
    grid-template-columns: 1fr;
  }

  .relaunch-context-media {
    min-height: 116px;
  }

  .relaunch-context-logo {
    width: 50px;
    height: 50px;
  }

  .relaunch-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .relaunch-action {
    width: 100%;
    padding: 10px 9px;
  }

  .relaunch-tile-grid {
    grid-template-columns: 1fr;
  }

  .tab svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 380px) {
  .relaunch-action-row {
    grid-template-columns: 1fr;
  }

  .auth-label {
    max-width: 96px;
  }
}

/* ===== GUEST RELAUNCH ASSET ACTIVATION ===== */
#appSplash {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
}

#appSplash img,
.hotelmappe-app-loading-logo,
.logo {
  border-radius: 18px;
  object-fit: contain;
}

#appSplash img {
  width: clamp(86px, 23vw, 126px);
  height: clamp(86px, 23vw, 126px);
}

.hotelmappe-app-loading-logo {
  width: 74px;
  height: 74px;
  border-radius: 17px;
  margin-bottom: 8px;
}

.header .logo {
  width: clamp(76px, 18vw, 112px);
  height: clamp(76px, 18vw, 112px);
  margin: 0 auto 6px;
  box-shadow: 0 12px 26px rgba(31,49,43,0.18);
}

.logo.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto;
}

#home > .header .logo {
  width: clamp(78px, 18vw, 118px);
  height: clamp(78px, 18vw, 118px);
}

.home-header-brand-label {
  position: relative;
  display: grid;
  gap: 1px;
  inset: auto;
  margin-top: 2px;
  color: rgba(255,255,255,0.94);
  background: none;
  font: 800 13px/1.28 var(--font-body);
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-header-brand-label strong,
.home-header-brand-label span {
  font: inherit;
  letter-spacing: 0;
}

.app-brand-wordmark {
  color: #263d34;
  font: 900 17px/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.app-brand-subline {
  color: #60756d;
  font: 800 12px/1.2 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-brand-wordmark.loading {
  display: block;
  margin-top: 2px;
  color: #20352c;
  font-size: 15px;
}

.app-brand-subline.loading {
  display: block;
  margin: 3px 0 10px;
  font-size: 11px;
}

.relaunch-context-logo img {
  border-radius: 12px;
}


/* ===== GUEST RELAUNCH MOBILE LIVE FIXES ===== */
:root {
  --guest-header-compact-height: 58px;
  --guest-communication-header-height: calc(var(--guest-header-compact-height) + 34px);
  --guest-communication-segment-height: 52px;
  --guest-communication-content-gap: 24px;
  --guest-communication-sticky-top: calc(
    var(--guest-global-header-bottom)
    + var(--guest-communication-header-height)
    - var(--guest-communication-header-overlap)
  );
  --guest-communication-scroll-padding-top: calc(
    var(--guest-communication-sticky-top)
    + var(--guest-communication-segment-height)
    + var(--guest-communication-content-gap)
  );
  --guest-z-communication-content: 1;
  --guest-z-communication-header: 48;
  --guest-z-communication-segment: 49;
}

#home > .header {
  min-height: 132px;
  padding: calc(var(--guest-global-header-bottom) + 4px) var(--space-page-x) 16px;
}

.header.small {
  top: var(--guest-global-header-bottom);
  min-height: var(--guest-header-compact-height);
  padding: 8px var(--space-page-x) 10px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.screen > .button[data-i18n-key="guest.nav.back"] {
  top: calc(var(--guest-global-header-bottom) + var(--guest-header-compact-height) + 8px);
}

.compact-header-back {
  position: absolute;
  left: var(--space-page-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  width: auto;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font: 800 13px/1 var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.compact-header-back:focus-visible {
  background: rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
}

@media (hover: hover) and (pointer: fine) {
  .compact-header-back:hover {
    background: rgba(255,255,255,0.22) !important;
    color: #ffffff !important;
  }
}

.compact-header-back:active {
  background: rgba(255,255,255,0.28) !important;
}

.compact-header-back + .logo.small {
  pointer-events: auto;
}

.search-bar {
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 0 var(--space-page-x);
  z-index: 4;
}

.search-bar::before {
  content: none;
}

.search-wrapper {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(95,127,115,0.14);
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 28px rgba(31,49,43,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.search-wrapper::before {
  content: "search";
  font-family: "Material Icons";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-sage);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.search-wrapper:focus-within {
  border-color: rgba(95,127,115,0.34);
  box-shadow: 0 14px 32px rgba(31,49,43,0.12);
}

.search-bar input,
#searchInput {
  height: 50px;
  padding: 0 50px 0 48px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
  color: var(--color-text-main);
}

.search-bar input:focus {
  box-shadow: none;
}

#searchInput::placeholder {
  color: rgba(38,61,52,0.62);
  opacity: 1;
}

#clearSearch {
  right: 9px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(95,127,115,0.10);
  color: var(--color-sage-dark);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

#clearSearch.visible {
  opacity: 0.82;
}

@media (hover: hover) and (pointer: fine) {
  #clearSearch:hover {
    opacity: 1;
    background: rgba(95,127,115,0.16);
  }
}

#appSplash img,
.hotelmappe-app-loading-logo,
.header .logo,
.logo.small,
.relaunch-context-logo img {
  background: linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10));
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 12px 28px rgba(31,49,43,0.18);
}

#home > .header .logo {
  width: clamp(66px, 16vw, 96px);
  height: clamp(66px, 16vw, 96px);
  margin-bottom: 4px;
}

#home > .header::after {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.22;
  letter-spacing: .14em;
}

.logo.small {
  width: 38px;
  height: 38px;
}

.header .logo:not(.small) {
  width: clamp(66px, 16vw, 96px);
  height: clamp(66px, 16vw, 96px);
}


/* ===== GUEST RELAUNCH BRANDING / PWA / MODAL FIXES ===== */
#appSplash img,
.hotelmappe-app-loading-logo,
.header .logo,
.logo.small,
.relaunch-context-logo img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#appSplash img {
  width: min(270px, 72vw) !important;
  height: auto !important;
  border-radius: 0 !important;
}

#appSplash .hotelmappe-splash-brand {
  display: grid;
  place-items: center;
}

#appSplash .hotelmappe-splash-brand img {
  display: block;
  animation: hotelmappeSplashLogoPulse 1.8s ease-in-out 0.28s infinite;
}

#appSplash .hotelmappe-splash-loader {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  margin-top: 10px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  animation: hotelmappeSplashLoaderSpin 1.15s linear infinite;
}

#appSplash.hide .hotelmappe-splash-brand,
#appSplash.hide .hotelmappe-splash-brand img,
#appSplash.hide .hotelmappe-splash-loader {
  animation-play-state: paused;
}

@keyframes hotelmappeSplashLogoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

@keyframes hotelmappeSplashLoaderSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #appSplash .hotelmappe-splash-brand,
  #appSplash .hotelmappe-splash-brand img,
  #appSplash .hotelmappe-splash-loader {
    animation: none !important;
  }

  #appSplash .hotelmappe-splash-loader {
    border-color: rgba(255, 255, 255, 0.48);
    border-top-color: rgba(255, 255, 255, 0.92);
  }
}

.hotelmappe-app-loading-logo {
  width: min(170px, 52vw) !important;
  height: auto !important;
  border-radius: 0 !important;
  margin-bottom: 14px !important;
}

.header .logo,
.header .logo:not(.small) {
  width: clamp(142px, 38vw, 230px) !important;
  height: auto !important;
  max-height: 68px;
  border-radius: 0 !important;
  margin: 0 auto 6px !important;
  object-fit: contain;
}

.logo.small {
  width: clamp(92px, 28vw, 138px) !important;
  height: auto !important;
  max-height: 34px;
  border-radius: 0 !important;
  margin: 0 auto !important;
}

#home > .header .logo {
  width: clamp(150px, 42vw, 240px) !important;
  height: auto !important;
  max-height: 72px;
  margin-bottom: 4px !important;
}

#home > .header::after {
  content: none !important;
}

.relaunch-context-logo {
  width: 96px;
  height: 36px;
  border-radius: 999px;
  background: rgba(31,49,43,0.42);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 24px rgba(31,49,43,0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.relaunch-context-logo img {
  width: 78px;
  height: auto;
  max-height: 24px;
  object-fit: contain;
}

.screen > .button[data-i18n-key="guest.nav.back"] {
  position: relative !important;
  top: auto !important;
  z-index: 5;
  margin: 10px var(--space-page-x) 8px;
}

.home-phase-priority-panel {
  width: min(980px, 100%);
  margin: 12px auto 14px;
  padding: 0 var(--space-page-x);
}

.home-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-phase-card {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-soft);
  color: var(--color-text-main);
  display: grid;
  align-content: start;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}

.home-phase-card strong {
  font: 850 14px/1.2 var(--font-body);
}

.home-phase-card > span:last-child {
  color: var(--color-text-muted);
  font: 650 12px/1.35 var(--font-body);
}

.home-phase-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-sage-dark);
  background: var(--color-sage-soft);
}

.home-phase-icon svg {
  width: 18px;
  height: 18px;
}

.modal-backdrop {
  background: rgba(14, 24, 20, 0.62) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.marketing-push-prompt-sheet {
  z-index: 1;
  background: #f7f5f0;
  box-shadow: 0 -18px 50px rgba(14,24,20,0.24);
}

@media (max-width: 390px) {
  .home-phase-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== GUEST RELAUNCH CORRECTION ROUND 3 ===== */
.header.small {
  margin-top: var(--guest-global-header-bottom);
  top: var(--guest-global-header-bottom);
}

.screen > .button[data-i18n-key="guest.nav.back"] {
  display: inline-flex !important;
  position: relative !important;
  top: auto !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  clear: both;
}

#home > .header {
  min-height: 124px;
  padding-bottom: 14px;
}

#home > .header .logo {
  width: clamp(176px, 50vw, 280px) !important;
  max-height: 82px;
  margin-bottom: 0 !important;
}

.home-header-insights.hidden {
  display: none !important;
}

.home-header-insights {
  margin-top: 8px;
  width: min(320px, 100%);
}

.home-header-insights-top {
  justify-content: center;
}

.home-header-chip {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.modal.active {
  isolation: isolate;
}

.modal.active .modal-backdrop {
  z-index: 0;
  background: rgba(6, 10, 9, 0.92) !important;
  opacity: 1 !important;
  filter: none !important;
  transform: translateZ(0);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal.active .modal-sheet {
  z-index: 2;
}

#marketingPushPromptModal.active .modal-backdrop {
  background: rgba(5, 9, 8, 0.94) !important;
}

.marketing-push-prompt-sheet {
  background: #f8f6f1 !important;
}

.home-phase-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: stretch;
}

.home-phase-card {
  min-height: 0;
  height: 100%;
  padding: 15px;
  align-content: start;
  overflow-wrap: anywhere;
  word-break: normal;
}

.home-phase-card strong,
.home-phase-card span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-phase-card strong {
  line-height: 1.25;
}

.home-phase-card > span:last-child {
  line-height: 1.4;
}

.relaunch-context-card.phase-loggedOut .relaunch-context-media:not(.has-image) {
  min-height: 108px;
  background: linear-gradient(145deg, rgba(95,127,115,0.18), rgba(248,246,241,0.92));
}

.relaunch-context-card.phase-loggedOut .relaunch-context-logo {
  display: none;
}

@media (max-width: 460px) {
  .home-phase-grid {
    grid-template-columns: 1fr;
  }

  .home-phase-card {
    min-height: 0;
  }
}


/* ===== GUEST RELAUNCH NEXT STEP: STREAMLINED HOME + COMMUNICATION UI ===== */
#home > .header {
  min-height: 136px;
  padding-bottom: 16px;
}

#home > .header .logo {
  width: clamp(198px, 56vw, 318px) !important;
  max-height: 92px;
}

#home .search-bar {
  margin-top: 14px;
}

#home .home-context-panel {
  margin-top: 12px;
}

.relaunch-context-card {
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(31,49,43,0.10);
}

.relaunch-context-copy {
  gap: 11px;
  padding: 18px 18px 19px;
}

.relaunch-context-copy h2 {
  font-size: 30px;
}

@media (min-width: 700px) {
  .relaunch-context-copy h2 {
    font-size: 34px;
  }
}

.relaunch-action-row {
  gap: 9px;
}

.relaunch-action {
  min-height: 42px;
  padding: 10px 14px;
}

.relaunch-context-logo {
  left: 16px;
  bottom: 14px;
  width: 112px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.54);
  box-shadow: 0 16px 34px rgba(31,49,43,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.relaunch-context-logo img {
  width: 92px;
  max-height: 34px;
}

.relaunch-context-media:not(.has-image) .relaunch-context-logo {
  display: none;
}

.home-phase-priority-panel {
  margin-top: 14px;
  margin-bottom: 22px;
}

.relaunch-dynamic-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.home-phase-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 11px;
}

.home-phase-card {
  min-height: 104px;
  border-radius: 20px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 12px 30px rgba(31,49,43,0.08);
}

.home-phase-card strong {
  font-size: 15px;
}

.home-phase-card > span:last-child {
  font-size: 12.5px;
}

#homeQuickAccess.hidden,
#homeArrivalSection.hidden,
#homeStaySection.hidden,
#homeBookingSection.hidden,
#homeHelpSection.hidden {
  display: none !important;
}

.home-location-overview {
  margin-top: 10px;
}

#homeQuickAccess .home-location-toggle {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(95,127,115,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 24px rgba(31,49,43,0.06);
  color: var(--color-text-main);
  padding: 12px 14px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#homeQuickAccess .home-location-toggle:focus-visible {
  background: rgba(255,255,255,0.98);
}

@media (hover: hover) and (pointer: fine) {
  #homeQuickAccess .home-location-toggle:hover {
    background: rgba(255,255,255,0.98);
  }
}

#homeQuickAccess .home-location-toggle:active {
  background: var(--color-sage-soft);
  transform: translateY(1px);
}

.home-location-toggle-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
}

.home-location-toggle-icon,
.home-location-card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--color-sage-soft);
  color: var(--color-sage-dark);
}

.home-location-toggle-icon {
  width: 40px;
  height: 40px;
}

.home-location-toggle-copy strong,
.home-location-toggle-copy small {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-location-toggle-copy strong {
  font: 800 16px/1.2 var(--font-body);
  color: var(--color-text-main);
}

.home-location-toggle-copy small {
  margin-top: 2px;
  font: 650 12.5px/1.25 var(--font-body);
  color: var(--color-text-muted);
}

#homeQuickAccess .home-location-toggle .chevron {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--color-sage-dark);
  background: rgba(95,127,115,0.10);
  font-size: 18px;
  line-height: 1;
}

#homeQuickAccess .home-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

#homeQuickAccess .home-location-grid.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

#homeQuickAccess .home-location-grid.open {
  max-height: 980px;
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 0;
}

.home-location-card {
  min-width: 0;
  width: 100%;
  min-height: 124px;
  border: 1px solid rgba(95,127,115,0.13);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(31,49,43,0.05);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.home-location-card.is-primary {
  border-color: rgba(95,127,115,0.28);
  background: linear-gradient(180deg, rgba(240,247,242,0.96), rgba(255,255,255,0.90));
}

.home-location-card-icon {
  width: 38px;
  height: 38px;
}

.home-location-card-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-location-card-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-location-card-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.home-location-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--color-text-main);
  font: 800 15px/1.22 var(--font-body);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  white-space: normal;
}

.home-location-card p {
  margin: 0;
  color: var(--color-text-muted);
  font: 650 12.5px/1.35 var(--font-body);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  white-space: normal;
}

.home-location-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(95,127,115,0.12);
  color: var(--color-sage-dark);
  font: 800 10.5px/1 var(--font-body);
}

.home-location-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.home-location-action {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(95,127,115,0.18);
  border-radius: 999px;
  background: rgba(246,248,244,0.96);
  color: var(--color-sage-dark);
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font: 800 12.5px/1.1 var(--font-body);
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-location-action.primary {
  background: var(--color-sage-dark);
  color: #fff;
  border-color: var(--color-sage-dark);
}

.home-location-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  #homeQuickAccess .home-location-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-location-card {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .home-location-actions {
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  #homeQuickAccess .home-location-action {
    flex: 0 0 calc((100% - 7px) / 2);
    width: calc((100% - 7px) / 2);
    max-width: calc((100% - 7px) / 2);
    min-width: 0;
    text-align: center;
  }

  #homeQuickAccess .home-location-action span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    white-space: normal;
  }

  .home-location-card.has-guide .home-location-action {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 340px) {
  .home-location-actions {
    flex-wrap: wrap;
  }

  #homeQuickAccess .home-location-card.has-guide .home-location-action {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

.relaunch-help-section {
  padding: 0 var(--space-page-x) 22px;
}

.home-booking-prompt-section {
  padding: 0 var(--space-page-x) 14px;
}

.home-booking-prompt-card {
  border: 1px solid rgba(95,127,115,0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(249,250,247,0.9));
  box-shadow: 0 14px 34px rgba(31,49,43,0.08);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.home-booking-prompt-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-booking-prompt-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--color-sage-dark);
  background: rgba(95,127,115,0.12);
}

.home-booking-prompt-icon svg {
  width: 20px;
  height: 20px;
}

.home-booking-prompt-copy h3 {
  margin: 0;
  color: var(--color-text-main);
  font: 850 16px/1.2 var(--font-body);
}

.home-booking-prompt-copy p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font: 650 13px/1.4 var(--font-body);
}

.home-booking-prompt-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-booking-prompt-action {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(95,127,115,0.16);
  border-radius: 16px;
  background: rgba(95,127,115,0.09);
  color: var(--color-sage-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font: 850 13px/1.22 var(--font-body);
  text-align: center;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.home-help-card {
  border: 1px solid rgba(95,127,115,0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(31,49,43,0.08);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.home-help-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.home-help-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--color-sage-dark);
  background: rgba(95,127,115,0.12);
}

.home-help-icon svg {
  width: 20px;
  height: 20px;
}

.home-help-copy h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  color: var(--color-text-main);
}

.home-help-copy p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.home-help-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-help-action {
  min-height: 46px;
  border: 1px solid rgba(95,127,115,0.13);
  border-radius: 16px;
  background: rgba(95,127,115,0.09);
  color: var(--color-sage-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.home-help-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* Communication screens */
#mitteilungen > .section,
#hilfe > .section {
  padding-top: 12px;
}

#messageTabs.message-tabs {
  gap: 6px;
  margin-block: 12px 16px;
  padding: 6px;
  border: 1px solid rgba(95,127,115,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(31,49,43,0.07);
}

#communicationMessagesPanel #messageTabs .message-tab {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--color-sage-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}

#communicationMessagesPanel #messageTabs .message-tab.active,
#communicationMessagesPanel #messageTabs .message-tab.active:active,
#communicationMessagesPanel #messageTabs .message-tab.active:focus-visible {
  border-color: rgba(73,105,92,0.92);
  background: linear-gradient(135deg, var(--color-sage-dark), #49695c) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31,49,43,0.16);
}

#communicationMessagesPanel #messageTabs .message-tab:not(.active):focus-visible {
  border-color: rgba(95,127,115,0.18);
  background: rgba(95,127,115,0.10);
  color: var(--color-sage-dark);
}

@media (hover: hover) and (pointer: fine) {
  #communicationMessagesPanel #messageTabs .message-tab.active:hover {
    border-color: rgba(73,105,92,0.92);
    background: linear-gradient(135deg, var(--color-sage-dark), #49695c) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(31,49,43,0.16);
  }

  #communicationMessagesPanel #messageTabs .message-tab:not(.active):hover {
    border-color: rgba(95,127,115,0.18);
    background: rgba(95,127,115,0.10);
    color: var(--color-sage-dark);
  }
}

#communicationMessagesPanel #messageTabs .message-tab:focus-visible {
  outline: 2px solid rgba(95,127,115,0.45);
  outline-offset: 2px;
}

.message-list {
  gap: 12px;
  margin: 0 var(--space-page-x) 120px;
}

.message-card {
  border-radius: 22px;
  border-color: rgba(95,127,115,0.11);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(31,49,43,0.08);
}

.message-card.unread {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(95,127,115,0.12), transparent 58%),
    rgba(255,255,255,0.96);
  border-color: rgba(95,127,115,0.24);
}

.message-card-button {
  padding: 16px;
  min-height: 118px;
  display: grid;
  gap: 7px;
}

.message-headline {
  align-items: flex-start;
}

.message-headline h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
  color: var(--color-text-main);
}

.message-pill {
  background: var(--color-sage-dark);
  padding: 5px 8px;
  font-size: 10px;
  flex: 0 0 auto;
}

.message-time {
  margin-top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.message-body {
  margin-top: 0;
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.marketing-messages-panel {
  margin: 18px var(--space-page-x) 24px;
  padding: 16px;
  border: 1px solid rgba(95,127,115,0.11);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 12px 30px rgba(31,49,43,0.06);
}

.message-detail-sheet {
  border-radius: 24px 24px 18px 18px;
  background: #fbfaf6;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}

.message-detail-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.message-detail-body {
  color: var(--color-text-main);
}

/* Guest cases */
.guest-case-toolbar,
.guest-case-list,
.guest-case-empty,
.guest-case-detail-card,
.guest-case-thread,
.guest-case-reply,
.guest-case-wizard-card {
  margin-left: var(--space-page-x);
  margin-right: var(--space-page-x);
}

.guest-case-toolbar {
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(95,127,115,0.12);
  box-shadow: 0 14px 34px rgba(31,49,43,0.08);
}

.guest-case-toolbar-copy strong {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 850;
}

.guest-case-new-button,
.guest-case-empty-button {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(31,49,43,0.12);
}

.guest-case-list {
  gap: 12px;
}

.guest-case-card {
  border-radius: 22px;
  border-color: rgba(95,127,115,0.11);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(31,49,43,0.08);
  overflow: hidden;
}

.guest-case-card.unread {
  border-color: rgba(95,127,115,0.26);
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(95,127,115,0.12), transparent 62%),
    rgba(255,255,255,0.96);
}

.guest-case-card-button {
  padding: 16px;
  min-height: 116px;
}

.guest-case-card h4,
.guest-case-detail-card h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.guest-case-status-badge,
.guest-case-urgency-badge,
.guest-case-new-pill {
  border-radius: 999px;
  font-weight: 850;
}

.guest-case-preview {
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.guest-case-detail-card,
.guest-case-wizard-card,
.guest-case-reply {
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(95,127,115,0.12);
  box-shadow: 0 14px 34px rgba(31,49,43,0.08);
}

.guest-case-thread {
  background: rgba(255,255,255,0.48);
  border-radius: 24px;
  padding: 14px;
}

.guest-case-message {
  border-radius: 0;
  padding: 0;
}

.guest-case-message.guest .guest-case-message-bubble {
  background: var(--color-sage-dark);
}

.guest-case-detail-fixed-composer .guest-case-reply {
  box-shadow: 0 -8px 28px rgba(31,49,43,0.10);
}

.guest-case-wizard-progress span {
  min-height: 36px;
  display: grid;
  place-items: center;
}

.guest-case-topic-option,
.guest-case-check-option,
.guest-case-urgency-option {
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 20px rgba(31,49,43,0.05);
}

.relaunch-overview-section .relaunch-tile {
  min-height: 120px;
}

@media (max-width: 520px) {
  .relaunch-context-copy {
    padding: 16px;
  }

  .home-phase-grid,
  .guest-case-topic-grid,
  .relaunch-tile-grid {
    grid-template-columns: 1fr;
  }

  .message-card-button,
  .guest-case-card-button {
    min-height: 0;
  }
}


/* ===== GUEST RELAUNCH HOME CONTEXT DENSITY ROUND ===== */
#home > .header {
  min-height: 168px;
  padding-top: 30px;
  padding-bottom: 20px;
}

#home > .header .logo {
  width: min(76vw, 390px) !important;
  max-width: calc(100% - 34px);
  max-height: 114px;
  height: auto;
  object-fit: contain;
}

#home .home-context-panel {
  margin-top: 14px;
}

.home-phase-priority-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.home-phase-priority-panel.hidden {
  display: none !important;
}

.home-context-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-context-info-card {
  min-width: 0;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid rgba(95,127,115,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 10px 24px rgba(31,49,43,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--color-text-main);
}

.home-context-info-icon,
.home-important-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--color-sage-dark);
  background: rgba(95,127,115,0.12);
}

.home-context-info-icon svg,
.home-important-icon svg {
  width: 18px;
  height: 18px;
}

.home-context-info-copy,
.home-important-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-context-info-copy strong,
.home-important-copy strong,
.home-important-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  color: var(--color-text-main);
}

.home-context-info-copy span,
.home-important-copy span,
.home-safe-meta {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.home-important-grid {
  display: grid;
  gap: 10px;
}

.home-important-card {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(95,127,115,0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 30px rgba(31,49,43,0.07);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--color-text-main);
}

.home-important-card > svg,
.home-important-link svg {
  width: 17px;
  height: 17px;
  color: var(--color-text-muted);
}

.home-safe-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}

.home-important-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.home-safe-list {
  display: grid;
  gap: 8px;
}

.home-safe-row {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(247,244,238,0.86);
  display: grid;
  gap: 3px;
}

.home-safe-row strong {
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-sage-dark);
  overflow-wrap: anywhere;
}

.home-important-link {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(95,127,115,0.14);
  border-radius: 15px;
  background: rgba(95,127,115,0.10);
  color: var(--color-sage-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.home-important-link.secondary {
  background: rgba(255,255,255,0.72);
  color: var(--color-text-muted);
}

@media (max-width: 520px) {
  #home > .header {
    min-height: 156px;
    padding-top: 26px;
  }

  #home > .header .logo {
    width: min(82vw, 330px) !important;
    max-height: 104px;
  }

  .home-context-info-row {
    grid-template-columns: 1fr;
  }

  .home-important-card {
    border-radius: 18px;
    padding: 13px;
  }

  .home-safe-row strong {
    font-size: 22px;
  }
}


/* ===== GUEST RELAUNCH DATE/HEADER CORRECTION ROUND ===== */
#home > .header {
  min-height: calc(var(--guest-global-header-bottom) + 154px);
  padding-top: calc(var(--guest-global-header-bottom) + 18px);
  padding-bottom: 22px;
}

#home > .header .logo {
  width: min(76vw, 390px) !important;
  max-width: calc(100% - 34px);
  max-height: 114px;
}

@media (max-width: 520px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 142px);
    padding-top: calc(var(--guest-global-header-bottom) + 16px);
    padding-bottom: 18px;
  }

  #home > .header .logo {
    width: min(82vw, 330px) !important;
    max-height: 104px;
  }
}


/* ===== GUEST RELAUNCH WEATHER + MORE CONTRAST ROUND ===== */
.relaunch-more-list .item,
.relaunch-more-list .item .item-left,
.relaunch-more-list .item .item-left span,
.relaunch-more-list .item .item-arrow {
  color: var(--color-text-main);
}

.relaunch-more-list .item:active,
.relaunch-more-list .item:focus-visible,
.relaunch-more-list .item[aria-current="page"],
.relaunch-more-list .item.active,
.relaunch-more-list .item.selected {
  color: var(--color-text-main) !important;
  background: rgba(95,127,115,0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(95,127,115,0.20), 0 8px 22px rgba(31,49,43,0.06);
  opacity: 1;
}

.relaunch-more-list .item:active *,
.relaunch-more-list .item:focus-visible *,
.relaunch-more-list .item[aria-current="page"] *,
.relaunch-more-list .item.active *,
.relaunch-more-list .item.selected * {
  color: var(--color-text-main) !important;
}

.relaunch-more-list .item:focus-visible {
  outline: 2px solid rgba(95,127,115,0.52);
  outline-offset: 3px;
}

.relaunch-more-list .item .item-icon,
.relaunch-more-list .item:active .item-icon,
.relaunch-more-list .item:focus-visible .item-icon {
  color: var(--color-sage-dark) !important;
  background: rgba(95,127,115,0.13);
}

@media (hover: hover) and (pointer: fine) {
  .relaunch-more-list .item:hover {
    color: var(--color-text-main) !important;
    background: rgba(95,127,115,0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(95,127,115,0.20), 0 8px 22px rgba(31,49,43,0.06);
    opacity: 1;
  }

  .relaunch-more-list .item:hover * {
    color: var(--color-text-main) !important;
  }

  .relaunch-more-list .item:hover .item-icon {
    color: var(--color-sage-dark) !important;
    background: rgba(95,127,115,0.13);
  }
}

.home-timeline-section {
  display: grid;
  gap: 10px;
}

.home-timeline-section + .home-timeline-section {
  margin-top: 18px;
}

.home-timeline-title {
  margin-top: 0;
  margin-bottom: 0;
}

.home-timeline-grid {
  display: grid;
  gap: 10px;
}

.home-timeline-grid .home-context-info-card {
  min-height: 72px;
  background: rgba(255,255,255,0.82);
}

.weather-detail-sheet {
  max-width: min(92vw, 430px);
  padding-bottom: 20px;
}

.weather-detail-title {
  padding-right: 42px;
}

.weather-detail-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.weather-period-grid {
  display: grid;
  gap: 9px;
}

.weather-period-row,
.weather-tomorrow-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(95,127,115,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 24px rgba(31,49,43,0.06);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: var(--color-text-main);
}

.weather-tomorrow-card {
  background: rgba(95,127,115,0.10);
}

.weather-period-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(95,127,115,0.13);
  color: var(--color-sage-dark);
}

.weather-period-icon svg {
  width: 19px;
  height: 19px;
}

.weather-period-copy,
.weather-period-value {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.weather-period-copy strong,
.weather-period-value strong {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  color: var(--color-text-main);
}

.weather-period-copy span,
.weather-period-value span {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.weather-period-value {
  justify-items: end;
  text-align: right;
}

.weather-detail-empty {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(247,244,238,0.86);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-bar button,
.auth-bar .tap {
  -webkit-tap-highlight-color: rgba(255,255,255,0.20);
}

.auth-messages:active,
.auth-network-status:active,
.auth-trigger:active,
.language-switcher-trigger:active,
.language-option:active {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.48);
  color: #ffffff;
  box-shadow: none;
  opacity: 1;
}

.language-option:active {
  background: rgba(95,127,115,0.12);
  border-color: rgba(95,127,115,0.18);
  color: var(--color-text-main);
}

@media (max-width: 520px) {
  .weather-period-row,
  .weather-tomorrow-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .weather-period-value {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

.auth-help {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(12px);
}

.auth-help svg {
  width: 25px !important;
  height: 25px !important;
  color: #ffffff;
  stroke: currentColor;
  stroke-width: 2.05 !important;
  display: block;
}

.communication-section {
  padding-top: 12px;
}

.communication-screen:not(.case-detail-screen) {
  --communication-content-after-tabs-gap: var(--guest-communication-content-gap);
  scroll-padding-top: var(--guest-communication-scroll-padding-top);
}

.communication-screen:not(.case-detail-screen) .communication-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 14px;
  margin: 0 var(--space-page-x) 12px;
}

.communication-screen:not(.case-detail-screen) .communication-head > div {
  min-width: 0;
}

.communication-screen:not(.case-detail-screen) .communication-head h3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  margin: 0 0 6px;
  padding: 0;
}

.communication-screen:not(.case-detail-screen) .communication-head h3 .header-icon {
  margin: 1px 0 0;
}

.communication-screen:not(.case-detail-screen) .communication-head h3 [data-i18n-key="guest.communication.title"] {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.communication-screen:not(.case-detail-screen) .communication-lead {
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}

.communication-screen:not(.case-detail-screen) .communication-add-button {
  align-self: start;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(95,127,115,0.14);
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(95,127,115,0.08);
  color: var(--color-sage-dark);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.communication-screen:not(.case-detail-screen) .communication-add-button.is-visible {
  background: var(--color-sage-dark);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(31,49,43,0.16);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.communication-screen:not(.case-detail-screen) .communication-add-button svg {
  width: 20px;
  height: 20px;
}

.communication-screen:not(.case-detail-screen) .communication-add-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.communication-screen:not(.case-detail-screen) > .header.small {
  min-height: var(--guest-communication-header-height);
  padding-bottom: 42px;
  border-radius: 0 0 24px 24px;
  z-index: var(--guest-z-communication-header);
}

#mitteilungen.communication-screen:not(.case-detail-screen) > .communication-section {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: auto;
  margin-top: calc(-1 * var(--guest-communication-header-overlap));
  padding-top: 0;
}

.communication-screen:not(.case-detail-screen) .communication-head {
  order: 0;
  position: relative;
  z-index: var(--guest-z-communication-content);
  margin-top: var(--communication-content-after-tabs-gap);
}

.communication-screen:not(.case-detail-screen) .communication-segment,
.communication-screen:not(.case-detail-screen) .communication-subtabs.message-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-inline: 0;
}

.communication-screen:not(.case-detail-screen) .communication-segment > .communication-segment-button,
.communication-screen:not(.case-detail-screen) .communication-subtabs.message-tabs > .message-tab {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-appearance: none;
  appearance: none;
  transform: none;
  -webkit-transform: none;
}

.communication-screen:not(.case-detail-screen) .communication-segment {
  order: -1;
  position: sticky !important;
  top: var(--guest-communication-sticky-top) !important;
  z-index: var(--guest-z-communication-segment);
  margin-block: 0;
  padding: 4px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 10px 24px rgba(31,49,43,0.10);
  gap: 4px;
  transform: none !important;
  -webkit-transform: none !important;
}

.communication-screen:not(.case-detail-screen) .communication-panel {
  position: relative;
  z-index: var(--guest-z-communication-content);
}

.communication-screen:not(.case-detail-screen) .communication-panel .guest-case-card-button:active {
  background: transparent !important;
  color: inherit;
}

.communication-screen:not(.case-detail-screen) .communication-segment-button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: none;
  outline: none;
}

.communication-screen:not(.case-detail-screen) .communication-segment-button.active,
.communication-screen:not(.case-detail-screen) .communication-segment-button.active:active,
.communication-screen:not(.case-detail-screen) .communication-segment-button.active:focus-visible {
  background: rgba(255,255,255,0.96);
  color: var(--color-sage-dark);
  box-shadow: 0 5px 14px rgba(31,49,43,0.12);
}

.communication-screen:not(.case-detail-screen) .communication-segment-button:not(.active):focus-visible {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .communication-screen:not(.case-detail-screen) .communication-segment-button.active:hover {
    background: rgba(255,255,255,0.96);
    color: var(--color-sage-dark);
    box-shadow: 0 5px 14px rgba(31,49,43,0.12);
  }

  .communication-screen:not(.case-detail-screen) .communication-segment-button:not(.active):hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
  }
}

.communication-screen:not(.case-detail-screen) .communication-segment-button:not(.active):active {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.communication-screen:not(.case-detail-screen) .communication-segment-button:focus-visible {
  outline: 2px solid rgba(255,255,255,0.82);
  outline-offset: 2px;
}

.communication-tab-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e05a5a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.communication-panel.hidden {
  display: none !important;
}

.communication-subtabs.message-tabs {
  margin-top: 0 !important;
}

.communication-screen:not(.case-detail-screen) .communication-panel .guest-help-lead {
  margin: 0 var(--space-page-x) 12px;
  color: var(--color-text-muted);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}

.communication-screen:not(.case-detail-screen) .communication-panel #guestHelpLoginPrompt {
  margin-left: var(--space-page-x);
  margin-right: var(--space-page-x);
}

.message-card-button {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.message-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(95,127,115,0.12);
  color: var(--color-sage-dark);
}

.message-card-icon svg {
  width: 19px;
  height: 19px;
}

.message-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.message-card-chevron {
  width: 17px;
  height: 17px;
  color: var(--color-text-muted);
}

.global-help-sheet {
  max-width: min(92vw, 430px);
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.global-help-title {
  padding-right: 42px;
}

.global-help-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.global-help-action {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(95,127,115,0.13);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  color: var(--color-text-main);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(31,49,43,0.06);
}

.global-help-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(95,127,115,0.12);
  color: var(--color-sage-dark);
}

.global-help-action svg {
  width: 18px;
  height: 18px;
}

.home-impulse-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.home-impulse-row .home-important-card {
  min-height: 88px;
  background: rgba(255,255,255,0.74);
}

.auth-help:active {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.48);
  color: #ffffff;
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 430px) {
  .auth-bar-controls {
    gap: 6px;
  }

  .auth-messages,
  .auth-network-status,
  .auth-help {
    width: 40px;
    height: 40px;
  }

  .auth-trigger {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .auth-trigger .auth-label,
  .auth-trigger .auth-chevron {
    display: none;
  }

  .communication-screen:not(.case-detail-screen) .communication-head {
    align-items: flex-start;
  }

  .communication-screen:not(.case-detail-screen) .communication-lead {
    display: block;
  }

  .home-impulse-row,
  .home-booking-prompt-actions,
  .home-help-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== GUEST RELAUNCH MOBILE LAYOUT CORRECTION ROUND ===== */
#home > .header {
  min-height: calc(var(--guest-global-header-bottom) + 158px);
  padding-top: calc(var(--guest-global-header-bottom) + 22px);
  padding-bottom: 20px;
}

#home > .header .logo {
  width: min(84vw, 420px) !important;
  max-width: calc(100% - 32px);
  max-height: 122px;
  height: auto;
  object-fit: contain;
}

.home-context-info-card,
.home-important-card,
.home-phase-card,
.home-booking-prompt-card,
.home-booking-prompt-action,
.home-help-card,
.home-help-action,
.home-important-link,
.weather-period-row,
.weather-tomorrow-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-context-info-card {
  align-items: flex-start;
}

.home-important-card {
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: start;
}

.home-important-card > svg {
  justify-self: end;
  align-self: center;
  flex: 0 0 auto;
}

.home-context-info-copy,
.home-important-copy,
.home-booking-prompt-copy > div,
.home-help-copy > div,
.home-phase-card strong,
.home-phase-card > span:last-child,
.weather-period-copy,
.weather-period-value {
  min-width: 0;
}

.home-context-info-copy strong,
.home-context-info-copy span,
.home-important-copy strong,
.home-important-copy span,
.home-important-card h3,
.home-important-link span,
.home-booking-prompt-card h3,
.home-booking-prompt-card p,
.home-booking-prompt-action,
.home-help-card h3,
.home-help-card p,
.home-help-action span,
.home-phase-card strong,
.home-phase-card > span:last-child,
.weather-period-copy strong,
.weather-period-copy span,
.weather-period-value strong,
.weather-period-value span {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.home-help-action {
  white-space: normal;
}

.home-help-action span {
  min-width: 0;
}

.home-safe-card .home-important-card-head {
  align-items: flex-start;
}

.home-safe-card {
  grid-template-columns: minmax(0, 1fr) !important;
}

.home-safe-card .home-important-card-head,
.home-safe-card .home-safe-list,
.home-safe-card .home-important-link {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.home-safe-card .home-important-card-head h3 {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.home-safe-row {
  min-width: 0;
}

.home-safe-row,
.home-safe-row strong,
.home-safe-meta {
  white-space: normal;
  word-break: normal;
}

.home-safe-row strong {
  overflow-wrap: anywhere;
}

.home-safe-meta {
  overflow-wrap: break-word;
}

.home-safe-card .home-important-link {
  justify-content: space-between;
  white-space: normal;
}

.home-safe-card .home-important-link span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.home-safe-card .home-important-link svg {
  flex: 0 0 auto;
}

.weather-period-row,
.weather-tomorrow-card {
  grid-template-columns: 38px minmax(0, 1fr) minmax(62px, auto);
}

#weatherDetailModal .modal-sheet,
#globalHelpSheet .modal-sheet,
#marketingPushPromptModal .modal-sheet {
  left: 0;
  right: 0;
  width: auto;
  max-width: none !important;
  max-height: min(86dvh, calc(100dvh - var(--guest-global-header-bottom) - 12px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px 24px 0 0;
  padding: 18px max(18px, calc(env(safe-area-inset-right) + 18px)) calc(18px + max(env(safe-area-inset-bottom), 10px)) max(18px, calc(env(safe-area-inset-left) + 18px));
  -webkit-overflow-scrolling: touch;
}

#weatherDetailModal .modal-title,
#globalHelpSheet .modal-title,
#marketingPushPromptModal .modal-title {
  padding-left: 38px;
  padding-right: 38px;
}

@media (max-width: 520px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 152px);
    padding-top: calc(var(--guest-global-header-bottom) + 20px);
    padding-bottom: 18px;
  }

  #home > .header .logo {
    width: min(86vw, 348px) !important;
    max-height: 112px;
  }

  .weather-period-row,
  .weather-tomorrow-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .home-impulse-row {
    grid-template-columns: 1fr;
  }

  .home-important-card {
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    gap: 10px;
  }

  .home-safe-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .home-safe-card .home-important-card-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .home-safe-card .home-important-link {
    align-items: center;
    padding-inline: 12px;
  }
}

@media (max-width: 390px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 148px);
    padding-top: calc(var(--guest-global-header-bottom) + 18px);
  }

  #home > .header .logo {
    width: min(84vw, 326px) !important;
    max-height: 108px;
  }
}

/* ===== GUEST RELAUNCH MOBILE PROMPT CARD FIX ===== */
@media (max-width: 430px) {
  .home-phase-priority-panel .home-impulse-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
  }

  .home-phase-priority-panel .home-impulse-row > .home-important-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: 36px minmax(0, 1fr) 24px !important;
    align-items: start;
    white-space: normal;
    overflow: visible;
  }

  .home-phase-priority-panel .home-impulse-row > .home-important-card .home-important-copy {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .home-phase-priority-panel .home-impulse-row > .home-important-card .home-important-copy strong,
  .home-phase-priority-panel .home-impulse-row > .home-important-card .home-important-copy span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .home-phase-priority-panel .home-impulse-row > .home-important-card > svg {
    width: 18px;
    min-width: 18px;
    justify-self: end;
    align-self: center;
  }
}

/* ===== GUEST RELAUNCH IPHONE VIEWPORT + PROMPT FIX ===== */
@media (max-width: 600px) {
  .home-phase-priority-panel .home-impulse-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .home-phase-priority-panel .home-impulse-row > .home-important-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0;
    grid-template-columns: 36px minmax(0, 1fr) 24px !important;
    align-items: start;
    white-space: normal;
    overflow: visible;
  }

  .home-phase-priority-panel .home-impulse-row > .home-important-card .home-important-copy,
  .home-phase-priority-panel .home-impulse-row > .home-important-card .home-important-copy strong,
  .home-phase-priority-panel .home-impulse-row > .home-important-card .home-important-copy span {
    min-width: 0 !important;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
}

@media (max-width: 600px) {
  html,
  body,
  #appWrapper,
  .screen {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }
}

#home > .header {
  min-height: calc(var(--guest-global-header-bottom) + 164px);
  padding-top: calc(var(--guest-global-header-bottom) + 22px);
}

#home > .header .logo {
  width: min(86vw, 440px) !important;
  max-height: 128px;
}

@media (max-width: 520px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 158px);
    padding-top: calc(var(--guest-global-header-bottom) + 20px);
  }

  #home > .header .logo {
    width: min(88vw, 366px) !important;
    max-height: 118px;
  }
}

@media (max-width: 390px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 152px);
    padding-top: calc(var(--guest-global-header-bottom) + 18px);
  }

  #home > .header .logo {
    width: min(86vw, 338px) !important;
    max-height: 112px;
  }
}

/* ===== GUEST RELAUNCH INDIVIDUAL ARRIVAL/DEPARTURE TIMES ===== */
.guest-time-note,
.account-time-note {
  display: block;
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.account-data-cell .account-time-note,
.account-summary-note .account-time-note {
  color: #647177;
}

#home > .header {
  min-height: calc(var(--guest-global-header-bottom) + 170px);
  padding-top: calc(var(--guest-global-header-bottom) + 22px);
}

#home > .header .logo {
  width: min(88vw, 468px) !important;
  max-height: 136px;
}

@media (max-width: 520px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 162px);
    padding-top: calc(var(--guest-global-header-bottom) + 20px);
  }

  #home > .header .logo {
    width: min(90vw, 388px) !important;
    max-height: 126px;
  }
}

@media (max-width: 390px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + 156px);
    padding-top: calc(var(--guest-global-header-bottom) + 18px);
  }

  #home > .header .logo {
    width: min(88vw, 354px) !important;
    max-height: 120px;
  }
}

/* ===== GUEST RELAUNCH CONFIGURABLE BRANDING ===== */
:root {
  --guest-logo-overlay-bg: #FFFFFF;
  --guest-home-logo-width-desktop: min(94vw, 540px);
  --guest-home-logo-width-medium: min(92vw, 430px);
  --guest-home-logo-width-small: min(90vw, 374px);
  --guest-home-logo-space-desktop: 182px;
  --guest-home-logo-space-medium: 176px;
  --guest-home-logo-space-small: 168px;
}

#home > .header {
  min-height: calc(var(--guest-global-header-bottom) + var(--guest-home-logo-space-desktop));
  padding-top: calc(var(--guest-global-header-bottom) + 24px);
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

#home > .header .logo {
  width: var(--guest-home-logo-width-desktop) !important;
  max-width: calc(100vw - 28px);
  max-height: none !important;
  height: auto !important;
  margin: 2px auto 10px !important;
  object-fit: contain;
}

.relaunch-context-media.has-image .relaunch-context-logo {
  width: 86px;
  height: 58px;
  padding: 8px;
  border-radius: 16px;
  background: var(--guest-logo-overlay-bg, #FFFFFF);
  box-shadow: var(--shadow-soft);
}

.relaunch-context-media:not(.has-image) .relaunch-context-logo {
  display: none;
}

.relaunch-context-logo img {
  width: 72px;
  height: 42px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 520px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + var(--guest-home-logo-space-medium));
    padding-top: calc(var(--guest-global-header-bottom) + 22px);
    padding-bottom: 18px;
  }

  #home > .header .logo {
    width: var(--guest-home-logo-width-medium) !important;
    max-width: calc(100vw - 24px);
    margin-top: 0 !important;
  }
}

@media (max-width: 390px) {
  #home > .header {
    min-height: calc(var(--guest-global-header-bottom) + var(--guest-home-logo-space-small));
    padding-top: calc(var(--guest-global-header-bottom) + 20px);
  }

  #home > .header .logo {
    width: var(--guest-home-logo-width-small) !important;
  }
}

.home-header-weather {
  position: absolute;
  left: max(var(--space-page-x), env(safe-area-inset-left));
  top: calc(var(--guest-global-header-bottom) + 10px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  max-width: min(30vw, 230px);
  min-height: 44px;
  padding: 0;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-header-weather.hidden {
  display: none !important;
}

.home-header-weather:active {
  background: transparent !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .home-header-weather:hover {
    background: transparent !important;
    box-shadow: none !important;
  }
}

.home-header-weather:focus:not(:focus-visible) {
  outline: 0;
}

.home-header-weather:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.76);
  outline-offset: 5px;
}

.home-header-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.home-header-weather-icon i,
.home-header-weather-icon svg {
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.home-header-weather-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}

.home-header-weather-location,
.home-header-weather-meta {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  white-space: normal;
}

.home-header-weather-location {
  color: #ffffff;
  font: 800 13px/1.18 var(--font-body);
}

.home-header-weather-meta {
  color: rgba(255, 255, 255, 0.78);
  font: 700 12px/1.22 var(--font-body);
}

.home-header-weather.is-loading .home-header-weather-meta,
.home-header-weather.is-unavailable .home-header-weather-meta {
  color: rgba(255, 255, 255, 0.74);
}

@media (min-width: 900px) {
  .home-header-weather {
    max-width: min(34vw, 320px);
  }
}

@media (max-width: 720px) {
  .home-header-weather {
    top: calc(var(--guest-global-header-bottom) + 7px);
    max-width: min(36vw, 168px);
  }

  .home-header-weather-location {
    font-size: 12px;
  }

  .home-header-weather-meta {
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .home-header-weather {
    left: max(14px, env(safe-area-inset-left));
    top: calc(var(--guest-global-header-bottom) + 5px);
    max-width: min(34vw, 132px);
    gap: 6px;
  }

  .home-header-weather-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .home-header-weather-icon i,
  .home-header-weather-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .home-header-weather-location {
    font-size: 11px;
    line-height: 1.12;
  }

  .home-header-weather-meta {
    font-size: 10px;
    line-height: 1.18;
  }
}

.home-header-left-rail {
  --home-header-rail-gap: clamp(10px, 2.4vw, 12px);
  --home-store-badge-width: clamp(108px, 28vw, 142px);
  --home-store-badge-height: clamp(34px, 8.2vw, 42px);
  --home-store-badge-gap: 6px;
  position: absolute;
  left: max(var(--space-page-x), env(safe-area-inset-left));
  top: calc(var(--guest-global-header-bottom) + 10px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--home-header-rail-gap);
  width: auto;
  max-width: min(calc(100% - 28px), 168px);
  pointer-events: none;
}

.home-header-left-rail .home-header-weather {
  position: static;
  left: auto;
  top: auto;
  flex: 0 1 clamp(104px, 29vw, 168px);
  max-width: clamp(104px, 29vw, 168px);
  pointer-events: auto;
}

.home-store-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--home-store-badge-gap);
  flex: 0 0 var(--home-store-badge-width);
  width: var(--home-store-badge-width);
  max-width: var(--home-store-badge-width);
  pointer-events: auto;
}

.home-store-badge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--home-store-badge-height);
  border-radius: 8px;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(14, 24, 20, 0.16);
}

.home-store-badge-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.home-store-badge-link--apple {
  --home-store-badge-scale: 1;
}

.home-store-badge-link--google {
  --home-store-badge-scale: 0.94;
}

.home-store-badge-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 7px;
  object-fit: contain;
  transform: scale(var(--home-store-badge-scale, 1));
  transform-origin: center;
}

html.native-app-runtime .home-store-badges,
body.native-app-runtime .home-store-badges,
.native-app-runtime .home-store-badges {
  display: none !important;
}

@media (min-width: 900px) {
  .home-header-left-rail {
    --home-header-rail-gap: 12px;
    --home-store-badge-width: 148px;
    --home-store-badge-height: 44px;
    --home-store-badge-gap: 6px;
    max-width: min(calc(100% - 28px), 230px);
  }
}

@media (max-width: 720px) {
  .home-header-left-rail {
    --home-header-rail-gap: clamp(10px, 2.5vw, 12px);
    --home-store-badge-width: clamp(104px, 27vw, 128px);
    --home-store-badge-height: clamp(32px, 8vw, 38px);
    --home-store-badge-gap: 5px;
    top: calc(var(--guest-global-header-bottom) + 7px);
  }

  .home-header-left-rail .home-header-weather {
    flex-basis: clamp(104px, 30vw, 150px);
    max-width: clamp(104px, 30vw, 150px);
  }
}

@media (max-width: 430px) {
  .home-header-left-rail {
    --home-header-rail-gap: 10px;
    --home-store-badge-width: clamp(96px, 28vw, 116px);
    --home-store-badge-height: clamp(30px, 8vw, 36px);
    left: max(14px, env(safe-area-inset-left));
    top: calc(var(--guest-global-header-bottom) + 5px);
  }

  .home-header-left-rail .home-header-weather {
    flex-basis: clamp(98px, 33vw, 132px);
    max-width: clamp(98px, 33vw, 132px);
  }
}

/* ===== GUEST RELAUNCH DESIGN REVIEW CONSISTENCY ===== */
.screen:not(#home):not(#mitteilungen) > .header.small {
  min-height: 44px !important;
  padding: 5px var(--space-page-x) 6px !important;
  align-items: center;
  justify-content: center;
}

.screen:not(#home):not(#mitteilungen) > .header.small .logo.small {
  width: clamp(82px, 24vw, 118px) !important;
  max-height: 28px !important;
}

.screen:not(#home):not(#mitteilungen) > .header.small .compact-header-back {
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px !important;
}

#entdecken > .section h3,
#info > .section h3,
#parken > .section h3,
#service > .section h3,
#fruehstueck > .section h3,
#checkin > .section h3,
#safe > .section h3,
#kiosk > .section h3,
#lounge > .section h3,
#tagundnacht > .section h3,
#waldpavillon > .section h3,
#essen > .section h3,
#freizeit > .section h3,
#mobilitaet > .section h3,
#taxi > .section h3,
#bus > .section h3,
#flexline > .section h3 {
  font-family: var(--font-display);
}

#wlan > .section h3,
#mehr > .section h3,
#appSettings > .section h3,
#mitteilungen:not(.case-detail-screen) .communication-head h3,
#legal > .section h3,
#impressum > .section h3,
#datenschutz > .section h3,
#gutscheinshop > .section h3 {
  font-family: var(--font-body);
  font-size: clamp(24px, 5.4vw, 32px);
  font-weight: 850;
}

#parken > .section,
#service > .section,
#fruehstueck > .section,
#checkin > .section,
#tagundnacht > .section,
#waldpavillon > .section,
#kiosk > .section {
  display: grid;
  gap: 10px;
}

#parken > .section > .info-box,
#service > .section > .info-box,
#fruehstueck > .section > .info-box,
#checkin > .section > .info-box,
#tagundnacht > .section > .info-box,
#waldpavillon > .section > .info-box,
#kiosk > .section > .info-box {
  margin-top: 0;
  margin-bottom: 0;
  padding: 14px;
}

#parken .info-row,
#service .info-row,
#fruehstueck .info-row,
#checkin .info-row,
#tagundnacht .info-row,
#waldpavillon .info-row,
#kiosk .info-row {
  gap: 12px;
  align-items: flex-start;
}

#parken .info-text,
#service .info-text,
#fruehstueck .info-text,
#checkin .info-text,
#tagundnacht .info-text,
#waldpavillon .info-text,
#kiosk .info-text,
#parken .benefit-list,
#service .benefit-list,
#fruehstueck .benefit-list,
#checkin .benefit-list,
#tagundnacht .benefit-list,
#waldpavillon .benefit-list,
#kiosk .benefit-list {
  line-height: 1.45;
}

#parken .info-box.warning,
#service .info-box.warning,
#fruehstueck .info-box.warning,
#checkin .info-box.warning,
#tagundnacht .info-box.warning,
#waldpavillon .info-box.warning,
#kiosk .info-box.warning {
  background: #fff8f1;
  border-color: rgba(170, 112, 50, 0.24);
}

.communication-screen:not(.case-detail-screen) .communication-panel #guestHelpContent {
  display: grid;
  gap: 12px;
}

.communication-screen:not(.case-detail-screen) .communication-panel #guestHelpContent > .guest-case-back:first-child {
  margin-top: 0;
}

.communication-screen:not(.case-detail-screen) .communication-panel .guest-case-wizard-card {
  margin-top: 0;
  margin-bottom: 26px;
}

.communication-screen:not(.case-detail-screen) .communication-panel .guest-case-wizard-head {
  margin-bottom: 12px;
}

.communication-screen:not(.case-detail-screen) .communication-panel .guest-case-wizard-progress {
  margin-bottom: 12px;
}

/* ===== GUEST REQUEST WIZARD AND MOBILE CASE LIST FIX ===== */
.guest-case-wizard-card textarea.guest-case-wizard-message-attention {
  border-color: rgba(95,127,115,0.48);
  box-shadow: 0 0 0 3px rgba(95,127,115,0.14);
  background: #ffffff;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel #guestHelpApp,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel #guestHelpContent {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel #guestHelpContent {
  justify-items: stretch;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-new-button,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-list,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card-button,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-load-more,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-empty {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card-button {
  display: block;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar-copy,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card-head,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card h4,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-meta,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-preview {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 430px) {
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar,
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-new-button,
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-list,
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-load-more,
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-empty {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }

  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card {
    width: 100%;
  }
}

.auth-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(14,24,20,0.16);
}

.auth-menu-backdrop.hidden {
  display: none !important;
}

.auth-dropdown {
  z-index: 60;
  min-width: 216px;
  gap: 4px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  border-color: rgba(95,127,115,0.18);
  box-shadow: 0 18px 34px rgba(14,24,20,0.18);
}

.auth-dropdown-item {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-main);
  font-weight: 750;
}

.auth-dropdown-item:focus-visible,
.auth-dropdown-item:active {
  background: rgba(95,127,115,0.12) !important;
  color: var(--color-text-main) !important;
}

@media (hover: hover) and (pointer: fine) {
  .auth-dropdown-item:hover {
    background: rgba(95,127,115,0.12) !important;
    color: var(--color-text-main) !important;
  }
}

.auth-dropdown-item:focus-visible {
  outline: 2px solid rgba(95,127,115,0.52);
  outline-offset: 2px;
}

.auth-dropdown-item.auth-dropdown-logout {
  margin-top: 5px;
  border-top: 1px solid rgba(95,127,115,0.16);
  border-radius: 0 0 10px 10px;
  color: #40574d;
}

.auth-dropdown-item.auth-dropdown-logout:focus-visible,
.auth-dropdown-item.auth-dropdown-logout:active {
  background: rgba(95,127,115,0.10) !important;
  color: var(--color-sage-dark) !important;
}

@media (hover: hover) and (pointer: fine) {
  .auth-dropdown-item.auth-dropdown-logout:hover {
    background: rgba(95,127,115,0.10) !important;
    color: var(--color-sage-dark) !important;
  }
}

.auth-trigger.menu-open,
.auth-trigger[aria-expanded="true"],
.auth-trigger:focus-visible,
.auth-trigger:active,
.auth-messages:focus-visible,
.auth-messages:active,
.auth-network-status:focus-visible,
.auth-network-status:active,
.auth-help:focus-visible,
.auth-help:active,
.language-switcher-trigger:focus-visible,
.language-switcher-trigger:active {
  background: rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.46) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .auth-trigger:hover,
  .auth-messages:hover,
  .auth-network-status:hover,
  .auth-help:hover,
  .language-switcher-trigger:hover {
    background: rgba(255,255,255,0.20) !important;
    border-color: rgba(255,255,255,0.46) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    opacity: 1;
  }
}

.auth-trigger.menu-open,
.auth-trigger[aria-expanded="true"] {
  background: rgba(31,61,52,0.58) !important;
  border-color: rgba(255,255,255,0.52) !important;
}

.relaunch-tile:active,
.relaunch-more-list .item:active,
.message-tab:not(.active):active,
.communication-screen:not(.case-detail-screen) .communication-segment-button:not(.active):active,
.compact-header-back:active {
  background-color: rgba(95,127,115,0.12) !important;
  color: var(--color-text-main);
}

.compact-header-back:active {
  background: rgba(255,255,255,0.24) !important;
  color: #ffffff !important;
}

.communication-screen:not(.case-detail-screen) .communication-segment-button:not(.active):active {
  background: rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
}

/* ===== GUEST RELAUNCH IPHONE INPUT ZOOM FIX ===== */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 820px) {
    #appWrapper input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
    #appWrapper textarea,
    #appWrapper select,
    #appWrapper [contenteditable="true"] {
      font-size: 16px !important;
      line-height: 1.45;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    #appWrapper .search-bar input,
    #appWrapper #searchInput,
    #appWrapper .login-box input,
    #appWrapper .form-group input,
    #appWrapper .guest-case-reply textarea,
    #appWrapper .guest-case-wizard-card textarea,
    #appWrapper .guest-case-detail-fixed-composer .guest-case-reply textarea {
      font-size: 16px !important;
    }

    #appWrapper .guest-case-reply textarea,
    #appWrapper .guest-case-wizard-card textarea {
      line-height: 1.5;
      padding-top: 13px;
      padding-bottom: 13px;
    }

    .guest-case-detail-fixed-composer .guest-case-reply textarea {
      min-height: 46px;
      line-height: 1.42;
    }
  }
}

/* ===== GUEST CASE DETAIL FINAL ISOLATION ===== */
body.guest-case-detail-open #mitteilungen.case-detail-screen {
  top: 0 !important;
  bottom: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  -webkit-transform: none !important;
}

body.guest-case-detail-open #mitteilungen.case-detail-screen .tabbar,
body.guest-case-detail-open .tabbar,
body.guest-case-keyboard-active .tabbar,
body.guest-case-detail-open #mitteilungen.case-detail-screen > .header,
body.guest-case-detail-open #mitteilungen.case-detail-screen > .header.small,
body.guest-case-detail-open #mitteilungen.case-detail-screen > .header .compact-header-back,
body.guest-case-detail-open #mitteilungen.case-detail-screen > .header .logo.small,
body.guest-case-detail-open #mitteilungen.case-detail-screen > .button,
body.guest-case-detail-open #mitteilungen.case-detail-screen > .button[data-i18n-key="guest.nav.back"],
body.guest-case-detail-open #mitteilungen.case-detail-screen > .button.compact-header-back,
body.guest-case-detail-open #mitteilungen.case-detail-screen .communication-segment,
body.guest-case-detail-open #mitteilungen.case-detail-screen .communication-head,
body.guest-case-detail-open #mitteilungen.case-detail-screen .guest-help-lead,
body.guest-case-detail-open #mitteilungen.case-detail-screen .communication-subtabs,
body.guest-case-detail-open #mitteilungen.case-detail-screen #communicationMessagesPanel,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpLoginPrompt,
body.guest-case-detail-open #mitteilungen.case-detail-screen #communicationNewRequestButton,
body.guest-case-detail-open #mitteilungen.case-detail-screen .guest-case-toolbar,
body.guest-case-detail-open #mitteilungen.case-detail-screen .guest-case-list,
body.guest-case-detail-open #mitteilungen.case-detail-screen .guest-case-empty,
body.guest-case-detail-open #mitteilungen.case-detail-screen .guest-case-load-more,
body.guest-case-detail-open #mitteilungen.case-detail-screen .guest-case-new-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.guest-case-detail-open #mitteilungen.case-detail-screen > .communication-section,
body.guest-case-detail-open #mitteilungen.case-detail-screen #communicationRequestsPanel {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode {
  position: fixed !important;
  top: var(--guest-global-header-bottom, 0px) !important;
  right: 0 !important;
  bottom: var(--guest-case-keyboard-inset, 0px) !important;
  left: 0 !important;
  z-index: 2500 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--bg, #f6f4ef) !important;
}

body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode #guestHelpContent,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-shell {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-scroll-content,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-summary,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread-shell,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer,
body.guest-case-detail-open #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-composer-inner {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ===== GUEST CASE VIEW 2.0 POLISH ===== */
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar {
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(95, 127, 115, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(95, 127, 115, 0.14);
  box-shadow: 0 12px 28px rgba(31, 49, 43, 0.07);
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar-copy {
  gap: 4px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar-copy span {
  max-width: 40rem;
  line-height: 1.4;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card {
  border-radius: 20px;
  border-color: rgba(95, 127, 115, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 251, 0.96));
  box-shadow: 0 12px 28px rgba(31, 49, 43, 0.07);
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card.unread {
  border-color: rgba(95, 127, 115, 0.32);
  background:
    radial-gradient(115% 95% at 0% 0%, rgba(95, 127, 115, 0.15), transparent 58%),
    #ffffff;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card-button {
  display: grid;
  gap: 9px;
  min-height: 0;
  padding: 15px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card-head {
  align-items: center;
  gap: 8px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card h4 {
  color: #20382f;
  font-size: 16px;
  line-height: 1.25;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-meta {
  margin-top: 0;
  gap: 5px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-status-badge,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-urgency-badge,
#guestHelpApp.case-detail-mode .guest-case-status-badge,
#guestHelpApp.case-detail-mode .guest-case-urgency-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-new-pill {
  padding: 6px 9px;
  font-size: 10.5px;
  box-shadow: none;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-preview,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-unread-line {
  margin-top: 0;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-empty,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-card {
  border-radius: 22px;
  border-color: rgba(95, 127, 115, 0.13);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(31, 49, 43, 0.07);
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-card {
  padding: 16px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-head {
  gap: 5px;
  margin-bottom: 12px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-head strong {
  font-size: 22px;
  line-height: 1.12;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-progress {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  margin-bottom: 13px;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-progress span {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 13px;
  background: rgba(95, 127, 115, 0.09);
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-progress span.active,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-progress span.done {
  background: #5F7F73;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-topic-option,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-check-option,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-urgency-option {
  min-height: 58px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-topic-option.selected,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-urgency-option.selected,
.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-check-option:has(input:checked) {
  border-color: rgba(95, 127, 115, 0.44);
  background: #eef5f1;
  box-shadow: inset 0 0 0 1px rgba(95, 127, 115, 0.18);
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-summary {
  border-radius: 18px;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(200, 169, 106, 0.13), transparent 62%),
    #ffffff;
}

.communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-actions .button {
  min-height: 46px;
}

#guestHelpApp.case-detail-mode .guest-case-detail-back-header {
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
  align-items: center;
  padding: 7px 10px;
  contain: layout paint;
}

#guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back {
  width: auto !important;
  max-width: 132px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  gap: 5px;
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
}

#guestHelpApp.case-detail-mode .guest-case-back-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

#guestHelpApp.case-detail-mode .guest-case-detail-header-copy {
  gap: 4px;
  align-self: center;
}

#guestHelpApp.case-detail-mode .guest-case-detail-title {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.12;
}

#guestHelpApp.case-detail-mode .guest-case-detail-status-row {
  gap: 4px;
}

#guestHelpApp.case-detail-mode .guest-case-detail-status-row span,
#guestHelpApp.case-detail-mode .guest-case-detail-meta span {
  padding: 4px 7px;
  font-size: 10.5px;
}

#guestHelpApp.case-detail-mode .guest-case-detail-scroll-content {
  gap: 7px;
  padding: 9px 10px 10px;
}

#guestHelpApp.case-detail-mode .guest-case-detail-summary {
  gap: 7px;
}

#guestHelpApp.case-detail-mode .guest-case-detail-summary .guest-case-detail-card {
  padding: 10px 11px;
  border-radius: 18px;
}

#guestHelpApp.case-detail-mode .guest-case-detail-thread {
  scroll-behavior: auto;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-scroll-content,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-summary,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread-shell,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-composer-inner,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode #guestCaseReplyText {
  transition: none !important;
  animation: none !important;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-summary,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer {
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 430px) {
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-toolbar {
    padding: 13px;
    gap: 10px;
  }

  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-card-button,
  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-card {
    padding: 13px;
  }

  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-progress {
    grid-template-columns: 1fr;
  }

  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-wizard-progress span {
    min-height: 32px;
    text-align: left;
    place-items: center start;
  }

  .communication-screen:not(.case-detail-screen) #communicationRequestsPanel .guest-case-topic-option {
    min-height: 66px;
  }

  #guestHelpApp.case-detail-mode .guest-case-detail-back-header {
    grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
    min-height: 54px;
    gap: 7px;
    padding: 6px 9px;
  }

  #guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back {
    max-width: 104px;
    min-height: 36px;
    padding: 7px 9px;
  }

  #guestHelpApp.case-detail-mode .guest-case-detail-title {
    font-size: 18px;
  }

  #guestHelpApp.case-detail-mode .guest-case-detail-status-row span,
  #guestHelpApp.case-detail-mode .guest-case-detail-meta span {
    min-height: 22px;
    padding: 4px 6px;
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  #guestHelpApp.case-detail-mode .guest-case-detail-back-header {
    grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  }

  #guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back {
    max-width: 88px;
    padding-left: 8px;
    padding-right: 8px;
  }

  #guestHelpApp.case-detail-mode .guest-case-detail-title {
    font-size: 17px;
  }
}

/* ===== GUEST CASE DETAIL HEADER KEYBOARD FIX ===== */
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  min-height: 0;
  gap: 6px;
  overflow: visible;
  contain: layout;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back {
  max-width: 100%;
  width: fit-content !important;
  min-height: 38px;
  overflow: visible;
  white-space: nowrap;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-back-label {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-header-copy {
  width: 100%;
  min-width: 0;
  align-self: start;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-status-row {
  max-width: 100%;
  overflow: visible;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-scroll-content {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread {
  padding-bottom: calc(var(--guest-case-composer-height, 0px) + 24px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(var(--guest-case-composer-height, 0px) + 24px + env(safe-area-inset-bottom));
  overflow-anchor: none;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-header-copy,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-summary,
body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer {
  min-height: 0;
  will-change: transform;
}

@media (max-width: 430px) {
  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 7px 9px;
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back {
    max-width: 100%;
    min-height: 38px;
    padding: 7px 10px;
  }
}

@media (max-width: 370px) {
  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header {
    grid-template-columns: minmax(0, 1fr);
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-back-header .guest-case-back {
    max-width: 100%;
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* ===== GUEST UI POLISH TASK 44 ===== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-header-action {
  margin-top: 7px;
  min-width: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode #guestCaseDoneAction {
  min-width: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-action.compact {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-action.compact span {
  min-width: 0;
  color: rgba(54, 80, 68, 0.78);
  font-size: 11px;
  line-height: 1.25;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-summary {
  gap: 6px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-card {
  margin-bottom: 8px;
  padding: 10px 12px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-done-note {
  margin: 0;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(95, 127, 115, 0.1);
  color: #365044;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.guest-case-detail-fixed-composer .guest-case-reply {
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
}

.guest-case-detail-fixed-composer .guest-case-reply label {
  margin-bottom: 6px;
  font-size: 12px;
}

.guest-case-reply-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: end;
  gap: 8px;
}

.guest-case-detail-fixed-composer .guest-case-reply .guest-case-reply-input-row textarea,
.guest-case-reply-input-row textarea {
  min-height: 46px;
  max-height: 126px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 17px;
}

.guest-case-reply-send {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(95, 127, 115, 0.2);
  border-radius: 16px;
  background: var(--color-sage-dark);
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 9px 20px rgba(31, 58, 47, 0.18);
}

.guest-case-reply-send svg {
  width: 19px;
  height: 19px;
}

.guest-case-reply-send:disabled {
  opacity: 0.72;
  cursor: wait;
}

.guest-case-close-confirm-sheet {
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: auto;
  max-width: 430px;
  margin: 0 auto;
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 -14px 48px rgba(6, 10, 9, 0.3);
  padding: 18px;
}

.guest-case-close-confirm-primary {
  background: var(--color-sage-dark);
  color: #ffffff;
  font-weight: 800;
}

.message-card-button {
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
}

.message-card-icon,
.message-card-chevron {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}

.message-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
}

.message-card-icon i,
.message-card-icon svg,
.message-card-icon-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
}

.message-card-icon svg,
.message-card-icon-fallback {
  width: 19px;
  height: 19px;
}

.message-card-icon-fallback {
  display: grid;
  place-items: center;
  color: var(--color-sage-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.message-card-icon svg + .message-card-icon-fallback {
  display: none;
}

.message-card-main {
  min-width: 0;
}

.message-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.message-headline h4 {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.message-pill {
  max-width: 98px;
  white-space: nowrap;
  text-align: center;
}

.message-card-chevron {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.message-card-chevron i,
.message-card-chevron svg,
.message-card-chevron-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
}

.message-card-chevron svg,
.message-card-chevron-fallback {
  width: 17px;
  height: 17px;
}

.message-card-chevron-fallback {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: 22px;
  line-height: 1;
}

.message-card-chevron svg + .message-card-chevron-fallback {
  display: none;
}

#appSettings .app-settings-card,
#appSettings .app-settings-versions-card,
#appSettings .marketing-push-panel {
  width: min(100% - (var(--space-page-x) * 2), 720px);
  margin-left: auto;
  margin-right: auto;
}

#appSettings .marketing-push-panel {
  align-items: flex-start;
  gap: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

#appSettings .marketing-push-title {
  font-size: 15px;
  line-height: 1.28;
}

#appSettings .marketing-push-description,
#appSettings .marketing-push-status {
  max-width: 58ch;
  overflow-wrap: anywhere;
}

#appSettings .marketing-push-switch {
  margin-top: 2px;
}

#appSettings .app-settings-row,
#appSettings .app-settings-versions-card .app-settings-row {
  grid-template-columns: minmax(0, 1fr) minmax(98px, auto);
}

#appSettings .app-settings-version-status,
#appSettings .push-debug-text {
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-action.compact {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button {
    width: fit-content;
    max-width: 100%;
  }

  .message-card-button {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 14px;
  }

  .message-card-icon {
    width: 40px;
    height: 40px;
  }

  .message-pill {
    max-width: 82px;
    padding-left: 7px;
    padding-right: 7px;
  }

  #appSettings .marketing-push-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ===== GUEST UI FOLLOW-UP TASK 44A ===== */
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-pills,
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-meta-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-pills {
  flex-wrap: wrap;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-meta-actions {
  justify-content: flex-end;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-time {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(95, 127, 115, 0.11);
  color: #365044;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-header-action {
  margin-top: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-action.compact.inline {
  width: auto;
  display: flex;
  align-items: center;
  gap: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11.5px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button svg {
  width: 14px;
  height: 14px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button .guest-case-close-label {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-done-note {
  padding: 6px 9px;
  font-size: 11.5px;
  line-height: 1.25;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-summary {
  gap: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-card {
  display: none;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer {
  padding: 4px 8px max(4px, env(safe-area-inset-bottom));
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply {
  gap: 4px;
  padding: 0;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply label {
  margin-bottom: 1px;
  font-size: 11.5px;
  line-height: 1.2;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply .guest-case-reply-input-row textarea,
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row textarea {
  min-height: 42px;
  max-height: 112px;
  padding: 9px 11px;
  border-radius: 15px;
  line-height: 1.25;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-send {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 15px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-send svg {
  width: 18px;
  height: 18px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode #guestCaseReplyError:empty {
  display: none;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread {
  padding-bottom: calc(var(--guest-case-composer-height, 0px) + 10px);
  scroll-padding-bottom: calc(var(--guest-case-composer-height, 0px) + 10px);
}

#appSettings .app-settings-card,
#appSettings .app-settings-versions-card {
  padding: 20px 18px;
}

#appSettings .app-settings-card h4,
#appSettings .app-settings-versions-card h4 {
  margin: 0 0 13px;
  padding: 0;
}

#appSettings .app-settings-description {
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.45;
}

#appSettings .app-settings-row,
#appSettings .app-settings-versions-card .app-settings-row {
  grid-template-columns: minmax(118px, 1fr) minmax(92px, auto);
  gap: 14px;
  padding: 11px 0;
}

#appSettings .app-settings-row span,
#appSettings .app-settings-versions-card .app-settings-row span {
  overflow-wrap: normal;
  word-break: normal;
}

#appSettings .app-settings-row strong,
#appSettings .app-settings-versions-card .app-settings-row strong {
  overflow-wrap: anywhere;
}

#appSettings .app-settings-actions {
  margin-top: 14px;
}

#appSettings .marketing-push-panel {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
}

#appSettings .marketing-push-copy {
  min-width: 0;
}

@media (max-width: 430px) {
  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-status-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-pills,
  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-meta-actions {
    gap: 5px;
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-time {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 10.5px;
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  #appSettings .app-settings-card,
  #appSettings .app-settings-versions-card {
    padding: 18px 16px;
  }

  #appSettings .app-settings-row,
  #appSettings .app-settings-versions-card .app-settings-row {
    grid-template-columns: minmax(112px, 1fr) minmax(88px, auto);
    gap: 10px;
  }

  #appSettings .marketing-push-panel {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-status-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-meta-actions {
    justify-content: flex-start;
  }
}

/* ===== GUEST UI MINI FOLLOW-UP TASK 45A ===== */
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button {
  min-width: 92px;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 6px 16px rgba(31, 58, 47, 0.10);
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-close-button .guest-case-close-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.82;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-done-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  white-space: nowrap;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-done-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer {
  padding: 6px 9px max(6px, env(safe-area-inset-bottom));
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply {
  gap: 5px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row {
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 7px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply .guest-case-reply-input-row textarea,
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row textarea {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-send {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

body.guest-case-detail-open.guest-case-keyboard-active #mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-thread {
  padding-bottom: calc(var(--guest-case-composer-height, 0px) + 12px);
  scroll-padding-bottom: calc(var(--guest-case-composer-height, 0px) + 12px);
}

#home .relaunch-context-card .relaunch-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-right: 3px;
  box-sizing: border-box;
}

#home .relaunch-context-card .relaunch-action {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
  padding: 11px 15px 11px 13px;
  text-align: left;
  white-space: normal;
  box-sizing: border-box;
}

#home .relaunch-context-card .relaunch-action svg {
  flex: 0 0 auto;
}

#home .relaunch-context-card .relaunch-action span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  #home .relaunch-context-card .relaunch-action-row {
    gap: 9px;
    padding-right: 4px;
  }

  #home .relaunch-context-card .relaunch-action {
    min-height: 46px;
    padding: 10px 14px 10px 12px;
    font-size: 12.5px;
  }
}

/* ===== GUEST UI MINI FIX TASK 45B ===== */
#home .search-bar::before {
  content: none !important;
}

#home .search-wrapper::before {
  content: "";
  width: 14px;
  height: 14px;
  left: 18px;
  top: 50%;
  transform: translateY(-56%);
  border: 2px solid rgba(95, 127, 115, 0.78);
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 0;
  line-height: 0;
  color: transparent;
  pointer-events: none;
}

#home .search-wrapper::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 31px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(95, 127, 115, 0.78);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

#home #searchInput {
  padding-left: 50px;
}

#home #searchInput::placeholder {
  color: rgba(38, 61, 52, 0.62);
  opacity: 1;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer {
  padding: 7px 10px max(7px, env(safe-area-inset-bottom));
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply {
  gap: 6px;
  padding: 1px 1px 2px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row {
  gap: 8px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply .guest-case-reply-input-row textarea,
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row textarea {
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(95, 127, 115, 0.08);
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-send {
  border-radius: 16px;
}

/* ===== GUEST STARTUP AND LAYOUT POLISH TASK 47A-FIX4 ===== */
:root {
  --guest-compact-header-min-height: 68px;
  --guest-compact-header-top-padding: 12px;
  --guest-compact-header-bottom-padding: 12px;
  --guest-back-button-min-height: 44px;
  --guest-back-button-inline-padding: 12px;
}

.screen:not(#home):not(#mitteilungen) > .header.small {
  min-height: var(--guest-compact-header-min-height) !important;
  padding: var(--guest-compact-header-top-padding) var(--space-page-x) var(--guest-compact-header-bottom-padding) !important;
}

.header.small .compact-header-back {
  min-width: var(--guest-back-button-min-height);
  min-height: var(--guest-back-button-min-height);
  padding-left: var(--guest-back-button-inline-padding) !important;
  padding-right: var(--guest-back-button-inline-padding) !important;
  white-space: nowrap;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer {
  padding: 9px 12px max(9px, env(safe-area-inset-bottom));
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply {
  gap: 8px;
  padding: 10px 11px 11px;
  border: 1px solid rgba(95, 127, 115, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(31, 49, 43, 0.10);
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row {
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-detail-fixed-composer .guest-case-reply .guest-case-reply-input-row textarea,
#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-input-row textarea {
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 16px;
}

#mitteilungen.case-detail-screen #guestHelpApp.case-detail-mode .guest-case-reply-send {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 16px;
}

/* ===== RESPONSIVE HEADER POPOVER CONTRACT TASK 49G ===== */
:root {
  --header-safe-area-left: env(safe-area-inset-left);
  --header-safe-area-right: env(safe-area-inset-right);
}

.auth-bar {
  width: 100%;
  min-width: 0;
  padding-left: max(15px, calc(env(safe-area-inset-left) + 8px));
  padding-right: max(15px, calc(env(safe-area-inset-right) + 8px));
  overflow: visible;
}

.auth-bar-controls {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end !important;
  gap: 8px;
}

.auth-bar-controls > * {
  min-width: 0;
}

.language-switcher {
  width: 72px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 72px;
}

.language-switcher-trigger {
  min-width: 44px;
  min-height: 44px;
}

.language-switcher-value {
  min-width: 0;
  letter-spacing: 0;
}

.auth-messages,
.auth-network-status,
.auth-help {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  flex: 0 0 44px;
}

.auth-trigger {
  width: auto !important;
  height: 44px !important;
  min-width: 52px !important;
  min-height: 44px !important;
  max-width: 150px !important;
  flex: 0 1 150px;
  padding: 7px 10px 7px 8px;
}

.auth-trigger .auth-label {
  display: block;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-trigger .auth-icon-wrap,
.auth-trigger .auth-chevron {
  display: inline-flex;
  flex: 0 0 auto;
}

.header-popover {
  position: fixed !important;
  left: var(--header-popover-left, 16px) !important;
  top: var(--header-popover-top, 62px) !important;
  right: auto !important;
  bottom: auto !important;
  box-sizing: border-box;
  max-width: calc(100vw - 32px) !important;
  max-height: var(--header-popover-max-height, calc(100dvh - 78px)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateY(-2px) !important;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 3060 !important;
}

.header-popover--positioning {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.header-popover--open {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  transition-delay: 0s;
}

.header-popover--language {
  width: 190px;
  min-width: 0;
}

.header-popover--connectivity {
  width: min(280px, calc(100vw - 32px));
  min-width: min(230px, calc(100vw - 32px));
}

.header-popover--account {
  width: 210px;
  min-width: 0;
}

.auth-menu-backdrop {
  display: none !important;
}

#authBar #networkStatusPopover .network-status-popover__icon svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

@media (max-width: 419px) {
  .auth-bar {
    padding-left: max(8px, calc(env(safe-area-inset-left) + 6px));
    padding-right: max(8px, calc(env(safe-area-inset-right) + 6px));
  }

  .auth-bar-controls {
    gap: 5px;
  }

  .language-switcher {
    width: 56px !important;
    flex-basis: 56px;
  }

  .language-switcher-trigger {
    padding: 0 7px 0 9px;
  }

  .language-switcher-value {
    font-size: 12px;
  }

  .auth-trigger {
    min-width: 52px !important;
    max-width: 112px !important;
    flex-basis: 112px;
    gap: 5px;
    padding-left: 6px;
    padding-right: 7px;
  }
}

@media (max-width: 359px) {
  .auth-bar {
    padding-left: max(6px, calc(env(safe-area-inset-left) + 4px));
    padding-right: max(6px, calc(env(safe-area-inset-right) + 4px));
  }

  .auth-bar-controls {
    gap: 4px;
  }

  .auth-trigger {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    flex: 0 0 54px;
    justify-content: center;
    gap: 3px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .auth-trigger .auth-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-popover {
    transition: none;
  }
}

/* ===== ANDROID LOGIN VISUAL VIEWPORT ===== */
#login.guest-login-keyboard-active {
  top: var(--guest-login-viewport-offset-top) !important;
  bottom: auto !important;
  height: var(--guest-login-viewport-height) !important;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-top: calc(var(--guest-header-compact-height) + 64px);
  scroll-padding-bottom: 24px;
}

#login.guest-login-keyboard-active > .section {
  min-height: max(0px, calc(var(--guest-login-viewport-height) - var(--guest-header-compact-height) - 72px));
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding-top: 10px;
  padding-bottom: 24px;
}

#login.guest-login-keyboard-active > .section > h3,
#login.guest-login-keyboard-active > .section > .info-box {
  flex: 0 0 auto;
}

#login.guest-login-keyboard-active > .section > h3 {
  margin-top: 8px;
  margin-bottom: 10px;
}

#login.guest-login-keyboard-active > .section > .info-box.highlight {
  margin-top: 6px;
}

#login.guest-login-keyboard-active .form-group,
#login.guest-login-keyboard-active #loginReservation,
#login.guest-login-keyboard-active #loginName,
#login.guest-login-keyboard-active #loginSubmitButton {
  scroll-margin-top: calc(var(--guest-header-compact-height) + 64px);
  scroll-margin-bottom: 24px;
}
