/* Shared presentation for the website, Spielplan and the offline layout preview. */
.unified-site {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  --frame-padding: clamp(0.75rem, 2.5vw, 2.5rem);
}

.unified-site .site-masthead {
  padding: 0.8rem var(--frame-padding);
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: fit-content(44%) minmax(0, 1fr) auto;
  grid-template-areas: "logo title account";
  align-items: center;
  gap: 0;
  background: var(--site-navy);
  color: #fff;
}

/* A custom logo starts at the edge of the header. Its frame supplies the spacing. */
.unified-site .site-masthead--logo { padding: 0; }
.site-masthead--logo .site-controls { padding: 0.8rem var(--frame-padding); }

.site-account,
.unified-site .profile-dock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  min-width: 0;
}

.site-identity {
  grid-area: logo;
  align-self: center;
  min-width: 0;
  --header-logo-width: var(--portal-logo-width, 3rem);
}
.site-masthead--logo .site-identity { align-self: start; }
.site-identity--login { --header-logo-width: var(--login-logo-width, 3rem); }
.site-identity .brand-mark { margin-inline-end: 1rem; }

.site-title {
  grid-area: title;
  color: inherit;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.site-logo-frame {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding-top: var(--logo-space-top, 0px);
  padding-right: var(--logo-space-right, 0px);
  padding-bottom: var(--logo-space-bottom, 0px);
  padding-left: min(var(--logo-space-left, 0px), 100px);
}
.site-logo-frame .brand-logo {
  display: block;
  margin: 0;
  object-fit: contain;
}
.site-identity .brand-logo { max-width: min(100%, 240px); }
.site-title-center, .site-hint-center [data-members-hint] { text-align: center; }
.site-title-right, .site-hint-right [data-members-hint] { text-align: right; }
.site-controls {
  grid-area: account;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  margin-inline-start: auto;
  max-width: min(100%, 18rem);
  min-width: 0;
}
.site-account { justify-content: flex-end; }
.site-account a, .site-account button { color: inherit; }
.site-account form { margin: 0; }
body.unified-site .site-masthead .profile-dock {
  flex: 0 1 auto;
  order: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  display: grid;
  gap: 0.2rem;
  color: var(--ink, #17243b);
  background: white;
}
body.unified-site .site-masthead .profile-dock.is-active { background: #fff2c8; }
.unified-site .site-masthead .profile-dock .profile-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}
.unified-site .site-masthead .profile-picker select {
  width: 100%;
  min-width: 0;
}
.unified-site .site-masthead .profile-picker noscript { grid-column: 1 / -1; }
.unified-site .profile-dock form { margin: 0; }

.site-nav-desktop, .site-nav-mobile { background: #fff; border-bottom: 1px solid #cbd5e1; }
.site-nav-row { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.35rem var(--frame-padding); }
.site-nav-row + .site-nav-row { border-top: 1px solid #e2e8f0; }
.site-nav-row[data-menu-level="2"] { background: #f1f5f9; }
.site-nav-row[data-menu-level="3"] { background: #f8fafc; }
.site-nav-link { display: block; color: #17243b; padding: 0.45rem 0.65rem; border-radius: var(--site-radius); }
.site-nav-link small { display: block; font-size: 0.75rem; }
.site-nav-link:hover { background: #e2e8f0; }
.site-nav-link.is-active, .site-nav-link.is-active:hover { background: var(--site-navy); color: white; }
.site-nav-mobile { display: none; padding: 0.5rem var(--frame-padding); }
.site-nav-branch > summary { cursor: pointer; color: #334155; }
.site-nav-mobile ul { list-style: none; margin: 0.25rem 0; padding-inline-start: 0.85rem; }

.unified-site > main { min-width: 0; flex: 1 0 auto; }
.unified-site .site-content,
.unified-site .site-workspace { width: 100%; max-width: none; margin: 0; padding: 1.2rem var(--frame-padding) 2rem; }
.unified-site > main.auth { width: min(100% - 2rem, 34rem); flex: 0 0 auto; }
.unified-site main .cms-content,
.site-content > .cms-text {
  max-width: var(--site-width);
  min-width: 0;
  overflow-wrap: anywhere;
}
.cms-html {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cms-html img {
  max-width: 100%;
  height: auto;
}
.cms-html .cms-align-left { text-align: left; }
.cms-html .cms-align-center { text-align: center; }
.cms-html .cms-align-right { text-align: right; }
.cms-html .cms-align-justify { text-align: justify; }
.cms-html .indent { padding-inline-start: 2em; }
.cms-html .tab { display: inline-block; width: 4ch; }
.cms-html pre {
  white-space: pre-wrap;
  tab-size: 4;
}
.cms-html table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.cms-html :is(td, th) {
  padding: 0.4em 0.65em;
  border: 1px solid var(--site-line);
  text-align: inherit;
}
.site-footer { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 1rem var(--frame-padding); background: #fff; border-top: 1px solid #cbd5e1; }
.site-footer-center { justify-content: center; text-align: center; }
.site-footer-right { justify-content: flex-end; text-align: right; }
.site-menu-scroll { overflow-x: auto; }
.site-menu-table { width: 100%; min-width: 39rem; }
.site-menu-table :is(input, select) { width: 100%; }
.site-menu-table td:nth-child(3) { width: 7.5rem; }
.site-menu-table td:last-child { width: 1%; }
.site-layout-editor input, .site-layout-editor select { max-width: 100%; }

@media (max-width: 760px) {
  .unified-site .site-masthead {
    grid-template-columns: minmax(0, 1fr) fit-content(60vw);
    grid-template-areas:
      "logo account"
      "title title";
    align-items: start;
    row-gap: 0.55rem;
  }
  .site-identity .brand-mark { margin-inline-end: 0; }
  .site-masthead--logo .site-logo-frame {
    --logo-right: min(var(--logo-space-right, 0px), 20%);
    width: 100%;
    padding-right: var(--logo-right);
    padding-left: clamp(0px, var(--logo-space-left, 0px), 100% - var(--logo-right) - min(var(--header-logo-width), 240px));
  }
  .site-masthead .site-title {
    width: min(100%, 36ch);
    text-wrap: balance;
  }
  .site-masthead--logo .site-title {
    padding-inline: var(--frame-padding);
    padding-block-end: 0.6rem;
  }
  .site-masthead .site-title-center { justify-self: center; }
  .site-masthead .site-title-right { justify-self: end; }
  .site-masthead .site-controls {
    max-width: min(100%, 60vw);
  }
  .site-masthead--logo .site-controls {
    padding: 0.65rem var(--frame-padding) 0 0;
  }
  body.unified-site .site-masthead .profile-dock {
    width: min(100%, 15rem);
  }
  .unified-site .site-masthead .profile-dock .profile-picker {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-nav-desktop { display: none; }
  .site-nav-mobile { display: block; }
  .site-nav-mobile :is(summary, a), .site-account :is(a, button) { min-height: 44px; padding-block: 0.6rem; }
}

/* 2.2: title row, transparent login logo and a management label on one line. */
body.unified-site .site-masthead { padding-top: 0; padding-bottom: 0; }
.site-title-group { grid-area: title; min-width: 0; align-self: start; padding-top: var(--site-title-top,12px); padding-bottom: .7rem; }
.site-title-group .site-title { display: block; padding: 0; width: 100%; }
.site-subtitle { margin-top: .3rem; font-size: 1rem; font-weight: 500; color: var(--site-subtitle-color,#fff); overflow-wrap: anywhere; }
.site-subtitle a { color: inherit; text-decoration: underline; }
body.auth-page .site-masthead .brand-logo { background: transparent; border-radius: 0; padding: 0; }
body.unified-site .site-controls { max-width: 100%; }
body.unified-site .site-masthead .profile-dock { width: max-content; max-width: 100%; }
body.unified-site .site-masthead .profile-management .check { white-space: nowrap; display: flex; align-items: center; gap: .4rem; font-size: .875rem; }
body.unified-site .site-masthead .profile-management input { flex: 0 0 auto; }
@media(max-width:760px) {
 body.unified-site .site-masthead { grid-template-columns: minmax(0,1fr) max-content; }
 .site-title-group { width: 100%; padding-inline: var(--frame-padding); }
 .site-title-group .site-title { width: 100%; text-wrap: balance; }
 body.unified-site .site-masthead .site-controls { max-width: min(100%,calc(100vw - 3rem)); }
 body.unified-site .site-masthead .profile-dock { width: max-content; }
 body.unified-site .site-masthead .profile-picker { grid-template-columns: auto minmax(5rem,1fr); gap:.35rem; }
 body.unified-site .site-masthead .profile-picker select { max-width: 9rem; }
}

.cms-html::after { content:""; display:table; clear:both; }
.cms-html .cms-float-left { float:left; margin:.3rem 1rem .8rem 0; max-width:100%; }
.cms-html .cms-float-right { float:right; margin:.3rem 0 .8rem 1rem; max-width:100%; }
.cms-html figure { max-width:100%; }
.cms-html figcaption { font-size:.9em; margin-top:.3rem; }
.cms-download-list li { margin:.6rem 0; }
.cms-download-list li p { margin:.2rem 0; }
.cms-download-plain { list-style:none; padding-left:0; }
@media(max-width:520px){.cms-html :is(.cms-float-left,.cms-float-right){float:none;margin:.6rem 0;}}

[aria-invalid="true"] { border:2px solid #a52424!important; }
.field-error { display:block; color:#8e1515; font-weight:600; }
.form-error-summary a { color:inherit; text-decoration:underline; }
.menu-tree .menu-depth-2 td:first-child { padding-inline-start:2rem; }
.menu-tree .menu-depth-3 td:first-child { padding-inline-start:4rem; }
.menu-level { display:block;font-size:.8rem;color:#526077; }
.menu-move-buttons { display:flex;gap:.2rem; }
.menu-move-buttons button { min-width:2.5rem;padding:.35rem; }
.menu-tree tr[draggable] { cursor:grab; }
.period-adjustment { font-size:.85rem; color:#26415c; flex-basis:100%; }
.cms-picker { max-width:min(58rem,95vw);max-height:90vh;overflow:auto;border:1px solid #cbd5e1;border-radius:.5rem;padding:1rem; }
.cms-picker::backdrop { background:#12234299; }
.cms-picker-list { display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:.6rem; }
.cms-picker-item { display:flex;flex-direction:column;gap:.3rem;border:1px solid #cbd5e1;padding:.6rem;overflow-wrap:anywhere; }
.cms-picker-item img { max-width:100%;height:5rem;object-fit:contain; }
.rich-toolbar { display:flex;flex-wrap:wrap;gap:.3rem;padding:.5rem;background:#eef3f8; }
.rich-surface { border:1px solid #8293aa;min-height:12rem;padding:1rem;background:white;overflow:auto; }
.rich-surface img { max-width:100%;height:auto; }
.rich-surface:focus { outline:2px solid #315eb1; }
.download-detail { border-bottom:1px solid #cbd5e1;padding:.6rem 0; }

.menu-tree tr:target { outline:3px solid var(--site-link); outline-offset:-3px; }

/* 2.3: navigation, compact administration and validated theme tokens. */
body.unified-site { background:var(--theme-body-bg,#f3f5f8);color:var(--theme-body-color,#17243b);font-family:var(--theme-body-font,system-ui,sans-serif);font-size:var(--theme-body-size,16px);font-weight:var(--theme-body-weight,400);font-style:var(--theme-body-style,normal);line-height:var(--theme-body-line,1.5); }
.unified-site .site-masthead { background:var(--theme-navy,#122342);color:var(--theme-header-text,#fff); }
.unified-site .site-title { color:inherit; }
.unified-site .site-content,.unified-site .site-workspace { background:var(--theme-content-bg,#f3f5f8);padding-block:var(--theme-content-padding,20px); }
.unified-site .site-footer { background:var(--theme-footer-bg,#fff);color:var(--theme-footer-text,#17243b);padding-block:var(--theme-footer-padding,16px); }
.site-footer a { color:inherit; }
.unified-site :is(.panel,.cms-editor-block) { background:var(--theme-panel-bg,#fff);color:var(--theme-panel-text,#17243b);border-color:var(--theme-panel-border,#cbd5e1);border-radius:var(--theme-panel-radius,10px);padding:var(--theme-panel-padding,12px);margin-block:var(--theme-panel-gap,12px); }
.unified-site :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),select,textarea) { background:var(--theme-form-bg,#fff);color:var(--theme-form-text,#17243b); }
.unified-site :is(.cms-text,.cms-html) { text-align:var(--theme-body-align,left); }
.unified-site main p { margin-top:var(--theme-body-top,0px);margin-bottom:var(--theme-paragraph-gap,10px); }
.unified-site .notice { background:var(--theme-notice-bg,#eef3f8);color:var(--theme-notice-text,#17243b); }
.unified-site .notice.warning { background:var(--theme-warning-bg,#fff4d6);color:var(--theme-warning-text,#6b4300); }
.unified-site .notice.error { background:var(--theme-error-bg,#fff1f3);color:var(--theme-error-text,#a10e2d); }
.unified-site .notice.success { background:var(--theme-success-bg,#eaf6ed);color:var(--theme-success-text,#205a2c); }
.unified-site button,.unified-site .button { font-family:var(--theme-button-font,inherit);font-size:var(--theme-button-size,15px);font-weight:var(--theme-button-weight,600);font-style:var(--theme-button-style,normal);line-height:var(--theme-button-line,1.3);text-align:var(--theme-button-align,left); }
.unified-site :is(button,.button):not(.secondary):not(.link):not(.table-sort):not(.rich-toolbar button) { background:var(--theme-button-bg,#2355df);color:var(--theme-button-text,#fff); }
.unified-site :is(button,.button).secondary { background:var(--theme-button-secondary-bg,#fff);color:var(--theme-button-secondary-text,#17243b); }
.unified-site main :is(h1,h2,h3) { font-style:normal; }
.unified-site main h1,.theme-sample h1 { font-family:var(--theme-h1-font,inherit);font-size:var(--theme-h1-size,32px);font-weight:var(--theme-h1-weight,700);font-style:var(--theme-h1-style,normal);line-height:var(--theme-h1-line,1.2);text-align:var(--theme-h1-align,left);color:var(--theme-h1-color,#17243b);margin-block:var(--theme-h1-top,16px) var(--theme-h1-bottom,10px); }
.unified-site main h2,.theme-sample h2 { font-family:var(--theme-h2-font,inherit);font-size:var(--theme-h2-size,24px);font-weight:var(--theme-h2-weight,700);font-style:var(--theme-h2-style,normal);line-height:var(--theme-h2-line,1.3);text-align:var(--theme-h2-align,left);color:var(--theme-h2-color,#17243b);margin-block:var(--theme-h2-top,16px) var(--theme-h2-bottom,8px); }
.unified-site main h3,.theme-sample h3 { font-family:var(--theme-h3-font,inherit);font-size:var(--theme-h3-size,20px);font-weight:var(--theme-h3-weight,700);font-style:var(--theme-h3-style,normal);line-height:var(--theme-h3-line,1.35);text-align:var(--theme-h3-align,left);color:var(--theme-h3-color,#17243b);margin-block:var(--theme-h3-top,12px) var(--theme-h3-bottom,6px); }
.site-nav-desktop,.site-nav-mobile,.site-nav-row[data-menu-level] { background:var(--theme-nav-bg,#fff); }
.site-nav-link { color:var(--theme-nav-text,#17243b);font-family:var(--theme-nav-font,inherit);font-size:var(--theme-nav-size,16px);font-weight:var(--theme-nav-weight,500);font-style:var(--theme-nav-style,normal);line-height:var(--theme-nav-line,1.3);text-align:var(--theme-nav-align,left); }
.site-nav-link.is-active,.site-nav-link.is-active:hover { background:var(--theme-nav-active-bg,var(--site-navy));color:var(--theme-nav-active-text,#fff); }
.site-nav-mobile { padding-block:.3rem; }
.site-nav-mobile nav ul { margin:0;padding-inline-start:0; }
.site-nav-mobile nav li { margin:0;padding:0; }
.site-nav-mobile nav ul ul { margin-inline-start:.8rem;padding-inline-start:.5rem;border-inline-start:2px solid #d8e0eb; }
.site-nav-mobile details.site-nav-branch { padding:0;margin:0;border:0;background:transparent; }
.site-nav-mobile .site-nav-branch > summary.site-nav-item-row { display:flex;align-items:stretch;gap:.2rem;list-style:none;padding:0;min-height:44px; }
.site-nav-item-row::-webkit-details-marker { display:none; }
.site-nav-item-row::marker { content:''; }
.site-nav-item-row > .site-nav-link { flex:1;min-width:0; }
.site-nav-disclosure { display:flex;align-items:center;justify-content:center;flex:0 0 44px;color:var(--theme-nav-text,#17243b);font-size:1.3rem;border-radius:.3rem; }
.site-nav-disclosure:hover { background:#e2e8f0; }
.site-nav-branch[open] > summary .site-nav-disclosure { transform:rotate(180deg); }
.site-nav-mobile .site-nav-link { display:flex;align-items:center;flex-wrap:wrap;gap:.2rem;padding:.5rem .55rem;overflow-wrap:anywhere; }
.cms-section-nav { display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem 1rem;padding:.45rem 0;margin:.25rem 0 .65rem;border-block:1px solid var(--theme-panel-border,#cbd5e1); }
.cms-section-links,.cms-section-extras { display:flex;flex-wrap:wrap;align-items:center;gap:.3rem; }
.cms-section-nav :is(a,span[aria-current]) { display:inline-flex;align-items:center;padding:.4rem .65rem;border-radius:.35rem;line-height:1.2;text-decoration:none; }
.cms-section-nav a:hover { background:#e4ebf5; }
.cms-section-nav [aria-current] { background:var(--theme-nav-active-bg,#122342);color:var(--theme-nav-active-text,#fff);font-weight:600; }
.cms-section-extras { padding-inline-start:.6rem;border-inline-start:1px solid #cbd5e1; }
.unified-site .cms-create { display:inline-flex;align-items:center;padding:.75rem 1.1rem;background:var(--theme-button-bg,#2355df);color:var(--theme-button-text,#fff);font-weight:700;border-radius:.5rem;text-decoration:none;box-shadow:0 2px 3px #12234218;white-space:nowrap; }
.unified-site main .page-heading h1 { margin-block:.2rem .4rem; }
.page-heading { margin-bottom:.4rem;gap:.6rem; }
.compact-help { font-size:.9rem;line-height:1.4;margin-block:.4rem; }
.cms-list-toolbar,.cms-view-controls,.cms-list-search { display:flex;flex-wrap:wrap;align-items:end;gap:.5rem; }
.cms-list-toolbar { justify-content:space-between;margin-block:.6rem; }
.cms-view-controls,.cms-list-search { margin:0; }
.cms-view-controls label,.cms-list-search label { margin:0;font-size:.8rem; }
.cms-view-controls select,.cms-list-search input { padding:.4rem .5rem;min-height:36px;margin-top:.15rem; }
.cms-list-search input { width:15rem;max-width:100%; }
.cms-list-status { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem;font-size:.85rem;margin:.4rem 0; }
.unified-site .cms-preview-switch.compact { display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;background:transparent;padding:0;margin:0;border:0; }
.cms-preview-switch.compact .check { margin:0; }
.cms-preview-switch.compact details { margin:0;padding:0;border:0;position:relative; }
.cms-preview-switch.compact details p { position:absolute;inset-inline-end:0;z-index:4;background:white;border:1px solid #cbd5e1;border-radius:.3rem;padding:.7rem;width:min(22rem,80vw); }
.cms-page-list.cms-list-compact,.cms-page-list.cms-list-full { display:block;margin:.5rem 0; }
.cms-page-list > article.cms-list-entry { display:grid;grid-template-columns:minmax(12rem,1fr) minmax(10rem,.5fr) auto;align-items:center;gap:.3rem 1rem;border:1px solid var(--theme-panel-border,#cbd5e1);background:var(--theme-panel-bg,#fff);color:var(--theme-panel-text,#17243b);border-radius:.4rem;padding:.5rem .7rem;margin:.35rem 0; }
.unified-site main .cms-entry-name h2 { margin:0;font-size:1rem;line-height:1.3;text-align:left; }
.cms-entry-area,.cms-entry-details,.cms-entry-state { font-size:.8rem;line-height:1.4; }
.cms-entry-area { color:inherit;opacity:.8; }
.cms-entry-state { display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .5rem; }
.cms-status { border:1px solid currentColor;border-radius:1rem;padding:.08rem .45rem;white-space:nowrap; }
.cms-status-published { background:#eaf6ed;color:#205a2c; }
.cms-status-hidden,.cms-status-expired { background:#f0f1f3;color:#4a5568; }
.cms-status-draft,.cms-status-scheduled { background:#fff4d6;color:#6b4300; }
.cms-entry-details { grid-column:1/3;display:flex;flex-wrap:wrap;gap:.15rem .8rem; }
.cms-row-actions { grid-column:3;grid-row:1/3;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.35rem .6rem; }
.cms-row-actions :is(button,.button) { min-height:34px;padding:.35rem .65rem;font-size:.85rem;margin:0; }
.cms-row-actions a:not(.button),.cms-row-menu > summary { font-size:.85rem; }
.cms-row-menu { margin:0;padding:0;border:0;position:relative; }
.cms-row-menu > summary { padding:.3rem; }
.cms-row-menu > form { position:absolute;inset-inline-end:0;z-index:5;width:14rem;max-width:80vw;background:var(--theme-panel-bg,#fff);border:1px solid #cbd5e1;border-radius:.4rem;padding:.5rem;box-shadow:0 4px 12px #12234222;display:grid;gap:.4rem;margin:0; }
.cms-row-menu > form button { width:100%;text-align:left; }
.site-menu-table.menu-tree { min-width:49rem;table-layout:fixed; }
.menu-tree :is(th,td) { padding:.4rem .5rem;vertical-align:middle; }
.menu-tree :is(th,td):nth-child(1) { width:29%; }
.menu-tree :is(th,td):nth-child(2) { width:33%; }
.menu-tree :is(th,td):nth-child(3) { width:6rem; }
.menu-tree :is(th,td):nth-child(4) { width:4.8rem;text-align:center; }
.menu-tree :is(th,td):nth-child(5) { width:11.8rem; }
.menu-tree input[type=checkbox] { width:auto; }
.menu-tree .check { justify-content:center;min-width:0; }
.menu-tree label { margin:0; }
.menu-tree .menu-depth-2 td:first-child { padding-inline-start:1.4rem; }
.menu-tree .menu-depth-3 td:first-child { padding-inline-start:2.4rem; }
.menu-tree .menu-level,.menu-rule { font-size:.72rem;line-height:1.2; }
.menu-tree :is(input,select) { padding:.4rem .5rem;min-height:36px; }
.menu-move-buttons button { min-width:2.4rem;min-height:36px; }
.menu-move-buttons button:disabled { opacity:.35;cursor:default; }
.cms-save-bar { margin-block:.5rem 0;align-items:center; }
.theme-workspace { display:grid;grid-template-columns:minmax(20rem,1.1fr) minmax(20rem,1fr);gap:1rem;align-items:start; }
.theme-fields { min-width:0; }
.theme-group { border-bottom:1px solid #cbd5e1;padding:.4rem 0;margin:0; }
.theme-group > summary { padding:.35rem 0;font-weight:600; }
.theme-control-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.4rem .75rem;padding:.5rem 0; }
.theme-control-grid label { font-size:.85rem;margin:0; }
.theme-control-grid input[type=color] { width:100%;height:2.3rem;padding:.15rem; }
.theme-control-grid :is(input,select) { margin-top:.15rem; }
.theme-control-grid small { font-size:.7rem; }
.theme-preview { min-width:0;position:sticky;top:.5rem; }
.theme-preview-controls { display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-bottom:.4rem; }
.theme-preview-controls button { padding:.35rem .55rem; }
.theme-preview-controls button[aria-pressed=true] { outline:2px solid var(--blue); }
.theme-sample { max-width:100%;overflow-wrap:anywhere;border:1px solid #aebbd0;background:var(--theme-body-bg,#f3f5f8);color:var(--theme-body-color,#17243b);font-family:var(--theme-body-font,system-ui);font-size:var(--theme-body-size,16px);font-weight:var(--theme-body-weight,400);font-style:var(--theme-body-style,normal);line-height:var(--theme-body-line,1.5);text-align:var(--theme-body-align,left); }
.theme-sample[data-preview-size=mobile] { width:360px;margin-inline:auto;font-size:var(--theme-body-mobile-size,16px); }
.theme-sample > header { padding:.7rem;background:var(--theme-navy,#122342);color:var(--theme-header-text,#fff);font-weight:700; }
.theme-sample > header small { display:block; }
.theme-sample > nav { display:flex;flex-wrap:wrap;gap:.2rem;padding:.3rem;background:var(--theme-nav-bg,#fff);color:var(--theme-nav-text,#17243b);font-family:var(--theme-nav-font,inherit);font-size:var(--theme-nav-size,16px);font-style:var(--theme-nav-style,normal);font-weight:var(--theme-nav-weight,500);line-height:var(--theme-nav-line,1.3);text-align:var(--theme-nav-align,left); }
.theme-sample > nav span { padding:.35rem; }
.theme-sample > nav .active { background:var(--theme-nav-active-bg,#122342);color:var(--theme-nav-active-text,#fff);border-radius:var(--theme-radius,10px); }
.theme-sample main { padding:var(--theme-content-padding,20px);background:var(--theme-content-bg,#f3f5f8); }
.theme-sample p { margin:0 0 var(--theme-paragraph-gap,10px); }
.theme-sample .sample-panel { padding:var(--theme-panel-padding,12px);background:var(--theme-panel-bg,#fff);color:var(--theme-panel-text,#17243b);border:1px solid var(--theme-panel-border,#cbd5e1);border-radius:var(--theme-panel-radius,10px);margin-block:var(--theme-panel-gap,12px); }
.theme-sample .sample-panel :is(input,select) { background:var(--theme-form-bg,#fff);color:var(--theme-form-text,#17243b); }
.theme-sample a { color:var(--theme-link,#2355df); }
.theme-sample button { background:var(--theme-button-bg,#2355df);color:var(--theme-button-text,#fff);font-family:var(--theme-button-font,inherit);font-size:var(--theme-button-size,15px);font-weight:var(--theme-button-weight,600);font-style:var(--theme-button-style,normal);line-height:var(--theme-button-line,1.3);text-align:var(--theme-button-align,left);border-radius:var(--theme-radius,10px); }
.theme-sample button.secondary { background:var(--theme-button-secondary-bg,#fff);color:var(--theme-button-secondary-text,#17243b); }
.theme-sample :is(.sample-notice,.sample-warning,.sample-error,.sample-success) { padding:.4rem;border-radius:.3rem; }
.theme-sample .sample-notice { background:var(--theme-notice-bg,#eef3f8);color:var(--theme-notice-text,#17243b); }
.theme-sample .sample-warning { background:var(--theme-warning-bg,#fff4d6);color:var(--theme-warning-text,#6b4300); }
.theme-sample .sample-error { background:var(--theme-error-bg,#fff1f3);color:var(--theme-error-text,#a10e2d); }
.theme-sample .sample-success { background:var(--theme-success-bg,#eaf6ed);color:var(--theme-success-text,#205a2c); }
.theme-sample footer { background:var(--theme-footer-bg,#fff);color:var(--theme-footer-text,#17243b);padding:var(--theme-footer-padding,16px); }
.theme-sample[data-preview-size=mobile] h1 { font-size:var(--theme-h1-mobile-size,26px); }
.theme-sample[data-preview-size=mobile] h2 { font-size:var(--theme-h2-mobile-size,22px); }
.theme-sample[data-preview-size=mobile] h3 { font-size:var(--theme-h3-mobile-size,19px); }
.theme-sample[data-preview-size=mobile] nav { font-size:var(--theme-nav-mobile-size,16px); }
.theme-sample[data-preview-size=mobile] button { font-size:var(--theme-button-mobile-size,15px); }
@media(max-width:1000px) { .theme-workspace { grid-template-columns:1fr; }.theme-preview { position:static; }.cms-page-list > article.cms-list-entry { grid-template-columns:minmax(10rem,1fr) auto; }.cms-entry-state { grid-column:1; }.cms-row-actions { grid-column:2; }.cms-entry-details { grid-column:1/-1; }.cms-direct-edit { display:none; } }
@media(max-width:760px) {
 body.unified-site { font-size:var(--theme-body-mobile-size,16px); }
 .unified-site main h1 { font-size:var(--theme-h1-mobile-size,26px); }.unified-site main h2 { font-size:var(--theme-h2-mobile-size,22px); }.unified-site main h3 { font-size:var(--theme-h3-mobile-size,19px); }
 .site-nav-link { font-size:var(--theme-nav-mobile-size,16px); }
 .unified-site button,.unified-site .button { font-size:var(--theme-button-mobile-size,15px); }
 .cms-section-nav :is(a,span[aria-current]) { min-height:40px; }.cms-section-extras { padding:0;border:0; }
 .cms-page-list > article.cms-list-entry { grid-template-columns:minmax(0,1fr);gap:.25rem;padding:.5rem; }
 .cms-row-actions { grid-column:1;grid-row:auto;justify-content:flex-start; }.cms-entry-state,.cms-entry-details { grid-column:1; }
 .cms-row-actions :is(button,.button),.cms-row-menu > summary { min-height:40px; }
 .cms-list-toolbar :is(form,label) { min-width:0; }.cms-view-controls > label { flex:1 1 45%; }.cms-view-controls select { width:100%; }
 .cms-list-search { width:100%; }.cms-list-search label { flex:1; }.cms-list-search input { width:100%; }
 .cms-row-menu > form { inset-inline-start:0;inset-inline-end:auto; }.theme-control-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .theme-preview { overflow:hidden; }.theme-sample { width:100%; }.unified-site main .cms-entry-name h2 { font-size:1rem; }
}
.cms-page-admin-tools { display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.6rem; }
.cms-inline-bar { position:sticky;top:0;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.5rem;background:var(--theme-panel-bg,#fff);border:1px solid #9aacc5;border-radius:.4rem;box-shadow:0 2px 6px #12234216; }
.cms-inline-bar [data-unsaved-state] { font-size:.8rem;flex:1;min-width:8rem; }
.cms-inline-bar :is(button,.button) { font-size:.85rem;padding:.45rem .65rem;min-height:36px; }
.cms-inline-bar > a:not(.button) { font-size:.85rem; }
.cms-inline-content { max-width:var(--site-width); }
.cms-inline-content > h1 input { width:100%;font:inherit;color:inherit;background:transparent;border:1px dashed #8296b3;padding:.3rem .5rem; }
.cms-inline-form .cms-editor-block { border:1px dashed #8b9fbc;margin:.55rem 0;padding:.45rem .65rem;min-width:0; }
.cms-inline-form .cms-editor-block > legend { font-size:.75rem; }
.cms-inline-block-tools { display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;margin-bottom:.25rem; }
.cms-inline-block-tools button { font-size:.8rem;min-height:34px;padding:.3rem .5rem; }
.cms-inline-block-preview { cursor:text;border-radius:.25rem;padding:.2rem;overflow-wrap:anywhere;min-height:2rem; }
.cms-inline-block-preview:hover,.cms-inline-block-preview:focus { outline:2px solid #7c9bc8;outline-offset:2px; }
[data-inline-open=false] > .cms-inline-fields { display:none; }
[data-inline-open=true] > .cms-inline-block-preview { display:none; }
[data-preview-stale=true][data-inline-open=false] > .cms-inline-block-preview::after { content:'Vorschau aktualisieren, um deine Änderungen zu sehen';display:block;font-size:.8rem;color:#526077;font-style:italic; }
[data-inline-removed=true] > :is(.cms-inline-fields,.cms-inline-block-preview) { opacity:.4; }
.cms-inline-preview-dialog { width:min(76rem,96vw);max-height:92vh;overflow:auto;padding:1rem;border:1px solid #8296b3;border-radius:.5rem;background:var(--theme-content-bg,#f3f5f8); }
.cms-inline-preview-dialog::backdrop { background:#12234288; }
.cms-inline-preview-dialog > .button-row { position:sticky;top:-1rem;background:var(--theme-panel-bg,#fff);padding:.4rem;z-index:2; }
@media(max-width:760px) { .cms-inline-bar { position:static; }.cms-inline-bar > strong { width:100%; }.cms-inline-bar [data-unsaved-state] { width:100%; }.cms-inline-bar :is(button,.button) { min-height:40px; }.cms-inline-content > h1 input { min-width:0; }.cms-inline-form .rich-toolbar { padding:.25rem;gap:.2rem; }.cms-inline-form .rich-toolbar button { min-height:40px;padding:.3rem;font-size:.8rem; } }
.unified-site :is(.cms-text,.cms-html) { margin-block:var(--theme-body-top,0px) var(--theme-body-bottom,10px); }
.site-nav-link { margin-block:var(--theme-nav-top,0px) var(--theme-nav-bottom,0px); }
.unified-site button,.unified-site .button { margin-block:var(--theme-button-top,0px) var(--theme-button-bottom,0px); }
@media(min-width:1001px) { .cms-list-compact .cms-row-actions { grid-row:1; }.cms-row-actions { flex-wrap:nowrap;white-space:nowrap; }.cms-row-menu { flex:0 0 auto; }.cms-row-menu>summary { white-space:nowrap; } }
.cms-row-actions .cms-row-menu { width:auto;max-width:100%;flex:0 0 auto;padding:0;margin:0; }
.cms-row-actions .cms-row-menu > summary { padding:.35rem;min-height:34px; }
@media(max-width:760px) { .cms-entry-name { display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .55rem; }.cms-row-actions { gap:.25rem .5rem; }.cms-row-actions .cms-row-menu > summary { min-height:40px; }.cms-entry-details { gap:.1rem .6rem; } }
@media(max-width:760px) { .cms-row-actions { gap:.25rem .4rem; }.cms-row-actions .button { padding-inline:.5rem; }.cms-entry-details { font-size:.75rem;gap:.1rem .4rem; } }
.cms-direct-edit-mobile { display:none; }
@media(max-width:1000px) { .cms-direct-edit-mobile { display:block;padding:.4rem .5rem;min-height:40px; } }

/* 2.4: bounded header heights and compact mobile account controls. */
body.unified-site .site-masthead { min-height: var(--theme-header-height,0px); }
.theme-sample > header { min-height: var(--theme-header-height,0px); }
.theme-sample[data-preview-size="mobile"] > header { min-height: var(--theme-header-mobile-height,0px); }
.short-link-card { min-width:0; }
.short-link-card h2, .short-link-card code { overflow-wrap:anywhere; }
.login-remember { margin-block:.65rem; }
@media (max-width:760px) {
  body.unified-site .site-masthead {
    grid-template-columns: clamp(3rem,20vw,6rem) minmax(0,1fr);
    grid-template-areas: "logo account" "title title";
    align-items:start;
    align-content:start;
    gap:.25rem .5rem;
    padding:.5rem var(--frame-padding) .25rem;
    min-height:var(--theme-header-mobile-height,0px);
  }
  .unified-site .site-masthead .site-identity { align-self:start; margin:0; }
  .site-masthead .site-logo-frame { width:100%; padding:0; }
  .site-masthead .site-identity .brand-logo {
    width:min(100%,var(--header-logo-width,6rem));
    max-width:100%;
    height:auto;
    max-height:4.5rem;
    object-fit:contain;
  }
  body.unified-site .site-masthead .site-controls {
    width:100%; max-width:100%; margin:0; padding:0; gap:0;
  }
  body.unified-site .site-masthead .profile-dock {
    width:100%; max-width:100%; padding:.3rem .45rem; gap:.15rem;
  }
  body.unified-site .site-masthead .profile-dock .profile-picker {
    display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .35rem;
  }
  .site-masthead .profile-picker label { font-size:.75rem; line-height:1.3; white-space:normal; max-width:100%; overflow-wrap:anywhere; }
  body.unified-site .site-masthead .profile-dock > form { min-width:0; max-width:100%; }
  body.unified-site .site-masthead .profile-picker select {
    flex:1 1 8rem; max-width:100%; width:auto; min-height:44px; padding:.3rem .4rem;
    font-size:1rem; line-height:1.3; margin:0;
  }
  body.unified-site .site-masthead .profile-management .check {
    min-height:44px; white-space:normal; overflow-wrap:anywhere; font-size:.75rem; line-height:1.3;
    margin:0; gap:.35rem;
  }
  body.unified-site .site-masthead .profile-management input { width:1.1rem; height:1.1rem; margin:0; }
  .site-masthead .site-account { gap:0 .75rem; width:100%; font-size:.875rem; line-height:1.3; }
  .site-masthead .site-account :is(a,button) { display:inline-flex; align-items:center; min-height:44px; padding:.2rem 0; font-size:inherit; }
  .site-masthead .site-title-group { padding:min(var(--site-title-top,12px),8px) 0 .25rem; }
  .site-masthead .site-title-group .site-title { padding:0; font-size:1rem; line-height:1.35; text-wrap:balance; }
  .site-masthead .site-subtitle { margin-top:.2rem; font-size:.875rem; line-height:1.35; }
  body.unified-site .site-masthead--profiles { grid-template-areas:"logo account" "links account" "title title"; }
  body.unified-site .site-masthead--profiles .site-controls { display:contents; }
  body.unified-site .site-masthead--profiles .profile-dock { grid-area:account; align-self:start; }
  .site-masthead--profiles .site-account {
    grid-area:links; flex-direction:column; align-items:flex-start; justify-content:flex-start;
    gap:0; font-size:clamp(.75rem,3.5vw,.875rem);
  }
  .site-masthead--profiles .site-account :is(a,button) { max-width:100%; overflow-wrap:anywhere; }
  .site-nav-mobile { padding-block:.15rem; }
}
