/*
Theme Name: Franz Hardwigsen (Seitenleiste links)
Theme URI: https://example.com/
Author: Franz Hardwigsen
Description: Schlichtes dunkles Theme für die Künstlerseite von Franz Hardwigsen mit Seitenleiste links, flachem Banner, Neon-Akzenten in Cyan und Pink und Fokus auf Musik.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: franz-hardwigsen-links
Tags: dark, blog, two-columns, left-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --bg: #0c0814;
  --surface: #151021;
  --line: #2a2040;
  --text: #f3eff8;
  --muted: #a89fbd;
  --cyan: #2fe0f0;
  --pink: #ff2fa6;
  --pink-soft: #ff7cc8;
  --violet: #7a2cc7;
  --ring: linear-gradient(90deg, #2fe0f0, #b04cf0 55%, #ff2fa6);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --side: 270px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--pink-soft); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--bg); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  left: 12px; top: 12px; z-index: 100; padding: 10px 16px;
  background: var(--pink); color: var(--bg); font-weight: 700; text-decoration: none;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
.site-header { position: relative; background: var(--bg); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ring); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img, .brand .custom-logo { width: 48px; height: 48px; border-radius: 50%; display: block; }
.brand-name { font-size: 1.25rem; font-weight: 800; font-style: italic; letter-spacing: .01em; }
.menu-toggle {
  display: none; background: transparent; color: var(--text);
  border: 2px solid var(--line); border-radius: 999px; padding: 8px 18px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--pink); }

/* Banner */
.hero { margin-top: 28px; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 3; object-fit: cover; border-radius: 6px; }

/* Layout mit Seitenleiste links */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.content { min-width: 0; grid-column: 2; grid-row: 1; }
.sidebar { position: sticky; top: 24px; grid-column: 1; grid-row: 1; }

.side-menu, .side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu a {
  display: block; padding: 10px 14px; border-left: 3px solid var(--line);
  color: var(--muted); font-weight: 600; text-decoration: none;
}
.side-menu a:hover { color: var(--cyan); border-left-color: var(--cyan); }
.side-menu .current-menu-item > a,
.side-menu .current_page_item > a,
.side-menu .current-menu-ancestor > a,
.side-menu .current_page_ancestor > a {
  color: var(--text); border-left-color: var(--pink); font-style: italic;
}
.side-menu ul a { padding-left: 30px; font-weight: 500; font-size: .95rem; }

.widgets { margin-top: 36px; }
.widget { margin-bottom: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.widget-title { margin: 0 0 12px; font-size: 1rem; font-style: italic; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 4px 0; }

/* Überschriften */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; font-style: italic; letter-spacing: -.005em; }
.page-title, .entry-title { margin: 0 0 .4em; }
.page-title, .single .entry-title, .page .entry-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-header .archive-description { color: var(--muted); }

/* Beitragsliste */
.entry--list { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.entry--list:first-child { padding-top: 0; }
.entry--list.no-cover { grid-template-columns: minmax(0, 1fr); }
.entry-cover { display: block; aspect-ratio: 1; background: var(--surface); border-radius: 4px; overflow: hidden; }
.entry-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry--list .entry-title { font-size: 1.45rem; }
.entry--list .entry-title a { color: var(--text); text-decoration: none; }
.entry--list .entry-title a:hover { color: var(--pink-soft); }
.entry-meta { margin: 0 0 .7em; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--cyan); }
.entry-summary p { margin: 0 0 .8em; }
.read-more { font-weight: 700; }

/* Einzelansicht */
.entry-single .post-cover { margin: 0 0 28px; }
.entry-single .post-cover img { display: block; width: 100%; max-width: 480px; border-radius: 4px; }
.entry-content { max-width: 70ch; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.5em; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote, .wp-block-quote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--pink); color: var(--muted); font-style: italic; }
.entry-content hr, .wp-block-separator { border: 0; height: 2px; background: var(--ring); }
.entry-content code, .entry-content pre { background: var(--surface); border-radius: 4px; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-footer { margin-top: 32px; color: var(--muted); font-size: .9rem; }
.tag-list a { display: inline-block; margin: 0 8px 8px 0; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.tag-list a:hover { border-color: var(--cyan); color: var(--cyan); }

/* Audio, Video, Einbettungen */
audio { width: 100%; accent-color: var(--pink); color-scheme: dark; }
.wp-block-audio figcaption, .wp-element-caption { color: var(--muted); font-size: .9rem; }
.wp-block-embed iframe { max-width: 100%; }

/* Buttons und Formulare */
.wp-block-button__link, .button, button[type="submit"], input[type="submit"] {
  display: inline-block; background: var(--pink); color: var(--bg); border: 0; border-radius: 999px;
  padding: 10px 24px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.wp-block-button__link:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--pink-soft); color: var(--bg); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; padding: 10px 14px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; font: inherit;
}
input:focus, textarea:focus { border-color: var(--cyan); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* Seitennavigation */
.pagination, .post-navigation { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.pagination .nav-links { justify-content: flex-start; }
.page-numbers { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; }
a.page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.page-numbers.current { background: var(--pink); border-color: var(--pink); color: var(--bg); font-weight: 800; }
.post-navigation a { text-decoration: none; font-weight: 700; }

/* Kommentare */
.comments-area { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--line); max-width: 70ch; }
.comments-title, .comment-reply-title { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { color: var(--muted); font-size: .9rem; }
.comment-meta .fn { color: var(--text); font-weight: 700; font-style: normal; }
.comment-meta .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.comment-form p { margin: 0 0 16px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-menu a { color: var(--muted); }
.footer-menu a:hover { color: var(--cyan); }

/* Mobil */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
  .content, .sidebar { grid-column: auto; grid-row: auto; }
  .sidebar { position: static; order: -1; }
  .js .menu-toggle { display: inline-block; }
  .js .sidebar { display: none; }
  .js .sidebar.is-open { display: block; }
  .side-menu a { padding: 12px 14px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .entry--list { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .entry--list .entry-title { font-size: 1.2rem; }
  .brand-name { font-size: 1.05rem; }
  .hero { margin-top: 16px; }
  .hero img { aspect-ratio: 3 / 1; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .side-menu a, .page-numbers, .wp-block-button__link { transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
}

/* Alignments aus dem Editor */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { color: var(--muted); font-size: .9rem; }
.entry-content::after { content: ""; display: table; clear: both; }
