/* docMeds Jobs: Oberfläche der installierten App (nur Handy, nur wenn als App geöffnet) */
.apptabs,.appsheet,.app-cta{display:none}

@media (max-width:820px){
  html.is-app{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
  html.is-app body{background:#f1f5f9;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  html.is-app input,html.is-app textarea,html.is-app select,html.is-app .job,html.is-app .tile,html.is-app p,html.is-app h1,html.is-app h2,html.is-app h3,html.is-app li,html.is-app td,html.is-app pre{-webkit-user-select:text;user-select:text}
  html.is-app a,html.is-app button,html.is-app .btn{touch-action:manipulation}
  html.is-app input,html.is-app select,html.is-app textarea{font-size:16px}

  /* Webseiten-Elemente ausblenden */
  html.is-app footer.site,html.is-app .burger,html.is-app .navtoggle,html.is-app nav.main,html.is-app .side,
  html.is-app .app-teaser-sec,html.is-app .pwa-banner,html.is-app .skip{display:none!important}

  /* Kopfleiste: schmal, nur Logo */
  html.is-app header.site{position:sticky;top:0}
  html.is-app header.site .bar{min-height:52px;justify-content:center}
  html.is-app header.site .logo{font-size:1.2rem}

  /* Inhalt: Platz für die untere Leiste, keine Webseiten-Abstände */
  html.is-app main{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  html.is-app .shell{display:block;padding:14px 0 8px}
  html.is-app .panel{padding:0}
  html.is-app .panel>h1{font-size:1.45rem;margin:2px 0 12px}
  html.is-app .container{width:100%;padding-left:14px;padding-right:14px}
  html.is-app,html.is-app body{overflow-x:hidden}
  html.is-app body{touch-action:pan-y}
  html.is-app .tablewrap,html.is-app .chips,html.is-app .side{touch-action:pan-x pan-y}
  html.is-app h1{font-size:1.5rem}
  html.is-app .block{padding:18px 0}

  /* Karten und Listen wie in einer App */
  html.is-app .card,html.is-app .job,html.is-app .tile{border:0;border-radius:18px;box-shadow:0 1px 3px rgba(13,27,42,.08),0 6px 18px rgba(13,27,42,.06)}
  html.is-app .job,html.is-app .tile{padding:16px;margin-bottom:12px}
  html.is-app .job:active,html.is-app .tile:active{transform:scale(.99);transition:transform .08s}
  html.is-app .btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center}
  html.is-app .tablewrap{border:0;border-radius:18px;box-shadow:0 1px 3px rgba(13,27,42,.08)}
  html.is-app table.data tr{background:#fff;border-radius:14px;margin:0 0 10px;box-shadow:0 1px 3px rgba(13,27,42,.08);border-top:0}

  /* Stellensuche: kompakt, Filter ausklappbar */
  html.is-app .pagehead{padding:14px 0 10px;background:var(--navy)}
  html.is-app .pagehead .lead,html.is-app .pagehead h1{display:none}
  html.is-app .pagehead .seg{margin-bottom:10px;display:flex}
  html.is-app .pagehead .seg a,html.is-app .pagehead .seg button{white-space:nowrap;padding:10px 6px;font-size:.84rem;gap:4px}
  html.is-app .seg .segnote{font-size:.58rem;padding:2px 6px;white-space:nowrap}
  html.is-app .filters{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;background:transparent;padding:0;border:0;box-shadow:none}
  html.is-app .filters input,html.is-app .filters select{background:#fff}
  html.is-app .filters input[type=search],html.is-app .filters input[type=text]{border-radius:14px;min-height:48px;border:0}
  html.is-app .filters .app-more{display:grid;gap:8px}
  html.is-app .filters .app-more[hidden]{display:none}
  html.is-app .filters .app-filter-toggle{background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:14px;min-height:44px;font-family:inherit;font-weight:700;font-size:.95rem}
  html.is-app .filters .btn{width:100%}
  html.is-app .chips{display:flex;gap:6px;overflow-x:auto;white-space:nowrap;padding-bottom:4px;-webkit-overflow-scrolling:touch}

  /* Stellendetail: Bewerben-Leiste unten */
  html.is-app .app-cta{display:block;position:fixed;left:12px;right:12px;bottom:calc(72px + env(safe-area-inset-bottom));z-index:45}
  html.is-app .app-cta a{display:flex;align-items:center;justify-content:center;min-height:50px;border-radius:999px;background:linear-gradient(var(--gold1),var(--gold2));color:var(--navy);font-weight:800;text-decoration:none;box-shadow:0 8px 24px rgba(13,27,42,.3)}
  html.is-app .sticky{position:static}

  /* Untere Leiste */
  html.is-app .apptabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,255,255,.96);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-top:1px solid #dbe3ec;padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
  .apptabs a,.apptabs button{flex:1 1 0;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border:0;background:none;color:#64748b;font-family:inherit;font-weight:600;font-size:.64rem;line-height:1.1;text-decoration:none;cursor:pointer}
  .apptabs .tabmore{padding-top:6px}
  /* Besucher ohne Konto: Anmelden (gelb) und Registrieren (türkis) als gut sichtbare Buttons */
  .apptabs-guest{gap:8px;padding-left:10px;padding-right:10px}
  .apptabs-guest a{flex:1.5 1 0;flex-direction:row;justify-content:center;gap:7px;min-height:48px;padding:0 8px;border-radius:14px;font-size:.9rem;font-weight:800;box-shadow:0 3px 10px rgba(13,27,42,.18)}
  .apptabs-guest a svg{width:22px;height:22px}
  .apptabs-guest a:first-of-type{background:linear-gradient(var(--gold1),var(--gold2));color:var(--navy)}
  .apptabs-guest a:nth-of-type(2){background:linear-gradient(var(--teal),var(--teal-d));color:#fff}
  .apptabs-guest a.on{color:inherit;outline:2px solid var(--navy);outline-offset:-2px}
  .apptabs-guest a:first-of-type.on{color:var(--navy)}
  .apptabs-guest a:nth-of-type(2).on{color:#fff}
  .apptabs-guest .tabmore{flex:.8 1 0;min-height:48px;justify-content:center;font-size:.72rem}
  .apptabs svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .apptabs a.on{color:var(--teal-d)}
  .apptabs a.on svg{stroke-width:2.3}
  .apptabs span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .apptabs .tabn{position:absolute;top:2px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#e11d48;color:#fff;font-size:.65rem;line-height:17px;text-align:center}

  /* "Mehr"-Menü von unten */
  html.is-app .appsheet:not([hidden]){display:block;position:fixed;inset:0;z-index:70}
  .appsheet-bg{position:absolute;inset:0;background:rgba(13,27,42,.5);animation:sheetBg .2s both}
  .appsheet-box{position:absolute;left:0;right:0;bottom:0;max-height:82vh;display:flex;flex-direction:column;background:#fff;border-radius:22px 22px 0 0;padding:8px 14px calc(14px + env(safe-area-inset-bottom));animation:sheetUp .25s cubic-bezier(.2,.8,.2,1) both}
  .appsheet-grip{width:42px;height:5px;border-radius:3px;background:#cbd5e1;margin:2px auto 8px}
  .appsheet-list{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .appsheet-list a,.appsheet-out,.appsheet-push{display:flex;align-items:center;justify-content:space-between;padding:14px 8px;border-bottom:1px solid #eef2f6;color:var(--ink);font-weight:600;text-decoration:none;font-size:1.02rem}
  .appsheet-list .navh{display:block;margin:12px 8px 2px;font-size:.74rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#94a3b8}
  .appsheet-push{width:100%;border:0;background:none;color:var(--teal-d);font-family:inherit;cursor:pointer;text-align:left}
  .appsheet-push[hidden]{display:none}
  .appsheet-push::after{content:'';width:10px;height:10px;border-radius:50%;background:#cbd5e1}
  .appsheet-push.on::after{background:#16a34a}
  .appsheet-out{width:100%;border:0;background:none;color:#b42318;font-family:inherit;cursor:pointer;margin-top:6px}
  @keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
  @keyframes sheetBg{from{opacity:0}to{opacity:1}}
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){.appsheet-bg,.appsheet-box{animation:none}}

@media (max-width:820px){
  html.is-app .push-card{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;margin:12px 14px 0;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,var(--navy),#12304c);color:#fff;box-shadow:0 6px 18px rgba(13,27,42,.18)}
  html.is-app .push-card strong{display:block;font-size:1.05rem;margin-bottom:2px}
  html.is-app .push-card span{font-size:.88rem;color:#cbd6e2;line-height:1.35}
  html.is-app .push-card .pc-txt{flex:1 1 200px;min-width:0}
  html.is-app .push-card .pc-act{display:flex;gap:8px;flex:1 1 100%}
  html.is-app .push-card button{flex:1;min-height:44px;border-radius:999px;border:0;font-family:inherit;font-weight:800;font-size:.95rem;cursor:pointer}
  html.is-app .push-card .pc-go{background:linear-gradient(var(--gold1),var(--gold2));color:var(--navy)}
  html.is-app .push-card .pc-no{background:rgba(255,255,255,.14);color:#fff}
}

/* Handy im normalen Browser: gleiche App-Oberfläche, aber Webseiten-Funktionen bleiben (Fußzeile mit Impressum, App-Hinweis, Text markieren, Zoomen) */
@media (max-width:820px){
  html.in-browser body{-webkit-user-select:auto;user-select:auto;-webkit-touch-callout:default;touch-action:auto}
  html.in-browser,html.in-browser body{overscroll-behavior-y:auto}
  html.in-browser footer.site{display:block!important;padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  html.in-browser .app-teaser-sec{display:block!important}
  html.in-browser .pwa-banner:not([hidden]){display:flex!important;bottom:calc(76px + env(safe-area-inset-bottom))}
}
