/* GenussWerk V503 · shared dark/gold theme for standalone pages */
:root{
  --gw503-bg:#141210;
  --gw503-side:#100f0d;
  --gw503-surface:#211e19;
  --gw503-raised:#2a251e;
  --gw503-line:#494033;
  --gw503-line-strong:#6b593c;
  --gw503-gold:#d7b77b;
  --gw503-gold-soft:#e5c991;
  --gw503-ink:#f3ecdf;
  --gw503-muted:#b9af9e;
  --gw503-danger:#e99587;
  --gw503-success:#b6debb;
}
html:has(body.gw-standalone-dark-v503){
  background:var(--gw503-bg);
  color-scheme:dark;
}
body.gw-standalone-dark-v503{
  margin:0!important;
  background:
    radial-gradient(circle at 50% -10%,rgba(110,82,40,.14),transparent 34%),
    var(--gw503-bg)!important;
  color:var(--gw503-ink)!important;
  font-family:Arial,Helvetica,sans-serif!important;
  -webkit-font-smoothing:antialiased;
}
body.gw-standalone-dark-v503 *{box-sizing:border-box}
body.gw-standalone-dark-v503 :focus-visible{
  outline:3px solid var(--gw503-gold)!important;
  outline-offset:3px!important;
}
body.gw-standalone-dark-v503 a{color:var(--gw503-gold-soft)!important}
body.gw-standalone-dark-v503 :is(h1,h2,h3,h4,strong,label,legend,dt){
  color:var(--gw503-ink)!important;
  text-shadow:none!important;
}
body.gw-standalone-dark-v503 :is(p,dd,.help,.small,.subtle,.operator,.inquiry-meta){
  color:var(--gw503-muted)!important;
}
body.gw-standalone-dark-v503 main{
  color:var(--gw503-ink)!important;
  background:var(--gw503-surface)!important;
  border:1px solid var(--gw503-line)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.22)!important;
}
body.gw-standalone-dark-v503 :is(input,select,textarea){
  background:#181613!important;
  color:var(--gw503-ink)!important;
  border:1px solid #756448!important;
  border-radius:9px!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.gw-standalone-dark-v503 :is(input,textarea)::placeholder{
  color:#aa9b84!important;
  opacity:1!important;
}
body.gw-standalone-dark-v503 :is(input,select,textarea):focus{
  outline:2px solid var(--gw503-gold)!important;
  outline-offset:2px!important;
}
body.gw-standalone-dark-v503 :is(button,.button,.button-link,.video-link){
  background:var(--gw503-gold)!important;
  color:#221b11!important;
  border:1px solid var(--gw503-gold)!important;
  border-radius:9px!important;
  box-shadow:none!important;
  font-weight:700!important;
}
body.gw-standalone-dark-v503 :is(button,.button,.button-link,.video-link):hover{
  filter:brightness(1.08);
}
body.gw-standalone-dark-v503 :is(button.secondary,.secondary){
  background:#2a251e!important;
  color:#e0c795!important;
  border-color:#65543a!important;
}
body.gw-standalone-dark-v503 :is(button.danger,.danger,.inquiry-delete){
  background:#79423a!important;
  color:#fff0e9!important;
  border-color:#bf7164!important;
}
body.gw-standalone-dark-v503 :is(.notice,.table-notice){
  background:#332a1c!important;
  color:#ead9b6!important;
  border-color:#9a7d4b!important;
}
body.gw-standalone-dark-v503 .error{
  background:#462621!important;
  color:#ffc3b5!important;
  border-color:#9c5549!important;
}
body.gw-standalone-dark-v503 :is(.brand-header,.partner-header,header){
  background:
    radial-gradient(ellipse at 85% 100%,rgba(113,82,37,.26),transparent 55%),
    #181613!important;
  color:var(--gw503-ink)!important;
  border-color:#806944!important;
}
body.gw-standalone-dark-v503 :is(.logo-panel,.partner-logos){
  background:#100f0d!important;
  border-color:#3d3529!important;
}
body.gw-standalone-dark-v503 :is(.eyebrow,.step,.tour-kicker,.inquiry-number){
  color:var(--gw503-gold)!important;
}
body.gw-standalone-dark-v503 :is(.brand-copy h1,.hero h1,h1){
  color:var(--gw503-ink)!important;
}
body.gw-standalone-dark-v503 :is(.contact-card,footer){
  background:#171511!important;
  color:var(--gw503-muted)!important;
  border-color:#3d3529!important;
}
body.gw-standalone-dark-v503 :is(.contact-card strong,footer strong){
  color:var(--gw503-ink)!important;
}

/* Internal inquiry pages */
body.gw-standalone-dark-v503 main:has(.inquiry-entry),
body.gw-standalone-dark-v503.gw-internal-page-v492 main{
  max-width:1120px!important;
  background:var(--gw503-bg)!important;
  border-color:var(--gw503-line)!important;
}
body.gw-standalone-dark-v503 .page-content{background:var(--gw503-bg)!important}
body.gw-standalone-dark-v503 .inquiry-entry{
  background:var(--gw503-surface)!important;
  border:1px solid var(--gw503-line)!important;
  color:var(--gw503-ink)!important;
  box-shadow:0 5px 18px rgba(0,0,0,.14)!important;
}
body.gw-standalone-dark-v503 .inquiry-name{color:var(--gw503-gold-soft)!important}
body.gw-standalone-dark-v503 .inquiry-state{
  background:#342c20!important;
  color:#e1c58b!important;
  border:1px solid #56482f!important;
}
body.gw-standalone-dark-v503 .inquiry-state b{color:#ffb8a4!important}
body.gw-standalone-dark-v503 .inquiry-close-panel{
  background:#211916!important;
  border-color:#9c5549!important;
}
body.gw-standalone-dark-v503 .inquiry-close-panel>summary{
  background:#79423a!important;
  color:#fff0e9!important;
}
body.gw-standalone-dark-v503 .inquiry-close-panel>form{background:#211916!important}
body.gw-standalone-dark-v503 .page-content nav{
  color:var(--gw503-muted)!important;
}
body.gw-standalone-dark-v503 dl{
  padding:20px!important;
  background:var(--gw503-surface)!important;
  border:1px solid var(--gw503-line)!important;
  border-radius:14px!important;
}
body.gw-standalone-dark-v503 dt{color:var(--gw503-gold-soft)!important}
body.gw-standalone-dark-v503 dd{border-bottom:1px solid #352f27;padding-bottom:10px!important}
body.gw-standalone-dark-v503 dd:last-child{border-bottom:0}

/* Email preview deliberately stays paper-like, but is framed as a preview. */
body.gw-standalone-dark-v503 #reply{
  background:#fff!important;
  color:#222!important;
  border:3px solid #6a593d!important;
  box-shadow:0 8px 28px rgba(0,0,0,.25)!important;
}
body.gw-standalone-dark-v503 #reply :is(p,strong,div){color:#222!important}
body.gw-standalone-dark-v503 #reply a{color:#76542f!important}

/* Partner/public inquiry pages */
body.gw-standalone-dark-v503 .hero,
body.gw-standalone-dark-v503 .content{background:var(--gw503-bg)!important}
body.gw-standalone-dark-v503 :is(.company-card,.form-grid,.block-card,.partner-terms,.portal-welcome,.partner-event,.regional-highlight,.fair-collaboration){
  background:var(--gw503-surface)!important;
  border-color:var(--gw503-line)!important;
  color:var(--gw503-ink)!important;
  box-shadow:none!important;
}
body.gw-standalone-dark-v503 :is(.block-card:has(input:checked),.yes-no .yes-no-option:has(input:checked),.tour-choice:has(input:checked)){
  background:#3b3020!important;
  border-color:#c4a063!important;
}
body.gw-standalone-dark-v503 .yes-no .yes-no-option{
  background:#181613!important;
  border-color:#65543a!important;
}
body.gw-standalone-dark-v503 .partner-tabs{
  border-color:var(--gw503-line)!important;
}
body.gw-standalone-dark-v503 .partner-tabs a{
  background:#211e19!important;
  border-color:#65543a!important;
}
body.gw-standalone-dark-v503 .partner-tabs a[aria-current=page]{
  background:var(--gw503-gold)!important;
  color:#221b11!important;
}
body.gw-standalone-dark-v503 .status-badge.red{background:#462621!important;color:#ffc3b5!important;border-color:#9c5549!important}
body.gw-standalone-dark-v503 .status-badge.orange{background:#43341e!important;color:#f1d79b!important;border-color:#8b6c36!important}
body.gw-standalone-dark-v503 .status-badge.green{background:#25392e!important;color:#b6debb!important;border-color:#54765e!important}

/* Private guided inquiry */
body.gw-standalone-dark-v503:has(#private-tour){
  background:var(--gw503-bg)!important;
  color:var(--gw503-ink)!important;
}
body.gw-standalone-dark-v503:has(#private-tour) :is(.brand-header,.logo-panel){
  background:#100f0d!important;
}
body.gw-standalone-dark-v503 #private-tour :is(.tour-choice,.tour-option,.tour-summary){
  background:var(--gw503-surface)!important;
  color:var(--gw503-ink)!important;
  border-color:var(--gw503-line)!important;
}
body.gw-standalone-dark-v503 #private-tour .tour-choice strong{
  color:var(--gw503-ink)!important;
}
body.gw-standalone-dark-v503 #private-tour .tour-choice .tour-price{
  color:var(--gw503-gold-soft)!important;
}
body.gw-standalone-dark-v503 #private-tour :is(.tour-help,.tour-choice span span){
  color:var(--gw503-muted)!important;
}
body.gw-standalone-dark-v503 #private-tour .tour-included{
  background:#332a1c!important;
  color:#ead9b6!important;
  border-color:#9a7d4b!important;
}
body.gw-standalone-dark-v503 #tour-progress{
  background:rgba(20,18,16,.96)!important;
  border-bottom:1px solid var(--gw503-line)!important;
}
body.gw-standalone-dark-v503 #tour-controls{
  border-color:var(--gw503-line)!important;
}
body.gw-standalone-dark-v503 #private-tour .tour-back{
  background:#2a251e!important;
  color:#e0c795!important;
  border-color:#65543a!important;
}

