/* ike Login – modernes Layout (29.11.2026)
   Gilt nur, wenn <body class="ike-modern"> gesetzt ist (Sports-, Tennis-, Physio-, Business-, Gastro-App). */

body.ike-modern,
body.ike-modern .ui-page,
body.ike-modern .ui-mobile-viewport{
  background:#f4f7f9 !important;
  margin:0; padding:0 !important;
  font-family:"Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#1d2a35;
  text-shadow:none !important;
}
body.ike-modern *{ box-sizing:border-box; }

.ikm{
  --acc:#007CB7; --acc-deep:#054d6e; --acc-soft:#e5f2f8; --acc-light:#7fd0f2;
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
  min-height:100vh; min-height:100dvh;
}
.ikm[data-app="gastro"]{ --acc:#b4532a; --acc-deep:#4a2313; --acc-soft:#f8ece5; --acc-light:#f2b48f; }
.ikm[data-app="physio"]{ --acc:#007CB7; --acc-deep:#043a54; --acc-soft:#e5f2f8; --acc-light:#7fd0f2; }
.ikm[data-app="business"]{ --acc:#2f5fa8; --acc-deep:#14284a; --acc-soft:#e7eef8; --acc-light:#9dbcf0; }
.ikm[data-app="tennis"]{ --acc:#007CB7; --acc-deep:#06384f; --acc-soft:#e5f2f8; --acc-light:#d6f25c; }

/* ---------- Markenseite (links) ---------- */
.ikm-brand{
  position:relative; overflow:hidden; color:#fff;
  padding:48px 56px 40px;
  display:flex; flex-direction:column;
  background:linear-gradient(150deg, var(--acc-deep) 0%, var(--acc) 120%);
  isolation:isolate;
}
.ikm-brand::before, .ikm-brand::after{
  content:""; position:absolute; z-index:-1; border-radius:50%;
  filter:blur(60px); opacity:.55; pointer-events:none;
}
.ikm-brand::before{
  width:520px; height:520px; left:-160px; bottom:-200px;
  background:radial-gradient(circle, var(--acc-light) 0%, transparent 65%);
  animation:ikmFloatA 18s ease-in-out infinite alternate;
}
.ikm-brand::after{
  width:460px; height:460px; right:-140px; top:-160px;
  background:radial-gradient(circle, var(--acc) 0%, transparent 70%);
  opacity:.7;
  animation:ikmFloatB 22s ease-in-out infinite alternate;
}
@keyframes ikmFloatA{ to{ transform:translate(120px,-80px) scale(1.15); } }
@keyframes ikmFloatB{ to{ transform:translate(-90px,110px) scale(.9); } }

.ikm-orbit{ position:absolute; right:-120px; top:50%; width:560px; height:560px; transform:translateY(-50%); z-index:-1; opacity:.16; pointer-events:none; }
.ikm-orbit circle{ fill:none; stroke:#fff; }
.ikm-orbit .dot{ fill:#fff; stroke:none; }
.ikm-orbit g{ transform-origin:280px 280px; animation:ikmSpin 60s linear infinite; }
@keyframes ikmSpin{ to{ transform:rotate(360deg); } }

.ikm-top{ display:flex; align-items:center; gap:12px; }
.ikm-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px 6px 10px; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
  font-size:13px; font-weight:700; letter-spacing:.02em; backdrop-filter:blur(6px);
}
.ikm-pill .d{ width:8px; height:8px; border-radius:50%; background:var(--acc-light); box-shadow:0 0 0 4px rgba(255,255,255,.12); }

.ikm-copy{ margin:auto 0; max-width:520px; padding:40px 0; }
.ikm-copy h1{
  margin:0; font-size:clamp(30px,3.4vw,46px); line-height:1.12; font-weight:700; letter-spacing:-.01em; color:#fff;
}
.ikm-copy h1 em{ font-style:normal; color:var(--acc-light); }
.ikm-points{ list-style:none; margin:28px 0 0; padding:0; display:grid; gap:12px; }
.ikm-points li{ display:flex; gap:12px; align-items:flex-start; font-size:15.5px; line-height:1.5; color:rgba(255,255,255,.88); }
.ikm-points svg{ flex:none; width:22px; height:22px; margin-top:1px; padding:4px; border-radius:50%; background:rgba(255,255,255,.14); stroke:#fff; }

.ikm-more{
  display:inline-flex; align-items:center; gap:10px; margin-top:32px;
  padding:11px 18px; border-radius:999px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.28);
  color:#fff !important; text-decoration:none !important; font-size:14px; font-weight:600;
  transition:background .2s ease, transform .2s ease;
}
.ikm-more:hover{ background:rgba(255,255,255,.2); transform:translateX(2px); }
.ikm-more span{ opacity:.75; font-weight:400; }

.ikm-foot{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:rgba(255,255,255,.6); }
.ikm-foot a{ color:rgba(255,255,255,.8) !important; text-decoration:none !important; }

/* ---------- Login (rechts) ---------- */
.ikm-side{
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:40px 32px; background:#f4f7f9;
}
.ikm-card{
  width:100%; max-width:400px;
  background:#fff; border-radius:20px; padding:36px 34px 30px;
  box-shadow:0 1px 2px rgba(16,32,48,.06), 0 24px 60px -28px rgba(16,32,48,.35);
  animation:ikmIn .5s ease both;
}
@keyframes ikmIn{ from{ opacity:0; transform:translateY(12px); } }
.ikm-logo img{ height:38px; width:auto; display:block; }
.ikm-card h2{ margin:26px 0 6px; font-size:24px; font-weight:700; color:#14212c; letter-spacing:-.01em; text-shadow:none; }
.ikm-card .ikm-sub{ margin:0 0 26px; font-size:14px; color:#5f6f7c; }

body.ike-modern .ikm-card fieldset{ border:0; margin:0; padding:0; min-width:0; }
.ikm-field{ position:relative; margin-bottom:16px; }
.ikm-field label{ display:block; margin:0 0 6px; font-size:13px; font-weight:600; color:#33424e; text-shadow:none; }
body.ike-modern .ikm-field input[type=text],
body.ike-modern .ikm-field input[type=password]{
  display:block; width:100%; height:48px; margin:0;
  padding:0 46px 0 14px; border-radius:12px;
  border:1.5px solid #d7e0e7 !important; background:#f9fbfc !important;
  font-size:16px; color:#14212c !important; font-family:inherit;
  box-shadow:none !important; outline:none; text-shadow:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.ike-modern .ikm-field input:focus{
  border-color:var(--acc) !important; background:#fff !important;
  box-shadow:0 0 0 4px var(--acc-soft) !important;
}
.ikm-eye{
  position:absolute; right:6px; bottom:6px; width:36px; height:36px;
  border:0; border-radius:9px; background:transparent; cursor:pointer;
  display:flex; align-items:center; justify-content:center; color:#6b7b88; padding:0;
}
.ikm-eye:hover{ background:#eef3f6; color:#14212c; }
.ikm-eye svg{ width:20px; height:20px; }

body.ike-modern .ikm-submit{
  display:flex !important; align-items:center; justify-content:center; gap:10px;
  width:100% !important; height:50px; margin:8px 0 0 !important; padding:0 !important;
  border:0 !important; border-radius:12px !important;
  background:var(--acc) !important; color:#fff !important;
  font-size:16px !important; font-weight:700 !important; font-family:inherit;
  text-shadow:none !important; box-shadow:0 10px 24px -12px var(--acc) !important;
  cursor:pointer; transition:filter .15s ease, transform .1s ease;
}
body.ike-modern .ikm-submit:hover{ filter:brightness(1.08); }
body.ike-modern .ikm-submit:active{ transform:translateY(1px); }
.ikm-submit svg{ width:18px; height:18px; }

body.ike-modern .ikm-card .alert{ margin:16px 0 0; border-radius:10px; font-size:14px; text-shadow:none; }
body.ike-modern .ikm-card .hidden{ display:none !important; }

.ikm-side-more{ display:none; }
.ikm-side-foot{ margin-top:22px; font-size:12px; color:#8a98a3; text-align:center; }
.ikm-side-foot a{ color:#5f6f7c !important; text-decoration:none !important; }

/* ---------- Handy / Tablet: alles auf einen Bildschirm, ohne Scrollen ---------- */
@media (max-width:900px){
  .ikm{ grid-template-columns:1fr; grid-template-rows:auto 1fr; min-height:100vh; min-height:100dvh; }
  .ikm-brand{ padding:16px 20px 52px; }
  .ikm-top{ justify-content:space-between; }
  .ikm-pill{ font-size:12px; padding:5px 12px 5px 9px; }
  .ikm-copy{ padding:12px 0 0; margin:0; }
  .ikm-copy h1{ font-size:21px; line-height:1.2; }
  .ikm-points, .ikm-foot, .ikm-copy .ikm-more{ display:none; }
  .ikm-orbit{ width:300px; height:300px; right:-130px; top:30%; }
  .ikm-side{ padding:0 14px 14px; justify-content:flex-start; }
  .ikm-card{ margin-top:-38px; padding:20px 20px 18px; border-radius:18px; position:relative; z-index:2; }
  .ikm-card h2{ margin:14px 0 14px; font-size:19px; }
  .ikm-card .ikm-sub{ display:none; }
  .ikm-field{ margin-bottom:12px; }
  .ikm-field label{ margin-bottom:4px; font-size:12.5px; }
  body.ike-modern .ikm-field input[type=text],
  body.ike-modern .ikm-field input[type=password]{ height:46px; }
  .ikm-eye{ bottom:5px; }
  body.ike-modern .ikm-submit{ height:48px; margin-top:6px !important; }
  .ikm-side{ padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  /* Link und Copyright fix am unteren Rand */
  .ikm-side-more{ display:block; position:fixed; left:0; right:0; bottom:calc(30px + env(safe-area-inset-bottom)); z-index:3;
    text-align:center; font-size:13.5px; color:#5f6f7c !important; text-decoration:none !important; }
  .ikm-side-more b{ color:var(--acc); }
  .ikm-side-foot{ position:fixed; left:0; right:0; bottom:calc(10px + env(safe-area-inset-bottom)); margin:0; padding:0; z-index:3; font-size:11px; }
  /* Bei offener Tastatur ausblenden, damit nichts über die Felder rutscht */
  .ikm:has(input:focus) .ikm-side-more, .ikm:has(input:focus) .ikm-side-foot{ display:none; }
  /* Logo in der Kachel kleiner und dezenter */
  .ikm-logo img{ height:22px !important; opacity:.75; }
}
/* Handy mit normaler Höhe: großzügiger */
@media (max-width:900px) and (min-height:640px){
  .ikm-brand{ padding:30px 24px 72px; }
  .ikm-copy{ padding-top:22px; }
  .ikm-copy h1{ font-size:26px; line-height:1.22; }
  .ikm-card{ margin-top:-48px; padding:32px 24px 30px; }
  .ikm-card h2{ margin:24px 0 6px; font-size:22px; }
  .ikm-card .ikm-sub{ display:block; margin:0 0 26px; font-size:14px; }
  .ikm-field{ margin-bottom:20px; }
  .ikm-field label{ margin-bottom:6px; font-size:13px; }
  body.ike-modern .ikm-field input[type=text],
  body.ike-modern .ikm-field input[type=password]{ height:50px; }
  .ikm-eye{ bottom:7px; }
  body.ike-modern .ikm-submit{ height:52px; margin-top:10px !important; }
  .ikm-logo img{ height:26px !important; }
}
/* sehr hohe Handys: noch etwas mehr Luft */
@media (max-width:900px) and (min-height:760px){
  .ikm-brand{ padding:36px 24px 80px; }
  .ikm-copy{ padding-top:28px; }
  .ikm-copy h1{ font-size:27px; }
}
/* mittlere Höhe 640–700: großzügig, aber Kopf etwas flacher */
@media (max-width:900px) and (min-height:640px) and (max-height:700px){
  .ikm-brand{ padding:20px 22px 60px; }
  .ikm-copy{ padding-top:14px; }
  .ikm-copy h1{ font-size:23px; }
  .ikm-card .ikm-sub{ margin-bottom:18px; }
  .ikm-field{ margin-bottom:16px; }
}
/* niedrige Bildschirme: kompakt, damit nichts scrollt */
@media (max-width:900px) and (max-height:620px){
  .ikm-brand{ padding:12px 18px 46px; }
  .ikm-copy{ padding-top:8px; }
  .ikm-copy h1{ font-size:18px; }
  .ikm-card{ padding:16px 18px 14px; }
  .ikm-card h2{ display:none; }
  .ikm-logo{ margin-bottom:12px; }
}

@media (prefers-reduced-motion:reduce){
  .ikm-brand::before, .ikm-brand::after, .ikm-orbit g, .ikm-card{ animation:none !important; }
}

/* Alte Login-Styles (login.css / Client-CSS) neutralisieren */
body.ike-modern #divLogin.ikm{
  background:none !important; background-image:none !important;
  width:auto !important; max-width:none !important; height:auto !important;
  margin:0 !important; padding:0 !important; position:static !important; border:0 !important; box-shadow:none !important;
}
body.ike-modern .ikm-card .buttonRow{ display:block !important; float:none !important; width:auto !important; margin:0 !important; padding:0 !important; text-align:left !important; background:none !important; border:0 !important; }
body.ike-modern .ikm-card form, body.ike-modern .ikm-card fieldset{ background:none !important; width:auto !important; float:none !important; }
body.ike-modern .ikm-card .ikm-logo{ display:inline-block; }
body.ike-modern .statusbar-x{ display:none !important; }
/* jQuery Mobile setzt eine eigene Mindesthöhe – sonst entsteht am Handy ein kleiner Scroll */
body.ike-modern .ui-page{ min-height:0 !important; padding:0 !important; border:0 !important; }
html.ui-mobile body.ike-modern{ overflow-x:hidden; }

/* Eingabe-Schrift dunkel – gegen alte weiße Regeln (auch mit ID-Selektor oder -webkit-text-fill-color) */
body.ike-modern #divLogin.ikm #username,
body.ike-modern #divLogin.ikm #password{
  color:#14212c !important;
  -webkit-text-fill-color:#14212c !important;
  caret-color:var(--acc) !important;
  text-shadow:none !important;
  opacity:1 !important;
}
/* Vom Browser automatisch ausgefüllte Felder: gleicher Look, dunkle Schrift */
body.ike-modern #divLogin.ikm #username:-webkit-autofill,
body.ike-modern #divLogin.ikm #password:-webkit-autofill{
  -webkit-text-fill-color:#14212c !important;
  -webkit-box-shadow:0 0 0 1000px #f9fbfc inset !important;
  box-shadow:0 0 0 1000px #f9fbfc inset !important;
  transition:background-color 9999s ease-out 0s;
}
body.ike-modern #divLogin.ikm #username::placeholder,
body.ike-modern #divLogin.ikm #password::placeholder{ color:#9aa8b3 !important; -webkit-text-fill-color:#9aa8b3 !important; }

/* ---------- Sehr breite Bildschirme: zentrierte Karte statt volle Breite (29.11. 05:30) ---------- */
@media (min-width:1400px){
  body.ike-modern,
  body.ike-modern .ui-page{
    background:#e9eef2 !important;
    background-image:
      radial-gradient(1200px 600px at 10% 0%, rgba(0,124,183,.10), transparent 60%),
      radial-gradient(900px 500px at 100% 100%, rgba(5,77,110,.10), transparent 60%) !important;
  }
  body.ike-modern:has(.ikm[data-app="gastro"]),
  body.ike-modern:has(.ikm[data-app="gastro"]) .ui-page{
    background-image:
      radial-gradient(1200px 600px at 10% 0%, rgba(180,83,42,.10), transparent 60%),
      radial-gradient(900px 500px at 100% 100%, rgba(74,35,19,.10), transparent 60%) !important;
  }
  body.ike-modern #divLogin.ikm{
    max-width:1240px !important;
    min-height:min(800px, calc(100vh - 96px));
    margin:max(48px, calc((100vh - 800px) / 2)) auto !important;
    border-radius:28px !important; overflow:hidden;
    box-shadow:0 40px 100px -40px rgba(10,30,50,.45), 0 2px 6px rgba(10,30,50,.06) !important;
    grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr);
  }
  .ikm-brand{ padding:56px 64px 44px; }
  .ikm-side{ background:#fff; padding:48px 56px; }
  .ikm-card{ box-shadow:none; padding:8px 0 0; max-width:380px; }
  .ikm-side-foot{ margin-top:28px; }
}