@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --navbar-height: 80px; /* Variable definieren */
  --flex-gap: 10px; /* Variable definieren */

  /* Breiten für unterschiedliche Spaltenzahlen */
  --thumb-width-1col: 100%;
  --thumb-width-2col: calc(50% - calc(var(--flex-gap) / 2));
  --thumb-width-3col: calc(33.333% - calc(var(--flex-gap) * 2 / 3));
  --thumb-width-4col: calc(25% - calc(var(--flex-gap) * 3 / 4));
}

html {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body,
input,
textarea,
button,
select {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

body {
  margin: 0;
  font-size: 1rem;
  color: #222;
  background: #f9faff;
  /* line-height: 1.2; */
}

/* Grundlegendes Table-Layout */
table {
  width: 100%;
  border-collapse: collapse;
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

/* Tabellenkopf */
thead {
  background-color: #f5f7fa;
}

thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #e2e8f0;
}

/* Tabellenzellen */
td {
  padding: 8px;
  border: 1px solid #e2e8f0;
  color: #555;
}

/* Zeilen-Hover-Effekt */
tbody tr:hover {
  background-color: #f0f4f8bb;
  transition: background-color 0.2s ease;
}

a {
  text-decoration: none; /* kein Unterstrich */
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="number"],
textarea {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #ccc;
  /* border-radius: 4px; */
  cursor: pointer;
}

form label {
  display: block;
  margin: 10px 0 5px 0;
  font-weight: bold;
}

#input-fields-area label {
  font-weight: bold; 
}

.anchor-offset1 {
  scroll-margin-top: calc(var(--navbar-height) + 20px);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2.5rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--navbar-height);
  /* opacity: 0; */
}

footer .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2.5rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.1);
  /* position: sticky; */
  /* top: 0; */
  z-index: 1000;
  min-height: var(--navbar-height);
  height: auto;
  /* opacity: 0; */
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* sorgt für Linksbündigkeit */
  text-decoration: none; /* kein Unterstrich */
}

.logo-main {
  font-size: 2.8rem;
  color: #0077ff;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}

footer .logo-main {
  font-size: 1rem;
  color: #ffffff;
  background-color: #0077ff;
  font-weight: bold;
  line-height: 1.2rem;
  padding: 0.2rem 0.8rem;
    white-space: normal;
}

.logo-sub {
  font-size: 1rem;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: white;
  background-color: #0077ff;
  /* margin-top: 0.2rem; */
  padding: 0.2rem 0.8rem;
  font-weight: bold;
}

.nav-links-footer, .nav-links {
  display: flex;
  flex-wrap: wrap;   /* erlaubt Umbruch */
  gap: 0.5rem;
  align-items: center;
  margin: 0px 10px;
}

.nav-links a {
  text-decoration: none;
  color: #005fcc;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  color: white;
  background: #3794ff;
}

.nav-btn {
  border: 1px solid #0077ff;
  background: white;
  color: #0077ff;
  padding: 0.4rem 0.8rem;
  /* border-radius: 2px; */
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.hero-content button.nav-btn {
max-width: 80%;
width: auto;
padding: 0.7rem 1.4rem;
background: #e6f0ff;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
border-radius: 1.4rem;
transition: background 0.3s ease, color 0.3s ease;
margin: 0px 15px;
}

.hero-content button.nav-btn:hover {
background: #005fcc;
color: white;
}

.nav-sep {
  background: rgb(185, 185, 185);
  width: 5px;
  height: 30px;
}

.nav-btn:hover {
  background: #e6f0ff;
}

.nav-btn.filled {
  background: #0077ff;
  color: white;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-btn.filled:hover {
  background: #005fcc;
}

/* Burger Icon */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin: 20px;
}

.burger span {
  width: 30px;
  height: 4px;
  background: #0077ff;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Animation – Burger to X */
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

video {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Optional: */
  /* -webkit-font-smoothing: antialiased; */
  /* -webkit-backface-visibility: hidden; */
  -webkit-transform: translateZ(0);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 10px;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-content {
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  font-size: 2.8rem;
  /* margin-top: 80px; */
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.85);
}

.hero p {
  font-size: 1.6rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

/* .hero { */
  /* position: relative; */
  /* width: 100%; */
  /* height: 100vh; /* ganze Bildschirmhöhe */ */
  /* overflow: hidden; */
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  /* text-align: center; */
  /* color: white; */
/* } */

/* .hero video { */
  /* position: absolute; */
  /* top: 0; left: 0; */
  /* width: 100%; */
  /* height: 100%; */
  /* object-fit: cover; /* Video skaliert und füllt immer */ */
  /* z-index: -1; */
/* } */

.hero-content {
  max-width: 100px;
  padding: 1rem;
  /* box-sizing: border-box; */
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); /* passt sich dynamisch an */
  line-height: 1.2;
  /* margin-bottom: 1rem; */
}

.hero-content p {
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  line-height: 1.5;
  /* margin-bottom: 1rem; */
}

.hero-content .slogan {
  font-size: clamp(1rem, 2vw, 1.2rem);
font-style: italic;

/* min-height: 7rem; */
transition: opacity 0.5s ease-in-out;
margin: 1.4rem 0px;
/* WICHTIG: Damit der Hintergrund nicht das ganze div füllt */
display: inline-block;  
  /* word-break: break-word; */
}

/* Button */
.hero-content .nav-btn {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  padding: 0.7rem 1.2rem;
  white-space: normal; /* darf umbrechen */
  max-width: 100%;
}

.highlight {
  background-color: #0077ffcc;
  padding: 0.3rem 0.7rem; /* etwas Abstand links und rechts */
  border-radius: 0.5rem;
  margin: 0px 15px;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* font-size: 2rem; */
  padding: 0.2rem;
  animation: bounce 2s infinite;
  color: white;
  z-index: 2;
  /* background: #005fcc;
  border-radius: 50%; */
}

/* .scroll-down svg { */
/* display: block; */
/* margin-top: 4px; */
/* } */

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 20px);
  }
}

