/*
Theme Name: Gilles – Eigenfrequenz
Theme URI: https://gilleseigenfrequenz.de/
Author: Gilles – Eigenfrequenz
Description: Eigenes responsives Musik-Theme mit den kompletten Originalgrafiken für Header und Footer, violettem Hintergrund und goldenen Akzenten.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gilles-eigenfrequenz
License: GPL-2.0-or-later
*/

:root {
  --violet-black: #0e001f;
  --violet-deep: #18002d;
  --violet: #310657;
  --violet-card: #270645;
  --magenta: #bf42fc;
  --gold: #ffd568;
  --gold-strong: #ffbd39;
  --text: #f9f4ff;
  --text-muted: #d9c7e7;
  --line: rgba(246, 187, 255, .25);
  --shadow: 0 22px 65px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  font: 400 18px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse 50% 23% at 52% 5%, rgba(147, 19, 202, .22), transparent 100%),
    radial-gradient(ellipse 50% 65% at 2% 61%, rgba(73, 5, 131, .45), transparent 100%),
    linear-gradient(180deg, #18002c 0%, #260246 28%, #140022 66%, #19002e 100%);
}
body.admin-bar .site-header { scroll-margin-top: 32px; }
img { max-width: 100%; height: auto; }
a { color: #ffe48c; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff1c3; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffdf66;
  outline-offset: 4px;
  border-radius: 3px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: #ffcc4b; color: #210039; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.skip-link {
  position: absolute; z-index: 9999; top: -100px; left: 16px;
  padding: 10px 18px; background: white; color: #1d0034; font-weight: 700;
}
.skip-link:focus { top: 10px; }

