:root {
  --bg-color: #0d0d11;
  --text-color: #f3f4f6;
  --accent-color: #6366f1;
  --card-bg: #1e1e24;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(13, 13, 17, 0.35), rgba(13, 13, 17, 0.35)), url('background.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header.home-header {
  margin-top: 3rem;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.page-header p {
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* Modal-Container & Layouts */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 320px;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.about-name {
  font-size: 1.2rem;
  color: #9ca3af;
}

.about-sub {
  color: #d1d5db;
}

.modal-inner-padding {
  padding: 2rem;
}

/* Verspieltes Buttons-Container-Layout */
.buttons-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 540px;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Dynamische Breite je nach Inhalt & Transparenz 0.4 */
.draggable-btn {
  background: rgba(30, 30, 36, 0.4);
  backdrop-filter: blur(8px);
  color: var(--text-color);
  border: 1px solid #374151;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: grab;
  user-select: none;
  width: auto;
  display: inline-block;
  white-space: nowrap;
  transform: rotate(var(--rotation, 0deg));
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
}

@media (min-width: 640px) {
  .draggable-btn {
    position: absolute;
  }
}

.draggable-btn:hover {
  background: rgba(30, 30, 36, 0.65);
  border-color: var(--accent-color);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.draggable-btn:active {
  cursor: grabbing;
}

/* Alben Grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.album-card {
  background: rgba(30, 30, 36, 0.85);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #27272a;
  transition: transform 0.2s, border-color 0.2s;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.album-info {
  padding: 0.8rem;
}

.album-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.album-link {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-decoration: none;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  cursor: pointer;
}

.indicator.active {
  background: var(--accent-color);
}

/* Vimeo / Iframe Responsive Container */
.vimeo-wrapper {
  padding: 56.25% 0 0 0;
  position: relative;
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.vimeo-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 8px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal Backdrop mit Startseiten-Hintergrundbild (Deckkraft ~0.7) */
#modal-backdrop {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(13, 13, 17, 0.7), rgba(13, 13, 17, 0.7)), url('background.jpeg');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

#modal-backdrop.hidden {
  display: none;
}

#modal-content {
  background: rgba(30, 30, 36, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid #374151;
  border-radius: 12px;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

#modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #9ca3af;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

#modal-close:hover {
  color: var(--text-color);
  background: rgba(0, 0, 0, 0.9);
}

.sub-buttons-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.sub-btn {
  background: rgba(39, 39, 42, 0.8);
  color: var(--text-color);
  border: 1px solid #374151;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.sub-btn:hover {
  border-color: var(--accent-color);
}

/* Wortspielereien Styles */
.wortspielereien-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.lines-list {
  background: rgba(13, 13, 17, 0.6);
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 1rem;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.line-item {
  background: rgba(30, 30, 36, 0.8);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.prompt-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.prompt-box textarea {
  flex: 1;
  background: rgba(13, 13, 17, 0.8);
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  outline: none;
}

.prompt-box textarea:focus {
  border-color: var(--accent-color);
}

.prompt-box button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}

.prompt-box button:hover {
  opacity: 0.9;
}

/* Video Grid für #ComposingByPlaying */
.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.video-card {
  background: rgba(30, 30, 36, 0.85);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #27272a;
}
