:root{
  --bg-main:#f5f5f7;
  --bg-wash:#fbfbfd;
  --surface:rgba(255,255,255,.84);
  --surface-soft:#f7f8fb;
  --surface-strong:#edf1f6;
  --text:#0f172a;
  --muted:#667085;
  --line:rgba(15,23,42,.08);
  --line-strong:rgba(15,23,42,.14);
  --primary:#0071e3;
  --primary-dark:#0058b9;
  --primary-soft:#ecf5ff;
  --accent:#0f766e;
  --accent-soft:#ecfdf5;
  --danger:#b91c1c;
  --danger-soft:#fef2f2;
  --shadow-soft:0 18px 48px rgba(15,23,42,.06);
  --shadow-card:0 28px 80px rgba(15,23,42,.08);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:18px;
  --radius-sm:12px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

html.is-standalone,
html.is-standalone body{
  overscroll-behavior:none;
}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:"SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0,113,227,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(15,118,110,.08), transparent 22%),
    linear-gradient(180deg, var(--bg-wash) 0%, var(--bg-main) 100%);
}

html.is-standalone #btn-back-top,
html.is-standalone .back-top{
  display:none !important;
}

h1,h2,h3,h4{
  margin:0;
  color:var(--text);
  font-family:"SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",sans-serif;
  letter-spacing:-.02em;
}

p{margin:0}

a{
  color:var(--primary-dark);
  text-decoration:none;
}

a:hover{color:var(--primary)}

button,input,select,textarea{font:inherit}

.page-shell{
  width:min(1280px, calc(100% - 40px));
  margin:0 auto;
  padding:28px 0 48px;
}

.app-home-body{
  padding-bottom:max(18px, env(safe-area-inset-bottom, 0px));
}

.app-home-shell{
  width:min(1180px, calc(100% - 32px));
  padding-top:max(16px, env(safe-area-inset-top, 0px));
}

.app-screen-body{
  padding-bottom:28px;
}

.app-screen-shell{
  width:min(980px, calc(100% - 22px));
  padding-top:max(12px, env(safe-area-inset-top, 0px));
}

.app-screen-header{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}

.app-screen-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.app-screen-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.app-large-title{
  display:grid;
  gap:8px;
  padding:4px 4px 0;
}

.app-large-title h1{
  font-size:clamp(2.2rem, 5vw, 3.5rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.app-large-title p{
  color:var(--muted);
  line-height:1.45;
}

.app-home-layout{
  display:grid;
  gap:16px;
}

.app-focus-card{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:26px;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(20px);
  box-shadow:var(--shadow-soft);
}

.app-segmented{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:6px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(248,250,252,.88);
}

.app-segmented .system-btn{
  min-height:56px;
  padding:10px 12px;
  border:0;
  border-radius:14px;
  background:transparent;
  box-shadow:none;
}

.app-segmented .system-btn:hover{
  transform:none;
  box-shadow:none;
}

.app-segmented .system-btn.active{
  background:#ffffff;
  border:1px solid rgba(0,113,227,.12);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.app-group{
  display:grid;
  gap:10px;
}

.app-group-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding:0 4px;
}

.app-group-header strong{
  display:block;
  font-size:1rem;
  line-height:1.2;
}

.app-group-header small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.86rem;
}

.app-list{
  display:grid;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(20px);
  box-shadow:var(--shadow-soft);
}

.app-list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  color:inherit;
  border-top:1px solid var(--line);
  transition:background .16s ease;
}

.app-list-row:first-child{
  border-top:0;
}

.app-list-row:hover{
  background:rgba(255,255,255,.94);
}

.app-list-main{
  min-width:0;
  display:grid;
  gap:4px;
}

.app-list-main strong{
  font-size:1rem;
  font-weight:700;
}

.app-list-main span{
  color:var(--muted);
  font-size:.92rem;
  line-height:1.35;
}

.app-list-side{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.app-list-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  min-height:28px;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#ffffff;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.app-list-chevron{
  width:10px;
  height:10px;
  border-top:2px solid #c3cad6;
  border-right:2px solid #c3cad6;
  transform:rotate(45deg);
}

