:root {
  --page-bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --surface-strong: #eaf2f7;
  --accent: rgb(103, 162, 192);
  --accent-strong: rgb(25, 97, 128);
  --text-main: #173746;
  --text-soft: #607988;
  --shadow-light: rgba(255, 255, 255, 0.95);
  --shadow-dark: rgba(176, 197, 209, 0.45);
  --shadow-dark-strong: rgba(150, 174, 189, 0.55);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top right, rgba(103, 162, 192, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(103, 162, 192, 0.1), transparent 24%),
    var(--page-bg);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 128px;
}

.neo-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: -14px -14px 28px var(--shadow-light), 14px 14px 28px var(--shadow-dark);
}

.neo-inset {
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  box-shadow: inset 8px 8px 18px rgba(179, 197, 208, 0.26), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.site-header,
.hero-copy,
.hero-visual,
.project-card,
.site-footer,
.cookie-banner,
.overlay-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: -14px -14px 28px var(--shadow-light), 14px 14px 28px var(--shadow-dark);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
}

.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #eef4f8);
  box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.95), 8px 8px 18px rgba(181, 196, 207, 0.35);
  font-size: 1.12rem;
  font-weight: 700;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: -6px -6px 16px rgba(255, 255, 255, 0.9), 10px 10px 22px rgba(125, 142, 153, 0.28);
}

.header-actions,
.site-nav,
.footer-links,
.cookie-actions,
.action-row,
.section-headline {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.language-picker span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
}

.header-actions {
  justify-content: flex-end;
}

.nav-link,
.site-nav a {
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  background: var(--surface-soft);
  box-shadow: -8px -8px 16px rgba(255, 255, 255, 0.95), 8px 8px 16px rgba(187, 204, 215, 0.35);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(145deg, rgb(122, 185, 214), rgb(103, 162, 192));
  color: #ffffff;
  box-shadow: inset -4px -4px 12px rgba(255, 255, 255, 0.16), inset 4px 4px 12px rgba(57, 111, 137, 0.2),
    10px 10px 20px rgba(103, 162, 192, 0.26);
}

.button-secondary {
  background: var(--surface-soft);
  color: var(--accent-strong);
  box-shadow: -8px -8px 16px rgba(255, 255, 255, 0.95), 8px 8px 16px rgba(187, 204, 215, 0.35);
}

.danger-button {
  background: linear-gradient(145deg, #ffe2e2, #ffc7c7);
  color: #b43b3b;
  box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.55), inset 4px 4px 10px rgba(190, 90, 90, 0.12),
    8px 8px 16px rgba(201, 146, 146, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  margin-top: 34px;
}

.hero-copy,
.hero-visual,
.project-card,
.site-footer,
.cookie-banner,
.overlay-panel {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.02;
  max-width: 14ch;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-text,
.section-heading p,
.site-footer,
.cookie-copy p,
.rich-content {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  white-space: pre-line;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  background: linear-gradient(180deg, rgba(103, 162, 192, 0.08), transparent 100%), var(--surface);
}

.hero-visual img {
  width: min(100%, 420px);
  max-height: 420px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: -12px -12px 24px rgba(255, 255, 255, 0.92), 12px 12px 24px rgba(155, 171, 183, 0.24);
}

.projects-section {
  margin-top: 90px;
}

.more-about-section {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.more-about-cta {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.more-about-caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: center;
}

.tag-filter-bar {
  margin: 26px 0 22px;
  padding: 20px 24px;
  display: grid;
  gap: 14px;
}

.tag-filter-header,
.tag-filter-list,
.tag-pill-list,
.tag-checkbox-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tag-filter-chip,
.tag-pill,
.tag-checkbox {
  --tag-color: #67a2c0;
}

.tag-filter-chip {
  border-color: transparent;
}

.tag-filter-chip,
.tag-filter-active {
  position: relative;
}

.tag-filter-chip::before,
.tag-pill::before,
.tag-checkbox span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--tag-color);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag-color) 18%, white);
}

