:root {
  --bg: #f3f4f6;
  --paper: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #c8c8c8;
  --accent: #1e5a96;
  --accent-hover: #164a7d;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body {
  padding-top: 68px;
}

body.search-active {
  padding-top: 120px;
}

.app-bar__title {
  font-weight: 600;
  font-size: 1.05rem;
}

.app-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background: #f0f4f8;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.main {
  max-width: min(1280px, calc(100% - 8px));
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.doc-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 12px;
}

.doc-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.doc-state {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.doc-state--idle {
  background: #eef2f7;
  color: var(--muted);
}

.doc-state--clean {
  background: #e6f4ea;
  border-color: #b7d8c0;
  color: #255c35;
}

.doc-state--dirty {
  background: #fff0d8;
  border-color: #e3c38a;
  color: #8a5b00;
}

.doc-meta {
  min-width: 0;
}

.doc-meta__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta__path {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(54vw, 720px);
}

.doc-settings {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.history-granularity {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.history-granularity__label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.history-granularity__select {
  min-height: 38px;
  padding: 7px 34px 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: inherit;
}

.history-granularity__select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.editor-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  background: #eef2f7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.format-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.format-bar__group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.format-bar__sep {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

.fmt-btn {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.fmt-btn:hover {
  background: #eef2f6;
}

.fmt-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f4f4f4;
  color: var(--muted);
}

.fmt-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fmt-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
  color: var(--text);
  cursor: pointer;
}

.fmt-color:hover {
  background: #eef2f6;
}

.fmt-color:has(.fmt-color__input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f4f4f4;
}

.fmt-color:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fmt-color__label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.fmt-color__input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.fmt-color__input:disabled {
  cursor: not-allowed;
}

.fmt-color__input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.fmt-color__input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.fmt-color--compact {
  min-height: 30px;
  padding: 2px 6px;
}

.fmt-btn--compact {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: #eef2f6;
  color: var(--text);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-btn--active {
  background: #e3ecf6;
  color: var(--accent);
}

.icon-btn__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.editor-stack {
  position: relative;
  width: 100%;
}

.layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: min(65vh, 720px);
}

.layout__source {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.layout__preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.layout[data-mode='preview'] .layout__source,
.layout[data-mode='preview'] .layout__gutter {
  display: none;
}

.layout[data-mode='preview'] .layout__preview {
  flex: 1 1 auto;
}

.layout[data-mode='code'] .layout__preview,
.layout[data-mode='code'] .layout__gutter {
  display: none;
}

.layout[data-mode='code'] .layout__source {
  flex: 1 1 auto;
}

.layout[data-mode='split'] .layout__source {
  flex: 0 0 var(--split-left, 48%);
  max-width: 85%;
  min-width: 15%;
}

.layout[data-mode='split'] .layout__gutter {
  display: flex;
}

.layout[data-mode='split'] .layout__preview {
  flex: 1 1 0;
  overflow: auto;
  max-height: calc(100vh - 200px);
}

.layout__gutter {
  display: none;
  flex: 0 0 10px;
  min-width: 10px;
  align-self: stretch;
  cursor: col-resize;
  touch-action: none;
  background: linear-gradient(
    90deg,
    transparent 0,
    #c8c8c8 35%,
    #c8c8c8 65%,
    transparent 100%
  );
}

.layout__gutter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.layout__gutter--dragging {
  background: var(--accent);
  opacity: 0.4;
}

.source-panel {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 24px 28px;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  resize: none;
}

.layout[data-mode='code'] .source-panel {
  min-height: 60vh;
  resize: vertical;
}

.source-panel:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.preview {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
  border: 1px solid var(--border);
  flex: 1 1 auto;
  min-width: 0;
}

.preview--editable {
  min-height: min(55vh, 640px);
  cursor: text;
}

.preview--editable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Word-ähnliche Dokument-Typografie (Vorschau = PDF-Stil) */
.md-root {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 11pt;
  line-height: 1.55;
  color: #111;
  max-width: 100%;
}

.md-root h1,
.md-root h2,
.md-root h3,
.md-root h4 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: #0d0d0d;
  margin: 1.1em 0 0.45em;
  line-height: 1.25;
}

.md-root h1 {
  font-size: 1.65rem;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 0.25em;
}

.md-root h2 {
  font-size: 1.35rem;
}

.md-root h3 {
  font-size: 1.15rem;
}

.md-root p {
  margin: 0 0 0.75em;
}

.md-root ul,
.md-root ol {
  margin: 0 0 0.85em;
  padding-left: 1.5em;
}

.md-root li {
  margin: 0.2em 0;
}

.md-root blockquote {
  margin: 0.75em 0;
  padding: 0.35em 0 0.35em 1em;
  border-left: 4px solid #c5c5c5;
  color: #3a3a3a;
  background: #f7f7f7;
}

.md-root code {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.md-root pre {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 0.85em 0;
}

.md-root pre code {
  background: none;
  padding: 0;
}

.md-root hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5em 0;
}

.md-table-wrap {
  position: relative;
  max-width: 100%;
  margin: 1em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.md-table-wrap--active {
  outline: 2px solid rgba(30, 90, 150, 0.18);
  outline-offset: 6px;
  border-radius: 8px;
}

.md-root .md-table-wrap table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  font-size: clamp(0.68rem, 1.35vw, 0.95em);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.md-root .md-table-wrap th,
.md-root .md-table-wrap td {
  border: 1px solid #999;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.md-root .md-table-wrap th {
  background: #e8e8e8;
  font-weight: 600;
}

.md-root .md-table-wrap tr:nth-child(even) td {
  background: #fafafa;
}

.md-root .md-table-wrap tr.table-row-active > th,
.md-root .md-table-wrap tr.table-row-active > td {
  background: #eef5fc;
}

.md-root .md-table-wrap th.table-col-active,
.md-root .md-table-wrap td.table-col-active {
  box-shadow: inset 0 0 0 999px rgba(30, 90, 150, 0.08);
}

.md-root .md-table-wrap th.table-cell-active,
.md-root .md-table-wrap td.table-cell-active {
  position: relative;
  box-shadow: inset 0 0 0 2px #1e5a96;
}

.md-root .md-table-wrap code {
  word-break: break-word;
  white-space: pre-wrap;
}

.table-toolbar {
  position: fixed;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.table-toolbar[hidden] {
  display: none !important;
}

.table-toolbar__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.md-root img {
  max-width: 100%;
  height: auto;
}

.md-root a {
  color: var(--accent);
}

/* ── Symbol-Picker ── */

.symbol-picker {
  position: fixed;
  z-index: 200;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: min(420px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.symbol-picker[hidden] {
  display: none !important;
}

.symbol-picker__header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.symbol-picker__search {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.symbol-picker__search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 90, 150, 0.18);
}

.symbol-picker__close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.symbol-picker__close:hover {
  background: #eef2f6;
  color: var(--text);
}

.symbol-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.symbol-picker__category {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 4px 3px;
  margin-top: 4px;
}

.symbol-picker__category:first-child {
  margin-top: 0;
}

.symbol-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.1s;
}

.symbol-picker__btn:hover {
  background: #eef2f6;
  border-color: var(--border);
}

.symbol-picker__btn:active {
  background: #dce5ef;
}

/* ── Suchleiste ── */

.search-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 20px;
}

.search-bar__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(30, 90, 150, 0.12);
}

.search-bar__icon {
  flex-shrink: 0;
  color: var(--muted);
}

.search-bar__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.search-bar__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 90, 150, 0.18);
}

