/* Paulokat – Musikseite, dunkles Theme */

:root {
  --color-bg: #111111;
  --color-surface: #1a1a1a;
  --color-text: #f5f5f5;
  --color-text-muted: #b0b0b0;
  --color-border: #333333;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

[id="rise"],
[id="tracks"],
[id="cd"],
[id="support"],
[id="nb8"] {
  scroll-margin-top: 3.5rem;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.paulokat-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.paulokat-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.paulokat-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 1.5rem;
}

.paulokat-header-back {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.paulokat-header-back:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.paulokat-header-back svg {
  width: 20px;
  height: 20px;
}

.paulokat-header-logo {
  height: 2rem;
  display: block;
}

/* Layout mit Sidebar */
.paulokat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar */
.paulokat-sidebar {
  position: fixed;
  left: 0;
  top: 3.5rem;
  bottom: 0;
  z-index: 40;
  width: 200px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: width 0.2s ease;
  overflow: hidden;
}

.paulokat-sidebar--collapsed {
  width: 56px;
}

.paulokat-sidebar-header {
  display: flex;
  height: 3rem;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--color-border);
  padding: 0 0.5rem;
}

.paulokat-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.paulokat-sidebar-toggle:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.paulokat-sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.paulokat-sidebar--collapsed .paulokat-sidebar-toggle svg {
  transform: rotate(180deg);
}

.paulokat-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  overflow-y: auto;
}

.paulokat-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.paulokat-sidebar-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.paulokat-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.paulokat-sidebar-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.paulokat-sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paulokat-sidebar--collapsed .paulokat-sidebar-label {
  display: none;
}

.paulokat-sidebar--collapsed .paulokat-sidebar-link {
  justify-content: center;
  padding: 0.5rem;
}

/* Main Content */
.paulokat-main {
  flex: 1;
  overflow-x: hidden;
  margin-left: 200px;
  transition: margin-left 0.2s ease;
}

.paulokat-sidebar--collapsed ~ .paulokat-main {
  margin-left: 56px;
}

/* Sections */
.paulokat-section {
  padding: 3rem 0;
}

.paulokat-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.paulokat-section hr {
  width: 200px;
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1rem 0 1.5rem;
  opacity: 0.6;
}

.paulokat-section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Cover */
.paulokat-cover {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  display: block;
}

/* Card */
.paulokat-card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.paulokat-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: block;
}

.paulokat-card h1 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* PayPal */
.paulokat-paypal {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.paulokat-paypal select {
  width: 100%;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
}

.paulokat-paypal input[type="image"] {
  cursor: pointer;
}

/* Support-Links */
.paulokat-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.paulokat-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.paulokat-support-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #555;
}

.paulokat-support-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* nb-8 link */
.paulokat-card a {
  color: inherit;
  text-decoration: none;
}

.paulokat-card a:hover img {
  opacity: 0.9;
}

/* Mobile */
.paulokat-mobile-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.paulokat-mobile-btn svg {
  width: 24px;
  height: 24px;
}

.paulokat-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.paulokat-mobile-overlay--open {
  pointer-events: auto;
}

.paulokat-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
}

.paulokat-mobile-overlay--open .paulokat-mobile-backdrop {
  opacity: 1;
}

.paulokat-mobile-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16rem;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  padding: 1rem;
}

.paulokat-mobile-overlay--open .paulokat-mobile-sidebar {
  transform: translateX(0);
}

.paulokat-mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
}

.paulokat-mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .paulokat-sidebar {
    display: none;
  }

  .paulokat-main,
  .paulokat-sidebar--collapsed ~ .paulokat-main {
    margin-left: 0;
    padding-bottom: 5rem;
  }

  .paulokat-mobile-btn {
    display: flex;
  }

  .paulokat-mobile-overlay {
    display: block;
  }

  .paulokat-container {
    padding: 0 1rem;
  }

  .paulokat-header-inner {
    padding: 0 3.25rem;
  }

  .paulokat-section {
    padding: 2rem 0;
  }

  .paulokat-section h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .paulokat-section hr {
    width: 120px;
  }

  .paulokat-section p,
  .paulokat-section a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .paulokat-section iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 280px;
    border: none;
  }

  .paulokat-card {
    padding: 1.25rem;
  }

  .paulokat-card h1 {
    font-size: 1.15rem;
  }

  .paulokat-paypal {
    padding: 1rem;
  }

  .paulokat-paypal input[type="image"] {
    max-width: 100%;
    height: auto;
  }

  .paulokat-support-links {
    flex-direction: column;
  }

  .paulokat-support-link {
    justify-content: center;
    width: 100%;
  }

  .paulokat-mobile-sidebar {
    max-width: 85vw;
  }

  .paulokat-mobile-link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .paulokat-footer-inner {
    padding: 0 0.5rem;
  }

  .paulokat-legal-page {
    padding: 1.25rem 0 2.5rem;
  }

  .paulokat-legal-title {
    font-size: 1.35rem;
  }

  .paulokat-legal-body p,
  .paulokat-legal-body a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .danke-content {
    padding: 1.5rem 1rem !important;
    min-height: 50vh !important;
  }

  .danke-content h1 {
    font-size: 1.5rem !important;
  }

  .danke-content p {
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .paulokat-section h2 {
    font-size: 1.2rem;
  }

  .paulokat-section iframe {
    height: 240px;
  }
}

/* Footer (Impressum / Datenschutz) */
.paulokat-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
  margin-top: auto;
}

.paulokat-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.paulokat-footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
}

.paulokat-footer-link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.paulokat-footer-sep {
  color: var(--color-border);
  user-select: none;
}

/* Eigenständige Rechtsseiten (Paulokat) */
.paulokat-legal-page {
  flex: 1;
  width: 100%;
  padding: 2rem 0 3rem;
}

.paulokat-legal-back {
  margin: 0 0 1.25rem;
}

.paulokat-legal-back-link {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.paulokat-legal-back-link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.paulokat-legal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.paulokat-legal-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-text);
}

.paulokat-legal-body h2:first-of-type {
  margin-top: 0;
}

.paulokat-legal-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.paulokat-legal-body p:last-child {
  margin-bottom: 0;
}

.paulokat-legal-body strong {
  color: var(--color-text);
}

.paulokat-placeholder {
  font-style: italic;
  opacity: 0.85;
}