/* Main Content */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container h1,
.container h2 {
  color: #0559b9;
}

.container h1 {
  background: #e6f2ff65;
  padding: 0.5rem;
  border-left: 3px solid #0077ff;
  /* border-radius: 6px; */
  /* margin-top: 1.5rem; */
}

.container h2 {
  background: #e2e2e24b;
  padding: 0.5rem;
  border-left: 3px solid #0077ff69;
}

.container .pricing-section h2 {
  background: initial;
  padding: initial;
  border-left: initial;
}

.info-box {
  background: #e6f2ff;
  padding: 1rem;
  border-left: 4px solid #0077ff;
  border-radius: 6px;
  margin-top: 1.5rem;
}

ol {
  padding-left: 1.2rem;
}

ol li {
  margin-bottom: 0.7rem;
}

/* Modal */
.modal {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgb(255, 255, 255, 0.92);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column; /* Inhalt vertikal anordnen */
  position: relative; /* für absolute Position des Close-Buttons */
}

.modal-content h3 {
  margin-top: 0;
}

/* .modal-content input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
} */

.modal-content button {
  /* padding: 0.8rem 1.2rem; */
  margin-top: 0.8rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 2rem;
  line-height: 1;
  color: #333;
}

.box-section {
  /* max-width: 700px; */
  margin: 3rem auto;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  color: #222;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.1);
  background: #f0f7ff;
  border: 1px solid rgba(0, 119, 255, 0.1);
}

.box-section h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #0077ff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.box-section ul,
.box-section ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: item-counter;
}

ul li i {
  color: #0077ff;
  /* Farbe der Icons */
  font-size: 2.2rem;
  /* Größe der Icons */
  margin-right: 0.3rem;
  /* Abstand zum Text */
  vertical-align: middle;
  /* Vertikale Ausrichtung mit Text */
}