.app-tabbar{
  position:fixed;
  left:50%;
  bottom:max(8px, env(safe-area-inset-bottom, 0px));
  transform:translateX(-50%);
  z-index:120;
  width:min(420px, calc(100% - 18px));
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:6px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:26px;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(24px);
  box-shadow:0 20px 50px rgba(15,23,42,.12);
  display:none;
}

.app-tab-link{
  display:grid;
  justify-items:center;
  gap:6px;
  padding:8px 4px;
  border-radius:18px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.1;
}

.app-tab-link::before{
  content:"";
  display:block;
  width:18px;
  height:18px;
  border:2px solid currentColor;
  border-radius:999px;
  opacity:.72;
}

.app-tab-link[data-app-tab-link="artikel"]::before{
  border-radius:6px;
}

.app-tab-link[data-app-tab-link="siebe"]::before{
  border-radius:6px;
  transform:rotate(45deg);
  width:14px;
  height:14px;
  margin-top:2px;
}

.app-tab-link[data-app-tab-link="hilfe"]::before{
  border-style:dashed;
}

.app-tab-link.active{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.app-tab-link.active::before{
  border-color:currentColor;
  background:currentColor;
  box-shadow:inset 0 0 0 4px var(--primary-soft);
}

html.is-standalone .app-screen-body{
  padding-bottom:max(98px, calc(74px + env(safe-area-inset-bottom, 0px)));
}

html.is-standalone .app-tabbar{
  display:grid;
}

.app-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:24px;
  padding:18px 22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(24px);
  box-shadow:var(--shadow-soft);
}

.app-topbar-compact{
  position:static;
}

.brand-stack{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.brand-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.8);
  color:#4b5563;
  font-size:12px;
  font-weight:600;
}

.brand-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary) 0%, #7dd3fc 100%);
}

.title-block{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.title-block h1{
  font-size:clamp(1.8rem, 3vw, 2.8rem);
  line-height:1.04;
}

.title-copy{
  max-width:820px;
  color:var(--muted);
  line-height:1.6;
  font-size:1rem;
}

.app-home-stack{
  display:grid;
  gap:14px;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.section-card,
.hero-card,
.app-card{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(20px);
  box-shadow:var(--shadow-soft);
}

.hero-card{
  padding:28px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px, .8fr);
  gap:22px;
}

.hero-meta{
  display:grid;
  gap:14px;
}

.hero-panel{
  display:grid;
  gap:12px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:rgba(255,255,255,.86);
}

.hero-panel strong{
  font-size:1rem;
}

.hero-panel ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.6;
}

.section-card{
  padding:26px;
}

.compact-section{
  padding:18px;
}

.compact-header{
  margin-bottom:14px;
}

.section-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.section-title{
  display:grid;
  gap:6px;
}

.section-title h2{
  font-size:1.55rem;
}

.section-title p{
  color:var(--muted);
  line-height:1.5;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
}

.app-card{
  display:grid;
  gap:14px;
  padding:22px;
}

.app-card h3{
  font-size:1.2rem;
}

.metric{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:.95rem;
}

.metric strong{
  color:var(--text);
  font-size:1.15rem;
}

.card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:11px 18px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(0,113,227,.35);
  box-shadow:0 16px 30px rgba(15,23,42,.08);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.btn.primary{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}

.btn-primary{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}

.btn.ghost{
  background:#fff;
}

.btn.soft{
  background:var(--primary-soft);
  border-color:#bfdbfe;
  color:var(--primary-dark);
}

.btn.danger{
  background:var(--danger-soft);
  border-color:#f3c2bc;
  color:var(--danger);
}

.btn-danger{
  background:var(--danger-soft);
  border-color:#f3c2bc;
  color:var(--danger);
}

.btn-soft{
  background:var(--primary-soft);
  border-color:#bfdbfe;
  color:var(--primary-dark);
}

.btn-sm{
  min-height:34px;
  padding:7px 12px;
  border-radius:8px;
  font-size:13px;
}

.btn-icon{
  width:40px;
  min-width:40px;
  padding:0;
  border-radius:999px;
}

.pill,
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}

.status-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#b42318;
}

.status-dot.ok{
  background:var(--accent);
}

.muted{color:var(--muted)}

.status-text{
  min-height:20px;
  color:var(--muted);
}

.toolbar-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.form-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.toolbar-spacer{flex:1 1 auto}

