body{font-family:system-ui,sans-serif;margin:0;color:#1e293b;line-height:1.5}.page-container{max-width:1100px;margin:0 auto;padding:0 18px}h1{margin-bottom:0}.muted{color:#64748b}.layout{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:0px}.panel{border:1px solid #cbd5e1;border-radius:12px;padding:16px}.bubble{padding:12px 14px;border-radius:10px;margin:12px 0;white-space:pre-wrap;background:#f1f5f9}.bubble.user{background:#dbeafe}textarea{width:100%;box-sizing:border-box;padding:12px;font:inherit;min-height:90px;border:1px solid #94a3b8;border-radius:8px}button{background:#155eef;color:white;border:0;border-radius:8px;padding:10px 16px;font:inherit;cursor:pointer;margin-top:8px}.secondary{background:#475569}.error{color:#991b1b;background:#fee2e2;padding:12px;border-radius:8px}.profile{overflow-wrap:anywhere}.portal-link{display:block;background:#155eef;color:#fff;text-align:center;text-decoration:none;font-weight:600;border-radius:8px;padding:11px 12px;margin:10px 0}.portal-link:hover,.portal-link:focus{background:#1048b7}.portal-note{font-size:.9rem;margin:6px 0 12px}.portal-status{font-size:.9rem}dt{font-weight:600;margin-top:12px}dd{margin:2px 0 0;color:#475569}@media(max-width:700px){.layout{grid-template-columns:1fr}}
.site-header{background:#fff;border-bottom:1px solid #e2e8f0}.site-header-inner{display:flex;align-items:center;justify-content:space-between;min-height:90px;padding-top:12px;padding-bottom:12px}.site-logo{display:inline-flex;align-items:center;text-decoration:none}.site-logo img{display:block;width:230px;max-width:100%;height:auto}.site-main{padding-top:22px;padding-bottom:28px}.site-footer{border-top:1px solid #e2e8f0;padding:18px 0 30px}.site-footer .muted{margin:0; line-height: 1.2;}@media(max-width:700px){.site-header-inner{min-height:76px}.site-logo img{width:min(270px,78vw)}}

/* Dezentes Layout-Update. Schriftgrößen, -farben und -gewichte aus dem Original bleiben erhalten. */
body{background:#f8fafc}
.site-header,.site-footer{background:#fff}
.site-main{padding-top:28px}
.layout{grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:22px;align-items:start}
.panel{min-width:0;background:#fff;border:1px solid #e3eaf2;border-radius:14px;padding:22px;box-shadow:0 2px 12px rgba(10,45,85,.035)}
#chat-messages{margin:14px 0 22px}
.bubble{max-width:91%;width:fit-content;box-sizing:border-box;padding:13px 16px;border-radius:13px;background:#f0f4f8;margin:13px 0;overflow-wrap:anywhere}
.bubble.user{background:#e2effb;margin-left:auto;border-bottom-right-radius:5px}
.bubble.assistant{border-bottom-left-radius:5px}
#chat-form{padding-top:16px;border-top:1px solid #e3eaf2}
#chat-form label{display:block;margin-bottom:8px}
#chat-form textarea{background:#fff;border:1px solid #bdcddd;border-radius:10px;resize:vertical;transition:border-color .15s,box-shadow .15s}
#chat-form textarea:focus{outline:0;border-color:#2688bd;box-shadow:0 0 0 3px rgba(0,169,232,.13)}
#send-button{border-radius:9px}
button:focus-visible,.portal-link:focus-visible{outline:3px solid #69b9e6;outline-offset:2px}
#reset-form{margin-top:12px}
.profile h3{padding-top:16px;border-top:1px solid #e3eaf2}
.profile dl{margin:14px 0 20px}
.profile ul{padding-left:20px}
.portal-link{border-radius:9px}
@media(max-width:700px){.layout{grid-template-columns:minmax(0,1fr);gap:16px}.panel{padding:17px}.bubble{max-width:96%}.site-main{padding-top:18px}}

/* Header-Logo und Footer-Navigation */

.site-footer .footer-nav a,.site-footer .footer-nav a:visited{color:#64748b}

/* Dezenter Reset-Link rechts oben im Chat. Verwendet dasselbe Formular wie "Neues Gespräch". */
.chat-panel-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.chat-reset-link{background:transparent;border:0;color:#64748b;font:inherit;font-size:.875rem;font-weight:400;line-height:1.4;padding:0;margin:0;cursor:pointer;white-space:nowrap;text-decoration:underline;text-decoration-color:#cbd5e1;text-underline-offset:3px}
.chat-reset-link:hover{background:transparent;color:#475569;text-decoration-color:currentColor}
.chat-reset-link:focus-visible{outline:2px solid #69b9e6;outline-offset:3px;border-radius:2px}

/* Kein zusaetzlicher Abstand durch den neuen Zuruecksetzen-Link im Chatkopf. */
.chat-panel-header ~ #chat-messages{margin-top:0}
.chat-panel-header ~ #chat-messages > .bubble:first-child{margin-top:0}

/* Nur fuer bewusst praesentierte Suchlinks im Chat.
   Die bestehende Chat- und Sidebar-Gestaltung bleibt unveraendert. */
.chat-results{white-space:normal}
.chat-results-intro{white-space:pre-wrap;margin:0 0 14px}
.chat-results-buttons{display:flex;flex-direction:column;gap:10px}
.chat-results-button,.chat-results-button:visited{
  display:flex;align-items:center;justify-content:center;gap:8px;
  box-sizing:border-box;width:100%;min-height:45px;padding:11px 14px;
  border-radius:9px;background:#155eef;color:#fff;text-decoration:none;
  font:inherit;font-weight:600;text-align:center;line-height:1.4;
  transition:background .15s ease;
}
.chat-results-button:hover,.chat-results-button:focus{background:#1048b7;color:#fff}
.chat-results-button:focus-visible{outline:3px solid #69b9e6;outline-offset:3px}
.chat-results-outro{white-space:pre-wrap;margin-top:14px;color:#475569;font-size:.93em}
@media(max-width:700px){.chat-results-button{min-height:46px}}

@media (max-width: 640px) {
    .hide-on-mobile {
        display: none;
    }
}

/* Schmale Partnerleiste vor dem Footer – Logos 40px hoch, flexibel für 2–8 Partner. */
.partner-strip{border-top:1px solid #e3eaf2;background:#fff;padding:18px 0 22px}
.partner-strip-title{margin:0 0 12px;color:#64748b;text-align:center;font-size:.875rem;font-weight:500}
.partner-strip-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 32px}
.partner-strip-link{display:inline-flex;align-items:center;justify-content:center;min-width:120px;min-height:44px;text-decoration:none;border-radius:5px;transition:opacity .15s ease}
.partner-strip-link:hover{opacity:.76}
.partner-strip-link:focus-visible{outline:2px solid #69b9e6;outline-offset:4px}
.partner-strip-logo{display:block;height:40px;width:auto;max-width:min(230px,72vw);object-fit:contain}
.partner-strip-invite,.partner-strip-invite:visited{color:#8190a3;font-size:1.06rem;font-weight:650;letter-spacing:-.01em;white-space:nowrap}
.partner-strip-invite:hover{color:#52657e;text-decoration:underline;text-decoration-color:#bac8d6}
.partner-page{max-width:780px}
.partner-page-entry{margin-top:24px;padding-top:6px}
.partner-page-entry h2{font-size:1.22rem;margin-bottom:8px}
.partner-page-entry p{margin-top:8px}
.partner-page-cooperation{border-top:1px solid #e3eaf2;margin-top:30px;padding-top:14px}
.partner-page-disclosure{margin-top:28px}
@media(max-width:700px){.partner-strip-links{gap:12px 22px}.partner-strip{padding:16px 0 20px}}


/* Reise-KI antwortet: die fuenf gelb-orangen Punkte aus dem Logo.
   Nur waehrend einer laufenden Chat-Anfrage sichtbar. */
#chat-status.chat-status-thinking{display:flex;align-items:center;gap:12px}
.chat-thinking-dots{display:inline-flex;align-items:center;gap:6px;height:15px}
.chat-thinking-dot{
  display:block;width:7px;height:7px;flex:0 0 7px;border-radius:50%;
  animation:reise-ki-dot-pulse 1.4s ease-in-out infinite;
  transform-origin:center;opacity:.65;
}
.chat-thinking-dot:nth-child(1){background:#ffc52a;animation-delay:0s}
.chat-thinking-dot:nth-child(2){background:#ffad19;animation-delay:.14s}
.chat-thinking-dot:nth-child(3){background:#ff9510;animation-delay:.28s}
.chat-thinking-dot:nth-child(4){background:#ff800a;animation-delay:.42s}
.chat-thinking-dot:nth-child(5){background:#f46b00;animation-delay:.56s}
@keyframes reise-ki-dot-pulse{
  0%,38%,100%{transform:scale(1);opacity:.65}
  18%{transform:scale(1.38);opacity:1}
}
@media (prefers-reduced-motion: reduce){
  .chat-thinking-dot{animation:none;opacity:1}
}

/* Einladende Sidebar vor der ersten erfassten Reiseangabe. */
.profile .sidebar-welcome-benefits{
  list-style:none;
  margin:22px 0 20px;
  padding:0;
  display:grid;
  gap:15px;
}
.sidebar-welcome-benefits li{
  display:flex;
  align-items:flex-start;
  gap:11px;
  line-height:1.5;
}
.sidebar-welcome-benefits li::before{
  content:"✓";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 23px;
  width:23px;
  height:23px;
  box-sizing:border-box;
  border-radius:50%;
  color:#117f87;
  background:#e3f7f5;
  font-size:14px;
  font-weight:700;
  line-height:1;
}
.sidebar-welcome-image{
  display:block;
  width:min(245px,100%);
  height:auto;
  margin:15px auto 8px;
  border-radius:7px;
}
.sidebar-welcome-hint{
  margin:10px auto 2px;
  max-width:290px;
  color:#64748b;
  font-size:.9rem;
  text-align:center;
}


/* Kontaktformular / Beta-Feedback – vorhandene Panel- und Buttonfarben weiterverwenden. */
.chat-feedback-link{display:inline-block;margin-left:14px;font-size:.9rem;color:#64748b;text-decoration:underline;text-decoration-color:#cbd5e1;text-underline-offset:3px}
.chat-feedback-link:hover{color:#155eef}
.contact-page{max-width:760px}
.contact-form{margin-top:22px}
.contact-form .contact-field{margin:0 0 17px}
.contact-form label{display:block;font-weight:600;margin-bottom:6px}
.contact-form input[type=email],.contact-form select,.contact-form textarea{
  box-sizing:border-box;width:100%;font:inherit;color:inherit;background:#fff;
  border:1px solid #bdcddd;border-radius:9px;padding:10px 12px;
}
.contact-form input[type=email]:focus,.contact-form select:focus,.contact-form textarea:focus{
  outline:0;border-color:#2688bd;box-shadow:0 0 0 3px rgba(0,169,232,.13);
}
.contact-form .contact-help{margin:5px 0 0;font-size:.89rem;color:#64748b}
.contact-form button{margin-top:2px}
.contact-form .contact-privacy{margin:15px 0 0;font-size:.89rem;color:#64748b}
.contact-success{border:1px solid #bbdec6;background:#f0fbf3;border-radius:9px;padding:14px 16px}
.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:420px){.chat-feedback-link{margin-left:8px}}

/* Blindes-Huhn-Gimmick: unter dem Chat, ohne Eingriff in den eigentlichen Chat. */
.chat-column{min-width:0}
.chat-easter-egg{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  box-sizing:border-box;width:100%;margin:15px 0 0;padding:5px 10px 8px;
  border:0;border-radius:9px;background:transparent;color:#a2acba;
  font:inherit;font-size:1.09rem;font-weight:400;line-height:1.45;
  text-align:center;cursor:pointer;
}
.chat-easter-egg:hover{background:transparent;color:#748398}
.chat-easter-egg:focus-visible{outline:2px solid #69b9e6;outline-offset:2px}
.chat-easter-egg-eyes{display:inline-flex;align-items:center;justify-content:center;gap:4px;color:#b0b9c6}
.chat-easter-egg-eye{
  display:block;position:relative;box-sizing:border-box;
  width:16px;height:19px;border:1.5px solid currentColor;border-radius:49%;
  transform-origin:center;animation:chick-eye-blink 9s ease-in-out infinite;
}
.chat-easter-egg-pupil{
  display:block;position:absolute;top:7px;left:4px;width:5px;height:6px;
  border-radius:50%;background:currentColor;
  animation:chick-eye-look 9s ease-in-out infinite;
}
@keyframes chick-eye-look{
  0%,23%,34%,47%,59%,100%{transform:translateX(0)}
  27%,31%{transform:translateX(-3px)}
  51%,55%{transform:translateX(4px)}
}
@keyframes chick-eye-blink{
  0%,12%,14%,62%,64%,100%{transform:scaleY(1)}
  13%,63%{transform:scaleY(.1)}
}
/* Sobald das Reiseprofil angezeigt wird, ist der Gimmick am Desktop unsichtbar. */
@media(min-width:701px){
  .layout:has(#sidebar-region .profile:not(.sidebar-welcome)) .chat-easter-egg{display:none}
}
/* Mobil: Chat, Sidebar und Gimmick in dieser Reihenfolge (auch nach AJAX-Updates). */
@media(max-width:700px){
  .chat-column{display:contents}
  .chat-column>.panel{grid-column:1;grid-row:1}
  #sidebar-region{grid-column:1;grid-row:2;min-width:0}
  .chat-easter-egg{grid-column:1;grid-row:3;margin:0;padding:0 5px 3px;font-size:.82rem;gap:3px}
  .chat-easter-egg-eyes{transform:scale(.85);transform-origin:center top}
}
@media(prefers-reduced-motion:reduce){
  .chat-easter-egg-eye,.chat-easter-egg-pupil{animation:none}
}


/* Reiseprofil-Sidebar: verfuegbare Angebote zuerst, danach das Suchprofil. */
.sidebar-search-actions{
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid #e3eaf2;
}
.sidebar-search-actions .portal-link:first-child{margin-top:0}
.sidebar-search-actions .portal-link:last-of-type{margin-bottom:0}
.sidebar-search-actions .portal-note{margin-top:10px}
.sidebar-results-pending{
  display:flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:100%;min-height:46px;
  padding:11px 12px;border:1px solid #e2e8f0;border-radius:9px;
  background:#f1f5f9;color:#64748b;
  font-weight:600;text-align:center;line-height:1.4;
  cursor:default;
}
.sidebar-search-profile h2{margin-top:0}
.sidebar-search-profile .sidebar-search-hint{font-size:.9rem;margin:22px 0 0}


/* Mobil: Den gesamten Aktionsblock nach den Reisewuenschen anzeigen,
   egal ob er Angebotsbuttons oder "Beratung noch offen" enthaelt.
   Zielhinweise wandern gemeinsam mit den Links nach unten. */
@media (max-width:700px){
  .sidebar-search-profile{
    display:flex;
    flex-direction:column;
  }
  .sidebar-search-profile > .sidebar-search-actions{
    order:1;
    margin:18px 0 0;
    padding:18px 0 0;
    border-bottom:0;
    border-top:1px solid #e3eaf2;
  }
}

/* Mobil: Margin-Addition zwischen aufeinanderfolgenden Flex-Items verhindern.
   Desktop-Verhalten der kollabierenden Block-Margins nachbilden. */
@media (max-width:700px){
  .sidebar-search-profile > :is(h2,h3,p,dl,ul) + :is(h2,h3,p,dl,ul){
    margin-top:0;
  }
}


/* Startansicht: kleiner Hinweis, kein Bestandteil der KI-Nachrichten. */
.chat-entry-note{display:flex;align-items:center;gap:8px;margin:-4px 0 18px;color:#64748b;font-size:.9rem;line-height:1.45}
.chat-entry-note strong{color:#334155;font-weight:600}
.chat-entry-note-check{display:inline-flex;align-items:center;justify-content:center;flex:0 0 19px;width:19px;height:19px;border-radius:50%;background:#dff6f2;color:#087e83;font-weight:700;font-size:.82rem}
.chat-feedback-prestart{display:inline-block;color:#64748b;font-size:.9rem;margin-top:5px;text-decoration:underline;text-decoration-color:#cbd5e1;text-underline-offset:3px}
.chat-feedback-prestart:hover{color:#155eef}
/* Das hidden-Attribut muss auch gegen vorhandene Klassen-Styles gewinnen. */
#chat-entry-note[hidden], #reset-form[hidden], .chat-reset-link[hidden], #chat-feedback-prestart[hidden]{display:none!important}

/* Öffentliche Hauptnavigation: Desktop rechts vom Logo, mobil darunter. */
.header-nav{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
  gap:8px 22px;margin-left:auto;font-size:.93rem;line-height:1.5;
}
.header-nav a,.header-nav a:visited{
  display:inline-block;box-sizing:border-box;padding:6px 0 4px;
  border-bottom:2px solid transparent;color:#334155;
  text-decoration:none;white-space:nowrap;
}
.header-nav a:hover,.header-nav a:focus-visible{
  color:#155eef;border-bottom-color:#155eef;
}
.header-nav a[aria-current="page"],.header-nav a[aria-current="page"]:visited{
  color:#0a2b58;font-weight:600;border-bottom-color:#155eef;
}
.header-nav a:focus-visible{
  outline:2px solid #69b9e6;outline-offset:3px;border-radius:2px;
}
.header-nav .header-chat-link,.header-nav .header-chat-link:visited{
  margin-left:2px;padding-left:18px;border-left:1px solid #e2e8f0;
  color:#155eef;font-weight:600;
}
@media (max-width:860px){
  .site-header-with-nav{
    flex-direction:column;align-items:flex-start;justify-content:center;
    gap:6px;min-height:0;padding-top:12px;padding-bottom:12px;
  }
  .header-nav{
    width:100%;justify-content:flex-start;gap:4px 20px;
    margin-left:0;font-size:.9rem;
  }
}
@media (max-width:420px){
  .header-nav{gap:4px 14px;font-size:.86rem}
  .header-nav .header-chat-link{padding-left:12px}
}

/* Schalter für die Matomo-Besucherstatistik */
.analytics-preference{margin:1rem 0}
.analytics-toggle{
  display:inline-flex;align-items:center;flex-wrap:wrap;gap:.45rem .65rem;
  max-width:100%;min-height:44px;margin:0;padding:.4rem .8rem;
  border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#1e293b;text-align:left;
}
.analytics-toggle:not(:disabled):hover{background:#e2effb}
.analytics-toggle:disabled{cursor:default}
.analytics-toggle-track{
  display:flex;align-items:center;flex:none;width:2.25rem;height:1.3rem;padding:.15rem;
  box-sizing:border-box;border-radius:1rem;background:#64748b;
}
.analytics-toggle-track::before{content:"";width:1rem;height:1rem;border-radius:50%;background:#fff}
.analytics-toggle[aria-checked="true"] .analytics-toggle-track{justify-content:flex-end;background:#155eef}
#analytics-status,.analytics-preference-note{font-size:.875rem;color:#475569}
.analytics-preference-note{margin:.5rem 0 0}
