/* App-only responsive tweaks (loaded only for authenticated owner UI).
   Goal: stable layout on iPad/small screens without touching landingpage. */

/* Prevent long content from blowing up layouts */
.table { overflow-x: auto; }
code { max-width: 100%; }

/* Mobile-first global guardrails (authenticated app) */
@media (max-width: 768px){
  .container{padding:0 16px}
  .btn, .btn--sm, .nav__link, .segbtn, .lf-mobileMenu__link{
    min-height:44px;
  }
  .btn{padding:12px 14px}
  .btn--sm{padding:11px 12px}
  input, select, textarea{
    font-size:16px; /* iOS: prevents zoom on focus */
  }
  .muted{font-size:16px;line-height:1.55}
  h1{font-size:30px}
}

/* Mobile-only / Desktop-only helpers (templates use these classes) */
.lf-mobileOnly{display:none}
.lf-desktopOnly{display:block}
@media (max-width: 768px){
  .lf-mobileOnly{display:block}
  .lf-desktopOnly{display:none}
}

/* Sticky action bar (mobile) */
.lf-stickyBar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:50;
  background: rgba(255,255,255,.94);
  border-top:1px solid rgba(18,24,38,.10);
  box-shadow: 0 -18px 50px rgba(11,59,94,.10);
  padding:10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display:flex;
  gap:10px;
  align-items:center;
}
.lf-stickySpacer{
  height: calc(86px + env(safe-area-inset-bottom));
}

/* Mobile cards (used for consent lists + close relevance list) */
.lf-mobileCard{
  border:1px solid rgba(18,24,38,.08);
  border-radius:18px;
  background: rgba(255,255,255,.78);
  padding:12px;
  box-shadow: 0 12px 30px rgba(11,59,94,.06);
  margin-top:10px;
}
.lf-mobileCard__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.lf-mobileCard__actions{
  margin-top:10px;
  display:grid;
  gap:8px;
}

/* Home: if table-mode was chosen, still show cards on mobile */
.homeMobileCards{display:none}
@media (max-width: 768px){
  .homeTableToolbar, .lf-tableWrap{display:none !important;}
  .homeMobileCards{display:grid;gap:10px;margin-top:10px}
  /* On mobile we never offer a table view toggle (avoid confusion/leaks). */
  .home-viewMode{display:none !important;}
}

/* Make pack grid readable on mobile */
@media (max-width: 768px){
  .grid3{grid-template-columns:1fr !important}
  .price-card__actions .btn{width:100%}
}

/* Wider app layout (authenticated only) */
.container{max-width:1240px}
/* ui.css sets a max-width on .cards--two; for the app dashboard we want full container width */
.cards--two{max-width:none;margin:0}
/* Our dashboard wraps the two columns inside a single .home-wrap. Ensure it spans the full grid width. */
.cards--two > .home-wrap{grid-column:1 / -1}