.field-grid{
  display:grid;
  gap:14px;
}

.input-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.field{
  display:grid;
  gap:6px;
}

.field.full{grid-column:1 / -1}

.field label{
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
}

input,
select,
textarea{
  width:100%;
  min-height:46px;
  padding:11px 14px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:#fff;
  color:var(--text);
}

textarea{
  min-height:120px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.table-shell{
  overflow:hidden;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f9fafb;
}

th,td{
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  font-size:14px;
}

tr:last-child td{border-bottom:0}

tr:hover td{background:#f9fafb}

.detail-row > td{
  padding:16px;
  background:var(--surface-soft);
}

.detail-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.detail-table thead th{
  position:static;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.detail-table td,
.detail-table th{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

.detail-table tbody tr:last-child td{
  border-bottom:0;
}

.loading{
  color:var(--muted);
  font-weight:700;
}

.info-note{
  padding:16px 18px;
  border:1px solid #fed7aa;
  border-radius:10px;
  background:var(--accent-soft);
  color:#7a4a06;
  line-height:1.6;
}

.video-card video{
  width:100%;
  max-width:100%;
  border-radius:18px;
  background:#ffffff;
  border:1px solid var(--line);
}

.dashboard-grid{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}

.nav-card{
  text-decoration:none;
  color:inherit;
  min-height:150px;
}

.nav-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-card);
}

.nav-copy{
  color:var(--muted);
  line-height:1.7;
  font-size:.98rem;
}

.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:8px 12px;
  border:1px solid rgba(0,113,227,.12);
  border-radius:999px;
  background:rgba(255,255,255,.7);
  color:#475467;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.section-kicker::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary) 0%, #8ec5ff 100%);
}

.landing-shell{
  display:grid;
  gap:24px;
}

.app-hero-card{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(280px, .9fr);
  gap:14px;
  padding:18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(242,247,255,.92) 54%, rgba(246,251,255,.88) 100%);
}

.app-hero-copy{
  display:grid;
  gap:8px;
  align-content:start;
}

.app-hero-copy h2{
  font-size:clamp(1.6rem, 3vw, 2.4rem);
  line-height:1.04;
  letter-spacing:-.04em;
  max-width:16ch;
}

.app-hero-copy p{
  max-width:58ch;
  color:var(--muted);
  line-height:1.55;
}

.intro-status-grid,
.app-hero-meta{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.mini-stat{
  display:grid;
  gap:4px;
  align-content:start;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.9);
}

.mini-stat strong{
  font-size:1.6rem;
  line-height:1;
  letter-spacing:-.03em;
}

.mini-stat span{
  color:var(--muted);
  font-size:.92rem;
}

.landing-hero{
  position:relative;
  overflow:hidden;
  padding:34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(244,248,255,.9) 55%, rgba(237,249,255,.9) 100%);
}

.landing-hero::before{
  content:"";
  position:absolute;
  inset:auto -8% -42% auto;
  width:360px;
  height:360px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(0,113,227,.16) 0%, rgba(0,113,227,0) 70%);
  pointer-events:none;
}

.landing-hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(320px, .9fr);
  gap:26px;
}

.landing-copy{
  display:grid;
  gap:18px;
  align-content:start;
}

.landing-headline{
  font-size:clamp(2.6rem, 6vw, 4.8rem);
  line-height:.98;
  letter-spacing:-.05em;
  max-width:11ch;
}

.landing-subline{
  max-width:60ch;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-metric-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.hero-metric-card{
  display:grid;
  gap:6px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.84);
}

.hero-metric-card strong{
  font-size:1.6rem;
  line-height:1;
}

.hero-metric-card span{
  color:var(--muted);
  line-height:1.6;
}

.hero-aside,
.premium-stack{
  display:grid;
  gap:16px;
}

.premium-panel{
  display:grid;
  gap:16px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow-soft);
}

.premium-panel h3{
  font-size:1.35rem;
}

.premium-panel p{
  color:var(--muted);
  line-height:1.7;
}

.system-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}

.system-grid-compact{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.system-btn{
  display:grid;
  gap:8px;
  text-align:left;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.8);
  color:var(--text);
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.system-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(0,113,227,.3);
  box-shadow:var(--shadow-soft);
}

