.product {min-height:100vh;display:flex;flex-direction:column}
.product main {width:min(1160px,calc(100% - 56px));flex:1}
.product .topbar {gap:1rem;flex-shrink:0}
.product-nav,.filters,.welcome-actions,.account-actions,.section-top {display:flex;align-items:center;gap:1.25rem}
.product-nav a,.top-sign-in {text-decoration:none;font-weight:600;font-size:.95rem;padding:.55rem .15rem}
.product-nav a[aria-current=page],.filters a[aria-current=page] {color:var(--red-dark);box-shadow:inset 0 -2px var(--red-dark)}
.product-nav a:hover,.top-sign-in:hover,.download-link:hover {text-decoration:underline}
.welcome {
  display:grid;
  grid-template-columns:1.04fr 1fr;
  gap:clamp(2rem,6vw,6rem);
  align-items:center;
  padding:clamp(1.5rem,5vh,4rem) 0 clamp(3rem,6vw,5.5rem);
}
.welcome h1 {font-size:clamp(3rem,5.45vw,5.2rem);line-height:1.02;letter-spacing:-.055em}
.welcome h1 em {display:block;font-family:Georgia,serif;font-weight:400;color:var(--red-dark)}
.welcome .intro {max-width:45ch;margin:1.35rem 0;color:#575765;line-height:1.65}
.welcome-actions {margin:1.55rem 0 .6rem}
.welcome-actions a,.section-top .primary {text-decoration:none;display:inline-flex;align-items:center;gap:1rem}
.access-note {font-size:.84rem;color:#615f69}
.document-stage {
  background:#eee0da;
  padding:clamp(1.25rem,3vw,2.7rem);
  border-radius:1rem;
  min-width:0;
}
.example-picker {padding:0;margin:0 0 1.5rem;border:0;min-width:0}
.example-picker legend {padding:0;font:normal 1.4rem/1.3 Georgia,serif}
.example-choices {display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.7rem}
.example-choices label {
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.42rem .8rem;
  margin:0;
  border:1px solid #bcaaa3;
  border-radius:2rem;
  cursor:pointer;
}
.example-choices label:has(:checked) {background:var(--ink);border-color:var(--ink);color:white}
.example-choices input {margin:0;accent-color:var(--ink)}
.example-choices label:has(:focus-visible) {outline:3px solid var(--purple);outline-offset:3px}
.document-stage:has([value="service"]:checked) #leitung-example,
.document-stage:has([value="leitung"]:checked) #service-example {display:none}
.specimen {
  background:#fffdfa;
  border-top:4px solid var(--ink);
  box-shadow:4px 6px 0 #dfd0c8;
  padding:clamp(1.2rem,2.6vw,2.4rem);
  transform:rotate(-1deg);
}
.specimen h2 {font-size:.95rem;letter-spacing:0}
.specimen blockquote {margin:.75rem 0 1.1rem;font:normal clamp(1.3rem,2.1vw,1.9rem)/1.28 Georgia,serif}
.specimen h3 {border-top:1px solid var(--line);padding-top:.95rem;margin-bottom:.3rem;font-size:.95rem}
.specimen p {font-size:.94rem;line-height:1.55}
.landing-stories {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(2rem,6vw,6rem);
  border-top:1px solid var(--line);
  padding:clamp(2rem,4vw,3.8rem) 0;
}
.landing-stories h2,.landing-research h2 {max-width:24ch;text-wrap:balance}
.landing-stories p,.landing-research p {max-width:62ch;line-height:1.65}
.landing-stories p {margin-top:.8rem}
.landing-research {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);
  align-items:baseline;
  gap:1rem clamp(2rem,5vw,5rem);
  padding:clamp(1.5rem,3vw,2.8rem);
  background:#ecebf0;
  border-radius:1rem;
}
.landing-partner {padding:2rem 0 0}
.section-top {justify-content:space-between;gap:1rem;margin:1rem 0 2rem}
.workspace-name,.library-note,.sharing-note {color:#615f69;font-size:.91rem}
.workspace-name {margin-bottom:.4rem}
.library-card,.account-card {background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.filters {padding:0 1.5rem;border-bottom:1px solid var(--line)}
.filters a {display:block;text-decoration:none;padding:1rem 0;font-weight:600}
.library-search {display:block;max-width:32rem;margin:1.25rem 1.5rem}
.library-search input {display:block;width:100%;margin-top:.4rem}
.guide-line {display:grid;grid-template-columns:minmax(10rem,1.7fr) minmax(7rem,1.2fr) .85fr .65fr 1fr;gap:1rem;align-items:center;padding:.9rem 1.5rem}
.guide-head {color:var(--muted);font-size:.8rem;border-bottom:1px solid var(--line);background:#faf9f8}
.guide-record + .guide-record {border-top:1px solid var(--line)}
.guide-record strong,.guide-record small {display:block}
.guide-record small,.creator {color:#625f69}
.guide-record {font-size:.91rem;overflow-wrap:anywhere}
.status-ready {color:#215f4c}.status-failed {color:var(--red-dark)}
.download-link {color:var(--purple);font-weight:650}
.guide-actions {display:grid;justify-items:start;gap:.45rem}
.guide-history {margin:0 1.5rem .65rem;padding:0;border:0}
.guide-history summary {width:fit-content;padding:.25rem 0;color:var(--purple);font-weight:600;cursor:pointer}
.guide-history[open] summary {margin-bottom:0}
.guide-history ul {list-style:none;padding:.2rem 1rem;margin:.5rem 0 0;background:#faf9f8;border-radius:8px}
.guide-history li {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;padding:.65rem 0}
.guide-history li + li {border-top:1px solid var(--line)}
.guide-history small {margin-top:.15rem}
.guide-history-actions {display:flex;flex-wrap:wrap;gap:.45rem 1rem}
.library-note,.sharing-note {margin-top:1rem}.sharing-note {margin-bottom:1rem}
.library-empty {padding:clamp(2.5rem,6vw,5rem) 1.5rem;text-align:center}
.library-empty p {color:var(--muted);margin:.5rem 0 1rem}
.account-card {max-width:43rem;padding:1.7rem}
.account-card dl {margin:1rem 0 1.5rem}
.account-card dl div {display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.8rem 0}
.account-card dt {color:var(--muted)}.account-card dd {margin:0;overflow-wrap:anywhere}
.account-card p {margin:.65rem 0}.account-actions {justify-content:space-between;margin-top:1.5rem}
@media(max-width:760px) {
  .product main {width:calc(100% - 32px);padding:1.7rem 0}
  .product .topbar {height:auto;min-height:66px;padding:.6rem 1rem;flex-wrap:wrap}
  .product-nav {gap:.7rem}.product-nav a {font-size:.85rem}
  .welcome,.landing-stories,.landing-research {grid-template-columns:1fr}
  .section-top {align-items:start;flex-wrap:wrap}
  .guide-head {display:none}.guide-summary {grid-template-columns:1fr auto;gap:.4rem 1rem}
  .guide-summary>div:first-child {grid-column:1/-1}.guide-summary>div:last-child {text-align:right}
  .filters {gap:1rem}.filters a {font-size:.87rem}
}
@media(max-width:500px) {
  .guide-summary>.creator,.guide-summary>.guide-actions {grid-column:1/-1}
  .guide-summary>.guide-actions {display:flex;flex-wrap:wrap;gap:.45rem 1rem;text-align:start}
}

.product footer {width:min(1160px,calc(100% - 56px));margin:0 auto}
.product-login form {display:grid;gap:.8rem}
.product-login label {margin:0}
.product-login label input {display:block;margin-top:.4rem}
.product-login form>.primary {margin-top:.25rem}
.product-login a {font-size:.92rem}
.product-login [role=status] {font-size:.92rem}
.guide-record time small {font-size:.75rem}
@media (max-width:760px) {
  .product main {margin:0 auto}
  .product footer span {display:inline}
  .guide-record .creator::before {content:"Von "}
}

.custom-competencies {margin-bottom:1.25rem}
.custom-competencies>.secondary {color:var(--purple);border-color:var(--purple)}
#custom-editor {padding:1.1rem;margin-top:.75rem;border:1px solid var(--line);border-radius:8px;background:#faf9f8}
#custom-editor .field {margin-bottom:.85rem}
#custom-editor textarea {min-height:4.5rem}
.custom-actions {display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
#custom-error {margin-bottom:.8rem}
.custom-choice {min-width:0;border:1px solid var(--line);border-radius:7px;overflow-wrap:anywhere}
.custom-choice:has(:checked) {background:var(--soft);border-color:#f2a9ae}
.custom-choice .competency {border:0;background:transparent}
.custom-choice button {margin:0 0 .6rem 2rem}

#support-details {border:0;padding:0;margin:1rem auto 0;font-size:.8rem;overflow-wrap:anywhere}
#support-details summary {width:fit-content;margin:0 auto;padding:.5rem;font-size:inherit;font-weight:400}

.product .brand img, .product footer img {display:block;max-width:100%;height:auto}
.product footer {flex-wrap:wrap;align-items:center;gap:12px 24px}
.legal-links {display:flex;flex-wrap:wrap;gap:0 20px}
.legal-links a {display:inline-flex;align-items:center;min-height:44px;font-size:.9rem;color:var(--ink);text-underline-offset:.2em}
.product .legal-page {max-width:46rem;margin-inline:auto}
.legal-page h1 {margin:1rem 0 2rem}
.legal-page section + section {margin-top:2rem}
.legal-page p {margin-top:.5rem}
@media (max-width:760px) {
  .product .brand img {width:112px}
}
.account-card + .account-card {margin-top:1rem}
