@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #4a4037;
  --muted: #75695e;
  --deep: #59634f;
  --sage: #87927f;
  --paper: #f8f5ec;
  --sand: #ddd1bd;
  --coral: #b47455;
  --line: #ded3c4;
  --serif: "Manrope", Arial, Helvetica, sans-serif;
  --sans: "Manrope", Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
}
a {
  color: inherit;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-inner nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.header-inner li:hover .subnav,
.header-inner li:focus-within .subnav {
  display: block;
}
.subnav a {
  display: block;
  padding: 7px 10px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
}
.eyebrow {
  color: #a66e59;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: var(--deep);
  color: white;
  text-decoration: none;
  border: 0;
  font: 500 12px var(--sans);
  letter-spacing: 0.05em;
  cursor: pointer;
}
.button:hover {
  background: #203c38;
}
.footer-brand strong {
  font-size: 18px;
}
.footer-inner p {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: white;
  z-index: 10;
  padding: 8px;
}
.editor-page {
  background: #f2f1eb;
  min-height: 100vh;
}
.editor-shell > p {
  color: var(--muted);
}
.editor-shell form:not(.logout) {
  background: #fff;
  padding: 25px;
  margin: 20px 0;
  border: 1px solid var(--line);
}
.editor-shell label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.editor-shell input,
.editor-shell textarea,
.editor-shell select {
  width: 100%;
  font: 14px/1.6 var(--sans);
  padding: 10px 12px;
  border: 1px solid #d6d9d1;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
}
.editor-shell textarea {
  font-family: Consolas, monospace;
  font-size: 13px;
}
.edit-card {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 6px;
}
.edit-card h2 {
  font: 22px var(--serif);
  color: var(--deep);
}
.edit-card[hidden] {
  display: none;
}
.editor-shell .button {
  margin-top: 22px;
}
.back-link {
  font-size: 13px;
  color: var(--muted);
}
.notice {
  padding: 11px 15px;
  background: #e5eee5;
  color: #365b47;
}
.notice.error {
  background: #f8e5df;
  color: #8c3e2b;
}
.logout {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
.text-button {
  border: 0;
  background: none;
  color: #925e4e;
  text-decoration: underline;
  cursor: pointer;
  font: 13px var(--sans);
}
.rich-editor {
  border: 1px solid #d6d9d1;
  background: #fff;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-bottom: 1px solid #d6d9d1;
  background: #f7f7f3;
}
.editor-toolbar .toolbar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}
.editor-toolbar select {
  width: auto;
  padding: 6px 8px;
  font-size: 12px;
}
.editor-toolbar button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #d6d9d1;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 12px var(--sans);
  cursor: pointer;
}
.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
  border-color: var(--coral);
  background: #fbf5f1;
}
.rich-text {
  min-height: 280px;
  padding: 16px;
  outline: 0;
  line-height: 1.65;
}
.rich-text:focus {
  box-shadow: inset 0 0 0 2px #c9937e;
}
.rich-text p {
  margin: 0 0 1em;
}
.rich-text h2 {
  margin: 1.1em 0 0.45em;
  font: 500 26px/1.35 var(--serif);
  color: var(--deep);
}
.rich-text h3 {
  margin: 1em 0 0.4em;
  font: 500 21px/1.4 var(--serif);
  color: var(--deep);
}
.rich-text h4 {
  margin: 1em 0 0.35em;
  font: 600 17px/1.45 var(--sans);
  color: var(--deep);
}
.rich-text ul,
.rich-text ol {
  padding-left: 1.6em;
}
.rich-text li {
  margin: 0.2em 0;
}
.background-upload {
  padding: 20px 22px;
  margin: 22px 0;
  border: 1px solid var(--line);
  background: #f8f5ec;
}
.background-upload h2 {
  margin: 0 0 4px;
  color: var(--deep);
  font: 600 21px/1.35 var(--sans);
}
.background-upload p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.background-upload form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.background-upload label {
  margin-top: 8px;
}
.background-upload .button {
  margin-top: 10px;
}
.page-image-upload {
  padding: 20px 22px;
  margin: 22px 0;
  border: 1px solid var(--line);
  background: #f8f5ec;
}
.page-image-upload h2 {
  margin: 0 0 4px;
  color: var(--deep);
  font: 600 21px/1.35 var(--sans);
}
.page-image-upload p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.page-image-upload form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.page-image-upload label {
  margin-top: 8px;
}
.page-image-upload .button {
  margin-top: 10px;
}
.page-image-upload .current-image-preview img {
  width: min(100%, 320px);
  height: 220px;
  padding: 6px;
}
.current-image-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.current-image-preview img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #f8f5ec;
  object-fit: contain;
}
.background-upload .current-image-preview img {
  width: min(100%, 320px);
  height: 250px;
  padding: 8px;
}
.image-preview-empty {
  width: min(100%, 220px);
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: #f8f5ec;
}
@media (max-width: 900px) {
  .header-inner nav a {
    font-size: 12px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .copyright {
    grid-column: 2;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
}

/* Startseite und Inhaltsseiten folgen der breiten, zweispaltigen Referenzgestaltung. */
body:not(.editor-page) {
  background: #f8f5ec;
  font-family: var(--sans);
  color: #4a4037;
}
.site-header {
  background: rgba(251, 250, 246, 0.97);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #e9e7de;
  position: relative;
  top: auto;
  min-height: 142px;
  border: 0;
  background: #f8f5ec;
}
.header-inner {
  max-width: 1190px;
  padding: 18px 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 1510px;
  min-height: 142px;
  align-items: flex-start;
  padding: 16px 34px 24px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1.3;
  gap: 0;
}
.brand strong {
  display: block;
  font: 500 21px var(--serif);
  letter-spacing: 0.01em;
  color: #4a4037;
  font: 600 17px/1.4 var(--sans);
  letter-spacing: 0.06em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 4px;
  color: #8a7b69;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.header-inner nav > ul {
  display: flex;
  align-items: center;
  gap: 22px;
  gap: 7px;
}
.header-inner nav > ul > li {
  position: relative;
  padding: 9px 0;
  padding: 0;
}
.header-inner nav > ul > li > a {
  padding: 9px 0;
  display: block;
  padding: 13px 22px;
  color: #4a4037;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 0;
}
.header-inner nav > ul > li.active > a,
.header-inner nav > ul > li > a:hover {
  color: #a36650;
  border-bottom: 1px solid var(--coral);
  background: #ddd1bd;
  color: #4a4037;
  border: 0;
}
.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: -17px;
  min-width: 155px;
  padding: 9px !important;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px #263b3a12;
  background: #f8f5ec;
  border-color: #ded3c4;
  top: 100%;
  left: 0;
  padding: 7px !important;
  box-shadow: 0 8px 16px #00000016;
}
.feature-copy {
  position: relative;
  isolation: isolate;
  min-height: 630px;
  padding: 60px clamp(30px, 6vw, 104px) 72px;
  color: #4a4037;
  background: #ddd1bd;
  text-align: center;
}
.feature-copy::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--page-art, url("./assets/kranich-origami.svg?v=5"));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: min(86%, 520px) auto;
  opacity: 0.1;
  pointer-events: none;
}
.feature-copy > * {
  position: relative;
  z-index: 1;
}
.feature-copy > .eyebrow {
  color: #75695e;
  opacity: 1;
}
.feature-copy h1 {
  max-width: none;
  margin: 0 0 28px;
  color: #4a4037;
  font: 400 clamp(35px, 4.2vw, 58px)/1.35 var(--sans);
  letter-spacing: 0.13em;
}
.feature-tagline {
  margin: 25px auto 34px;
  color: #59634f;
  font: 600 15px/1.7 var(--sans);
  letter-spacing: 0.15em;
}
.feature-prose {
  font: 400 17px/1.8 var(--sans);
  letter-spacing: 0.055em;
}
.feature-prose p {
  margin: 0 0 28px;
}
.feature-prose h2,
.feature-prose h3,
.feature-prose h4 {
  margin: 32px 0 15px;
  color: #4a4037;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.09em;
}
.feature-prose h2 {
  font-size: 25px;
}
.feature-prose h3 {
  font-size: 21px;
}
.feature-prose h4 {
  font-size: 18px;
}
.feature-prose ul,
.feature-prose ol {
  display: inline-block;
  margin: 0 auto 27px;
  padding-left: 1.5em;
  text-align: left;
}
.feature-prose a {
  color: #59634f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.feature-image {
  align-self: start;
  padding: 58px 0 25px 38px;
  color: #75695e;
  text-align: center;
}
.feature-image img {
  display: block;
  width: min(82%, 520px);
  margin: 0 auto;
  height: 355px;
  object-fit: cover;
}
.feature-image img.portrait-photo {
  width: min(76%, 400px);
  height: 480px;
  object-position: center 22%;
}
.portrait-placeholder {
  width: min(100%, 400px);
  height: 480px;
  margin: 0 auto;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid #cdbda8;
  background: #e9e0d3;
  color: #66594b;
  text-align: center;
}
.portrait-placeholder strong {
  font-size: 19px;
  font-weight: 600;
}
.portrait-placeholder span {
  max-width: 245px;
  font-size: 13px;
  line-height: 1.6;
}
.feature-image p {
  margin: 8px 0 0;
  color: #8a7b69;
  font: 14px/1.7 var(--sans);
  letter-spacing: 0.21em;
}
.feature-home .feature-copy {
  min-height: 640px;
  padding-top: 72px;
}
.feature-home .feature-copy h1 {
  margin-top: 10px;
}
.feature-home .feature-tagline {
  margin: 28px auto 34px;
}
.feature-home .feature-prose {
  font-size: 16px;
}
.feature-home .feature-copy .button {
  margin-top: 5px;
  border: 1px solid #59634f;
  background: #59634f;
  color: #f8f5ec;
}
.feature-home .feature-copy .button:hover {
  background: #46503d;
}
.site-footer {
  background: #f1efe8;
  background: #f8f5ec;
}
.footer-inner {
  max-width: 1110px;
  margin: auto;
  padding: 38px 32px 27px;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 35px;
  align-items: center;
  max-width: 1510px;
  min-height: 95px;
  padding: 18px 34px;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.footer-inner > div {
  display: none;
}
.footer-inner nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-inner nav a,
.copyright {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  color: #827569;
  font-size: 12px;
}
.copyright {
  justify-self: end;
}
@media (max-width: 1000px) {
  .header-inner {
    padding-left: 22px;
    padding-right: 22px;
  }
  .header-inner nav > ul {
    gap: 0;
  }
  .header-inner nav > ul > li > a {
    padding: 12px 12px;
    font-size: 12px;
  }
  .feature-copy {
    padding-left: 35px;
    padding-right: 35px;
  }
  .feature-image {
    padding-left: 25px;
  }
  .feature-image img {
    height: 300px;
  }
}
@media (max-width: 700px) {
  .site-header,
  .header-inner {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .menu-toggle span {
    margin-left: 7px;
  }
  .header-inner nav.open {
    display: block;
  }
  .editor-shell h1 {
    font-size: 36px;
  }
}

/* Das Wasserzeichen bleibt an derselben Bildschirmposition und beansprucht keinen Platz. */
body:not(.editor-page)::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: var(--page-art, url("./assets/kranich-origami.svg?v=5"));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100vw auto;
  opacity: 0.1;
  pointer-events: none;
}
.feature-layout {
  width: 100%;
  max-width: 1510px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  align-items: stretch;
  background: #f8f5ec;
  position: relative;
  z-index: 1;
  background-color: transparent;
  background-image: none;
}
.menu-toggle:focus-visible,
.header-inner nav a:focus-visible,
.button:focus-visible,
.footer-inner a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .header-inner {
    padding: 14px 22px;
    gap: 14px;
  }
  .header-inner nav > ul {
    gap: 13px;
    gap: 0;
  }
  .header-inner nav > ul > li > a {
    padding-inline: 9px;
    white-space: normal;
    text-align: center;
  }
  .feature-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  }
  .feature-copy {
    padding: 48px clamp(24px, 4vw, 52px) 56px;
  }
  .feature-prose {
    letter-spacing: 0.025em;
  }
  .feature-image {
    padding-left: 18px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 12px;
  }
  body:not(.editor-page)::before {
    background-size: 100vw auto;
  }
  .header-inner {
    padding: 15px 20px;
    flex-wrap: wrap;
    padding: 14px 18px 12px;
    align-items: center;
    gap: 10px;
  }
  .brand {
    max-width: calc(100% - 95px);
  }
  .brand strong {
    font-size: clamp(15px, 4.5vw, 18px);
    letter-spacing: 0.025em;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
    min-width: 82px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #f2ede2;
    font-size: 14px;
  }
  .header-inner nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    margin-top: 3px;
  }
  .header-inner nav > ul {
    display: block;
    padding: 5px 0 12px;
    padding: 4px 0 8px;
  }
  .header-inner nav > ul > li {
    padding: 5px 0;
    padding: 0;
    border-top: 1px solid #ded3c4;
  }
  .header-inner nav > ul > li > a {
    padding: 8px 5px;
    font-size: 13px;
    display: block;
    padding: 6px 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    text-align: left;
    font-size: 15px;
  }
  .subnav {
    display: flex !important;
    position: static;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 0 16px !important;
    gap: 18px;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px 12px;
    margin: 0 0 4px 8px;
    padding: 0 0 2px 10px !important;
    border-left: 2px solid var(--sand) !important;
  }
  .subnav li {
    display: inline-block;
    display: block;
    flex: 0 0 auto;
  }
  .subnav a {
    min-height: 22px;
    display: flex;
    align-items: center;
    padding: 1px 9px;
    font-size: 14px;
    line-height: 20px;
  }
  .feature-layout {
    grid-template-columns: 1fr;
    margin-top: 8px;
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-copy,
  .feature-home .feature-copy {
    min-height: 0;
    padding: 40px 24px 48px;
    min-height: 0;
    padding: 34px 22px 38px;
    text-align: left;
  }
  .feature-copy h1 {
    font-size: 36px;
    letter-spacing: 0.09em;
    margin: 4px 0 18px;
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.18;
    letter-spacing: 0.035em;
    overflow-wrap: anywhere;
  }
  .feature-tagline {
    font-size: 13px;
    letter-spacing: 0.1em;
    margin: 18px 0 24px;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.045em;
  }
  .feature-prose {
    font-size: 15px;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.01em;
  }
  .feature-prose p {
    margin: 0 0 21px;
  }
  .feature-prose h2 {
    font-size: 23px;
    line-height: 1.3;
  }
  .feature-prose h3 {
    font-size: 20px;
    line-height: 1.35;
  }
  .feature-prose ul,
  .feature-prose ol {
    display: block;
    margin: 0 0 22px;
    padding-left: 1.35em;
  }
  .feature-copy .button,
  .editor-shell .button {
    min-height: 46px;
    padding: 12px 18px;
    justify-content: center;
  }
  .feature-image {
    padding: 26px 20px 12px;
    padding: 22px 22px 20px;
  }
  .feature-image img {
    width: 100%;
    height: 260px;
    width: 90%;
    margin: 0 auto;
    height: clamp(220px, 68vw, 340px);
    object-fit: cover;
  }
  .feature-image img.portrait-photo,
  .portrait-placeholder {
    width: 100%;
    height: 360px;
    width: 80%;
    height: min(112vw, 420px);
    max-height: 420px;
  }
  .feature-image p {
    font-size: 11px;
    letter-spacing: 0.15em;
    margin: 10px 0 0;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 20px;
    grid-template-columns: 1fr;
    padding: 29px 22px;
    gap: 20px;
    gap: 16px;
    padding: 20px 18px;
  }
  .footer-inner nav {
    gap: 11px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
  }
  .footer-inner nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
  }
  .copyright {
    justify-self: center;
    grid-column: auto;
    text-align: center;
  }
  .editor-shell {
    padding: 28px 17px;
    width: 100%;
    padding: 24px 16px;
  }
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .editor-toolbar button,
  .editor-toolbar select {
    min-height: 42px;
    max-width: 100%;
  }
  .rich-text {
    min-height: 240px;
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .header-inner {
    padding-inline: 13px;
  }
  .feature-copy,
  .feature-home .feature-copy {
    padding-inline: 17px;
  }
  .feature-copy h1 {
    font-size: 30px;
  }
  .feature-image {
    padding-inline: 17px;
  }
}