/* Video library and offer pages */
body.gw-standalone-dark-v503 .upload,
body.gw-standalone-dark-v503 .video-card,
body.gw-standalone-dark-v503 fieldset{
  background:var(--gw503-raised)!important;
  color:var(--gw503-ink)!important;
  border-color:var(--gw503-line)!important;
}
body.gw-standalone-dark-v503 fieldset legend{color:var(--gw503-gold-soft)!important}
body.gw-standalone-dark-v503 progress{accent-color:var(--gw503-gold)!important}
body.gw-standalone-dark-v503 video{
  background:#080706!important;
  border:1px solid #4d4131!important;
}

/* Login/password pages */
body.gw-standalone-dark-v503 .card{
  background:rgba(33,30,25,.97)!important;
  color:var(--gw503-ink)!important;
  border:1px solid var(--gw503-line)!important;
  border-top:3px solid var(--gw503-gold)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.42)!important;
}
body.gw-standalone-dark-v503 .card :is(h1,label){color:var(--gw503-ink)!important}
body.gw-standalone-dark-v503 :is(.remember,.app-meta,.footer-meta,.info){color:var(--gw503-muted)!important}
body.gw-standalone-dark-v503 .app-version{color:var(--gw503-gold)!important}
body.gw-standalone-dark-v503 .password-toggle{
  background:transparent!important;
  color:var(--gw503-gold)!important;
  border:0!important;
}