.box-section ul li,
.box-section ol li {
  position: relative;
  background: white;
  margin-bottom: 1.2rem;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-radius: 6px;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.box-section ol li {
  padding: 1rem 1.5rem 1rem 4rem;
}

.box-section ul li strong,
.box-section ol li strong {
  color: #005fcc;
}

.box-section ul li:hover,
.box-section ol li:hover,
.box-section .video-wrapper.video-wrapper:hover {
  box-shadow: 0 6px 15px rgba(0, 119, 255, 0.2);
}

.box-section_ ul li::before,
.box-section ol li::before {
  counter-increment: item-counter;
  content: counter(item-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #0077ff;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 119, 255, 0.3);
}

/* Optional: Für ol nur, wenn gewünscht, kann cursor default explizit gesetzt werden */
.box-section ol li {
  cursor: default;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  background: rgb(255 255 255 / 1);
  padding: 25px 30px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}

.link-wrapper {
  display: flex;
  flex-wrap: wrap;
  /* Zeilenumbruch bei schmalem Bildschirm */
  gap: 10px;
  /* Abstand zwischen den Links */
  /* max-width: 600px;     Optionale maximale Breite */
  margin: 20px 0;
  /* Abstand nach oben/unten */
}

.link-wrapper a {
  /* flex: 1 1 auto;       Flexibles Wachsen und Schrumpfen */
  min-width: 140px;
  /* Minimum, damit Buttons nicht zu schmal werden */
  padding: 10px 20px;
  /* Innenabstand */
  background: #f0f0f0;
  /* Hellgrauer Hintergrund */
  color: #333;
  /* Textfarbe */
  text-decoration: none;
  /* Kein Unterstrich */
  text-align: center;
  /* Zentrierter Text */
  border-radius: 4px;
  /* Abgerundete Ecken */
  transition: background 0.3s;
  /* Schöner Hover */
}

.link-wrapper a:hover {
  background: #ddd;
  /* Etwas dunkler beim Hover */
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.2rem;
}

#drop-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  background: #fff;
  transition: background-color 0.3s ease;
}

#drop-area.highlight,
#drop-area:hover {
  background-color: #e0f7fa;
  border-color: #26a69a;
}

#gallery,
#order-area,
#video-template-area {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap);
  background: #efefef;
  padding: 8px 16px;
  border-radius: 4px;
  min-height: 100px;
}

.thumb {
  position: relative;
  max-width: 120px;
  border: 1px solid #ddd;
  border-radius: 5px;
  /* overflow: hidden; */
  overflow: visible;
  background: #fafafa;
  /* cursor: grab; */
  cursor: pointer;

  /* Vertikale Anordnung für Bild und Select */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
}

#video-template-area .thumb {
  font-size: 0.8rem;
  font-weight: 100;
  /* max-width: 250px; */
  padding: 8px;
  flex: 0 0 calc((100% / 3) - (2 * var(--flex-gap) / 3));
  max-width: none;
}

#video-template-area .thumb:hover {
  background: #ffffff;
}

#video-template-area .thumb img {
  height: 150px;
}

.thumb img {
  max-width: 100%;
  min-height: 120px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  /* margin-bottom: 6px; Abstand zum Select */
}

#video-template-area .thumb.selected {
  outline: 4px solid blue;
  outline-offset: -2px;
  /* optional: Abstand zwischen Element und Outline */
  background: #ffffff;
}

#video-template-area .thumb:not(.selected):hover {
  outline: 2px solid blue;
  outline-offset: -1px;
}

.input-error {
  outline: 2px solid red;
  outline-offset: -1px;
}

/* .thumb select,
.thumb input[type="text"],
.thumb input[type="email"] {
  width: 100%;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 4px 6px;
  cursor: pointer;
  margin-bottom: 4px;
} */

button {
  width: 100%;
  /* font-size: inherit; */
  /* border-radius: 4px; */
  border: 1px solid #0077ff;
  background: white;
  color: #0077ff;
  padding: 6px 10px;
  cursor: pointer;
  margin: 4px 0px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover {
  background: #0077ff;
  color: white;
}

.thumb .num {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #26a69a;
  color: white;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
  user-select: none;
}

.icon {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  color: #555;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.icon:hover {
  background-color: #26a69a;
  color: white;
}

#gallery .icon.maximize {
  left: 50px;
  font-size: 18px;
}

#order-area .icon.maximize {
  left: 50px;
  font-size: 18px;
}

#gallery .icon.delete {
  right: 4px;
  font-size: 22px;
  color: #e53935;
  background: rgba(255, 255, 255, 0.9);
}

#gallery .icon.add {
  left: 4px;
  font-size: 22px;
  color: #e53935;
  background: rgba(255, 255, 255, 0.9);
}

#order-area .icon.delete {
  right: 4px;
  font-size: 22px;
  color: #e53935;
  background: rgba(255, 255, 255, 0.9);
}

