/* LeasingKompass – Salbeigrün Metallic
   Eigenständige, schlanke CSS-Basis nach dem Token-/Kartenprinzip
   der Hexenküche. Ohne externe Abhängigkeiten.
   Die Lack-Anmutung ist eine gestalterische Annäherung, kein offizieller
   Hersteller-Farbcode. */

:root {
  color-scheme: light;

  /* Marke: Salbeigrün Metallic + schwarze Audi-Designelemente */
  --lk-sage: #819A86;            /* Lack-Anmutung / dekorative Flächen */
  --lk-sage-dark: #2E5147;       /* Lesbarer Primärton / Buttons */
  --lk-sage-hover: #224137;
  --lk-sage-light: #EAF0EA;
  --lk-graphite: #202A26;

  /* Neutralpalette */
  --lk-page: #F5F7F4;
  --lk-surface: #FFFFFF;
  --lk-text: #25312D;
  --lk-muted: #52615A;
  --lk-border: #D7E0D8;
  --lk-divider: #E7ECE7;

  /* Status bewusst separat von der Markenfarbe */
  --lk-under: #28664F;
  --lk-under-bg: #E6F3EA;
  --lk-ontrack: #315D70;
  --lk-ontrack-bg: #E8F1F6;
  --lk-over: #A63C3C;
  --lk-over-bg: #FBEDEC;

  /* UI-System aus der Hexenküche-Idee: Tokens statt verstreute Werte */
  --lk-radius-sm: 10px;
  --lk-radius-card: 16px;
  --lk-radius-pill: 999px;
  --lk-shadow-card: 0 8px 28px rgba(32, 42, 38, .055);
  --lk-font: 'Nunito', -apple-system, BlinkMacSystemFont,
             'Segoe UI', sans-serif;
  --lk-content-width: 960px;
  --lk-tap-size: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--lk-page); }
body { margin: 0; }
button, input, select { font: inherit; }