.system-btn.active{
  border-color:rgba(0,113,227,.35);
  background:var(--primary-soft);
  box-shadow:0 18px 40px rgba(0,113,227,.12);
}

.system-btn strong{
  font-size:1rem;
}

.system-btn small{
  color:var(--muted);
  line-height:1.6;
}

.app-dashboard-grid{
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
}

.app-section-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.app-section-grid-small{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.app-nav-card{
  gap:10px;
  min-height:126px;
  padding:16px;
}

.app-nav-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.app-nav-top h3{
  font-size:1.05rem;
}

.tile-copy{
  color:var(--muted);
  line-height:1.45;
  font-size:.92rem;
}

.intro-section{
  display:grid;
  gap:14px;
}

.screen-section{
  display:grid;
  align-content:start;
}

.capability-grid,
.plan-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
}

.capability-card,
.plan-card{
  display:grid;
  gap:14px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.82);
}

.capability-card h3,
.plan-card h3{
  font-size:1.3rem;
}

.capability-card p,
.plan-card p{
  color:var(--muted);
  line-height:1.7;
}

.plan-card.featured{
  border-color:rgba(0,113,227,.28);
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(236,245,255,.96) 100%);
  box-shadow:0 22px 60px rgba(0,113,227,.12);
}

.plan-label{
  font-size:12px;
  font-weight:800;
  color:#475467;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.plan-price{
  font-size:1.9rem;
  font-weight:700;
  line-height:1;
  letter-spacing:-.04em;
}

.plan-price small{
  font-size:.92rem;
  color:var(--muted);
  font-weight:600;
  letter-spacing:0;
}

.list-check{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
  color:var(--muted);
}

.list-check li{
  position:relative;
  padding-left:18px;
  line-height:1.6;
}

.list-check li::before{
  content:"";
  position:absolute;
  left:0;
  top:.58em;
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
}

.subtle-note{
  padding:16px 18px;
  border:1px solid rgba(0,113,227,.14);
  border-radius:20px;
  background:rgba(255,255,255,.76);
  color:var(--muted);
  line-height:1.7;
}

.auth-page{
  display:grid;
  place-items:center;
  padding:24px;
}

.auth-shell{
  width:min(1120px, 100%);
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(360px, .86fr);
  gap:24px;
}

.auth-visual{
  min-height:540px;
  align-content:space-between;
  background:
    linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(236,245,255,.92) 45%, rgba(236,253,245,.88) 100%);
}

.auth-card{
  display:grid;
  gap:16px;
  align-content:start;
}

.auth-copy{
  display:grid;
  gap:16px;
  align-content:start;
}

.auth-copy h1{
  font-size:clamp(2.4rem, 5vw, 4rem);
  line-height:1;
  letter-spacing:-.05em;
  max-width:11ch;
}

.auth-card h2{
  font-size:1.8rem;
}

.btn-block{
  width:100%;
}

.stack{
  display:grid;
  gap:18px;
}

.hidden{display:none !important}

.pwa-splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at top, rgba(0,113,227,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(245,245,247,.98) 100%);
  transition:opacity .32s ease, visibility .32s ease;
}

.pwa-splash.is-hidden{
  opacity:0;
  visibility:hidden;
}

.pwa-splash-card{
  display:grid;
  justify-items:center;
  gap:12px;
  padding:28px 24px;
  min-width:min(320px, 100%);
}

.pwa-splash-icon{
  width:86px;
  height:86px;
  border-radius:22px;
  box-shadow:0 18px 36px rgba(15,23,42,.12);
}

.pwa-splash-title{
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-.02em;
}

.pwa-splash-copy{
  color:var(--muted);
  font-size:.95rem;
}

