
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --text: #4b4f58;
  --heading: #3a3a3a;
  --muted: #6b7280;
  --accent: hsl(133, 59%, 36%);
  --accent-soft: #e8f2fb;
  --border: #e5e5e5;
  --code-bg: #2b2f36;
  --code-fg: #e7edf5;
}

/* Roboto */
@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Barlow Semi Condensed */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.bf-search-input {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23999" d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
  background-position: 10px center; /* Positioniert die Lupe links */
  background-repeat: no-repeat;
  padding: 8px 12px 8px 35px; /* Platz für die Lupe links lassen */
  border: 1px solid var(--border);
  border-radius: 5px;
  width: 15em; /* Originalbreite beibehalten */
  font-size: 1rem;
}

.bf-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.bf-search-form {
  position: relative;
  flex-grow: 1;
  max-width: 300px;
}

a {
  text-decoration: none;
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--accent);
}

.bf-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.bf-tags span {
  font-style: italic;
}

.bf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.bf-brand {
  font-family: "Barlow Semi Condensed", "Roboto", sans-serif;
  font-size: 35px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
}

.bf-main {
  padding: 40px 20px 28px;
}

.bf-subtle {
  color: var(--muted);
}

.bf-posts {
  margin: 0;
  padding-left: 18px;
}

.bf-posts li {
  margin: 7px 0;
}

  .bf-post-item {
  list-style: none;
  margin: 0 0 14px;
  padding: 38px 50px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
}

.bf-post-item h3 {
  margin: 0 0 2px;
  font-size: 26px;
  line-height: 1.18;
  font-family: "Barlow Semi Condensed", "Roboto", sans-serif;
  font-weight: 600;
}

.bf-post-item p {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.bf-post-date {
  color: var(--accent);
  font-size: 1rem;
}

.bf-pager {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.bf-pager a {
  color: var(--accent);
  text-decoration: none;
}

.bf-pager .disabled {
  color: #94a3b8;
}

.bf-menu {
  position: relative;
}

.bf-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bf-menu > ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf-menu li {
  position: relative;
}

.bf-menu a {
  display: inline-block;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.bf-menu a:hover,
.bf-menu li:focus-within > a {
  background: var(--accent-soft);
  color: var(--accent);
}

.bf-menu li.has-children > a::after {
  content: " \25BE";
  font-size: 0.72em;
  color: #64748b;
}

.bf-menu li ul {
  position: absolute;
  top: calc(100%);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 6px 15px -2px rgba(16, 24, 40, 0.16);
  padding: 6px;
  display: none;
  z-index: 50;
}

.bf-menu li:hover > ul,
.bf-menu li:focus-within > ul {
  display: block;
}

.bf-menu li ul li ul {
  top: -7px;
  left: calc(100% + 6px);
}

.bf-back-link {
  margin: 0 0 10px;
}

.bf-post-title {
  margin: 0 0 2px;
  line-height: 1.3;
  font-family: "Barlow Semi Condensed", "Roboto", sans-serif;
  font-size: 30px;
  color: var(--heading);
}

.bf-meta {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 15px;
}

.bf-post-item .bf-meta {
  font-size: 14px;
  margin-bottom: 10px;
}

.bf-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bf-post-nav a {
  font-weight: 500;
}

.bf-post-nav .disabled {
  color: #8d99af;
}

img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

article a {
  color: var(--accent);
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  color: var(--heading);
  font-family: "Barlow Semi Condensed", "Roboto", sans-serif;
  font-weight: 600;
}

article pre {
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid #1d232c;
  border-radius: 3px;
  padding: 12px 14px;
  overflow: auto;
  line-height: 1.5;
}

article code {
  background: #eeeeee;
  color: #2f343c;
  border-radius: 3px;
  padding: 0.12rem 0.32rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

@media (max-width: 760px) {
  .bf-shell {
    margin: 0;
  }

  .bf-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bf-menu > ul {
    flex-wrap: wrap;
  }

  .bf-brand {
    font-size: 28px;
  }

  .bf-post-item {
    padding: 24px 20px;
  }

  .bf-post-item h3 {
    font-size: 24px;
  }

  .bf-post-item p,
  .bf-post-date {
    font-size: 1rem;
  }
}
