/* ── BERENT Blog · Corporate Identity ── */

:root {
  --bg:      #090806;
  --card:    #110e0a;
  --border:  #2a2118;
  --copper:  #B5742A;
  --gold:    #E8C98A;
  --text:    #C4BCB1;
  --muted:   #7A6A58;
  --muted2:  #9a8870;
}

/* ── Font Faces (lokal gehostet, DSGVO-konform) ── */

@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/bebas-neue-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ── Reset & Base ── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lora', Georgia, serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Layout ── */

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
}

/* ── Header ── */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted2);
  letter-spacing: 0.02em;
}

.header-nav a:hover {
  color: var(--copper);
  opacity: 1;
}

/* ── Hero / Page Title ── */

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.page-hero .subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ── Post List (Übersicht) ── */

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.post-card {
  display: block;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--copper);
  opacity: 1;
}

.post-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.post-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.post-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.post-card-teaser {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── Plus Mark (Markenelement) ── */

.plus-mark {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.plus-mark::before,
.plus-mark::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
}

.plus-mark::before {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.plus-mark::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* ── Single Post ── */

.post-header {
  padding: 3rem 0 1.5rem;
}

.post-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.post-divider {
  border: none;
  height: 1px;
  background: var(--copper);
  opacity: 0.4;
  margin: 1.5rem 0;
}

.post-content {
  padding-bottom: 2rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.post-content h2,
.post-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.375rem;
}

.post-content blockquote {
  border-left: 3px solid var(--copper);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: 0 4px 4px 0;
}

.post-content blockquote p {
  color: var(--copper);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.post-content ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.post-content ol li {
  counter-increment: item;
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.post-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
}

.post-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--copper);
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--copper);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.post-footer-link:hover {
  background: var(--copper);
  color: var(--bg);
  opacity: 1;
}

/* ── Tags ── */

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.6875rem;
  color: var(--muted2);
  background: rgba(181, 116, 42, 0.08);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand .plus-mark {
  width: 14px;
  height: 14px;
  margin-top: 0;
}

.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted2);
}

.footer-links a:hover {
  color: var(--copper);
  opacity: 1;
}

/* ── Theme Toggle ── */

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.375rem;
  cursor: pointer;
  color: var(--muted2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.hidden { display: none; }

/* ── Light Mode ── */

[data-theme="light"] {
  --bg:      #F5F0E8;
  --card:    #EDE6DA;
  --border:  #D4C9B8;
  --copper:  #B5742A;
  --gold:    #E8C98A;
  --text:    #2A1A08;
  --muted:   #7A6A58;
  --muted2:  #9A8870;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .post-card {
    padding: 1.25rem;
  }

  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .post-header {
    padding: 2rem 0 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