.tag-filter-active {
  background: color-mix(in srgb, var(--tag-color) 18%, white) !important;
  color: var(--accent-strong);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color) 14%, white);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-empty-state {
  margin: 20px 0 0;
  color: var(--text-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
}

.project-thumb-link {
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 160ms ease;
}

.project-thumb-link:hover {
  transform: translateY(-3px);
}

.project-thumb {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff, #eef4f8);
  box-shadow: inset 8px 8px 18px rgba(186, 202, 212, 0.28), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.project-thumb img,
.project-thumb video {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: -10px -10px 22px rgba(255, 255, 255, 0.92), 12px 12px 24px rgba(155, 171, 183, 0.28);
}

.project-thumb video {
  background: #dfe9ef;
}

.project-media-caption {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: left;
  padding: 4px 4px 0;
}

.project-zoom-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
}

.project-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carousel-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-strong);
  box-shadow: -6px -6px 12px rgba(255, 255, 255, 0.95), 6px 6px 12px rgba(187, 204, 215, 0.32);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.carousel-status {
  min-width: 56px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.project-media-disabled {
  filter: grayscale(0.4) brightness(0.9);
  opacity: 0.7;
  user-select: none;
  -webkit-user-select: none;
}

.project-disabled .project-thumb img,
.project-disabled .project-thumb video {
  filter: grayscale(0.4) brightness(0.9);
  opacity: 0.7;
  user-select: none;
  -webkit-user-select: none;
}

.project-body {
  padding: 22px 6px 0;
}

.project-body h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
}

.project-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  color: var(--accent-strong);
  background: var(--surface-soft);
  box-shadow: -8px -8px 16px rgba(255, 255, 255, 0.95), 8px 8px 16px rgba(187, 204, 215, 0.35);
  font-weight: 700;
}

.project-link-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  color: rgba(23, 55, 70, 0.48);
  background: #eef3f6;
  box-shadow: inset 6px 6px 12px rgba(185, 201, 211, 0.3), inset -6px -6px 12px rgba(255, 255, 255, 0.9);
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}

.site-footer {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.export-build-stamp {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  white-space: nowrap;
}

.cookie-banner {
  position: fixed;
  left: 76px;
  right: 16px;
  bottom: 16px;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.consent-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 23;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: -10px -10px 22px rgba(255, 255, 255, 0.95), 10px 10px 22px rgba(166, 183, 194, 0.45);
  font-size: 1.35rem;
  cursor: pointer;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 250, 253, 0.72);
  backdrop-filter: blur(10px);
}

.overlay-panel {
  position: relative;
  width: min(1320px, 100%);
  max-height: min(92vh, 1000px);
  overflow: auto;
}

.settings-panel {
  width: min(1680px, 100%);
}

.auth-panel {
  width: min(460px, 100%);
}

.legal-panel {
  width: min(920px, 100%);
}

.project-image-modal-panel {
  width: min(1120px, 100%);
}

.project-image-modal-stage {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-height: min(70vh, 760px);
  padding: 18px 72px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(245, 249, 252, 0.98), rgba(230, 238, 244, 0.9));
  box-shadow: inset 10px 10px 24px rgba(181, 198, 209, 0.22), inset -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.project-image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  align-self: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  z-index: 2;
}

.project-image-modal-nav-prev {
  left: 14px;
}

.project-image-modal-nav-next {
  right: 14px;
}

.project-image-modal-image {
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 640px);
  object-fit: contain;
  border-radius: 24px;
  box-shadow: -10px -10px 24px rgba(255, 255, 255, 0.88), 12px 12px 24px rgba(155, 171, 183, 0.24);
}

.project-image-modal-status {
  margin: 6px 6px 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.3;
  text-align: center;
}

.project-image-modal-caption {
  margin: 4px 6px 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}

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

.overlay-body,
.settings-layout {
  display: grid;
  gap: 22px;
}