#order-area .icon.left {
  left: 0px;
  top: 50%;
  font-size: 24px;
  font-weight: 700;
  color: #e53935;
  background: rgba(255, 255, 255, 0.9);
}

#order-area .icon.right {
  right: 0px;
  top: 50%;
  font-size: 24px;
  font-weight: 700;
  color: #e53935;
  background: rgba(255, 255, 255, 0.9);
}

#popupOverlay,
#popupVideoOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#popupOverlay.active,
#popupVideoOverlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#popupOverlay img,
#popupVideoOverlay video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 10px black;
}

.closeBtn {
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

.thumb.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

#order-area.drag-over {
  background: #ccc;
}

.thumb.insert-left {
  border-left: 3px solid #26a69a;
}

.thumb.insert-right {
  border-right: 3px solid #26a69a;
}

#createVideoBtn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 40px auto;
  background-color: #004080;
  color: white;
  border: none;
  padding: 14px 0;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#createVideoBtn:hover {
  background-color: #003060;
}

.projects-list {
  margin-top: 20px;
  border-top: 2px solid #ddd;
  padding-top: 15px;
}

.projects-list a {
  display: inline-block;
  margin: 5px 10px 5px 0;
  padding: 20px 30px;
  background-color: #e6f0ff;
  border-bottom: 5px solid #ddd;
  color: #004080;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 700;
}

.projects-list a:hover {
  background-color: #cce0ff;
}

.projects-list a.selected {
  outline: 2px solid orange;
  outline-offset: 0px;
}

#video-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
  background: #efefef;
  padding: 8px 16px;
  border-radius: 4px;
}

.video-item {
  flex: 0 0 calc((100% / 3) - (20px * 2 / 3));
  /* 3 pro Reihe minus proportionaler Abstand */
  position: relative;
  /* wichtig für absolut positionierten Spinner */
}

.video-item video {
  width: 100%;
  height: auto;
  border-radius: 5px;
  /* Einheitliches Seitenverhältnis */
  aspect-ratio: 16 / 9;
  /* object-fit: cover; */
}

.video-item a {
  text-decoration: none;
  font-weight: 500;
}

#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  /* Hinter den Content legen */
  object-fit: cover;
  /* Video so skalieren, dass es den Container komplett füllt */
}

#gallery,
#order-area,
#video-gallery {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#gallery.loaded,
#order-area.loaded,
#video-gallery.loaded {
  visibility: visible;
  opacity: 1;
}

.error {
  background: #f8d7da;
  color: #842029;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
  display: none; /* Standardmäßig verstecken */
}

/* ====== Erfolgsmeldungen (optional) ====== */
.success {
  background: #d1e7dd;
  color: #0f5132;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
  display: none; /* Standardmäßig verstecken */
}

.show {
  display: block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden; /* für runde Ecken */
  /* border: 1px solid rgba(32, 122, 132, 0.2); */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
  margin-bottom: 1rem;
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.video-wrapper:hover .play-button {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: rgba(0, 0, 0, 0.7);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 150px;
  height: 150px;
  background-color: rgba(0, 0, 0, 0.5);
  clip-path: polygon(35% 25%, 75% 50%, 35% 75%);
  border-radius: 12px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* .play-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
} */

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  /* zentriert */
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
  pointer-events: none;
  /* damit man Video anklicken kann */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.custom-alert.hidden {
  opacity: 0;
  pointer-events: none;
  /* kein display:none, damit Transition sichtbar ist */
}

.custom-alert-box {
  background: white;
  padding: 20px 30px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  /* text-align: center; */
  max-width: 50%;
  font-size: 1rem;
}

.custom-alert-box button {
  margin-top: 15px;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex: 1;
  max-width: 120px;
}

.custom-alert-box button:hover {
  background: #0056b3;
}

.custom-alert-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.form-field img {
  max-width: 150px;
  border: 1px solid #ccc;
  margin-top: 5px;
  display: none;
  /* Anfangs unsichtbar */
}

.pricing-section {
  /* max-width: 700px; */
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  color: #222;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.1);
  background: #f0f7ff;
  border: 1px solid rgba(0, 119, 255, 0.1);
}

.pricing-section h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #0077ff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pricing-card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1.2rem;
    min-width: 0;
  word-wrap: break-word;
    transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 6px 15px rgba(0, 119, 255, 0.2);
}


