:root{
    --panel: #1c1a17;
    --panel-raised: #262218;
    --panel-line: #38332a;
    --cream: #ede7d9;
    --muted: #a89e8c;
    --amber: #d9a441;
    --amber-dim: #8a6a2c;
    --red: #c14b3a;
    --teal: #4f7d78;
    --radius: 10px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background: var(--panel);
    background-image:
      radial-gradient(ellipse at top, rgba(217,164,65,0.06), transparent 60%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.6;
  }
  body.menu-open{ overflow: hidden; }
  a{color:inherit;}
  img{max-width:100%; display:block;}

  /* ---------- Layout module shell ---------- */
  .module{
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px 56px;
    border-bottom: 1px solid var(--panel-line);
  }
  .module-label{
    display:inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 20px;
    background: rgba(217,164,65,0.06);
  }
  .module h2{
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }

  /* ---------- Hero ---------- */
  .hero{
    min-height: 88vh;
    display:flex;
    flex-direction: column;
    justify-content:center;
    padding: 80px 24px 48px;
    max-width: 720px;
    margin: 0 auto;
    border-bottom: 1px solid var(--panel-line);
  }
  .hero-eyebrow{
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 22px;
  }
  .hero h1{
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 9vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  .hero-sub{
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 46ch;
    margin-bottom: 32px;
  }
  .hero-ctas{
    display:flex; gap: 14px; flex-wrap:wrap;
    margin-bottom: 44px;
  }
  .btn{
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 13px 20px;
    border-radius: 6px;
    border: 1px solid var(--panel-line);
    background: var(--panel-raised);
    color: var(--cream);
    text-decoration: none;
    display:inline-flex; align-items:center; gap:8px;
    transition: border-color .2s, transform .15s;
  }
  .btn:active{ transform: scale(0.97); }
  .btn-primary{
    background: linear-gradient(180deg, #e2b25a, var(--amber));
    color: #201a0c;
    border-color: transparent;
    font-weight: 600;
  }
  .btn-secondary:hover{ border-color: var(--amber-dim); }

  /* ---------- VU meter signature element ---------- */
  .vu{
    display:flex;
    align-items:flex-end;
    gap: clamp(3px, 0.8vw, 6px);
    height:54px;
    padding: 10px 14px;
    background: var(--panel-raised);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    width: 100%;
  }
  .vu-bar{
    flex: 1 1 0;
    min-width: 3px;
    background: linear-gradient(0deg, var(--teal), var(--amber) 70%, var(--red) 92%);
    border-radius: 2px;
    animation: pulse 1.6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.9;
    height: var(--base-h, 50%);
  }
  @keyframes pulse{
    0%,100%{ height: var(--base-h, 50%); }
    50%{ height: var(--peak, 80%); }
  }
  @media (prefers-reduced-motion: reduce){
    .vu-bar{ animation: none; height:50%; }
  }

  /* ---------- About ---------- */
  .about-text{ color: var(--muted); margin-bottom: 28px; }

  /* Listen aus renderTextWithLinks() (Zeilen mit "- " oder "* " in Textfeldern).
     Ohne diese Regel würde der globale *{padding:0}-Reset oben die
     Standard-Einrückung/den Bullet-Platz der <ul> auffressen. */
  .text-bullet-list{
    list-style: disc;
    padding-left: 1.3em;
    margin: 10px 0;
  }
  .text-bullet-list li{
    margin-bottom: 6px;
  }
  .text-bullet-list li::marker{
    color: var(--amber);
  }
  .stats{ display:flex; gap: 28px; flex-wrap:wrap; }
  .stat-value{
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--amber);
    font-weight: 700;
  }
  .stat-label{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
  }

  /* ---------- Services ---------- */
  .service-card{
    display:flex;
    gap: 16px;
    padding: 20px;
    background: var(--panel-raised);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    margin-bottom: 14px;
  }
  .service-channel{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--teal);
    letter-spacing: 0.08em;
    flex-shrink:0;
    width: 40px;
    padding-top: 3px;
  }
  .service-card h3{
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .service-card .rich-text{ color: var(--muted); font-size: 0.94rem; }

  /* ---------- Portfolio ---------- */
  .portfolio-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .portfolio-card{
    padding: 18px;
    background: var(--panel-raised);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    border-left: 3px solid var(--amber-dim);
  }
  .portfolio-card h3{ font-family: var(--font-display); font-size:1.05rem; margin-bottom:6px; }
  .portfolio-card .rich-text{ color: var(--muted); font-size:0.9rem; margin-bottom:10px; }
  .tags{ display:flex; gap:6px; flex-wrap:wrap; }
  .tag{
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    padding: 2px 7px;
    border-radius: 3px;
  }

  /* ---------- Testimonials ---------- */
  .quote-card{
    padding: 18px 20px;
    border-left: 2px solid var(--teal);
    margin-bottom: 18px;
  }
  .quote-card .rich-text{ font-style: italic; color: var(--cream); margin-bottom: 8px; }
  .quote-name{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

  /* ---------- Contact ---------- */
  .contact-text{ color: var(--muted); margin-bottom: 26px; }
  form{ display:flex; flex-direction:column; gap: 14px; }
  label{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing:0.05em; margin-bottom: 6px; display:block; }
  input, select, textarea{
    width:100%;
    background: var(--panel-raised);
    border: 1px solid var(--panel-line);
    color: var(--cream);
    border-radius: 6px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
  }
  input:focus, select:focus, textarea:focus{
    outline: 2px solid var(--amber);
    outline-offset: 1px;
  }
  textarea{ resize: vertical; min-height: 100px; }
  .submit-btn{
    align-self:flex-start;
    margin-top: 6px;
    cursor:pointer;
  }

  /* ---------- Footer ---------- */
  footer{
    text-align:center;
    padding: 32px 24px 40px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
  }

  /* ---------- Desktop-Menüleiste (ab ~860px) ---------- */
  .desktop-nav{
    display: none; /* per Media Query weiter unten ab 860px sichtbar */
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    background: rgba(28,26,23,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--panel-line);
  }
  .desktop-nav-inner{
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 32px;
    display:flex;
    align-items:center;
    justify-content: space-between;
  }
  .desktop-nav-brand{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration:none;
    color: var(--cream);
    letter-spacing: -0.01em;
  }
  .desktop-nav-links{
    display:flex;
    align-items:center;
    gap: 6px;
  }
  .desktop-nav-link{
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration:none;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 6px;
    background:none;
    border:none;
    cursor:pointer;
  }
  .desktop-nav-link:hover{ color: var(--cream); background: var(--panel-raised); }
  .desktop-nav-link.active{ color: var(--amber); }

  .desktop-nav-dropdown{ position: relative; }
  .desktop-nav-dropdown-menu{
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--panel-raised);
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    padding: 6px;
    display:flex;
    flex-direction:column;
    gap: 2px;
    opacity:0;
    pointer-events:none;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  }
  .desktop-nav-dropdown.open .desktop-nav-dropdown-menu{
    opacity:1;
    pointer-events:auto;
    transform: translateY(0);
  }
  .desktop-nav-dropdown-item{
    display:block;
    padding: 9px 12px;
    border-radius: 5px;
    text-decoration:none;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.9rem;
  }
  .desktop-nav-dropdown-item:hover{ background: var(--panel); color: var(--amber); }

  /* ---------- Hamburger-Menü (unter ~860px) ---------- */
  .hamburger-btn{
    position: fixed;
    top: 16px; right: 16px;
    z-index: 60;
    width: 44px; height: 44px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 5px;
    background: var(--panel-raised);
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    cursor: pointer;
  }
  .hamburger-btn span{
    display:block;
    width: 20px; height: 2px;
    background: var(--cream);
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .hamburger-btn.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .hamburger-btn.active span:nth-child(2){ opacity: 0; }
  .hamburger-btn.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .menu-overlay{
    position: fixed;
    inset: 0;
    background: rgba(12,11,9,0.7);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .menu-overlay.open{
    opacity: 1;
    pointer-events: auto;
  }
  .menu-panel{
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--panel-raised);
    border-left: 1px solid var(--panel-line);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .menu-overlay.open .menu-panel{
    transform: translateX(0);
  }
  .menu-close-btn{
    background: var(--panel);
    border: 1px solid var(--panel-line);
    color: var(--cream);
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 24px;
  }
  .menu-links{
    display:flex;
    flex-direction: column;
    gap: 2px;
  }
  .menu-link{
    display:block;
    padding: 13px 14px;
    border-radius: 6px;
    text-decoration:none;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
  }
  .menu-link:hover{ background: var(--panel); }
  .menu-link.active{ color: var(--amber); background: var(--panel); }
  .menu-divider{
    height: 1px;
    background: var(--panel-line);
    margin: 20px 0;
  }
  .menu-subheading{
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
    padding: 0 14px;
  }

  @media (min-width: 640px){
    .portfolio-grid{ grid-template-columns: 1fr 1fr; }
  }

/* ---------- Sub-pages: Blog, Artikel, Impressum ---------- */
.page-header{
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  text-decoration:none;
  margin-bottom: 24px;
}
.blog-list-item{
  display:block;
  padding: 20px;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber-dim);
  margin-bottom: 14px;
  text-decoration:none;
  color: inherit;
  transition: border-color .2s;
}
.blog-list-item:hover{ border-left-color: var(--amber); }
.blog-meta{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.blog-list-item h3{
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.blog-list-item p{ color: var(--muted); font-size: 0.92rem; }

.article-header{
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.article-header h1{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 14px 0 10px;
}
.article-body{
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 64px;
}
.article-body p, .article-paragraph{
  color: var(--cream);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.article-paragraph ul, .article-paragraph ol{
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--cream);
}
.article-paragraph li{
  margin-bottom: 6px;
  line-height: 1.55;
}
.article-paragraph b, .article-paragraph strong{ color: var(--cream); font-weight: 700; }
.article-paragraph i, .article-paragraph em{ font-style: italic; }
.article-not-found{
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
}

.legal-page{
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.legal-page h1{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  margin-bottom: 24px;
}
.legal-block{ margin-bottom: 24px; }
.legal-block h2{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.legal-block p{ color: var(--cream); font-size: 0.95rem; }
.legal-block a{ color: var(--amber); }

/* ---------- Contact form status message ---------- */
.form-status{
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  display:none;
}
.form-status.show{ display:block; }
.form-status.success{
  display:block;
  background: rgba(79,125,120,0.15);
  border: 1px solid var(--teal);
  color: var(--cream);
}
.form-status.error{
  display:block;
  background: rgba(193,75,58,0.15);
  border: 1px solid var(--red);
  color: var(--cream);
}
.submit-btn[disabled]{ opacity: 0.6; cursor: default; }

/* ---------- Article rich content blocks ---------- */
.article-hero-image{
  width: 100%;
  border-radius: var(--radius);
  margin: 18px 0 8px;
  border: 1px solid var(--panel-line);
}
.article-heading{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amber);
  margin: 32px 0 14px;
}
.article-figure{
  margin: 22px 0;
}
.article-figure img{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
}
.article-figure figcaption{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
.article-list{
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--cream);
}
.article-list li{
  margin-bottom: 8px;
  font-size: 1.0rem;
  line-height: 1.55;
}
.article-table-wrapper{
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}
.article-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-table th, .article-table td{
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--panel-line);
}
.article-table th{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: var(--panel-raised);
}
.article-table tr:last-child td{ border-bottom: none; }

/* ---------- Blog list/teaser thumbnails ---------- */
.blog-list-item{ display:flex; flex-direction:column; }
.blog-thumb{
  width: 100%;
  aspect-ratio: 930 / 620;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid var(--panel-line);
}

/* ---------- Audio-Player im Artikel/Seiten-Content ---------- */
.article-audio{
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}
.article-audio-title{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 10px;
}
.article-audio audio{
  width: 100%;
  height: 40px;
}

/* ---------- Video im Artikel/Seiten-Content ---------- */
.article-video{
  margin: 24px 0;
}
.article-video-title{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 10px;
}
.article-video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-line);
  background: #000;
}
.article-video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-video video{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  background: #000;
}

/* ---------- Eigener HTML/JS-Baustein ---------- */
.article-embed{
  margin: 24px 0;
}
.article-embed > *:first-child{ margin-top: 0; }
.article-embed > *:last-child{ margin-bottom: 0; }

/* ---------- Links innerhalb von Artikeltext ---------- */
.article-body a, .article-list a{
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--amber-dim);
  text-underline-offset: 2px;
}
.article-body a:hover, .article-list a:hover{
  text-decoration-color: var(--amber);
}
.article-figure a{
  display: block;
}

/* ---------- Responsive Umschaltung Desktop-/Mobil-Navigation ----------
   Steht bewusst ganz am Ende der Datei: bei gleicher Spezifität gewinnt in
   CSS die zuletzt notierte Regel, unabhängig von der Media Query selbst. */
@media (min-width: 860px){
  .desktop-nav{ display:block; }
  .hamburger-btn, .menu-overlay{ display:none; }
  body{ padding-top: 60px; }
}

/* ---------- "Nach oben"-Button ---------- */
.back-to-top-btn{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 58;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line);
  color: var(--amber);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.back-to-top-btn.visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top-btn:hover{ border-color: var(--amber-dim); }

@media (min-width: 860px){
  .back-to-top-btn{ bottom: 24px; right: 24px; }
}
