/* layout_marcello.css — Heiko Theme
 * Based on original Banshee layout_marcello.css (no Bootstrap)
 * Colors: #473a18 (dark brown), #948474 (medium brown), #c2a778 (gold)
 * Font: Molle-Regular (italic script) for title
 */

@font-face {
  font-family: "Molle-Regular";
  src: url("/fonts/Molle-Italic.woff2") format("woff2"),
       url("/fonts/Molle-Italic.woff") format("woff");
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

body {
  font-family: sans-serif;
  height: 100%;
  line-height: 1.2;
  font-size: 14px;
  background: white !important;
  color: #333;
  margin: 0;
  padding: 0;
}

/* === Typography === */
h1 { font-size: 2.0em; font-weight: 400; margin-top: 0; color: #473a18; }
h2 { font-size: 1.7em; margin-bottom: 10px; padding-bottom: 2px; border-bottom: 1px solid #473a18; font-weight: 380; }
/* lucy_base.css loads after this file and sets h2{color:#c0392b}; higher specificity keeps content headings in the brown theme */
.content h2 { color: #473a18; }
h3 { font-size: 1.4em; font-weight: 300; }
h4 { font-size: 1.1em; font-weight: 600; margin: 0.6em 0 0.3em; }
p { text-align: justify; }
a { color: #473a18; }
a:hover { color: #473a18; background-color: #948474; text-decoration: dotted; }
b, strong { font-weight: bold; }
ul { padding-left: 15px; }
ol { padding-left: 20px; list-style: decimal; }
img { max-width: 100%; height: auto; }

code {
  color: #473a18;
  background-color: transparent;
  font-size: 1em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0.5em 0;
  font-size: 13px;
}

blockquote {
  border-left: 4px solid #473a18;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #555;
  font-style: italic;
}

table { border-collapse: collapse; margin: 0.5em 0; }
th, td { border: 1px solid #ddd; padding: 6px 10px; text-align: left; }
th { background: #f8f8f8; font-weight: 600; }

/* === Container === */
div.container, .container {
  max-width: 900px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* === Wrapper === */
div.wrapper {
  min-height: 100%;
  position: relative;
}

/* === Navbar === */
nav.navbar {
  font-family: sans-serif;
  font-weight: bold;
  background: white;
  margin-bottom: 0;
  border-radius: 0;
}

nav.navbar > .container {
  display: flex;
  align-items: center;
}

nav.navbar .navbar-header {
  flex-shrink: 0;
}

nav.navbar div.title a {
  color: #473a18;
  font-weight: normal;
  font-family: Molle-Regular;
  font-size: 3em;
  text-decoration: none;
  line-height: 1;
}

nav.navbar div.title a:hover {
  text-decoration: none;
  background-color: transparent;
}

/* Hamburger toggle */
nav.navbar .navbar-toggle {
  display: none;
  padding: 8px;
  background: transparent;
  border: 2px solid #473a18;
  border-radius: 4px;
  cursor: pointer;
  line-height: 0;
}

nav.navbar .navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #473a18;
  margin: 4px 0;
}

/* Nav items */
nav.navbar .navbar-collapse {
  margin-left: auto;
}

nav.navbar ul.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.navbar ul.nav > li > a {
  display: block;
  padding: 22px 15px;
  color: #000;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

nav.navbar ul.nav > li > a:hover {
  background-color: #948474;
}

nav.navbar ul.nav li.search a {
  padding: 22px 10px;
}

nav.navbar ul.nav li.search img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Tablet: tighter padding */
@media (min-width: 768px) and (max-width: 991px) {
  nav.navbar ul.nav > li > a { padding: 15px 7px; }
}

/* Mobile: hamburger menu */
@media (max-width: 767px) {
  nav.navbar > .container {
    flex-wrap: wrap;
  }

  nav.navbar .navbar-header {
    width: 100%;
    display: flex;
    flex-direction: row-reverse; /* Heiko links, Hamburger rechts (Desktop-Konvention) */
    align-items: center;
    justify-content: space-between;
  }

  nav.navbar .navbar-toggle { display: block; }

  nav.navbar .navbar-collapse {
    display: none;
    width: 100%;
    background-color: #c2a778;
    padding-bottom: 10px;
  }

  nav.navbar .navbar-collapse.open { display: block; }

  nav.navbar ul.nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav.navbar ul.nav > li > a { padding: 10px 15px; }
}

/* === Header === */

div.header div.container {
  margin-top: 6px;
  margin-bottom: -10px;
  height: 50px;
  border-radius: 10px;
  background-image: url(/images/layout/marcello_bg_small.jpg);
  background-position: center 0;
  background-size: cover;
}

@media (max-width: 767px) {
  div.header div.container {
    /* kein position:relative/top:-14px mehr — das zog das Banner über Hamburger+Logo
       (8px Overlap, verdeckte deren untere Kante). Banner behält jetzt den normalen
       6px-Abstand (base-Regel) zur Navbar: Mini-Luft statt Overlap. */
    height: 40px;
    border-radius: 0;
  }
}

/* === Content === */
div.content div.container {
  min-height: 250px;
  padding-bottom: 100px;
  position: relative;
}

div.content p a { text-decoration: underline dotted; }

@media (min-width: 768px) {
  div.content { margin-top: 30px; }
}

@media (max-width: 767px) {
  div.content div.container { padding-bottom: 200px; }
}

/* === Footer === */
div.footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  background-color: #948474;
  color: #473a18;
  font-size: 11.5px;
  padding: 20px 0;
  border-top: 1px solid #473a18;
  text-align: center;
}

div.footer span {
  text-align: center;
  display: inline-block;
}

div.footer a {
  color: #473a18;
  text-decoration: none;
}

div.footer a:hover {
  text-decoration: underline;
  background-color: transparent;
}

@media (min-width: 768px) {
  div.footer span::before { content: "|"; margin: 0 20px; }
  div.footer span:first-child::before { content: ""; margin: 0; }
}

@media (max-width: 767px) {
  div.footer span { display: block; margin-bottom: 10px; }
}

/* === Forms === */
input.form-control,
textarea.form-control,
select.form-control {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 5px;
}

textarea.form-control { height: 75px; }

@media (max-width: 767px) {
  input.form-control, textarea.form-control, select.form-control { font-size: 16px; }
}

label { display: block; margin-top: 10px; margin-bottom: 3px; font-weight: 600; }
.field-error { color: #c0392b; font-size: 0.9em; }

/* === Buttons === */
.btn-group { margin: 15px 10px 10px 0; display: flex; gap: 10px; }
.btn {
  display: inline-block;
  padding: 6px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 3px;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
}
.btn-default { background: #f8f8f8; color: #333; border-color: #ccc; }
.btn-default:hover { background: #e8e8e8; border-color: #aaa; color: #333; }
.btn-secondary { background: #473a18; color: #fff; border-color: #473a18; }
.btn-secondary:hover { background: #352b12; border-color: #352b12; color: #fff; }

/* === System Messages === */
.system-warning {
  background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 10px 15px; border-radius: 4px; margin-bottom: 15px;
}
.system-message {
  background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af;
  padding: 10px 15px; border-radius: 4px; margin-bottom: 15px;
}
.system-info {
  background: #fffbeb; border: 1px solid #fcd34d; color: #92400e;
  padding: 10px 15px; border-radius: 4px; margin-bottom: 15px;
}
.page-form-done {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  padding: 10px 15px; border-radius: 4px; margin-top: 15px;
}

/* === Weblog === */
.wl-layout { display: flex !important; gap: 25px; }
.wl-main { flex: 4 !important; min-width: 0; }
.wl-sidebar { width: 180px !important; flex-shrink: 0 !important; }
.wl-filter { color: #948474; }
.wl-pagination { margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.wl-rss { float: right; margin-top: 5px; }

/* Single post view */
.wl-post.wl-single h1 { margin-bottom: 5px; }
.wl-meta { font-size: 0.85em; color: #948474; margin-bottom: 8px; }
.wl-tag { background: #f0ebe2; padding: 1px 6px; border-radius: 3px; font-size: 0.9em; margin-right: 3px; }

/* List view: individual weblog posts */
div.weblog { margin-bottom: 30px; }

div.weblog-header {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid #948474;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

div.weblog-title { flex: 1; }
div.weblog-title h2 { margin: 0; border-bottom: none; font-size: 1.4em; font-weight: 400; }
div.weblog-title h2 a { color: #333; text-decoration: underline dotted; }
div.weblog-title h2 a:hover { text-decoration: underline; background-color: transparent; color: #333; }

div.weblog-date {
  flex-shrink: 0;
  text-align: right;
  margin-left: 15px;
  white-space: nowrap;
}

div.weblog-body { line-height: 1.6; }
div.weblog-body p { text-align: justify; }
div.weblog-body img { max-width: 100%; height: auto; }

div.weblog-footer {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
}

div.weblog-tags { flex: 1; font-size: 11px; }
div.weblog-tags span.tag { font-style: italic; }
div.weblog-tags span.tag::after { content: ","; margin-right: 3px; font-style: normal; }
div.weblog-tags span.tag:last-child::after { content: ""; }

div.weblog-author { flex-shrink: 0; text-align: right; font-size: 12px; }

/* Sidebar well */
.sidebar-well {
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 15px;
  min-height: 20px;
}

.wl-sidebar ul { list-style: square inside; padding: 0; margin: 0 0 10px; }
.wl-sidebar li { margin: 2px 0; }
.wl-sidebar a { text-decoration: none; }
.wl-sidebar p { text-align: left; }

@media (max-width: 767px) {
  .wl-layout { flex-direction: column !important; }
  .wl-sidebar { width: 100% !important; }
  div.weblog-header { flex-direction: column; }
  div.weblog-date { text-align: left; margin-left: 0; }
  div.weblog-body img { max-width: 50%; }
  .wl-sidebar li { width: 50%; }
}


/* === CKEditor Content Prose === */
.ck-content h1 { font-size: 2em; font-weight: 400; margin: 0.8em 0 0.4em; color: #473a18; }
.ck-content h2 { font-size: 1.5em; font-weight: 400; margin: 0.8em 0 0.4em; color: #473a18; border-bottom: 1px solid #473a18; padding-bottom: 2px; }
.ck-content h3 { font-size: 1.25em; font-weight: 300; margin: 0.7em 0 0.3em; }
.ck-content h4 { font-size: 1.1em; font-weight: 600; margin: 0.6em 0 0.3em; }
.ck-content p { margin: 0.6em 0; line-height: 1.7; text-align: justify; }
.ck-content ul, .ck-content ol { margin: 0.6em 0; padding-left: 1.8em; }
.ck-content ul { list-style: disc; }
.ck-content ol { list-style: decimal; }
.ck-content li { margin: 0.25em 0; }
.ck-content a { color: #473a18; text-decoration: underline dotted; }
.ck-content a:hover { color: #473a18; background-color: #948474; }
.ck-content hr { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 1.5em 0; }
.ck-content blockquote { border-left: 4px solid #473a18; margin: 1em 0; padding: 0.5em 1em; color: #555; }
.ck-content pre { background: #f5f5f5; color: #333; padding: 1em; border-radius: 4px; overflow-x: auto; margin: 0.5em 0; }
.ck-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.9em; color: #473a18; background-color: transparent; }
.ck-content p code { background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 3px; }
.ck-content img { max-width: 100%; height: auto; }
.ck-content table { border-collapse: collapse; width: 100%; margin: 0.5em 0; }
.ck-content th, .ck-content td { border: 1px solid #d1d5db; padding: 0.5em 0.75em; text-align: left; }
.ck-content th { background: #f8fafc; font-weight: 600; }

/* Links-Modul (shared lucy/public/css/links.css, .lk-*-Klassen) an die
   ck-content-Optik angleichen — sonst wirkt /links (fett, keine Bullets/
   Unterstreichung) im Vergleich zu freien CMS-Seiten wie /fluffy kahler.
   Selektoren bewusst mit .lk-group praefixiert (0,2,0 statt 0,1,0): links.css
   wird NACH dieser Datei geladen, bei gleicher Spezifitaet wuerde die spaetere
   Regel gewinnen. */
.lk-group .lk-list { list-style: disc; padding-left: 1.8em; }
.lk-group .lk-link { font-weight: 400; text-decoration: underline dotted; }

/* CKEditor image positioning */
.ck-content .image-style-side {
  float: right;
  max-width: 50%;
  margin: 0 0 1em 1.5em;
}

/* Responsive tables */
@media (max-width: 767px) {
  .ck-content table { display: block; overflow-x: auto; }
}

/* === Responsive btn-group (mobile) === */
@media (max-width: 479px) {
  div.btn-group { flex-direction: column; width: 100%; }
  div.btn-group .btn { width: 100%; padding: 8px 0; border-radius: 0; }
  div.btn-group > .btn:first-child { border-radius: 4px 4px 0 0; }
  div.btn-group > .btn:last-child { border-radius: 0 0 4px 4px; }
}