/* --- App pages polish (Onboarding / Hilfe) --- */
.app-hero{
  margin-top: 6px;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(18,24,38,.08);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(91,124,255,.10), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(24,182,166,.10), transparent 60%),
    rgba(255,255,255,.65);
}
.app-hero--plain{
  /* Use on pages where the hero should not feel like an extra “tile/card”. */
  padding: 6px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.app-hero--plain .app-hero__aside{border:none;background:transparent;padding:0}
.app-hero--plain h1{font-size:38px}
.app-hero--plain .lead{max-width:68ch}
.app-hero--plain .scenario-merksatz{
  /* Keep it premium: no big container tile; just an inline “guidance row”. */
  margin-top:12px;
  padding:0;
  border:none;
  background:transparent;
}
.app-hero--plain .scenario-merksatz .pill{
  background:rgba(255,255,255,.65);
  border-color:rgba(18,24,38,.08);
}
.app-hero--plain .scenario-merksatz .chip{
  background:
    radial-gradient(420px 140px at 20% 0%, rgba(255,214,182,.22), transparent 60%),
    rgba(255,255,255,.66);
  border-color:rgba(18,24,38,.10);
}
.app-hero__grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;align-items:start}
.app-hero__grid--single{grid-template-columns:1fr}
.app-hero h1{margin:0 0 8px;font-size:36px;line-height:1.05}
.app-hero .lead{margin:0;color:rgba(15,23,42,.78)}
.app-hero__aside{
  border:1px solid rgba(18,24,38,.08);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,.70);
}
.app-hero__aside .app-kpi{margin-top:10px}
.scenario-merksatz{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.scenario-merksatz .chip{
  background: rgba(255,255,255,.72);
  border-color: rgba(18,24,38,.10);
}
.scenario-merksatz .chip strong{color:rgba(15,23,42,.90)}
.app-kpi{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.app-kpi li{display:flex;gap:10px;align-items:flex-start}
.app-kpi b{min-width:22px;display:inline-grid;place-items:center;height:22px;border-radius:8px;border:1px solid rgba(18,24,38,.10);background:rgba(255,255,255,.8)}

.app-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.step-card{
  border:1px solid rgba(18,24,38,.08);
  border-radius:18px;
  padding:16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(11,59,94,.08);
}
.step-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.step-badge{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:900;font-size:12px;
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.70);
  color: rgba(15,23,42,.78);
}
.step-ico{font-size:16px}
.step-card h3{margin:4px 0 6px}
.step-card p{margin:0;color:rgba(15,23,42,.72);line-height:1.55}
.checklist{margin:10px 0 0;padding-left:18px;color:rgba(15,23,42,.75);line-height:1.6}
.app-cta{
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.app-panel{
  margin-top:14px;
  border:1px solid rgba(18,24,38,.08);
  border-radius:18px;
  padding:16px;
  background: rgba(255,255,255,.75);
}
.app-panel h3{margin:0 0 10px}
.app-panel p{margin:0;color:rgba(15,23,42,.72);line-height:1.55}

/* Feedback form */
.fb-form .fb-block{
  border:1px solid rgba(18,24,38,.08);
  border-radius:18px;
  padding:14px;
  background: rgba(255,255,255,.70);
  margin:0 0 12px 0;
}
.fb-form .fb-q{font-weight:900;color:rgba(15,23,42,.90)}
.fb-form .fb-help{color:rgba(15,23,42,.70)}
.fb-checkgrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 12px;
}
.fb-checkgrid .check{margin:0}
.fb-check{
  border:1px solid rgba(18,24,38,.08);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.60);
}
.fb-check input{margin:0}
.fb-other{
  grid-column: 1 / -1;
  border:1px solid rgba(18,24,38,.08);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.60);
  display:grid;
  gap:8px;
}
.fb-other__label{font-weight:800;color:rgba(15,23,42,.78)}
.fb-other input[type="text"]{
  width:100%;
  margin:0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.85);
}
.fb-scale{
  display:grid;
  gap:8px;
}
.fb-scale--5{grid-template-columns:repeat(5, minmax(0, 1fr))}
.fb-scale--11{grid-template-columns:repeat(11, minmax(34px, 1fr))}
.fb-pick{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(18,24,38,.10);
  border-radius:14px;
  padding:10px 0;
  background: rgba(255,255,255,.60);
  cursor:pointer;
  user-select:none;
  font-weight:900;
  color: rgba(15,23,42,.82);
}
.fb-pick input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.fb-pick:hover{filter:brightness(.99)}
.fb-pick input:checked + span{
  color: rgba(15,23,42,.92);
}
.fb-pick:has(input:checked){
  border-color: rgba(14,165,160,.35);
  background: rgba(14,165,160,.10);
}
@media (max-width: 980px){
  .fb-checkgrid{grid-template-columns:1fr}
  .fb-scale--11{grid-template-columns:repeat(6, minmax(34px, 1fr))}
}