.settings-section,
.legal-section-block {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.settings-collapsible {
  display: grid;
  gap: 16px;
}

.settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.settings-summary::-webkit-details-marker {
  display: none;
}

.settings-summary::after {
  content: "▾";
  font-size: 1rem;
  color: var(--accent-strong);
  transition: transform 160ms ease;
}

.settings-collapsible:not([open]) .settings-summary::after {
  transform: rotate(-90deg);
}

.settings-collapsible-body {
  display: grid;
  gap: 18px;
}

.settings-summary-nested {
  font-size: 1.05rem;
}

.settings-section h3,
.legal-section-block h3 {
  margin: 0 0 12px;
}

.settings-section p,
.legal-section-block p,
.settings-status {
  color: var(--text-soft);
  line-height: 1.65;
}

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

.settings-field {
  display: grid;
  gap: 8px;
}

.settings-field span {
  font-size: 0.92rem;
  font-weight: 600;
}

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

.settings-field input,
.settings-field textarea,
.settings-field select,
.language-picker select {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.26), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  font: inherit;
  color: var(--text-main);
}

.language-picker select {
  width: auto;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 14px;
}

.settings-field input[type="color"] {
  padding: 6px;
  min-height: 56px;
  border-radius: 18px;
  cursor: pointer;
}

.settings-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.settings-field input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 12px;
}

.settings-field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 12px;
}

.project-toggle {
  align-content: start;
}

.project-toggle input[type="checkbox"] {
  appearance: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  margin-top: 10px;
  justify-self: start;
  accent-color: var(--accent-strong);
  box-shadow: none;
}

.project-editor-list {
  display: grid;
  gap: 20px;
}

.project-row {
  display: grid;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 26px;
  overflow: hidden;
}

.project-editor-list .project-row:nth-child(odd) {
  background: linear-gradient(145deg, #fbfdff, #eff6fb);
  box-shadow: inset 8px 8px 18px rgba(186, 203, 214, 0.16), inset -8px -8px 18px rgba(255, 255, 255, 0.96);
}

.project-editor-list .project-row:nth-child(even) {
  background: linear-gradient(145deg, #dde9f0, #cfdee7);
  box-shadow: inset 8px 8px 18px rgba(149, 171, 186, 0.34), inset -8px -8px 18px rgba(255, 255, 255, 0.82);
}

.project-row > * {
  min-width: 0;
}

.project-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.project-row-heading {
  display: grid;
  gap: 6px;
}

.project-row-heading h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.project-row-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.project-row-main {
  display: grid;
  gap: 18px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(220px, 0.9fr);
  gap: 16px;
  align-items: start;
}

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

.project-description-block,
.project-tags-block,
.project-media-block {
  display: grid;
  gap: 10px;
}

.tag-editor-row {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1.3fr) minmax(180px, 1fr) 140px 48px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
}

.translation-editor-shell {
  margin-top: 20px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.translation-project-list {
  display: grid;
  gap: 16px;
}

.translation-project-row {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.translation-project-row h5 {
  margin: 0;
  font-size: 1rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
}

.project-row.dragging {
  opacity: 0.68;
  transform: scale(0.995);
}

.project-row.drop-target {
  outline: 2px dashed rgba(25, 97, 128, 0.35);
  outline-offset: 4px;
}

.project-upload {
  display: grid;
  gap: 8px;
}

.project-media-editor,
.project-media-list {
  display: grid;
  gap: 10px;
}

.project-media-row {
  display: grid;
  grid-template-columns: 88px 96px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 6px 6px 16px rgba(181, 198, 209, 0.18), inset -6px -6px 16px rgba(255, 255, 255, 0.82);
}

.project-media-row > * {
  min-width: 0;
}

.imprint-gallery-row {
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.9fr) 88px 40px 40px 40px;
}

.project-media-move-controls {
  display: grid;
  gap: 8px;
  align-items: start;
  justify-items: start;
}

.project-media-fields {
  display: grid;
  gap: 10px;
}

.project-media-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.26), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  font: inherit;
  color: var(--text-main);
}

.project-media-static-label {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.26), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
}

.tag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.2), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.tag-checkbox input {
  margin-right: 8px;
}

.tag-checkbox span {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  font-weight: 600;
}

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

.project-upload-preview {
  width: 100%;
  min-width: 0;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--surface-strong);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.24), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.site-upload-preview {
  width: 100%;
  height: 160px;
  border-radius: 20px;
  object-fit: contain;
  background: var(--surface-strong);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.24), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.imprint-model-shell {
  margin-top: 18px;
}