.pricing-card h3 {
    /* min-height: 2rem; */
}

.featured {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-description {
  color: #4b5563;
  margin-bottom: 1rem;
      min-height: 3rem;
}

.plan-price {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.price-suffix {
  font-size: 0.7rem;
  font-weight: normal;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 0.875rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.btn {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-dark {
  background-color: #1f2937;
  color: white;
}

.pricing-note {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.plan-info {
  background-color: #f9f9f9;
  padding: 1rem;
  border-left: 2px solid #0077ff69;
  /* border-radius: 6px; */
  margin-top: 1rem;
}
.plan-info h3 {
  margin-top: 0;
  color: #007bff;
  font-weight: 700;
}
.plan-info ul {
  padding-left: 1rem;
  list-style: none;
}

.plan-info li {
  /* padding-bottom: 1.2rem; */
}

.pricing-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem; /* Abstand zwischen den Spalten */
  margin: 2rem 0;
}

.pricing-benefits .benefit {
  flex: 1 1 30%; /* drei Spalten, flexibel */
  background-color: #fff; /* helles Box-Hintergrund */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-benefits .benefit h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #222;
  font-weight: 700;
}

.pricing-benefits .benefit p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Hover-Effekt für bessere Interaktion */
.pricing-benefits .benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 119, 255, 0.2);
}

#musicInfo a {
  color: #1a73e8;       /* Linkfarbe */
  text-decoration: none; /* Unterstrich entfernen */
  font-weight: bold;     /* optional fett */
}

#musicInfo a:hover {
  color: #ff6600;        /* Farbe beim Hover */
  text-decoration: underline; /* Unterstrich beim Hover */
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 900px) {
  .pricing-benefits .benefit {
    flex: 1 1 45%; /* zwei Spalten */
  }
}

@media (max-width: 600px) {
  .pricing-benefits .benefit {
    flex: 1 1 100%; /* eine Spalte */
  }
}

/* --- RESPONSIVE ANPASSUNGEN --- */

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Media Query für mobile Geräte */
/* Mobile */
@media (max-width: 768px) {

.nav-sep {
  width: 80px;
  height: 5px;
}

.hero h1 {
font-size: 2rem;
}

.hero p {
font-size: 1.2rem;
}

thead th {
  padding: 8px;
  font-size: 0.8em;
}

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    position: absolute;
    top: 70px;
    right: 1rem;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.15);
    display: none;
  }
  
    footer .nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;   /* erlaubt Umbruch */
  gap: 0.5rem;
  align-items: center;
  margin: 0px 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .container {
    padding: 20px;
    margin: 20px auto;
  }

  /* #gallery, */
  /* #order-area { */
  /* flex-direction: column; */
  /* align-items: center; */
  /* } */

  .thumb {
    flex: 0 0 var(--thumb-width-4col); /* Standard = 4 Spalten */
    max-width: var(--thumb-width-4col);
  }

  .link-wrapper {
    flex-direction: column;
  }

  .link-wrapper a {
    width: 100%;
  }

  #video-gallery {
    flex-direction: column;
  }

  .video-item {
    width: 100%;
  }

  #popupOverlay img {
    max-width: 95vw;
    max-height: 80vh;
  }

  #createVideoBtn {
    width: 100%;
    max-width: none;
  }
  
  #video-template-area .thumb {
  flex: 0 0 calc((100% / 2) - (1 * var(--flex-gap) / 2));
}
  
  .logo-main {
  font-size: 2.4rem;
}

 
}

/* Bei sehr kleinen Bildschirmen, z.B. Smartphones */
@media (max-width: 480px) {

  .pricing-grid {
    grid-template-columns: repeat(1, 1fr);
  }
    
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .thumb {
    flex: 0 0 var(--thumb-width-2col);
    max-width: var(--thumb-width-2col);
  }

  .thumb img,
  .thumb_video {
    min-height: auto;
  }

  .icon {
    width: 18px;
    height: 18px;
    font-size: 16px;
  }

  #drop-area {
    padding: 15px;
  }

.logo-main {
  font-size: 1.6rem;
}
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 1rem;
  }

  .hero-content {
    padding: 0.5rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}