/* Szenarien (Onboarding) */
.scenario-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  margin-top:14px;
  margin-bottom:72px;
}
.scenario-card{
  display:flex;
  flex-direction:column;
  border:1px solid rgba(18,24,38,.08);
  border-radius:18px;
  padding:16px;
  background:
    radial-gradient(900px 340px at 20% 0%, rgba(255,214,182,.18), transparent 62%),
    radial-gradient(900px 340px at 85% 0%, rgba(91,124,255,.10), transparent 62%),
    rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(11,59,94,.08);
}
.scenario-card--wide{
  grid-column: 1 / -1;
  background:
    radial-gradient(900px 340px at 15% 0%, rgba(255,214,182,.22), transparent 62%),
    radial-gradient(900px 340px at 85% 0%, rgba(24,182,166,.10), transparent 62%),
    rgba(255,255,255,.88);
}
.scenario-grid > .scenario-card--wide{
  /* Enforce full-width card across both columns (prevents “half width” feel if any other styles interfere) */
  grid-column: 1 / -1 !important;
}
.scenario-card__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:10px
}
.scenario-badge{
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.70);
  color: rgba(15,23,42,.70);
}

/* Premium steps list (no default <ol> indentation; consistent rows) */
.scenario-card h3{margin:2px 0 6px}
.scenario-card p{margin:0;color:rgba(15,23,42,.72);line-height:1.55}
.scenario-card p + p{margin-top:8px}
.scenario-steps{
  counter-reset: scstep;
  list-style:none;
  padding:0;
  margin:12px 0 0;
  display:grid;
  gap:8px;
  color:rgba(15,23,42,.78);
  line-height:1.55;
}
.scenario-steps li{
  position:relative;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(18,24,38,.08);
  background: rgba(255,255,255,.62);
}
.scenario-steps li::before{
  counter-increment: scstep;
  content: counter(scstep);
  width:22px;height:22px;
  border-radius:10px;
  display:inline-grid;place-items:center;
  flex:0 0 22px;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.85);
  color: rgba(15,23,42,.85);
  font-weight:900;
  margin-top:1px;
}
.scenario-steps strong{color:rgba(15,23,42,.90)}
@media (max-width: 980px){
  .scenario-grid{grid-template-columns:1fr}
}

/* Hilfe cards */
.help-cards{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  margin-top:12px;
}
.help-card{
  border:1px solid rgba(18,24,38,.08);
  border-radius:18px;
  padding:14px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(11,59,94,.08);
  display:flex;
  gap:12px;
  align-items:flex-start;
  text-decoration:none;
  color:inherit;
}
.help-card:hover{filter:brightness(.99)}
.help-card__icon{
  width:40px;height:40px;
  border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.75);
  font-size:18px;
}
.help-card__title{font-weight:900}
.help-card .muted.small{line-height:1.35}
@media (max-width: 980px){
  .help-cards{grid-template-columns:1fr}
}

/* FAQ accordion */
.faq{margin-top:16px}
.faq details{
  border:1px solid rgba(18,24,38,.08);
  border-radius:16px;
  background: rgba(255,255,255,.78);
  padding: 12px 14px;
  box-shadow: 0 10px 26px rgba(11,59,94,.06);
}
.faq details + details{margin-top:10px}
.faq summary{
  cursor:pointer;
  font-weight:900;
  color: rgba(15,23,42,.88);
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";
  width:28px;height:28px;
  display:inline-grid;place-items:center;
  border-radius:10px;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.7);
  color: rgba(15,23,42,.70);
  font-weight:900;
}
.faq details[open] summary::after{content:"–"}
.faq .muted{margin-top:10px}

/* Help/Guide simplified (one flow + 5 FAQs) */
.lf-lead{max-width:70ch}
.lf-btnRow{flex-wrap:wrap;margin-top:10px}
.lf-faqSection{margin-top:24px}
.lf-faqSection__title{margin:0 0 8px;font-size:1.35rem}
.lf-faqSection__intro{margin:0 0 14px;line-height:1.55}
.lf-flowBlock{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;font-weight:700}
.lf-flowBlock__step{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--stroke, rgba(18,24,38,.12));color:var(--txt, #0f172a);font-size:14px}
.lf-flowBlock__label{margin:0}
.lf-faqSection__meta{margin:0 0 20px;line-height:1.55}
.lf-faqSection__sub{margin:0 0 10px;font-size:1rem}
.lf-faqItem{margin-top:10px;border:1px solid rgba(18,24,38,.08);border-radius:12px;padding:0}
.lf-faqItem summary{padding:12px 14px;cursor:pointer;list-style:none}
.lf-faqItem summary::-webkit-details-marker{display:none}
.lf-faqItem__body{padding:0 14px 12px;line-height:1.55}
.lf-helpContact{margin-top:24px;padding-top:12px;border-top:1px solid rgba(18,24,38,.08)}

.lf-pillRow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}

