/* ==========================================================================
   01. FARBPALETTE & BASIS-VARIABLEN
   ========================================================================== */
:root {
  --primary-blue: #00334e;
  --primary-gold: #d4af37;
  --bg-color: #f9f7f1;
  --text-color: #2c3e50;

  --surface-1: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(248, 250, 252, 0.78);
  --surface-3: rgba(240, 246, 250, 0.70);
  --stroke: rgba(0, 51, 78, 0.10);
  --stroke-strong: rgba(0, 51, 78, 0.18);
  --shadow-sm: 0 8px 22px rgba(10, 40, 60, 0.08);
  --shadow-md: 0 14px 34px rgba(10, 40, 60, 0.10);
}

/* ==========================================================================
   02. FONTS
   ========================================================================== */
@font-face {
  font-display: swap; font-family: 'Acme'; font-style: normal; font-weight: 400; 
  src: url('/assets/fonts/acme-v27-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap; font-family: 'Great Vibes'; font-style: normal; font-weight: 400;
  src: url('/assets/fonts/great-vibes-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap; font-family: 'Lato'; font-style: normal; font-weight: 400;
  src: url('/assets/fonts/lato-v25-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 400;
  src: url('/assets/fonts/montserrat-v31-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 600;
  src: url('/assets/fonts/montserrat-v31-latin-600.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 400;
  src: url('/assets/fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 400;
  src: url('/assets/fonts/playfair-display-v40-latin-italic.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 600;
  src: url('/assets/fonts/playfair-display-v40-latin-600italic.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Merriweather'; font-style: normal; font-weight: 300;
  src: url('/assets/fonts/merriweather-v33-latin-300.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; font-family: 'Merriweather'; font-style: normal; font-weight: 400;
  src: url('/assets/fonts/merriweather-v33-latin-regular.woff2') format('woff2'); 
}

/* dancing-script-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/dancing-script-v29-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dancing-script-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/dancing-script-v29-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dancing-script-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/dancing-script-v29-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dancing-script-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/dancing-script-v29-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ==========================================================================
   03. GLOBALE RESETS & GRUNDLAYOUT
   ========================================================================== */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}

*:focus:not(:focus-visible) {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none; 
}

.author-name, .book-item div, .suggestion-item, .author-link, .rect-card, .justify-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.justify-text { text-align: justify; }

body {
  margin: 0;
  padding: 20px;
  font-family: 'Acme', cursive;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(1200px 600px at 10% 0%, rgba(212, 175, 55, 0.10), rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(0, 51, 78, 0.10), rgba(0, 0, 0, 0) 60%),
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),
    url('/data/background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-color);
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  scroll-behavior: smooth;
  padding-top: 70px;
}

body.alt-font { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif !important; }
body.alt-font .nav-btn, body.alt-font .footer-btn, body.alt-font .action-btn, body.alt-font .form-input, body.alt-font .form-textarea,
body.alt-font .sidebar-btn, body.alt-font .close-modal, body.alt-font .toast-msg, body.alt-font .top-nav-links button, 
body.alt-font .auth-btn-top, body.alt-font .submit-idea-btn, body.alt-font .poll-btn, body.alt-font .mtb-btn { font-family: inherit !important; }

.container, .magazin-container { max-width: 1200px; margin: 0 auto; width: 100%; flex: 1; }

.card-style, .story-card, .info-card, .submit-idea-btn, .action-btn, 
.form-input, .form-textarea, .show-all-card, .chapter-poll-box, .poll-btn, 
.modal-vote-section, .comment-item {
    border-radius: 6px !important;
}

/* ==========================================================================
   04. HEADER, SLOGAN & KARTEN
   ========================================================================== */
.card-style {
  background: linear-gradient(135deg, rgba(224, 234, 240, 0.92) 0%, rgba(251, 246, 232, 0.92) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); 
}
@media (hover: hover) {
  .card-style:hover { border-color: var(--stroke-strong); box-shadow: var(--shadow-md); }
}

.slogan-card {
  padding: 15px 40px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 5px solid var(--primary-gold);
  background: linear-gradient(135deg, rgba(224, 234, 240, 0.95) 0%, rgba(251, 246, 232, 0.95) 100%);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 26px rgba(10, 40, 60, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.slogan-text { font-size: 1.5rem; text-align: center; margin: 0; }
.slogan-text .blue { color: var(--primary-blue); font-weight: bold; }
.slogan-text .gold { color: var(--primary-gold); font-weight: bold; }

.header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 40px;
  border-bottom: 3px solid var(--primary-gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.70));
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 28px rgba(10, 40, 60, 0.10);
  position: relative;
  z-index: 10;
  overflow: visible;
  margin-bottom: 30px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo-wrapper { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: flex-start; }
.brand-logo { height: 420px; width: auto; display: block; cursor: pointer; transition: transform 0.3s ease; margin-top: -10px; margin-left: -50px; margin-bottom: 0; object-fit: contain; filter: drop-shadow(5px 10px 10px rgba(0, 0, 0, 0.15)); position: relative; z-index: 20; }
@media (hover: hover) { .brand-logo:hover { transform: scale(1.02); } }

.nav-buttons { display: flex; gap: 15px; margin-left: auto; z-index: 50; }
.nav-btn {
  font-family: 'Acme', cursive;
  font-size: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 250, 0.70));
  border: 1px solid rgba(0, 51, 78, 0.35);
  color: rgba(0, 51, 78, 0.95);
  padding: 8px 18px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  cursor: pointer;
  user-select: none; 
  -webkit-user-select: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(10, 40, 60, 0.10);
  filter: saturate(0.88);
}
@media (hover: hover) {
  .nav-btn:hover { background: rgba(212, 175, 55, 0.28); border-color: rgba(212, 175, 55, 0.65); color: rgba(0, 51, 78, 0.98); transform: translateY(-1px); }
}

/* ==========================================================================
   05. TOP NAVIGATION (DESKTOP)
   ========================================================================== */
.global-top-nav {
  position: fixed; top: 0; left: 0; width: 100vw; z-index: 1000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 250, 0.95));
  border-bottom: 2px solid var(--primary-gold); box-shadow: 0 4px 15px rgba(0, 51, 78, 0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center;
}
.top-nav-inner { max-width: 1300px; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.top-nav-brand { font-family: 'Dancing Script', cursive; font-size: 1.8rem; color: var(--primary-gold); text-shadow: 1px 1px 2px rgba(0,0,0,0.05); }
.top-nav-links { display: flex; gap: 8px; }
.top-nav-links button { background: transparent; border: none; font-family: 'Acme', cursive; font-size: 1.15rem; color: var(--primary-blue); cursor: pointer; padding: 5px 12px; border-radius: 8px; transition: all 0.2s; }
.top-nav-links button:hover { color: var(--primary-gold); background: rgba(0, 51, 78, 0.05); }
.top-nav-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle-top { background: transparent; border: none; font-size: 1.3rem; cursor: pointer; transition: transform 0.2s; }
.theme-toggle-top:hover { transform: scale(1.1); }
.auth-btn-top { background: var(--primary-blue); color: white; border: none; font-family: 'Acme', cursive; font-size: 1.05rem; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: background 0.2s, transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.auth-btn-top:hover { background: var(--primary-gold); color: var(--primary-blue); transform: translateY(-1px); }

/* ==========================================================================
   06. TRUE STORY SPEZIFISCHES LAYOUT
   ========================================================================== */
.hero-container {
    aspect-ratio: 16 / 9; width: 100%; max-width: 1200px; margin: 40px auto 50px auto; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/../data/derkleineriese.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 20px; min-height: 350px; box-sizing: border-box;
}

.hero-title { color:#ffffff; font-family: 'Dancing Script', cursive; font-size: 4.8rem; margin-bottom: 0; font-weight: normal; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); text-align: center; }
.hero-subtitle { color: #ffffff !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); font-size: 1.8rem; text-align: center; margin-top: -5px; }

/* Story Headers */
.story-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    width: 100%;
}

.voting-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.story-main-heading { color:#fff; font-family:'Dancing Script', cursive; font-size: 3rem; margin:0 0 15px 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.story-sub-heading { font-size: 1.05rem; color: #fff; opacity: 0.9; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.story-deadline-badge { display: inline-block; margin-top: 10px; background: rgba(0,0,0,0.5); color: var(--primary-gold); padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--primary-gold); }
.voting-header-actions { display: flex; gap: 10px; align-items: center; }
.voting-closed-badge { background: rgba(255,255,255,0.1); border: 1px solid var(--primary-gold); color: #fff; padding: 8px 15px; border-radius: 4px; }

.canon-chapter-title { color:var(--primary-blue); font-size: 2.2rem; border-bottom: 1px dashed var(--stroke); padding-bottom: 10px; margin-bottom: 20px; text-align: center; }
.canon-chapter-content { font-size: 1.15rem; line-height: 1.8; white-space: pre-wrap; color: var(--text-color); }

.scroll-wrapper { position: relative; width: 100%; margin: 0 auto; }
.story-scroll-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 25px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 10px; }
.story-scroll-container::-webkit-scrollbar { display: none; }
.scroll-wrapper.show-all .story-scroll-container { flex-wrap: wrap; overflow-x: visible; scroll-snap-type: none; padding-left: 0; padding-right: 0;}

.scroll-arrow { position: absolute; top: calc(50% - 15px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50% !important; background: var(--primary-blue); color: var(--primary-gold); border: 2px solid var(--primary-gold); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.4); z-index: 20; transition: 0.2s; }
@media (hover: hover) { .scroll-arrow:hover { background: var(--primary-gold); color: var(--primary-blue); transform: translateY(-50%) scale(1.1); } }
.scroll-arrow.left-arrow { left: -5px; }
.scroll-arrow.right-arrow { right: -5px; }
.scroll-wrapper.show-all .scroll-arrow { display: none !important; }

.story-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)); border: 1px solid var(--stroke); padding: 20px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; display: flex; flex-direction: column; cursor: pointer; flex: 0 0 320px; scroll-snap-align: start; position: relative; }
.scroll-wrapper.show-all .story-card { flex: 1 1 300px; max-width: 100%; }
@media (hover: hover) { .story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-gold); } }

.story-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; border-bottom: 1px dashed var(--stroke); padding-bottom: 10px; }
.story-card-avatar { width: 45px; height: 45px; border-radius: 50% !important; object-fit: cover; border: 2px solid var(--primary-gold); }
.story-card-title { font-size: 1.25rem; color: var(--primary-blue); font-weight: bold; margin: 0 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-card-snippet { color: #555; font-size: 1rem; line-height: 1.5; flex-grow: 1; margin-bottom: 15px; font-style: italic; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.vote-box { display: flex; justify-content: space-between; align-items: center; background: rgba(0,51,78,0.05); padding: 12px; }
.show-all-card { justify-content: center; align-items: center; text-align: center; background: rgba(255,255,255,0.5); border: 2px dashed var(--primary-gold); min-height: 250px; }
@media (hover: hover) { .show-all-card:hover { background: rgba(212,175,55,0.1); } }

.chapter-poll-box { background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(0,51,78,0.2); padding: 20px; margin-bottom: 25px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; box-shadow: var(--shadow-sm); }
.poll-bar-container { display: flex; gap: 10px; width: 100%; max-width: 400px; }
.poll-btn { flex: 1; padding: 10px; font-family: inherit; font-weight: bold; font-size: 0.95rem; cursor: pointer; border: 1px solid rgba(0,0,0,0.1); transition: 0.2s; }
.poll-btn.yes { background: rgba(138, 192, 160, 0.3); color: #2e7d32; border-color: rgba(46, 125, 50, 0.2); }
@media (hover: hover) { .poll-btn.yes:hover { background: #2e7d32; color: white; } }
.poll-btn.no { background: rgba(216, 150, 142, 0.3); color: #c0392b; border-color: rgba(192, 57, 43, 0.2); }
@media (hover: hover) { .poll-btn.no:hover { background: #c0392b; color: white; } }

.main-story-card { border: 2px solid var(--primary-gold); }
@media (hover: hover) { .main-story-card:hover { border-color: var(--primary-gold) !important; } }

.submit-idea-btn { background: rgba(25, 45, 65, 0.9); color: white; border: 1px solid rgba(0,0,0,0.5); padding: 8px 20px; font-family: 'Acme', cursive; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
@media (hover: hover) { .submit-idea-btn:hover { background: var(--primary-gold); color: var(--primary-blue); } }

.modal-vote-section { background: rgba(0,51,78,0.05); padding: 15px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; margin-bottom: 20px; border: 1px solid rgba(0,0,0,0.1); }
.modal-comments-section { border-top: 2px dashed rgba(0,0,0,0.1); padding-top: 20px; }
.comment-item { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.05); padding: 15px; margin-bottom: 10px; font-size: 1rem; }
.comment-reply { margin-left: 30px; background: rgba(0,51,78,0.02); border-left: 3px solid var(--primary-gold); }
.comment-actions { display:flex; gap:15px; align-items:center; margin-top: 10px; font-size: 0.85rem; font-weight: bold;}
.comment-action-btn { background:none; border:none; cursor:pointer; color:var(--primary-gold); font-weight:bold; font-family:inherit; padding:0; transition:0.2s; }
@media (hover: hover) { .comment-action-btn:hover { filter: brightness(0.8); } }

.admin-edit-area { width: 100%; height: 300px; font-family: inherit; font-size: 1.05rem; line-height: 1.6; padding: 15px; border: 2px dashed var(--primary-gold); margin-bottom: 15px; }
.admin-dashboard-box { background: rgba(255,255,255,0.9); border: 2px dashed #c0392b; padding: 15px; border-radius: 6px; margin-bottom: 20px; }

/* ==========================================================================
   07. MODALS, FORMS & BUTTONS
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 40, 60, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; justify-content: center; align-items: center; z-index: 9999 !important; padding: 20px; -webkit-overflow-scrolling: touch; padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
.info-card { border: 1px solid rgba(212, 175, 55, 0.55); position: relative; width: min(900px, 100%); max-height: calc(100vh - 130px - env(safe-area-inset-bottom)) !important; overflow-y: auto; margin: auto; background: linear-gradient(135deg, rgba(235, 244, 250, 0.98) 0%, rgba(253, 245, 225, 0.96) 100%); padding: 30px; animation: popUp 0.3s ease-out; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25); }
@keyframes popUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: sticky; top: 0; float: right; margin-top: -10px; margin-right: -10px; font-size: 2rem; cursor: pointer; background: none; border: none; font-family: 'Acme', cursive; color: var(--primary-blue); z-index: 100; padding: 5px 15px; }

#modalTitle { padding-right: 35px; word-break: normal; overflow-wrap: break-word; }

.form-group { margin-bottom: 15px; position: relative; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--primary-blue); }
.form-input, .form-textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 10px; font-family: 'Acme', cursive; font-size: 1.1rem; border: 1px solid rgba(0, 0, 0, 0.14); outline: none; transition: all 0.25s ease; background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 250, 0.78)); }
.form-input:focus, .form-textarea:focus { border-color: rgba(0, 51, 78, 0.55); box-shadow: 0 0 0 3px rgba(0, 51, 78, 0.12); }
.form-textarea { height: 120px; resize: vertical; }

.submit-btn, .action-btn { background-color: rgba(0, 51, 78, 0.90); color: rgba(255, 255, 255, 0.95); border: 1px solid rgba(0, 0, 0, 0.08); padding: 9px 16px; font-family: 'Acme', cursive; font-size: 1.15rem; cursor: pointer; margin-top: 10px; transition: all 0.25s ease; text-align: center; display: inline-block; box-shadow: 0 10px 22px rgba(10, 40, 60, 0.12); filter: saturate(0.88); user-select: none; -webkit-tap-highlight-color: transparent;}
@media (hover: hover) { .submit-btn:hover, .action-btn:hover { background-color: rgba(212, 175, 55, 0.82); transform: translateY(-1px); color: #12181b; } }
.secondary-btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 248, 250, 0.68)); border: 1px solid rgba(0, 51, 78, 0.30); color: rgba(0, 51, 78, 0.95); }
@media (hover: hover) { .secondary-btn:hover { background: rgba(0, 51, 78, 0.10); } }

.btn-small { width: auto; font-size: 1rem; padding: 5px 15px; display: inline-block; }
.btn-outline { background: transparent; border: 1px solid rgba(0, 51, 78, 0.55); color: rgba(0, 51, 78, 0.95); }
@media (hover: hover) { .btn-outline:hover { background: rgba(0, 51, 78, 0.10); color: rgba(0, 51, 78, 1); } }
.switch-link { margin-top: 15px; text-align: center; font-size: 1rem; color: #5b6670; }
.switch-link span { color: var(--primary-blue); text-decoration: underline; cursor: pointer; font-weight: bold; }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 1rem; }
.checkbox-group input { width: 20px; height: 20px; accent-color: rgba(0, 51, 78, 0.85); }

/* ==========================================================================
   08. PROMO CARDS
   ========================================================================== */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px; }
.promo-card { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px 20px; height: 100%; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) { .promo-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); } }

.promo-blog { background: linear-gradient(135deg, rgba(0,51,78,0.85), rgba(212,175,55,0.6)); border: 1px solid var(--primary-gold); }
.promo-webdesign { background: linear-gradient(135deg, var(--primary-blue), #001f30); border: 2px solid var(--primary-gold); position: relative; overflow: hidden; }
.promo-davina { background: linear-gradient(135deg, rgba(0,51,78,0.03), rgba(212,175,55,0.08)); border: 1px dashed var(--primary-gold); cursor: pointer; transition: filter 0.3s; }
@media (hover: hover) { .promo-davina:hover { filter: brightness(0.95); } }
.magazin-davina-logo { max-width: 140px; margin-bottom: 15px; mix-blend-mode: multiply; }

/* ==========================================================================
   09. TOAST NOTIFICATIONS & BACK TO TOP
   ========================================================================== */
.toast-msg { position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-30px); background: linear-gradient(135deg, rgba(250, 252, 255, 0.95) 0%, rgba(253, 250, 245, 0.95) 100%); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 12px 24px; font-family: 'Acme', cursive; font-size: 1.15rem; z-index: 9999; box-shadow: 0 12px 30px rgba(10, 40, 60, 0.15); border: 1px solid var(--stroke); opacity: 0; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.toast-msg.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-msg.error-toast { color: #c0392b; border-left: 4px solid #c0392b; }
.toast-msg.success-toast { color: #27ae60; border-left: 4px solid #27ae60; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary-gold); color: var(--primary-blue); border: 2px solid white; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1000; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (hover: hover) { .back-to-top:hover { background: var(--primary-blue); color: var(--primary-gold); transform: translateY(-3px) scale(1.05); } }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer { text-align: center; padding: 28px 0 40px 0; color: var(--text-color); background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 250, 0.70)); border-top: 1px solid rgba(0, 51, 78, 0.12); border-radius: 16px; margin-top: 50px; box-shadow: 0 10px 26px rgba(10, 40, 60, 0.10); margin-bottom: 0;}
.footer-links { margin-top: 15px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-btn { font-family: 'Acme', cursive; font-size: 1.05rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 250, 0.70)); border: 1px solid rgba(0, 51, 78, 0.35); color: rgba(0, 51, 78, 0.95); padding: 8px 18px; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; cursor: pointer; transition: all 0.25s ease; white-space: nowrap; box-shadow: 0 8px 16px rgba(10, 40, 60, 0.10); filter: saturate(0.88); text-decoration: none; user-select: none; -webkit-user-select: none;}
@media (hover: hover) { .footer-btn:hover { background: rgba(212, 175, 55, 0.28); border-color: rgba(212, 175, 55, 0.65); color: rgba(0, 51, 78, 0.98); transform: translateY(-1px); } }
.footer-header { display: flex; justify-content: center; align-items: center; gap: 10px; }
.footer-chevron { display: none; color: var(--primary-gold); font-size: 1.2rem; transition: transform 0.3s ease; }
.footer-chevron.rotated { transform: rotate(180deg); }

/* ==========================================================================
   11. MOBILE BARS & RESPONSIVE ANPASSUNGEN
   ========================================================================== */
.mobile-bottom-bar, 
.mobile-sidebar, 
.mobile-sidebar-overlay, 
.mobile-top-bar { 
    display: none; 
}

.sidebar-header-mobile { 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 2px dashed var(--stroke-strong); padding-bottom: 10px; margin-bottom: 20px; 
}
.sidebar-btn { 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 250, 0.8)); 
    border: 1px solid rgba(0, 51, 78, 0.2); color: var(--primary-blue); 
    font-family: 'Acme', cursive; font-size: 1.15rem; padding: 12px 15px; 
    border-radius: 12px; cursor: pointer; text-align: left; display: flex; 
    align-items: center; gap: 10px; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); width: 100%; 
}
@media (hover: hover) { .sidebar-btn:hover { background: var(--primary-gold); color: #12181b; border-color: var(--primary-gold); transform: translateY(-2px); } }

.nav-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; filter: invert(14%) sepia(51%) saturate(2396%) hue-rotate(182deg) brightness(95%) contrast(102%); transition: filter 0.3s ease; }
.nav-profile-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--primary-gold); transition: transform 0.2s; }
.mobile-bottom-bar .js-toggle-sidebar span { color: #111; transition: color 0.3s ease; }

@media (max-width: 1000px) {
    .top-mag-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .pinned-mobile-first { order: -1; }
}

@media (max-width: 900px) {
    body { padding-top: 75px !important; padding-bottom: 80px !important; padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; padding-left: 0 !important; padding-right: 0 !important; }
    .magazin-container, .container { padding: 0 !important; margin-top: 0 !important; width: 100% !important; max-width: 100% !important; }
    .global-top-nav, .header-card { display: none !important; }
    .hero-container { border-radius: 0; margin-top: 0; }
    .scroll-arrow { display: none !important; } 
    .story-scroll-container { padding-left: 5px; padding-right: 5px;}

    .mobile-top-bar {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; top: 0; left: 0; width: 100%; height: 60px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 250, 0.98));
        border-bottom: 2px solid var(--primary-gold);
        z-index: 1000; padding: 0 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .mtb-left { display: flex; align-items: center; gap: 10px; cursor: pointer; }
    .mtb-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 2px solid var(--primary-gold); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
    .mtb-brand { font-family: 'Dancing Script', cursive; font-size: 1.6rem; color: var(--primary-blue); line-height: 1; padding-top: 4px; }
    .mtb-right { display: flex; align-items: center; gap: 12px; }
    .mtb-time { font-size: 0.95rem; color: #888; font-family: 'Dancing Script'; font-weight: bold; min-width: 80px; text-align: right; margin-right: 2px; display: none; }
    @media (min-width: 390px) { .mtb-time { display: block; } }
    .mtb-btn { font-family: 'Acme', cursive; font-size: 1rem; padding: 4px 14px; border-radius: 20px; border: none; font-weight: bold; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
    .mtb-login { background: var(--primary-blue); color: white; }
    .mtb-logout { background: #c0392b; color: white; }

    .mobile-bottom-bar {
        display: flex !important; justify-content: space-between !important; align-items: center !important;
        position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 250, 0.98)) !important;
        border-top: 2px solid var(--primary-gold) !important;
        padding: 10px 15px !important; padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
        min-height: 60px !important; box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 999999 !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
    }
    .mobile-bottom-bar button { background: transparent !important; border: none !important; font-size: 1.4rem !important; color: var(--primary-blue) !important; cursor: pointer !important; padding: 5px !important; transition: transform 0.2s !important; display: flex !important; align-items: center !important; justify-content: center !important; }

    .mobile-sidebar {
        display: block; position: fixed; top: 0; left: -320px; width: 280px; height: 100vh;
        background: var(--bg-color); z-index: 2002; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15); overflow-y: auto; border-right: 2px solid var(--primary-gold); padding: 20px;
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    }
    .mobile-sidebar.open { left: 0; }
    .mobile-sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 78, 0.6); z-index: 2001; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
    .mobile-sidebar-overlay.show { display: block; }

    .footer-header { cursor: pointer; padding: 5px 0; }
    .footer-chevron { display: inline-block; }
    .footer-links { display: none; flex-direction: column; gap: 8px; margin-top: 15px; }
    .footer-links.show { display: flex; }
    .back-to-top { bottom: 90px; right: 20px; width: 45px; height: 45px; font-size: 1.1rem; }
    
    .card-style { padding: 15px !important; margin-bottom: 12px !important; border-radius: 12px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important; }
}

@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
    .hero-title { font-size: 3.5rem !important; }
    .hero-subtitle { font-size: 1.4rem !important; }
    
    /* Header-Zentrierung Fix für Mobile */
    .story-section-header { flex-direction: column; align-items: center; text-align: center; width: 100%; }
    .story-main-heading { text-align: center !important; width: 100%; display: block; margin-bottom: 10px; font-size: 2.2rem !important;}
    .admin-add-chapter-form { margin-bottom: 15px; }

    .voting-header-box { flex-direction: column; text-align: center; gap: 20px; width: 100%; align-items: center; }
    .voting-header-text { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .story-sub-heading { text-align: center; width: 100%; }
    .voting-header-actions { justify-content: center; width: 100%; }
    .submit-idea-btn { width: 100%; justify-content: center; }

    .canon-chapter-title { font-size: 1.8rem !important; }
    .promo-grid { grid-template-columns: 1fr; }
    #infoCard { padding: 20px !important; margin: 10px !important; width: calc(100% - 20px) !important; max-height: 90vh !important; }
}

@media (max-width: 600px) {
    .card-style { padding: 12px !important; border-radius: 10px !important; }
    .brand-logo { margin-top: -80px !important; }
}

/* ==========================================================================
   12. DUNKELMODUS (DARK MODE)
   ========================================================================== */
body.dark-mode {
  --primary-blue: #005a8a; 
  --bg-color: #12181b; 
  --text-color: #e0e6ed;
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-strong: rgba(255, 255, 255, 0.25);

  background-color: var(--bg-color);
  background-image:
    radial-gradient(1200px 600px at 10% 0%, rgba(212, 175, 55, 0.05), rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(138, 180, 248, 0.05), rgba(0, 0, 0, 0) 60%),
    linear-gradient(rgba(18, 24, 27, 0.85), rgba(18, 24, 27, 0.95)),
    url('/data/background.webp');
}

body.dark-mode .card-style, 
body.dark-mode .info-card, 
body.dark-mode footer, 
body.dark-mode .admin-dashboard-box,
body.dark-mode .header-card { 
    background: linear-gradient(135deg, rgba(30, 40, 50, 0.85) 0%, rgba(20, 25, 30, 0.90) 100%); 
    border-color: rgba(255,255,255,0.1); 
    color: var(--text-color); 
}

body.dark-mode #mainBrandLogo,
body.dark-mode .brand-logo { content: url('/data/truedark.webp') !important; }

body.dark-mode .magazin-davina-logo {
  mix-blend-mode: normal !important; 
  content: url('/data/davina_logo_white.webp') !important;
}

body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode .form-group label { color: var(--primary-gold); }
body.dark-mode p, body.dark-mode .canon-chapter-content, body.dark-mode .story-card-snippet { color: #b0c4de !important; }
body.dark-mode .canon-chapter-title { color: var(--primary-gold); border-bottom-color: rgba(255,255,255,0.1); }

body.dark-mode .global-top-nav { background: linear-gradient(180deg, rgba(20, 25, 30, 0.98), rgba(30, 40, 50, 0.95)) !important; border-bottom-color: rgba(212, 175, 55, 0.4) !important; }
body.dark-mode .top-nav-links button { color: #e0e6ed !important; }
body.dark-mode .top-nav-links button:hover { color: var(--primary-gold) !important; background: rgba(255, 255, 255, 0.05) !important; }
body.dark-mode .auth-btn-top { background: rgba(255, 255, 255, 0.1) !important; color: #e0e6ed !important; }
body.dark-mode .auth-btn-top:hover { background: var(--primary-gold) !important; color: #12181b !important; }

body.dark-mode .nav-btn, body.dark-mode .footer-btn, body.dark-mode .form-input, body.dark-mode .form-textarea { background: rgba(255, 255, 255, 0.05); color: var(--text-color); border: 1px solid rgba(255, 255, 255, 0.2); }
body.dark-mode .nav-btn:hover, body.dark-mode .footer-btn:hover { background: rgba(212, 175, 55, 0.2); border-color: var(--primary-gold); color: var(--primary-gold); }
body.dark-mode .action-btn { background: rgba(255, 255, 255, 0.1) !important; color: #e0e6ed !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; }
body.dark-mode .action-btn:hover { background: var(--primary-gold) !important; color: #12181b !important; }
body.dark-mode .secondary-btn { background: rgba(255, 255, 255, 0.1) !important; color: #e0e6ed !important; border-color: rgba(255, 255, 255, 0.2) !important; }
body.dark-mode .form-input::placeholder, body.dark-mode .form-textarea::placeholder { color: rgba(255, 255, 255, 0.5) !important; }
body.dark-mode .back-to-top { background: rgba(30, 40, 50, 0.9); color: var(--primary-gold); border-color: rgba(255, 255, 255, 0.2); }
body.dark-mode .back-to-top:hover { background: var(--primary-gold); color: #12181b; }

body.dark-mode .modal-overlay { background: rgba(0, 0, 0, 0.8); }
body.dark-mode .close-modal { color: var(--primary-gold); }
body.dark-mode .info-card { background: linear-gradient(135deg, rgba(25, 35, 45, 0.98) 0%, rgba(18, 24, 27, 0.98) 100%) !important; border: 1px solid rgba(212, 175, 55, 0.3) !important; }
body.dark-mode #modalContent p, body.dark-mode #modalContent div, body.dark-mode #modalContent span { color: #b0c4de !important; }

body.dark-mode .scroll-arrow { background: rgba(30, 40, 50, 0.95); color: var(--primary-gold); }
body.dark-mode .scroll-arrow:hover { background: var(--primary-gold); color: #12181b; }
body.dark-mode .story-card { background: rgba(30, 40, 50, 0.95); border-color: rgba(255,255,255,0.1); }
body.dark-mode .story-card-title { color: var(--primary-gold); }
body.dark-mode .vote-box { background: rgba(0,0,0,0.3); }
body.dark-mode .chapter-poll-box { background: rgba(30, 40, 50, 0.95); border-color: rgba(212,175,55,0.4); }
body.dark-mode .poll-btn.yes { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.1); }
body.dark-mode .poll-btn.no { color: #f87171; border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.1); }
body.dark-mode .show-all-card { background: rgba(0,0,0,0.2); }
body.dark-mode .show-all-card:hover { background: rgba(212,175,55,0.15); }
body.dark-mode .modal-vote-section { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); }
body.dark-mode .modal-comments-section { border-top-color: rgba(255,255,255,0.1); }
body.dark-mode .comment-item { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); color: #b0c4de; }
body.dark-mode .admin-edit-area { background: rgba(0,0,0,0.3); color: #e0e6ed; }

body.dark-mode .mobile-bottom-bar .js-toggle-sidebar span { color: var(--primary-gold); }
body.dark-mode .nav-icon { filter: invert(73%) sepia(34%) saturate(834%) hue-rotate(359deg) brightness(91%) contrast(89%); }
body.dark-mode .nav-profile-img { filter: none; }

@media (max-width: 900px) {
  body:not(.dark-mode) .card-style[style*="rgba(192, 57, 43, 0.1)"] { background: #fdf2f2 !important; }
  body:not(.dark-mode) .card-style[style*="rgba(212,175,55,0.1)"], body:not(.dark-mode) .card-style[style*="rgba(212, 175, 55, 0.1)"] { background: #fdfbf4 !important; }
  body:not(.dark-mode) .card-style[style*="rgba(0, 51, 78, 0.05)"] { background: #f2f6f9 !important; }

  body.dark-mode .card-style[style*="rgba(255,255,255,0.85)"], body.dark-mode .card-style[style*="rgba(255,255,255,0.7)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  body.dark-mode .mobile-bottom-bar { background: linear-gradient(180deg, rgba(30, 40, 50, 0.95), rgba(20, 25, 30, 0.98)) !important; border-top-color: var(--stroke-strong) !important; box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5) !important; }
  body.dark-mode .mobile-bottom-bar button { color: var(--primary-gold) !important; }
  body.dark-mode .mobile-bottom-bar button:hover { color: #fff !important; }
  
  body.dark-mode .mobile-top-bar { background: linear-gradient(180deg, rgba(20, 25, 30, 0.95), rgba(30, 40, 50, 0.98)); border-bottom-color: var(--stroke-strong); }
  body.dark-mode .mtb-brand { color: var(--primary-gold); }
  body.dark-mode .mtb-time { color: #aaa; }
  body.dark-mode .mtb-login { background: var(--primary-gold); color: #12181b; }
  
  body.dark-mode .sidebar { background: var(--bg-color) !important; border-right: 2px solid var(--stroke-strong) !important; box-shadow: 4px 0 15px rgba(0,0,0,0.5) !important; }
  body.dark-mode .sidebar-header-mobile { border-bottom-color: rgba(212, 175, 55, 0.3) !important; }
  body.dark-mode .sidebar-btn { background: rgba(255, 255, 255, 0.05) !important; color: #e0e6ed !important; border-color: rgba(255, 255, 255, 0.1) !important; }
  body.dark-mode .sidebar-btn:hover { background: rgba(212, 175, 55, 0.2) !important; color: var(--primary-gold) !important; border-color: var(--primary-gold) !important; }
}

/* ==========================================================================
   13. READER SIMULATOR STYLE (Story Modal Modus)
   ========================================================================== */
.modal-overlay.reader-mode { background: rgba(15, 15, 15, 0.85) !important; backdrop-filter: blur(3px); }
.reader-mode .info-card { background: #fbf9f4 !important; color: #2b2b2b !important; border: none !important; border-radius: 4px !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important; padding: 50px 60px !important; max-width: 800px !important; }
.reader-mode #modalTitle { font-family: 'Georgia', 'Merriweather', serif !important; font-size: 2.2rem !important; font-weight: normal !important; text-align: center !important; border-bottom: 1px solid #e0dcd1 !important; padding-bottom: 25px !important; margin-bottom: 35px !important; color: #111 !important; }
.reader-mode #modalContent, .reader-mode #modalContent p, .reader-mode #modalContent div.justify-text { font-family: 'Georgia', 'Merriweather', serif !important; font-size: 1.25rem !important; line-height: 1.8 !important; color: #2b2b2b !important; text-align: justify !important; hyphens: auto; }
.reader-mode .close-modal { color: #a09d94 !important; font-family: sans-serif !important; font-size: 1.8rem !important; font-weight: 300 !important; transition: color 0.2s ease; top: 15px; right: 15px; }
.reader-mode .close-modal:hover { color: #111 !important; background: transparent !important; }

body.dark-mode .reader-mode .info-card { background: #121212 !important; color: #d4d4d4 !important; border: 1px solid #222 !important; }
body.dark-mode .reader-mode #modalTitle { color: #eeeeee !important; border-bottom-color: #333 !important; }
body.dark-mode .reader-mode #modalContent, body.dark-mode .reader-mode #modalContent p, body.dark-mode .reader-mode #modalContent div.justify-text { color: #d4d4d4 !important; }
body.dark-mode .reader-mode .close-modal { color: #555 !important; }
body.dark-mode .reader-mode .close-modal:hover { color: #fff !important; }

@media (max-width: 768px) {
    .reader-mode .info-card { padding: 30px 20px !important; }
    .reader-mode #modalTitle { font-size: 1.8rem !important; margin-bottom: 25px !important; }
    .reader-mode #modalContent { font-size: 1.15rem !important; }
}
.top-nav-brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-nav-brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}