/* The brand is one complete image: no duplicated text, cat or skyline. */
.site-header { width: 100%; position: relative; z-index: 2; }
.brand-banner { display: block; width: 100%; line-height: 0; overflow: hidden; }
.brand-banner img { display: block; width: 100%; height: auto; }
.nav-shell {
  position: relative;
  margin-top: -2px;
  background: linear-gradient(180deg, rgba(73, 7, 114, .88), rgba(30, 2, 54, .96));
  border-top: 1px solid rgba(255, 185, 49, .72);
  border-bottom: 1px solid rgba(220, 110, 255, .38);
  box-shadow: 0 13px 25px rgba(0, 0, 0, .19), inset 0 1px rgba(255, 235, 171, .13);
}
.nav-inner { max-width: 1540px; margin: auto; padding: 0 18px; }
.site-nav { width: 100%; }
.nav-list {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  margin: 0; padding: 0; list-style: none; gap: 4px;
}
.nav-list li { position: relative; list-style: none; margin: 0; }
.nav-list > li > a {
  display: inline-flex; gap: 9px; align-items: center; justify-content: center;
  min-height: 61px; padding: 15px clamp(12px, 1.5vw, 28px);
  color: #f9e6ff; font-weight: 650; font-size: .96rem; text-decoration: none;
  letter-spacing: .01em; border-bottom: 3px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-list > li > a:hover, .nav-list > li > a:focus-visible,
.nav-list > li.current-menu-item > a, .nav-list > li.current_page_item > a,
.nav-list > li.current-menu-ancestor > a {
  color: #fff1bb; background: rgba(137, 57, 175, .28); border-bottom-color: var(--gold);
}
.home-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.nav-list .sub-menu {
  z-index: 15; position: absolute; left: 0; top: 100%; min-width: 220px;
  margin: 0; padding: 8px; list-style: none;
  background: #2b084b; border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow); display: none;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: 10px 15px; text-decoration: none; color: #fff; border-radius: 5px; }
.nav-list .sub-menu a:hover { background: rgba(224, 125, 252, .19); }
.nav-toggle { display: none; }

/* Content begins under a separate navigation, with no duplicate hero art. */
.site-main { flex: 1; width: 100%; padding: clamp(38px, 5.5vw, 92px) 20px clamp(58px, 7vw, 110px); }
.front-main { padding-top: clamp(38px, 5vw, 74px); }
.content-wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.narrow-content { max-width: 950px; }
.content-panel {
  border: 1px solid rgba(199, 98, 244, .27);
  background: linear-gradient(137deg, rgba(66, 13, 107, .82), rgba(24, 2, 44, .90));
  box-shadow: var(--shadow); border-radius: 20px;
}
.welcome { padding: clamp(28px, 5.5vw, 74px); position: relative; overflow: hidden; }
.welcome::after {
  content: ""; pointer-events: none; position: absolute;
  right: -110px; top: -160px; width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(255, 166, 38, .15) 0%, rgba(223, 40, 229, .07) 37%, transparent 68%);
}
.eyebrow {
  margin: 0 0 14px; color: #ffd474; text-transform: uppercase;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
}
.welcome h1, .page-title, .section-heading h1 {
  margin: 0 0 20px; font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.15; letter-spacing: -.028em; color: white;
}
.welcome h1 { max-width: 830px; }
.welcome h1 span {
  background: linear-gradient(110deg, #ffeeb0, #f7b83b 42%, #fff0bf 76%);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.welcome > p:not(.eyebrow) { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 790px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.action-link {
  display: inline-flex; justify-content: center; align-items: center;
  border-radius: 9px; padding: 12px 22px; min-height: 48px;
  border: 1px solid #ffcb66;
  background: linear-gradient(125deg, #fff2a3, #f9b944);
  color: #2a073c; text-decoration: none; font-size: .97rem; font-weight: 800;
  transition: transform .18s ease, filter .18s ease;
}
.action-link:hover { color: #16001f; transform: translateY(-2px); filter: brightness(1.07); }
.action-secondary { background: rgba(93, 25, 140, .45); color: #fff2bc; border-color: rgba(255, 208, 112, .58); }
.action-secondary:hover { color: #fff; }
.section-heading { margin: 0 0 26px; }
.section-heading h1, .section-heading h2 { margin: 0; line-height: 1.2; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.latest-posts { margin-top: clamp(42px, 6vw, 76px); }
.empty-text { margin: 0; color: var(--text-muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card {
  min-width: 0; overflow: hidden; border-radius: 15px;
  background: rgba(44, 10, 76, .85); border: 1px solid var(--line);
  box-shadow: 0 15px 40px rgba(0,0,0,.22); display: flex; flex-direction: column;
}
.card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.post-date { font-size: .78rem; color: #f9cd76; margin: 0 0 7px; }
.post-card h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 12px; }
.post-card h3 a { color: white; text-decoration: none; }
.post-card h3 a:hover { color: #ffe29b; }
.card-excerpt { color: var(--text-muted); font-size: .94rem; }
.card-excerpt p { margin: 0 0 15px; }
.read-more { margin-top: auto; font-size: .91rem; font-weight: 800; }
.page-panel { padding: clamp(25px, 5vw, 60px); }
.page-title { margin-bottom: 30px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { color: #ffe5a1; line-height: 1.25; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 1.25em; }
.entry-content blockquote { border-left: 4px solid var(--gold); margin: 30px 0; padding: 8px 22px; background: rgba(134, 52, 170, .16); }
.entry-content figure { margin: 24px 0; }
.entry-content iframe { max-width: 100%; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content pre { overflow-x: auto; padding: 20px; border-radius: 9px; background: #150025; }
.entry-content :where(.wp-block-button__link) { background: #9b44da; color: white; border-radius: 9px; }
.entry-content :where(.wp-block-file__button) { background: #9b44da; color: white; }
.entry-content :where(.wp-block-separator) { border-color: rgba(255, 212, 124, .3); }
.entry-content input:not([type="checkbox"]):not([type="radio"]), .entry-content textarea,
.search-form input[type="search"] { width: 100%; max-width: 640px; padding: 10px 13px; background: #fff; color: #25122f; border: 2px solid #d7b9ee; border-radius: 7px; }
.entry-content button, .entry-content input[type="submit"], .search-form input[type="submit"] { padding: 10px 18px; background: #ffd67a; color: #1b0528; border-radius: 7px; border: 0; font-weight: 700; }
.single-featured { margin: 20px 0 32px; }
.single-featured img { border-radius: 12px; display: block; }
.article-navigation { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 36px; }
.article-navigation .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; }
.pagination { margin-top: 35px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pagination .page-numbers { border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.pagination .current { color: #24052d; background: #f8d37c; border-color: #f8d37c; }

/* Footer: the Rheinturm, sun, logo, and Gizmo remain in ONE image. */
.site-footer {
  margin-top: auto;
  width: 100%;
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(29, 1, 55, .25), #230044 66%, #3b075e 100%);
}
.footer-meta {
  max-width: 1180px; margin: 0 auto; padding: 20px 20px 14px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 14px; border-top: 1px solid rgba(246, 187, 255, .13);
}
.footer-links, .footer-menu { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #ffdf9c; font-size: .93rem; text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin: 0; font-size: .8rem; color: #d9bce6; }
.footer-art { display: block; margin: 0 auto; max-width: 2172px; width: 100%; height: auto; }

/* Standard WordPress utility classes. */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--text-muted); }
.sticky { border-color: var(--gold); }
.screen-reader-text {
  position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0;
  margin: -1px; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%);
}
.screen-reader-text:focus { display: block; width: auto; height: auto; clip: auto; clip-path: none; padding: 12px; margin: 0; z-index: 999; background: white; color: black; }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-list > li > a { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 800px) {
  .nav-inner { padding: 0 14px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 54px;
    border: 0; color: #fff2c7; background: transparent; font-weight: 750;
    padding: 8px 16px; font-size: 1.04rem;
  }
  .nav-toggle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .site-nav { display: none; padding: 0 0 10px; }
  .site-nav.is-open { display: block; }
  .nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { display: flex; justify-content: flex-start; min-height: 48px; padding: 9px 16px; border-bottom-width: 1px; }
  .nav-list .sub-menu { position: static; display: block; padding: 0 0 5px 16px; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
  .nav-list .sub-menu a { padding: 8px 13px; }
  .footer-meta { justify-content: center; text-align: center; flex-direction: column; }
  .footer-links { justify-content: center; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-main { padding: 35px 14px 55px; }
  .post-grid { grid-template-columns: 1fr; }
  .welcome, .page-panel { border-radius: 14px; padding: 25px 20px; }
  .welcome h1 { font-size: 1.85rem; }
  .eyebrow { font-size: .7rem; }
  .action-link { width: 100%; }
  .hero-actions { gap: 10px; }
  .brand-banner img { width: 100%; }
  .footer-meta { padding-top: 10px; }
  .footer-art { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.footer-meta { border-top: none; }
/* Footer-Grafik nur bis ungefähr zur Turmspitze zeigen */

/* Footer ohne ueberfluessigen oberen Abstand */
.site-footer {
    padding-top: 0;
    background: transparent;
}

.footer-meta {
    border-top: none;
    padding-bottom: 0;
}

img.footer-art {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
}


/* Kompakte Navigation bei schmalen Fenstern */
@media (max-width: 800px) {

  .nav-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
  }

  .nav-inner {
    padding: 8px 14px 0;
  }

  .nav-toggle {
    min-height: 44px;
    padding: 8px 13px;
    background: rgba(47, 5, 81, 0.88);
    border: 1px solid rgba(255, 213, 104, 0.48);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  .site-nav.is-open {
    width: min(320px, calc(100vw - 28px));
    margin: 6px 0 0;
    padding: 5px 0;
    background: rgba(30, 2, 54, 0.97);
    border: 1px solid rgba(255, 213, 104, 0.38);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
  }

}

/* Gilles Footer-Layout mit YouTube */
.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
    background: transparent;
}
.site-footer > .footer-art,
.site-footer > .footer-meta {
    grid-area: 1 / 1;
}
.site-footer > img.footer-art {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    align-self: start;
}
.site-footer > .footer-meta {
    position: relative;
    z-index: 2;
    align-self: start;
    justify-self: center;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    padding: 10px clamp(95px, 11vw, 170px) 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: center;
}
.site-footer .footer-links,
.site-footer .footer-menu {
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
}
.site-footer .footer-links a,
.site-footer .footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #ffe3a4;
    font-weight: 700;
}
.site-footer .ge-youtube-link svg {
    width: 28px;
    height: 20px;
    flex-shrink: 0;
}
.site-footer .copyright {
    font-size: 15px;
}
@media (max-width: 620px) {
    .site-footer > .footer-meta {
        padding: 5px 9px 0;
        gap: 4px;
    }
    .site-footer .footer-links,
    .site-footer .footer-menu {
        gap: 4px 14px;
    }
    .site-footer .footer-links a,
    .site-footer .footer-menu a {
        font-size: 15px;
    }
    .site-footer .copyright {
        font-size: 12px;
    }
}

/* Footer-Links ganz unten im violetten Balken */
.site-footer > .footer-meta {
    align-self: end;
    padding-top: 0;
    padding-bottom: clamp(10px, 2vw, 28px);
}


/* Footer responsiv: Schrift und Abstaende anpassen */
@media (max-width: 980px) {
    .site-footer > .footer-meta {
        padding: 0 clamp(70px, 12vw, 130px) 8px;
        gap: 4px;
    }

    .site-footer .footer-links,
    .site-footer .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 14px;
    }

    .site-footer .footer-links a,
    .site-footer .footer-menu a {
        font-size: clamp(12px, 1.6vw, 16px);
        line-height: 1.2;
    }

    .site-footer .copyright {
        font-size: 11px;
    }

    .site-footer .ge-youtube-link svg {
        width: 20px;
        height: 15px;
    }
}

@media (max-width: 520px) {
    .site-footer > .footer-meta {
        padding: 0 14% 3px;
        gap: 2px;
    }

    .site-footer .footer-links,
    .site-footer .footer-menu {
        gap: 2px 8px;
    }

    .site-footer .footer-links a,
    .site-footer .footer-menu a {
        font-size: clamp(9px, 2.6vw, 12px);
        line-height: 1.1;
    }

    .site-footer .copyright {
        font-size: clamp(8px, 2.2vw, 10px);
    }

    .site-footer .ge-youtube-link svg {
        width: 15px;
        height: 11px;
    }
}

/* Footer-Links etwas tiefer im Balken */
@media (max-width: 980px) {
  .site-footer > .footer-meta {
    transform: translateY(7px);
  }
}