@media (max-width: 980px){
  .hero-grid,
  .input-grid,
  .landing-hero-grid,
  .auth-shell,
  .app-hero-card{
    grid-template-columns:1fr;
  }

  .hero-metric-grid{
    grid-template-columns:1fr;
  }

  .system-grid-compact{
    grid-template-columns:1fr;
  }

  .app-section-grid,
  .app-section-grid-small{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .app-segmented{
    grid-template-columns:1fr;
  }
}

@media (max-width: 820px){
  #btn-back-top,
  .back-top{
    display:none !important;
  }

  .app-screen-body{
    padding-bottom:max(98px, calc(74px + env(safe-area-inset-bottom, 0px)));
  }

  .page-shell{
    width:min(100%, calc(100% - 24px));
    padding:16px 0 28px;
  }

  .app-home-shell{
    width:min(100%, calc(100% - 20px));
    padding-top:max(10px, env(safe-area-inset-top, 0px));
  }

  .app-screen-shell{
    width:min(100%, calc(100% - 18px));
    padding-top:max(8px, env(safe-area-inset-top, 0px));
  }

  .app-topbar{
    margin-bottom:16px;
  }

  .hero-card,
  .section-card{
    padding:18px;
    border-radius:20px;
  }

  .btn,
  input,
  select,
  textarea{
    font-size:16px;
  }

  .card-grid{
    grid-template-columns:1fr;
  }

  .topbar-actions,
  .toolbar-row{
    width:100%;
    justify-content:flex-start;
  }

  .landing-headline,
  .auth-copy h1{
    max-width:none;
  }

  .title-block h1{
    font-size:1.65rem;
  }

  .title-copy{
    font-size:.95rem;
  }

  .app-topbar-compact{
    padding:14px;
  }

  .app-screen-bar{
    align-items:flex-start;
  }

  .app-screen-meta{
    width:100%;
  }

  .app-large-title{
    padding:2px 2px 0;
  }

  .app-large-title h1{
    font-size:2.25rem;
  }

  .app-large-title p{
    font-size:.95rem;
  }

  .app-focus-card,
  .app-list{
    border-radius:22px;
  }

  .app-list-row{
    padding:15px 16px;
  }

  .app-list-main span{
    font-size:.88rem;
  }

  .app-hero-copy h2{
    font-size:1.45rem;
    max-width:none;
  }

  .mini-stat{
    padding:12px;
    border-radius:16px;
  }

  .system-grid{
    display:grid;
    gap:10px;
  }

  .system-grid-compact{
    grid-template-columns:1fr;
  }

  .system-btn{
    padding:14px;
    border-radius:18px;
  }

  .app-dashboard-grid,
  .app-section-grid,
  .app-section-grid-small{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }

  .app-nav-card{
    min-height:118px;
    padding:14px;
    border-radius:18px;
  }

  .app-nav-top{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .nav-copy{
    font-size:.9rem;
    line-height:1.5;
  }

  .screen-section{
    min-height:calc(100svh - 126px);
  }

  .app-tabbar{
    position:fixed;
    left:50%;
    bottom:max(8px, env(safe-area-inset-bottom, 0px));
    transform:translateX(-50%);
    z-index:120;
    width:min(420px, calc(100% - 18px));
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:6px;
    padding:8px;
    border:1px solid var(--line);
    border-radius:26px;
    background:rgba(255,255,255,.84);
    backdrop-filter:blur(24px);
    box-shadow:0 20px 50px rgba(15,23,42,.12);
  }

  .app-tab-link{
    display:grid;
    justify-items:center;
    gap:6px;
    padding:8px 4px;
    border-radius:18px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
    line-height:1.1;
  }

  .app-tab-link::before{
    content:"";
    display:block;
    width:18px;
    height:18px;
    border:2px solid currentColor;
    border-radius:999px;
    opacity:.72;
  }

  .app-tab-link[data-app-tab-link="artikel"]::before{
    border-radius:6px;
  }

  .app-tab-link[data-app-tab-link="siebe"]::before{
    border-radius:6px;
    transform:rotate(45deg);
    width:14px;
    height:14px;
    margin-top:2px;
  }

  .app-tab-link[data-app-tab-link="hilfe"]::before{
    border-style:dashed;
  }

  .app-tab-link.active{
    background:var(--primary-soft);
    color:var(--primary-dark);
  }

  .app-tab-link.active::before{
    border-color:currentColor;
    background:currentColor;
    box-shadow:inset 0 0 0 4px var(--primary-soft);
  }
}

@media (max-width: 430px){
  .app-screen-body{
    padding-bottom:max(102px, calc(78px + env(safe-area-inset-bottom, 0px)));
  }

  .app-dashboard-grid,
  .app-section-grid,
  .app-section-grid-small{
    grid-template-columns:1fr 1fr;
  }

  .app-nav-card{
    min-height:112px;
    padding:12px;
  }

  .app-nav-top h3{
    font-size:1rem;
  }

  .badge{
    font-size:11px;
    padding:6px 10px;
  }

  .topbar-actions{
    gap:8px;
  }

  .btn{
    min-height:40px;
    padding:10px 14px;
  }

  .tile-copy{
    font-size:.88rem;
  }

  .app-tabbar{
    width:min(100%, calc(100% - 14px));
    gap:4px;
    padding:7px;
  }

  .app-tab-link{
    font-size:10px;
    padding:8px 2px;
  }
}

/* ===== 20260405a iPhone-first app rebuild ===== */

body.app-screen-body-ios,
body.auth-page-ios{
  min-height:100vh;
  background:
    radial-gradient(circle at top, rgba(0,113,227,.08), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #f2f2f7 100%);
}

.app-screen-body-ios{
  padding-bottom:max(92px, calc(76px + env(safe-area-inset-bottom, 0px)));
}

.app-phone-shell,
.auth-phone-shell{
  width:min(100%, 460px);
  margin:0 auto;
  padding:max(10px, env(safe-area-inset-top, 0px)) 12px calc(96px + env(safe-area-inset-bottom, 0px));
}

.auth-phone-shell{
  min-height:100vh;
  display:grid;
  align-items:center;
}

.ios-page-header{
  display:grid;
  gap:12px;
}

.ios-page-header-wide{
  display:grid;
  gap:12px;
}

.ios-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.ios-toolbar-stack{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.ios-title-block{
  display:grid;
  gap:8px;
  padding:2px 2px 0;
}

.ios-title-block h1{
  font-size:clamp(2.35rem, 8vw, 3.35rem);
  line-height:.96;
  letter-spacing:-.06em;
}

.ios-title-block p{
  color:var(--muted);
  line-height:1.45;
  max-width:34ch;
}

.ios-kicker{
  color:var(--primary-dark);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ios-stack{
  display:grid;
  gap:14px;
  margin-top:14px;
}

.ios-surface-card,
.ios-info-card,
.ios-auth-card{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:26px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(20px);
  box-shadow:0 18px 46px rgba(15,23,42,.06);
}

.ios-info-card{
  gap:6px;
}

.ios-info-card strong{
  font-size:.98rem;
}

.ios-info-card p{
  color:var(--muted);
  line-height:1.5;
}

.ios-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.ios-section-heading strong{
  display:block;
  font-size:1rem;
}

.ios-section-heading small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:.86rem;
  line-height:1.35;
}

.ios-segmented-picker{
  display:grid;
  gap:8px;
}

.ios-segment-option{
  width:100%;
  justify-content:flex-start;
  text-align:left;
  min-height:64px;
  padding:14px 16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:#ffffff;
  box-shadow:none;
}

.ios-segment-option strong,
.ios-segment-option small{
  display:block;
}

.ios-segment-option:hover{
  transform:none;
  box-shadow:none;
}

.ios-segment-option small{
  margin-top:4px;
  color:var(--muted);
}

.ios-segment-option.active{
  border-color:rgba(0,113,227,.28);
  background:linear-gradient(180deg, #f6faff 0%, #eef5ff 100%);
  box-shadow:0 10px 24px rgba(0,113,227,.08);
}

.ios-card-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.ios-app-card{
  position:relative;
  display:grid;
  gap:10px;
  min-height:148px;
  padding:16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:#ffffff;
  color:inherit;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.ios-app-card:hover{
  color:inherit;
  border-color:rgba(0,113,227,.22);
}

.ios-app-card-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color:var(--primary-dark);
  font-size:.88rem;
  font-weight:800;
}

.ios-app-card strong{
  font-size:1rem;
}

.ios-app-card small{
  color:var(--muted);
  line-height:1.4;
}

.ios-app-card-value{
  position:absolute;
  right:14px;
  top:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  min-height:28px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.ios-list-section{
  display:grid;
  gap:10px;
}

.ios-list-card{
  display:grid;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  overflow:hidden;
  background:rgba(255,255,255,.9);
  box-shadow:0 18px 46px rgba(15,23,42,.06);
}

.ios-list-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-top:1px solid rgba(15,23,42,.08);
  color:inherit;
}

.ios-list-link:first-child{
  border-top:0;
}

.ios-list-link:hover{
  color:inherit;
  background:#fcfcfd;
}

.ios-list-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.ios-list-copy strong{
  font-size:1rem;
}

.ios-list-copy span{
  color:var(--muted);
  font-size:.9rem;
  line-height:1.4;
}

.ios-list-side{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.ios-list-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  background:#f2f4f7;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.ios-list-arrow{
  width:10px;
  height:10px;
  border-top:2px solid #c3cad6;
  border-right:2px solid #c3cad6;
  transform:rotate(45deg);
}

.auth-page-ios{
  display:block;
  padding:0;
}

.ios-auth-card{
  justify-items:start;
}

.ios-auth-card h1{
  font-size:clamp(2.2rem, 8vw, 3rem);
  line-height:1;
  letter-spacing:-.05em;
}

.ios-auth-card p{
  color:var(--muted);
  line-height:1.55;
}

.ios-auth-icon{
  width:76px;
  height:76px;
  border-radius:20px;
  box-shadow:0 16px 36px rgba(15,23,42,.14);
}

.ios-auth-form{
  width:100%;
  display:grid;
  gap:14px;
}

.ios-auth-error{
  color:var(--danger);
}

.ios-auth-note{
  display:grid;
  gap:4px;
  padding:14px 16px;
  border-radius:18px;
  background:#f8fafc;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.5;
}

.app-tabbar-flat{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  transform:none;
  z-index:200;
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:0;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  border:0;
  border-top:1px solid rgba(15,23,42,.08);
  border-radius:0;
  background:rgba(249,249,251,.94);
  backdrop-filter:blur(24px);
  box-shadow:0 -10px 30px rgba(15,23,42,.08);
  display:grid;
}

.app-tabbar-flat .app-tab-link{
  display:grid;
  justify-items:center;
  gap:6px;
  padding:8px 4px 6px;
  border-radius:16px;
  color:#6b7280;
  font-size:11px;
  font-weight:700;
  line-height:1.1;
}

.app-tabbar-flat .app-tab-link::before{
  content:"";
  display:block;
  width:18px;
  height:18px;
  border:2px solid currentColor;
  border-radius:999px;
  opacity:.72;
}

.app-tabbar-flat .app-tab-link[data-app-tab-link="artikel"]::before{
  border-radius:6px;
}

.app-tabbar-flat .app-tab-link[data-app-tab-link="siebe"]::before{
  border-radius:6px;
  transform:rotate(45deg);
  width:14px;
  height:14px;
  margin-top:2px;
}

.app-tabbar-flat .app-tab-link[data-app-tab-link="more"]::before{
  width:18px;
  height:4px;
  margin-top:7px;
  border-radius:999px;
}

.app-tabbar-flat .app-tab-link.active{
  color:var(--primary-dark);
}

.app-tabbar-flat .app-tab-link.active::before{
  background:currentColor;
  border-color:currentColor;
  box-shadow:inset 0 0 0 4px rgba(239,245,255,.95);
}

.pwa-splash{
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,246,248,.98) 100%);
}

.pwa-splash-card{
  gap:14px;
}

.pwa-splash-card::after{
  content:"";
  display:block;
  width:110px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(0,113,227,.18) 0%, rgba(0,113,227,.88) 50%, rgba(0,113,227,.18) 100%);
}

@media (max-width: 820px){
  .app-phone-shell,
  .auth-phone-shell{
    width:100%;
    padding-left:10px;
    padding-right:10px;
  }

  .ios-toolbar,
  .ios-toolbar-stack{
    align-items:flex-start;
  }

  .ios-toolbar-stack{
    width:100%;
  }

  .ios-card-grid{
    grid-template-columns:1fr 1fr;
  }

  .ios-auth-card,
  .ios-surface-card,
  .ios-info-card{
    border-radius:24px;
    padding:16px;
  }
}

@media (max-width: 430px){
  .ios-title-block h1{
    font-size:2.55rem;
  }

  .ios-app-card{
    min-height:136px;
    padding:14px;
    border-radius:22px;
  }

  .ios-list-link{
    padding:15px 16px;
  }

  .app-tabbar-flat{
    padding-left:8px;
    padding-right:8px;
  }
}