/* Redaktion: eine Seitenauswahl, drei übersichtliche Arbeitsbereiche. */
.editor-shell {
  max-width: 850px;
  margin: 0 auto;
  padding: 48px 24px;
  max-width: 1040px;
}
.editor-shell h1 {
  font: 400 clamp(42px, 5vw, 65px)/1.13 var(--serif);
  letter-spacing: -0.025em;
  margin: 18px 0;
  color: var(--deep);
  max-width: 580px;
  font-size: 43px;
  margin-bottom: 16px;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-topbar p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}
.admin-topbar .logout {
  margin: 0;
  flex-shrink: 0;
}
.admin-page-picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 22px;
  padding: 20px 24px;
  background: #e9e0d3;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-page-picker label {
  grid-column: 1/-1;
  margin: 0;
}
.admin-page-picker select {
  font-size: 16px;
  min-height: 48px;
}
.admin-page-picker a {
  align-self: center;
  font-size: 14px;
  color: var(--deep);
  text-underline-offset: 3px;
}
.admin-tabs button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 10px 18px;
  font: 600 15px var(--sans);
  color: var(--muted);
  cursor: pointer;
}
.admin-tabs button[aria-selected="true"] {
  background: var(--deep);
  color: var(--paper);
}
.admin-tabs button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
[data-admin-panel][hidden],
.internal-page-control,
.current-image-preview [hidden] {
  display: none !important;
}
.editor-shell #text-edit-form {
  margin-top: 20px;
  border-radius: 8px;
  background: #fdfbf7;
}
#text-edit-form .edit-card {
  border: 0;
  margin: 0;
  padding: 0;
}
#text-edit-form .edit-card > h2 {
  margin: 0 0 18px;
  font-size: 24px;
}
.seo-settings {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.seo-settings summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--deep);
  padding: 8px 0;
}
.seo-settings p {
  font-size: 13px;
  margin: 8px 0;
  color: var(--muted);
}
.editor-save {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.editor-save .button {
  margin-top: 0;
}
.editor-save span {
  font-size: 12px;
  color: var(--muted);
}
.page-image-upload,
.background-upload {
  border-radius: 8px;
  background: #fdfbf7;
}
.page-image-upload .current-image-preview img,
.background-upload .current-image-preview img {
  width: min(100%, 440px);
  height: 280px;
  padding: 12px;
  border-radius: 6px;
}
@media (max-width: 700px) {
  .admin-topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .admin-topbar p {
    font-size: 14px;
  }
  .admin-page-picker {
    padding: 16px;
    grid-template-columns: 1fr;
  }
  .admin-page-picker a {
    margin-top: 6px;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .admin-tabs {
    gap: 3px;
  }
  .editor-shell #text-edit-form,
  .page-image-upload,
  .background-upload {
    padding: 18px 16px;
  }
  .editor-save {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .editor-save .button {
    width: 100%;
  }
}

/* Kleine Fotos im Seitentext und im visuellen Editor. */
.inline-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  object-fit: contain;
}
.inline-photo.photo-small {
  width: 140px;
}
.inline-photo.photo-medium {
  width: 240px;
}
.inline-photo.photo-large {
  width: 360px;
}
.rich-text .inline-photo {
  cursor: pointer;
}
.rich-text .photo-selected {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
}
.photo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #e9e0d3;
}
.photo-controls[hidden],
.rich-editor input[data-photo-file][hidden] {
  display: none !important;
}
.photo-controls button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.photo-controls label {
  flex: 1 1 200px;
  margin: 0;
  font-size: 12px;
}
.photo-status {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}

.document-library {
  padding: 24px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfbf7;
}
.document-library h2 {
  margin-top: 0;
  color: var(--deep);
}
.document-library > p {
  color: var(--muted);
  font-size: 14px;
}
.document-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.document-row a {
  overflow-wrap: anywhere;
  color: var(--deep);
}
.document-row button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  cursor: pointer;
}
#document-picker {
  width: min(560px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
#document-picker::backdrop {
  background: #4a403780;
}
#document-picker label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}
#document-picker input,
#document-picker select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  font: inherit;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fdfbf7;
}
.document-picker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .document-library {
    padding: 16px;
  }
  .admin-tabs button {
    padding: 10px 12px;
    font-size: 14px;
    flex: 1;
    flex: 1 1 40%;
  }
}
.contact-email {
  margin: 20px 0 26px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.contact-email a {
  color: var(--deep);
  text-underline-offset: 4px;
}
.field-help {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.document-actions .document-delete {
  color: #8c3e2b;
  border-color: #d8b4a8;
}
.document-row button:disabled {
  opacity: 0.55;
  cursor: wait;
}