.lk-app {
  color: var(--lk-text);
  background: var(--lk-page);
  min-height: 100dvh;
  font-family: var(--lk-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.lk-shell {
  max-width: var(--lk-content-width);
  padding: 24px 20px 32px;
  margin: 0 auto;
}
.lk-topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}
.lk-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lk-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--lk-sage-dark);
  font-weight: 900;
  letter-spacing: -.05em;
  font-size: 21px;
}
.lk-brand-name { font-size: 20px; font-weight: 850; letter-spacing: -.035em; }
.lk-overline {
  color: var(--lk-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.lk-vehicle-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px;
  margin-bottom: 19px;
  background: var(--lk-graphite);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.lk-vehicle-banner .lk-overline { color: #C9D9CD; }
.lk-vehicle-banner h1 {
  margin: 7px 0 6px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.18;
  letter-spacing: -.04em;
}
.lk-vehicle-banner p { margin: 0; color: #D5DDD7; font-size: 14px; }

.lk-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.lk-stack { display: grid; gap: 18px; align-content: start; }
.lk-card {
  background: var(--lk-surface);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius-card);
  box-shadow: var(--lk-shadow-card);
  padding: 24px;
  min-width: 0;
}
.lk-card-heading { margin: 0 0 17px; font-size: 17px; font-weight: 850; }
.lk-status-card { border-top: 5px solid var(--lk-sage); }
.lk-status-card[data-status='under'] { border-top-color: var(--lk-under); }
.lk-status-card[data-status='ontrack'] { border-top-color: var(--lk-ontrack); }
.lk-status-card[data-status='over'] { border-top-color: var(--lk-over); }
.lk-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--lk-radius-pill);
  font-size: 13px;
  font-weight: 850;
}
.lk-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lk-status--under { color: var(--lk-under); background: var(--lk-under-bg); }
.lk-status--ontrack { color: var(--lk-ontrack); background: var(--lk-ontrack-bg); }
.lk-status--over { color: var(--lk-over); background: var(--lk-over-bg); }
.lk-hero-value {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.05em;
  margin: 17px 0 8px;
  font-variant-numeric: tabular-nums;
}
.lk-subtitle { color: var(--lk-muted); line-height: 1.5; margin: 0; font-size: 14px; }
.lk-progress-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; margin: 27px 0 10px; }
.lk-progress-track { height: 11px; background: var(--lk-sage-light); border-radius: 999px; overflow: hidden; }
.lk-progress-fill { height: 100%; width: 68%; background: var(--lk-sage-dark); border-radius: inherit; }
.lk-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lk-stat { background: var(--lk-page); padding: 18px; border-radius: 12px; }
.lk-stat-label { font-size: 13px; font-weight: 700; color: var(--lk-muted); }
.lk-stat-value { font-size: clamp(21px, 3vw, 29px); font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.lk-stat-unit { font-size: 15px; font-weight: 750; color: var(--lk-muted); }
.lk-form-label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 9px; }
.lk-input {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  background: white;
  color: var(--lk-text);
  border-radius: var(--lk-radius-sm);
  border: 1.5px solid var(--lk-border);
  outline: none;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.lk-input:focus-visible, .lk-button:focus-visible, .lk-menu-trigger:focus-visible, .lk-menu-link:focus-visible {
  outline: 3px solid #84AFA0;
  outline-offset: 3px;
}
.lk-input:focus { border-color: var(--lk-sage-dark); }
.lk-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  background: var(--lk-sage-dark);
  color: white;
  border: 0;
  padding: 12px 18px;
  font-weight: 850;
  border-radius: var(--lk-radius-sm);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.lk-button:disabled { opacity: .48; cursor: not-allowed; }
.lk-note { font-size: 12px; line-height: 1.5; color: var(--lk-muted); margin: 12px 0 0; }

@media (hover: hover) and (pointer: fine) {
  .lk-button:hover:not(:disabled) { background: var(--lk-sage-hover); transform: translateY(-1px); }
  .lk-menu-trigger:hover { background: var(--lk-sage-light); }
}
@media (max-width: 720px) {
  .lk-shell { padding: 15px 14px 28px; }
  .lk-grid { grid-template-columns: 1fr; }
  .lk-card { padding: 19px; }
  .lk-vehicle-banner { padding: 20px; }
}
@media (max-width: 370px) {
  .lk-brand-name { font-size: 17px; }
  .lk-mini-grid { gap: 8px; }
  .lk-stat { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Version 1 – produktive Anwendung */
[hidden] { display: none !important; }
.lk-app { min-height: 100svh; }
.lk-shell { max-width: 1080px; }
.lk-brand-name { overflow-wrap: anywhere; }
.lk-logo { overflow: hidden; }
.lk-logo img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.lk-vehicle-banner { min-height: 210px; align-items: end; isolation: isolate; padding: 29px; }
.lk-banner-photo { width: 100%; height: 100%; position: absolute; inset: 0; z-index: -3; object-fit: cover; object-position: center; }
.lk-banner-scrim { background: linear-gradient(90deg, rgba(13,25,20,.9) 0%, rgba(13,25,20,.75) 46%, rgba(13,25,20,.3) 100%); position: absolute; inset: 0; z-index: -2; }
.lk-vehicle-copy { max-width: min(600px, 100%); }
.lk-vehicle-banner h1 { font-size: clamp(25px, 3.8vw, 36px); overflow-wrap: anywhere; }
.lk-vehicle-banner p { font-size: 15px; }
.lk-tab-panel { animation: lk-appear .16s ease-out; }
@keyframes lk-appear { from { opacity:.65; transform: translateY(3px); } to { opacity:1; transform:none; } }
.lk-card-top { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 12px; }
.lk-card-top .lk-card-heading { margin-bottom: 5px; }
.lk-card-top .lk-subtitle { margin-bottom: 8px; }
.lk-form-actions { display: grid; gap: 10px; }
.lk-space-after { margin-bottom: 20px; }
.lk-optional { color: var(--lk-muted); font-weight: 500; }
.lk-secondary-button, .lk-text-button { font: inherit; font-weight: 800; color: var(--lk-sage-dark); cursor: pointer; }
.lk-secondary-button { min-height: 45px; border: 1px solid var(--lk-border); background: var(--lk-surface); border-radius: var(--lk-radius-sm); padding: 8px 14px; }
.lk-secondary-button:hover { background: var(--lk-sage-light); }
.lk-text-button { min-height: 40px; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.lk-button-inline { width: auto; min-height: 45px; }
.lk-hint { border-left: 5px solid var(--lk-sage); margin-bottom: 18px; }
.lk-hint .lk-button { margin-top: 17px; }
.lk-forecast { font-size: clamp(28px, 4vw, 35px); font-weight: 900; margin-bottom: 10px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.lk-panel-narrow { max-width: 740px; margin: 0 auto; }
.lk-form-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.lk-latest-list { display: grid; }
.lk-latest-row, .lk-history-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--lk-divider); }
.lk-latest-row:last-child, .lk-history-row:last-child { border-bottom: 0; }
.lk-latest-row strong, .lk-history-row strong { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.lk-row-meta { color: var(--lk-muted); font-size: 13px; }
.lk-history-row { min-width: 0; }
.lk-history-main { min-width: 0; overflow-wrap: anywhere; }
.lk-history-actions { display: flex; flex-wrap: wrap; gap: 7px; flex-shrink: 0; }
.lk-small-button { min-height: 42px; padding: 9px 12px; border: 1px solid var(--lk-border); border-radius: 9px; background: #fff; color: var(--lk-sage-dark); font-weight: 800; cursor: pointer; }
.lk-small-button:hover { background: var(--lk-sage-light); }
.lk-small-button-danger { color: var(--lk-over); }
.lk-empty { background: var(--lk-page); border-radius: 12px; padding: 18px; color: var(--lk-muted); font-size: 14px; }
.lk-media-form h3 { font-size: 17px; margin: 0 0 17px; }
.lk-media-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lk-file-input { height: auto; font-size: 15px; }
.lk-rule { height: 1px; background: var(--lk-divider); margin: 25px 0; }
.lk-auth-shell { max-width: 440px; margin: 7vh auto 0; text-align: center; }
.lk-auth-crest { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 22px; font-size: 28px; color: #fff; background: var(--lk-sage-dark); font-weight: 900; }
.lk-auth-shell h1 { font-size: 31px; margin: 6px 0; }
.lk-auth-description { color: var(--lk-muted); margin: 8px 0 22px; }
.lk-auth-card { text-align: left; }
.lk-auth-card .lk-card-heading { margin-bottom: 20px; }
.lk-notification { position: sticky; top: 10px; z-index: 30; border: 1px solid #B3CEBD; border-radius: 12px; padding: 14px 17px; background: #E6F3EA; color: #164D39; box-shadow: 0 8px 28px #0002; margin-bottom: 12px; }
.lk-notification[data-kind="error"] { color: #852A2A; background: #FBEDEC; border-color: #E8B7B7; }
.lk-status-card[data-status="empty"] { border-top-color: var(--lk-border); }
.lk-status--empty { color: var(--lk-muted); background: var(--lk-page); }
.lk-input:focus-visible, .lk-button:focus-visible, .lk-menu-trigger:focus-visible, .lk-menu-link:focus-visible, .lk-secondary-button:focus-visible, .lk-small-button:focus-visible, .lk-text-button:focus-visible { outline: 3px solid #84AFA0; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 720px) {
  .lk-vehicle-banner { min-height: 185px; padding: 23px 20px; }
  .lk-vehicle-banner h1 { font-size: clamp(23px, 6vw, 30px); }
  .lk-card-top { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .lk-form-two { grid-template-columns: 1fr; }
  .lk-history-row { align-items: flex-start; flex-direction: column; }
  .lk-history-actions { width: 100%; }
  .lk-history-actions button { flex: 1; }
  .lk-vehicle-banner { min-height: 180px; }
  .lk-auth-shell { margin-top: 3vh; }
}

/* Version 1.1 – Hauptmenü oben rechts statt unterer Navigation */
.lk-header-actions { position: relative; flex: 0 0 auto; z-index: 40; }
.lk-menu-trigger {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--lk-border);
  border-radius: 13px;
  background: var(--lk-surface);
  color: var(--lk-text);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(32, 42, 38, .04);
  -webkit-tap-highlight-color: transparent;
}
.lk-menu-trigger[aria-expanded="true"] {
  border-color: var(--lk-sage);
  background: var(--lk-sage-light);
}
.lk-hamburger { display: grid; gap: 5px; justify-items: center; }
.lk-hamburger span { display: block; width: 23px; height: 2.5px; border-radius: 4px; background: currentColor; }
.lk-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  width: min(270px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--lk-border);
  border-radius: 17px;
  background: var(--lk-surface);
  box-shadow: 0 17px 48px rgba(20, 35, 28, .20);
}
.lk-menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: transparent;
  color: var(--lk-text);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.lk-menu-link:hover { background: var(--lk-sage-light); }
.lk-menu-link[aria-current="page"] { background: var(--lk-sage-light); color: var(--lk-sage-dark); }
.lk-menu-divider { height: 1px; background: var(--lk-divider); margin: 7px 4px; }
.lk-menu-logout { color: var(--lk-over); }
@media (max-width: 440px) {
  .lk-topbar { gap: 10px; }
  .lk-brand { gap: 9px; }
  .lk-brand-name { font-size: clamp(17px, 4.55vw, 20px); }
  .lk-topbar .lk-overline { font-size: 10px; letter-spacing: .075em; }
  .lk-logo { width: 44px; height: 44px; }
  .lk-menu-trigger { width: 48px; height: 48px; }
}


/* Version 1.2 – fester Kopfbereich, Inhalts-Scroll und kompakte Schnellaktion */
.lk-app.is-authenticated {
  height: 100vh; /* Rückfall für ältere Browser */
  height: 100dvh;
  overflow: hidden;
}
.lk-app.is-authenticated .lk-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.lk-app.is-authenticated #app-screen {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.lk-fixed-header { flex: 0 0 auto; position: relative; z-index: 15; }
.lk-app.is-authenticated #app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 28px;
  scroll-padding-top: 14px;
}
.lk-app.is-authenticated .lk-vehicle-banner { margin-bottom: 13px; }
.lk-app.is-authenticated .lk-topbar { padding-bottom: 14px; }
.lk-banner-home {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lk-banner-home:focus-visible { outline: 3px solid #84AFA0; outline-offset: -5px; }
.lk-cta-row { display: flex; justify-content: flex-start; align-items: center; }
.lk-jump-button { width: auto; max-width: 100%; min-height: 48px; }
#entry-card { scroll-margin-top: 14px; }
.lk-notification {
  position: fixed;
  top: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(520px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}
.lk-notification-text { min-width: 0; }
.lk-notification-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 24px;
}
.lk-notification-close:focus-visible { outline: 3px solid #84AFA0; outline-offset: 2px; }
@media (max-width: 720px) {
  .lk-app.is-authenticated .lk-shell {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-left: 14px;
    padding-right: 14px;
  }
  .lk-app.is-authenticated .lk-vehicle-banner {
    height: clamp(145px, 23dvh, 210px);
    min-height: 0;
    padding: 16px 18px;
  }
  .lk-app.is-authenticated .lk-topbar { padding-bottom: 12px; }
  .lk-app.is-authenticated .lk-vehicle-banner h1 { font-size: clamp(19px, 5.25vw, 27px); margin: 5px 0; }
  .lk-app.is-authenticated .lk-vehicle-banner p { font-size: 13px; line-height: 1.35; }
  .lk-app.is-authenticated .lk-vehicle-banner .lk-overline { font-size: 10px; }
  .lk-app.is-authenticated #app-main { padding-bottom: 22px; }
}
@media (max-height: 630px) and (max-width: 720px) {
  .lk-app.is-authenticated .lk-vehicle-banner { height: 128px; padding: 12px 15px; }
  .lk-app.is-authenticated .lk-brand-name { font-size: 17px; }
  .lk-app.is-authenticated .lk-logo { width: 40px; height: 40px; }
  .lk-app.is-authenticated .lk-menu-trigger { width: 44px; height: 44px; }
}


/* Version 1.2.1 – mobile Feinschliff und kompaktere Aktionen */
.lk-vehicle-banner { justify-content: flex-start; }
.lk-vehicle-copy { max-width: min(760px, 100%); }
.lk-cta-row { justify-content: center; }
.lk-jump-button, #save-reading { width: auto; max-width: 100%; min-width: 0; padding-inline: 22px; }
#save-reading { min-height: 48px; }
.lk-form-actions { justify-items: center; }
.lk-form-actions .lk-button, .lk-form-actions .lk-secondary-button { width: auto; max-width: 100%; }
.lk-form-actions .lk-secondary-button { justify-self: center; }
.lk-input[type="date"] {
  padding-right: 46px;
  border-radius: 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232E5147' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(32,42,38,.03);
  appearance: none;
  -webkit-appearance: none;
}
.lk-input[type="date"]::-webkit-date-and-time-value { text-align: center; }
.lk-input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; width: 22px; height: 22px; margin: 0; }
.lk-input[type="date"]::-webkit-inner-spin-button, .lk-input[type="date"]::-webkit-clear-button { display: none; }
.lk-file-input { border-radius: 14px; padding: 12px 14px; background: #FCFDFC; }
@media (max-width: 440px) {
  .lk-jump-button, #save-reading { padding-inline: 20px; }
  .lk-form-two { gap: 8px 0; }
  .lk-form-two > div { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(250,252,250,.92)); border-radius: 16px; padding: 0; }
  .lk-form-two .lk-form-label { margin-bottom: 8px; padding-left: 2px; }
  .lk-form-two .lk-input, #reading-form .lk-input { min-height: 56px; border-radius: 16px; font-size: 17px; }
  .lk-form-two .lk-input[type="date"] { padding-right: 44px; }
  .lk-media-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lk-media-actions .lk-button, .lk-media-actions .lk-secondary-button { width: 100%; white-space: nowrap; padding-inline: 12px; }
  .lk-file-input { font-size: 14px; }
}


/* Version 1.2.2 – kompakte Navigation, mobile Vertragsmaske, Dateiauswahl */
/* 44 px bleibt für alle Touch-Ziele erhalten. */
.lk-menu-trigger { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 2px 8px rgba(32,42,38,.04); }
.lk-hamburger { gap: 4px; }
.lk-hamburger span { width: 20px; height: 2.5px; transition: transform .18s ease, opacity .18s ease; }
.lk-menu-trigger[aria-expanded="true"] .lk-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.lk-menu-trigger[aria-expanded="true"] .lk-hamburger span:nth-child(2) { opacity: 0; }
.lk-menu-trigger[aria-expanded="true"] .lk-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.lk-menu-panel { width: min(234px, calc(100vw - 28px)); padding: 6px; border-radius: 14px; top: calc(100% + 8px); }
.lk-menu-link { min-height: 44px; font-size: 14px; padding: 9px 12px; border-radius: 9px; }
@media (max-width: 440px) {
  .lk-menu-trigger, .lk-app.is-authenticated .lk-menu-trigger { width: 44px; height: 44px; }
}
/* Datepicker: native picker beibehalten, nur dessen Rahmen und Indikator gestalten. */
.lk-date-wrap { position: relative; width: 100%; min-width: 0; }
.lk-date-wrap .lk-input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 45px 12px 14px;
  margin-bottom: 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(32,42,38,.035);
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
}
.lk-date-wrap::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  pointer-events: none;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%232E5147' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}
.lk-date-wrap .lk-input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.lk-date-wrap .lk-input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; width: 24px; min-height: 24px; margin: 0; }
.lk-date-wrap:focus-within::after { filter: saturate(1.4); }
.lk-contract-subheading { font-size: 14px; font-weight: 900; color: var(--lk-sage-dark); letter-spacing: .02em; margin: 20px 0 12px; }
.lk-form-dates, .lk-form-numbers { gap: 14px; }
.lk-contract-field { min-width: 0; }
.lk-contract-field > .lk-input { margin-bottom: 0; }
.lk-form-dates + .lk-contract-subheading { margin-top: 23px; }
/* Native Dateiauswahl mit tastaturbedienbarer, selbst gestalteter Beschriftung. */
.lk-visually-hidden {
  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;
}
.lk-file-picker {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1.5px solid var(--lk-border);
  background: #FAFCFA;
  border-radius: 14px;
}
.lk-file-picker:focus-within { border-color: var(--lk-sage-dark); outline: 3px solid #84AFA0; outline-offset: 2px; }
.lk-file-picker-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lk-sage-light);
  color: var(--lk-sage-dark);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lk-file-picker-button:hover { background: #DCE9DE; }
.lk-picker-icon { font-size: 20px; font-weight: 600; line-height: 1; }
.lk-file-picker-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--lk-muted);
  font-size: 13px;
}
.lk-media-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.lk-media-actions .lk-button, .lk-media-actions .lk-secondary-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 8px;
  font-size: clamp(12px, 3.55vw, 14px);
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}
.lk-media-actions > [hidden] { display: none !important; }
@media (max-width: 440px) {
  .lk-contract-subheading { margin-top: 17px; margin-bottom: 9px; }
  .lk-form-dates, .lk-form-numbers { gap: 10px; }
  .lk-form-two > .lk-contract-field {
    padding: 12px 13px 13px;
    border: 1px solid var(--lk-border);
    background: #F9FBF9;
    border-radius: 14px;
  }
  .lk-contract-field .lk-form-label { padding: 0; margin-bottom: 8px; }
  .lk-form-two .lk-contract-field .lk-input { min-height: 50px; border-radius: 10px; font-size: 16px; }
  .lk-form-two .lk-contract-field .lk-input[type="date"] { padding-right: 45px; }
  .lk-file-picker { gap: 9px; padding: 8px; }
  .lk-file-picker-button { padding-inline: 9px; font-size: 13px; }
  .lk-file-picker-name { font-size: 12px; }
  .lk-media-actions { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .lk-media-actions .lk-button, .lk-media-actions .lk-secondary-button { font-size: clamp(12px, 3.4vw, 14px); padding: 9px 5px; }
}

/* V1.2.3: Absicherung gegen ältere, zwischengespeicherte HTML-Ausgaben. */
.lk-paint-dot, #paint-dot { display: none !important; }
.lk-vehicle-banner::after { content: none !important; }


/* V1.3 – Mehrkilometerkosten */
.lk-menu-version { margin: 8px 12px 3px; font-size: 11px; color: var(--lk-muted); text-align: right; }
.lk-penalty-card { border-top: 3px solid var(--lk-sage); }
.lk-penalty-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.lk-penalty-heading .lk-card-heading { margin: 0; }
.lk-penalty-icon { flex: 0 0 auto; display: grid; place-items: center; height: 38px; width: 38px; border-radius: 11px; color: var(--lk-sage-dark); background: var(--lk-sage-light); font-size: 12px; font-weight: 900; }
.lk-penalty-details { margin-top: 17px; border-top: 1px solid var(--lk-border); padding-top: 9px; }
.lk-penalty-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.lk-penalty-details > div > span { color: var(--lk-muted); }
.lk-penalty-details > div > strong { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lk-penalty-details > .lk-penalty-total-row { border-top: 1px solid var(--lk-border); margin-top: 4px; padding-top: 13px; font-size: 15px; font-weight: 900; }
.lk-penalty-details > .lk-penalty-total-row > span { color: var(--lk-text); }
.lk-penalty-card .lk-forecast { overflow-wrap: anywhere; }
@media (max-width: 370px) {
  .lk-penalty-details > div { font-size: 12px; }
  .lk-penalty-heading .lk-card-heading { font-size: 15px; }
}


/* V1.3.1 – harmonisierte Kennzahlen und gemeinsame Prognose */
/* Immer zwei Textzeilen reservieren: beide Werte einer Reihe beginnen gleich hoch. */
.lk-mini-grid { align-items: stretch; }
.lk-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.lk-stat-label {
  line-height: 1.3;
  min-height: 2.6em;
}
.lk-stat-value {
  margin-top: 9px;
  line-height: 1.18;
  white-space: nowrap;
}
/* Eine Karte für zwei fachlich zusammengehörende Prognosewerte. */
.lk-projection-card { border-top: 3px solid var(--lk-sage); }
.lk-projection-card .lk-card-heading { margin-bottom: 18px; }
.lk-projection-empty-title { font-size: clamp(25px, 4vw, 33px); font-weight: 900; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 10px; }
.lk-projection-block { min-width: 0; }
.lk-projection-label { color: var(--lk-muted); font-size: 14px; font-weight: 800; margin-bottom: 7px; }
.lk-projection-divider { height: 1px; margin: 21px 0; background: var(--lk-border); }
.lk-projection-cost-label { display: flex; gap: 9px; align-items: center; font-weight: 800; font-size: 14px; margin: 0 0 10px; line-height: 1.35; }
.lk-projection-cost-label .lk-penalty-icon { width: 34px; height: 34px; border-radius: 10px; }
.lk-projection-card .lk-forecast { margin: 4px 0 9px; overflow-wrap: anywhere; }
.lk-projection-footnote { margin-top: 21px; padding-top: 14px; border-top: 1px solid var(--lk-divider); }
.lk-projection-results[hidden], .lk-projection-empty[hidden] { display: none !important; }
/* Preise und MWSt. auch auf schmalen Smartphones in einer Reihe halten. */
.lk-form-two.lk-penalty-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.lk-penalty-fields .lk-contract-field { min-width: 0; }
.lk-penalty-fields .lk-form-label { min-height: 2.6em; line-height: 1.3; }
.lk-penalty-fields .lk-input { min-width: 0; width: 100%; margin: 0; }
@media (max-width: 440px) {
  .lk-stat { padding: 13px 12px; }
  .lk-stat-label { font-size: 12px; min-height: 2.6em; }
  .lk-stat-value { font-size: clamp(17px, 5.3vw, 24px); letter-spacing: -.04em; }
  .lk-form-two.lk-penalty-fields { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
  .lk-penalty-fields > .lk-contract-field { padding: 11px 9px 12px; }
  .lk-penalty-fields .lk-form-label { font-size: 12px; margin-bottom: 8px; }
  .lk-penalty-fields .lk-input { padding-inline: 9px; font-size: 16px; }
}


/* V1.3.2 – eigenes App-Icon auf der Login-Seite (getrennt vom Hirsch-Logo im Header) */
.lk-auth-crest.lk-auth-crest--app-icon {
  overflow: hidden;
  background: transparent;
  border-radius: 19px;
  box-shadow: 0 2px 12px rgba(32, 42, 38, .08);
}
.lk-auth-crest--app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
