@charset "UTF-8";

:root {
  --fg: #1b1b1b;
  --muted: #6a6a6a;
  --primary: #2a6ebb;
  --border: #e0e0e0;
  --radius: 10px;
  --excerpt-collapsed-height: 240px;
}

@media (max-width: 640px) {
  :root {
    --excerpt-collapsed-height: 170px;
  }
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: #009577 url("/data/back.webp") center center / cover no-repeat fixed;
}

body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
}

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

.hero-band {
  position: relative;
  overflow: hidden;
  background: #06211d;
  padding: 64px 0 72px;
  color: #fff;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 16px;
  min-height: 2.3em;
  transition: opacity 1.2s ease;
}

.hero-title.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    transition: none;
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: #8fd6c2;
  margin: 0;
  max-width: 46ch;
}

.hero-rings {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 380px;
  height: 380px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    rgba(255,255,255,.14) 0px, rgba(255,255,255,.14) 1.5px,
    transparent 1.5px, transparent 16px);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: .8; }
  50% { transform: translateY(-50%) scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rings { animation: none; }
}

@media (max-width: 640px) {
  .hero-rings { display: none; }
  .hero-band { padding: 40px 0 48px; }
}


.brand .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #333;
}

.logo-suffix {
  font-weight: normal;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: #333;
  padding: 6px 10px;
  background-color: rgba(143, 214, 194, 0.85);
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--primary);
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 60px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.post-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

.post-header .post-title {
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.post-header .post-title a {
  color: #1a1a1a;
}

.post-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.post-excerpt {
  color: #333;
  line-height: 1.5;
  margin: 6px 0 12px;
}

.post-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.info-tile {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 16px 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.info-tile__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.info-tile__body {
  min-width: 0;
}

.info-tile__title {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--fg);
}

.info-tile__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 480px) {
  .info-tile {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-tile__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.read-more:hover {
  border-bottom-color: var(--primary);
}

/* Ausklappbarer Artikeltext (wird nur aktiv, wenn per JS entsprechende
   Klassen gesetzt werden – betrifft daher ausschließlich Seiten, die das
   zugehörige Skript einbinden, z.B. die Startseite).

   Zwei unabhängige Bausteine:
   - "has-extra": weitere Kind-Elemente nach dem ersten Absatz (Video-Embed,
     Bilder, weitere Absätze) werden im eingeklappten Zustand komplett
     ausgeblendet statt mittig abgeschnitten – so kann es nie zu
     Überlappungen mit eingebetteten Videos/iframes kommen, die selbst
     absolut positionierte Elemente enthalten.
   - "has-long-preview": der erste Absatz selbst ist länger als die
     Vorschau-Höhe und wird dafür sanft gekürzt (nur reiner Text/Inline-
     Inhalt, nie ein Video). */
.post-excerpt.excerpt-collapsible.has-extra.is-collapsed > :not(:first-child) {
  display: none;
}

.post-excerpt.excerpt-collapsible.has-long-preview > :first-child {
  position: relative;
  overflow: hidden;
  transition: max-height .45s ease;
}

.post-excerpt.excerpt-collapsible.has-long-preview.is-collapsed > :first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.96) 75%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .post-excerpt.excerpt-collapsible.has-long-preview.is-collapsed > :first-child::after {
    height: 44px;
  }
}

.excerpt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 4px;
  background: none;
  border: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .excerpt-toggle {
    padding: 12px 6px;
    min-height: 44px; /* ausreichend große Tippfläche auf Touch-Geräten */
    font-size: 1rem;
  }
}

.excerpt-toggle:hover {
  text-decoration: underline;
}

.excerpt-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.excerpt-toggle__icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s ease;
}

.excerpt-toggle[aria-expanded="true"] .excerpt-toggle__icon {
  transform: rotate(225deg);
}

@media (prefers-reduced-motion: reduce) {
  .post-excerpt.excerpt-collapsible,
  .excerpt-toggle__icon {
    transition: none;
  }
}

.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 90px; /* Abstand zum Header, der ja auch sticky ist */
  align-self: start;
}

.widget {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

.widget h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.search-form button {
  padding: 8px 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li {
  padding: 6px 0;
}

.widget-list a {
  color: #333;
}

.widget-show__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.widget-show__cta {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.widget-show__cta:hover {
  opacity: .9;
  text-decoration: none;
}

.consent-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.consent-embed[data-type="audio"] {
  aspect-ratio: auto;
  min-height: 180px;
  background: #f0f0f0;
}
.consent-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.consent-embed__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}
.consent-embed__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.consent-embed__overlay {
  position: relative;
  margin: auto;
  max-width: 420px;
  padding: 18px 20px;
  text-align: center;
  color: #fff;
  z-index: 1;
}
.consent-embed[data-type="audio"] .consent-embed__overlay {
  color: var(--fg);
}
.consent-embed__overlay p {
  font-size: .9rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
.consent-embed__btn {
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.consent-embed__btn:hover {
  opacity: .9;
}
.consent-embed__remember {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  cursor: pointer;
}
.consent-embed__remember input {
  margin-right: 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  background: #f0f0f0;
  border-radius: 999px;
  font-size: .9rem;
  color: #333;
  text-decoration: none;
}

.tag:hover {
  background: #e6e6e6;
}

.site-footer {
  background: rgba(17,17,17,0.92);
  color: #ddd;
  padding: 20px 0;
  margin-top: 40px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: .9rem;
  color: #bbb;
}

#trance-und-wachtrance {
  scroll-margin-top: 80px; /* Höhe deines Menüs + etwas Puffer */
}

/* Responsivität */

@media (max-width: 980px) {
  .content-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 14px 0;
    justify-content: center;
  }

  .brand {
    display: none;
  }

  .main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}