.search-bar__count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}

.search-bar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}

.search-bar__nav:hover:not(:disabled) {
  background: #eef2f6;
}

.search-bar__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.search-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.search-bar__close:hover {
  background: #eef2f6;
  color: var(--text);
}

/* Treffer-Markierung */
.search-highlight {
  background: #ffe066;
  color: inherit;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 200, 0, 0.4);
}

.search-highlight--current {
  background: #ffb300;
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.5);
}

/* Source-Mirror (Highlight-Overlay für Textarea) */
.source-mirror-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.source-mirror {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 24px 28px;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: transparent;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  z-index: 0;
}

.source-mirror-wrap .source-panel {
  position: relative;
  z-index: 1;
}

.source-panel--searching {
  background: transparent !important;
  caret-color: var(--text);
}

/* ── Letzte Aktionen ── */

.recent-actions {
  max-width: min(1280px, calc(100% - 8px));
  margin: 0 auto;
  padding: 0 16px 48px;
}

.recent-actions__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.recent-actions__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recent-actions__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recent-actions__table th,
.recent-actions__table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.recent-actions__table th {
  background: #eef2f7;
  font-weight: 600;
  white-space: nowrap;
}

.recent-actions__table td:first-child {
  white-space: nowrap;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
}

.recent-actions__table td:last-child {
  white-space: nowrap;
  font-weight: 600;
}

.recent-actions__link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.recent-actions__link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

@media (max-width: 720px) {
  .doc-tools {
    align-items: stretch;
  }

  .doc-summary {
    width: 100%;
  }

  .doc-settings {
    width: 100%;
  }

  .history-granularity {
    width: 100%;
    justify-content: space-between;
  }

  .history-granularity__select {
    flex: 1 1 auto;
  }

  .doc-meta__path {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════
   Bestätigungsdialog (Modal)
   ══════════════════════════════════════════════ */

.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.confirm-modal-overlay[hidden] {
  display: none !important;
}

.confirm-modal {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 32px 36px;
  max-width: 460px;
  width: calc(100% - 32px);
  text-align: center;
}

.confirm-modal__icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.confirm-modal__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.confirm-modal__text {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.confirm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.confirm-modal__actions .btn {
  min-width: 120px;
}

.confirm-modal__btn--discard {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.confirm-modal__btn--discard:hover:not(:disabled) {
  background: #c82333;
  border-color: #c82333;
}

/* ══════════════════════════════════════════════
   Footer (von www.auralium.com)
   ══════════════════════════════════════════════ */

.global-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 80px;
}

.global-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.global-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.global-footer .footer-section h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.global-footer .footer-section p,
.global-footer .footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
}

.global-footer .footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.global-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.global-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .global-footer {
    padding: 30px 15px 15px;
  }

  .global-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .global-footer .footer-link {
    font-size: 13px;
  }
}

@supports (padding: max(0px)) {
  .global-footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
