html {
    font-family: 'Inter', 'Calibri';
    background: #eee;
  }

  :root {
    --color-black: black;
    --color-white: white;
    --bg-color: white;
    --text-color: black;
    --border-color: var(--text-color);
    --accent-color: rgb(230, 167, 45);
    --accent-color-light: rgb(230, 167, 45, 0.5);
    --accent-color-purple: rgb(130, 0, 182);
    --accent-color-purple-light: rgb(130, 0, 182, 0.5);
    --gray-scale: 1;
  }

  .dark-mode {
    --bg-color: #121212;
    --text-color: white;
    --border-color: var(--text-color);
  }

  /* Selection/Highlight Color - Firefox specific */
  ::-moz-selection {
    background: var(--accent-color-purple-light); /* #377ba8; */
  }
  /* Selection/Highlight Color */
  ::selection {
    background: var(--accent-color-purple-light); /* #377ba8; */
  }
  
  body {
    /* max-width: 960px; */
    margin: 0 auto;
    /* background: white; */
    background: var(--bg-color);
    color: var(--text-color);
  }

  .content-wrapper, .landing_content {
    min-height: 100vh;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Calibri';
    margin: 1rem 0;
  }
  
  a {
    color: var(--text-color); /* #000000; /* #377ba8; */
  }
  
  hr {
    border: none;
    border-top: 1px solid lightgray;
  }
  
/* NAVI BAR */

  .navbar-head {
    display: flex; /* NAVI BAR items container */
    align-items: center; /* vertical item alignment */
    justify-content: space-between; /* horizontal item alignment */
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid var(--border-color); /* #000000; */
  }

  /* Logo */
  #logo {
    height: 2em;
    max-height: 2em;
    width: auto;
    transition: transform 0.5s ease-in-out;
    filter: grayscale(1); /* Gray */
  }

  #logo:hover {
    transform: rotate(360deg);
    filter: none; /* Disable filter (gray scale) */
  }
  
  /* NAVI logo text */
  nav h1 {
    flex: auto;
    margin: 0;
  }
  
  nav h1 a {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
  }

  nav h1 span {
    font-weight: normal;
  }
  
  /* NAVI items */
  nav ul  {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  nav ul li a, nav ul li span, header .action {
    display: block;
    padding: 0.5rem;
  }

  .horizontal {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #left-items {
    display: flex;
  }

  /* NAVI content */
  #content-items {
    display: flex;
    padding: 0rem 0rem 0rem 1.5rem;
  }

  /* NAVI control */
  #control-items {
    display: flex;
    align-items: center; /* Align control panel elements horizontally even */
  }

  #search-btn {
    font-size: 1.2rem;
    text-align: center;
    align-items: center;
    color: var(--text-color);
    cursor: pointer;
    border: none;
    background: none;
    margin: 0rem 0.5rem 0rem 0rem;
  }

  /* Dark/Light Mode control */
  #theme-toggle {
    font-size: 1.5rem;
    width: 2.0rem;
    height: 2.0rem;
    text-align: center;
    align-items: center;
    color: var(--text-color);
    cursor: pointer;
    border: none;
    background: none;
    margin: 0rem 0.5rem 0rem 0rem;
  }

  /* Language Select */
  #language-select {
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0rem 0.5rem 0rem 0rem;
  }
  
/* CONTENT / BODY */

  .content {
    padding: 0 1rem 1rem;
    max-width: 70%;
    margin: auto;
  }
  
  /* Header underline of section tag */
  .content > header {
    border-bottom: 1px solid lightgray;
    display: flex;
    align-items: flex-end;
  }
  
  .content > header h1 {
    flex: auto;
    margin: 1rem 0 0.25rem 0;
  }
  
  /* Response to user of DB requests */
  .flash {
    margin: 1em 0;
    padding: 1em;
    background: #cae6f6;
    border: 1px solid #377ba8;
  }
  
  /* POSTS/ARTICLE */
  .post > header {
    display: flex;
    align-items: flex-end;
    font-size: 0.85em;
  }
  
  .post > header > div:first-of-type {
    flex: auto;
  }
  
  .post > header h1 {
    font-size: 1.5em;
    margin-bottom: 0;
  }
  
  .post .about {
    color: slategray;
    font-style: italic;
  }
  
  .post .body {
    white-space: pre-line;
  }
  
  .content:last-child {
    margin-bottom: 0;
  }
  
  /* EDIT POST/ARTICLE / LOGIN/REGISTER */
  .content form {
    margin: 1em 0;
    display: flex;
    flex-direction: column;
  }
  
  .content label {
    font-weight: bold;
    margin-bottom: 0.5em;
  }
  
  .content input, .content textarea {
    margin-bottom: 1em;
  }
  
  .content textarea {
    resize: vertical;
  }

  /* textarea of post create/update */
  .edit-body {
    min-height: 32em;
  }
  
  input.danger {
    color: #cc2f2e;
  }
  
  input[type=submit] {
    align-self: start;
    min-width: 10em;
  }

/* MAIN CONTENT */

/* ALL POSTS */
.posts-wrapper {
  width: 80%;
  margin: auto;
}
.post-meta {
  margin-left: 2%;
}
.post-meta header {
  display: flex;
  justify-content: space-between; /* LEFT DIV <=> RIGHT FORM */
  align-items: center;
  width: 100%;                    /* sichert volle Breite */
  box-sizing: border-box;         /* falls du Padding/Margin nutzt */
}
.post-link {
  display: block;     /* nicht flex, damit nur das <article> flexet */
  width: 100%;
  text-decoration: none;
}

/* Change delete input/button appearance to match theme */
.post-control-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-link {
  background: none;
  border: none;
  text-decoration: underline;
  display: inline-block;
  padding: 0 0.5rem;
  font-size: larger;
}

.btn-link:hover {
  cursor: pointer;
}

/* LOGIN / REGISTER */

/* ADMIN/DASHBOARD PANEL */
  .more {
    text-align: center;
  }
  .pagination {
    text-align: center;
    margin-top: 3%;
    margin-bottom: 2%;
  }

  .dev-message-body {
    min-height: 3.5em;
  }

  .align-post-meta {
    display: inline-flex;      /* makes the span a flex container but still inline */
    flex-direction: row;       /* default — lays children out in a row */
    align-items: center;       /* vertically center if they have different heights */
    gap: 0.5em;                /* optional spacing between items */
    white-space: nowrap;       /* prevent children from wrapping */
  }

  .post-id-meta {
    font-size: larger;
  }

  /* CONTACT FORM */
  .contact-msg {
    min-height: 32em;
  }

  /* MOBILE RESPONSIVE DESIGN (VIEW) */
  @media only screen and (max-width: 600px) {
    /* display: none; */
  }

  @media only screen and (max-width: 850px) {
    .content {
      max-width: 100%;
    }
    .posts-wrapper {
      width: 100%;
    }
  }