.more-about-text-shell {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(245, 249, 252, 0.98), rgba(230, 238, 244, 0.9));
  box-shadow: inset 10px 10px 24px rgba(181, 198, 209, 0.22), inset -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.imprint-model-viewer {
  width: 100%;
  height: 360px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(245, 249, 252, 0.98), rgba(230, 238, 244, 0.9));
  box-shadow: inset 10px 10px 24px rgba(181, 198, 209, 0.22), inset -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.imprint-gallery-shell {
  margin-top: 22px;
}

.imprint-gallery-frame {
  display: grid;
  gap: 12px;
}

.imprint-gallery-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(245, 249, 252, 0.98), rgba(230, 238, 244, 0.9));
  box-shadow: inset 10px 10px 24px rgba(181, 198, 209, 0.22), inset -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.imprint-gallery-controls {
  justify-content: center;
}

.imprint-gallery-caption {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

.backup-progress-shell {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.backup-progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.26), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.backup-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, rgb(122, 185, 214), rgb(103, 162, 192));
  box-shadow: inset -4px -4px 12px rgba(255, 255, 255, 0.16), inset 4px 4px 12px rgba(57, 111, 137, 0.2);
  transition: width 160ms ease;
}

.backup-progress-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.upload-input {
  width: 100%;
}

.editor-shell {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 8px 8px 18px rgba(181, 198, 209, 0.24), inset -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid rgba(25, 97, 128, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.editor-tool {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  box-shadow: -6px -6px 12px rgba(255, 255, 255, 0.95), 6px 6px 12px rgba(183, 201, 212, 0.28);
  font: inherit;
  color: var(--text-main);
  cursor: pointer;
}

.editor-surface {
  min-height: 180px;
  padding: 14px 16px;
  outline: 0;
  color: var(--text-main);
  line-height: 1.65;
}

.editor-surface.editor-compact {
  min-height: 110px;
}

.editor-surface::selection,
.editor-surface *::selection {
  background: rgba(103, 162, 192, 0.24);
}

.editor-surface strong,
.editor-surface b,
.rich-content strong,
.rich-content b {
  color: var(--accent-strong);
}

.editor-surface em,
.editor-surface i,
.rich-content em,
.rich-content i {
  color: #2a84a7;
}

.editor-surface a,
.rich-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editor-surface ul,
.editor-surface ol,
.rich-content ul,
.rich-content ol {
  padding-left: 22px;
}

.editor-surface li::marker,
.rich-content li::marker {
  color: var(--accent-strong);
}

.editor-surface h3,
.editor-surface h4,
.rich-content h3,
.rich-content h4 {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content h3,
.rich-content h4 {
  margin: 0 0 14px;
}

.settings-status {
  min-height: 24px;
  margin: 0;
  white-space: pre-line;
}

.settings-status.error {
  color: #b14d4d;
}

.settings-status.success {
  color: var(--accent-strong);
}

.translation-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.translation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
  box-shadow: -6px -6px 12px rgba(255, 255, 255, 0.95), 6px 6px 12px rgba(187, 204, 215, 0.28);
}

.translation-chip-ready {
  color: var(--accent-strong);
}

.translation-chip-missing {
  color: #8b5d4a;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--surface-strong);
}

@media (max-width: 1120px) {
  .project-grid,
  .hero,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .project-row {
    padding: 20px;
  }

  .project-actions {
    width: 100%;
  }

  .project-media-row {
    grid-template-columns: 1fr;
  }

  .project-meta-grid,
  .project-toggle-group {
    grid-template-columns: 1fr;
  }

  .project-image-modal-stage {
    padding: 16px 52px 18px;
  }

  .project-image-modal-image {
    max-height: min(50vh, 520px);
  }

  .project-image-modal-nav {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .project-image-modal-nav-prev {
    left: 8px;
  }

  .project-image-modal-nav-next {
    right: 8px;
  }
}

@media (min-width: 1400px) {
  .settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1220px);
    padding-bottom: 156px;
  }

  .site-header,
  .hero-copy,
  .hero-visual,
  .project-card,
  .site-footer,
  .cookie-banner,
  .overlay-panel {
    padding: 24px;
  }

  .site-header,
  .site-footer,
  .cookie-banner,
  .header-actions,
  .section-headline,
  .action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 16px;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }
}