/* Apple calendar page */
body.gw-standalone-dark-v503 main:has(#calendar-link){
  max-width:700px!important;
  padding:30px!important;
}
body.gw-standalone-dark-v503 #calendar-link{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;
}

/* Mobile */
@media(max-width:700px){
  body.gw-standalone-dark-v503 main{
    margin:10px!important;
    border-radius:16px!important;
  }
  body.gw-standalone-dark-v503 :is(.page-content,.content,article){
    padding-left:18px!important;
    padding-right:18px!important;
  }
  body.gw-standalone-dark-v503 :is(.brand-header,header){
    border-radius:16px 16px 0 0!important;
  }
}

/* Compact internal header: same visual language as the main app. */
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header{
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  align-items:center!important;
  gap:20px!important;
  min-height:0!important;
  background:#100f0d!important;
  border-bottom:1px solid #4a3d2b!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel{
  padding:14px 16px!important;
  background:#100f0d!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel img{
  width:100%!important;
  height:82px!important;
  max-height:82px!important;
  object-fit:contain!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .brand-copy{
  padding:22px 28px 22px 0!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .brand-copy h1{
  margin:4px 0 7px!important;
  font:700 34px/1.08 Arial,Helvetica,sans-serif!important;
  letter-spacing:-.7px!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .brand-copy>p:not(.eyebrow){
  margin:0 0 6px!important;
  color:#b9af9e!important;
  font-size:14px!important;
  line-height:1.5!important;
}
@media(max-width:700px){
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header{
    grid-template-columns:82px minmax(0,1fr)!important;
    gap:12px!important;
  }
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel{
    padding:12px 8px!important;
  }
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel img{
    height:62px!important;
    max-height:62px!important;
  }
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .brand-copy{
    padding:16px 14px 16px 0!important;
  }
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .brand-copy h1{
    font-size:26px!important;
  }
}

/* V504 · larger internal brand + consistent route back to Mein Tag */
body.gw-standalone-dark-v503 .gw503-back-home{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:auto!important;
  min-height:40px!important;
  margin:0 0 20px!important;
  padding:9px 13px!important;
  border:1px solid #65543a!important;
  border-radius:9px!important;
  background:#2a251e!important;
  color:#e0c795!important;
  text-decoration:none!important;
  font:700 13px/1.3 Arial,Helvetica,sans-serif!important;
  box-shadow:none!important;
}
body.gw-standalone-dark-v503 .gw503-back-home:hover{
  background:#352b1f!important;
  color:#f1d59c!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header{
  grid-template-columns:190px minmax(0,1fr)!important;
  gap:24px!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel{
  padding:16px 18px!important;
}
body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel img{
  width:100%!important;
  height:122px!important;
  max-height:122px!important;
}
@media(max-width:700px){
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header{
    grid-template-columns:118px minmax(0,1fr)!important;
    gap:14px!important;
  }
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel{
    padding:12px 9px!important;
  }
  body.gw-standalone-dark-v503.gw-internal-page-v492 .gw503-internal-header .logo-panel img{
    height:84px!important;
    max-height:84px!important;
  }
}