/* Account: intro + profile for releases */
.lf-accountIntro{margin-top:12px;padding:12px 14px}
.lf-accountIntro__title{font-size:13px}
.lf-accountIntro__text{margin-top:6px;line-height:1.55;max-width:90ch}
.lf-accountCard__heading{margin:0}
.lf-accountCard__sub{margin-top:6px}
.lf-profileForReleases{margin-top:16px;padding-top:16px;border-top:1px solid rgba(18,24,38,.08)}
.lf-profileForReleases__title{font-size:13px}
.lf-profileForReleases__hint{margin-top:4px;line-height:1.45}
.lf-profileForReleases .lf-accountKv{margin-top:10px}
.lf-profileForReleases .muted.small{margin-top:8px}

/* --- Home page spacing & layout --- */
.home-hero{padding:22px}
.home-hero__chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.home-hero__chips .chip{
  border-radius:999px;
  /* Make home highlights consistent (no “blue filled” vs “muted outlined” mismatch). */
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(18,24,38,.10);
  color: rgba(15,23,42,.72);
}

/* Home: compact quickflow (right side) */
.home-quickflow{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 8px;
}
.home-quickflow__item{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(18,24,38,.08);
  background: rgba(255,255,255,.70);
}
.home-quickflow__n{
  width: 24px;
  height: 24px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  font-weight: 950;
  font-size: 12px;
  color: rgba(15,23,42,.82);
  border: 1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.85);
  flex: 0 0 24px;
}
.home-stats{margin-top:16px}
.home-stats .stat{
  background:
    radial-gradient(520px 240px at 20% 0%, rgba(255,214,182,.35), transparent 60%),
    rgba(255,255,255,.78);
  border-radius:18px;
  padding:14px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid rgba(18,24,38,.08);
}
.home-stats .stat__icon{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.75);
  font-size:18px;
}
.home-stats .stat__k{font-size:12px;font-weight:800;color:rgba(15,23,42,.62);letter-spacing:.02em}
.home-stats .stat__v{font-size:26px;font-weight:900;color:rgba(15,23,42,.90);line-height:1.05;margin-top:2px}
.home-wrap{max-width:100%;margin:0}
.home-actions{margin-top:16px;margin-bottom:12px}
.home-search{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.home-search input{flex:1;min-width:260px}

.home-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:16px;
  align-items:start;
}
.home-columns--single{
  grid-template-columns: 1fr;
}
.home-col__hd{margin-bottom:10px}
.home-col__hd h3{margin:0 0 6px}
.home-col__list{display:grid;gap:12px}

@media (max-width: 860px) {
  .topbar__inner { height: auto; padding: 10px 0; gap: 12px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .pagehd { flex-direction: column; align-items: flex-start; }
  .pagehd__actions { width: 100%; }
  .app-hero__grid{grid-template-columns:1fr}
  .home-hero{padding:18px}
  .home-columns{grid-template-columns:1fr}
}

/* --- Project detail (event) --- */
.event-hero .app-hero__grid{grid-template-columns:1.25fr .75fr}
.event-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;margin-top:10px}
.event-kpis{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.event-layout{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
  margin-top:14px;
}
.event-side{display:grid;gap:14px}
@media (max-width: 980px){
  .event-layout{grid-template-columns:1fr}
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  main { padding: 18px 0 28px; }
  .nav { width: 100%; justify-content: flex-start; }
  .app-steps{grid-template-columns:1fr}
  .home-search input{min-width:100%}
}

