/* [A] Grundlayout */
body {
  font: 15px Arial, Tahoma, Helvetica, FreeSans, sans-serif;
  color: #cccccc;
  background-color: #0A0101;
  background-image: linear-gradient(30deg,#110101 12%,transparent 12.5%,transparent 87%,#110101 87.5%,#110101),linear-gradient(150deg,#110101 12%,transparent 12.5%,transparent 87%,#110101 87.5%,#110101),linear-gradient(30deg,#110101 12%,transparent 12.5%,transparent 87%,#110101 87.5%,#110101),linear-gradient(150deg,#110101 12%,transparent 12.5%,transparent 87%,#110101 87.5%,#110101),linear-gradient(60deg,#0E0101 25%,transparent 25.5%,transparent 75%,#0E0101 75%,#0E0101),linear-gradient(60deg,#0E0101 25%,transparent 25.5%,transparent 75%,#0E0101 75%,#0E0101);
  background-size: 20px 35px;
  background-position: 0 0,0 0,10px 18px,10px 18px,0 0,10px 18px;
  padding: 0 40px 80px;
  margin-top: 2em;
  min-width: 960px;
}

/* [A] Container & Header */
.container {
  width: 596px;
  margin-left: 2em;
  border: 5px solid #444444;
  border-radius: 15px;
  padding: 20px;
  background: #292929;
  box-shadow: 0 0 0 10px #333333;
}
.top-container {
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg,#555555 25%,transparent 25%),linear-gradient(225deg,#555555 25%,transparent 25%),linear-gradient(315deg,#555555 25%,transparent 25%),linear-gradient(45deg,#555555 25%,transparent 25%);
  background-size: 3px 3px;
  background-position: 0 0,1.5px 0,1.5px -1.5px,0 1.5px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  width: 556px;
  height: 75px;
}
.header-section { text-align: center; margin: auto; }

/* [A] Typografie */
h1 {
  margin: 0 0 .3em 0;
  color: #dcdcdc;
  font-size: 2.2em;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
h2 {
  margin: .5em 0;
  color: #dcdcdc;
  font-size: 1.8em;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  letter-spacing: .8px;
}
h3 {
  margin: 0;
  color: #cccccc;
  font-weight: 600;
  font-size: 1.3em;
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 3px #666666,0 0 5px #333333;
}
h4 {
  margin: 0;
  color: #cccccc;
  font-weight: 600;
  font-size: 1.0rem; /* korrigiert (vorher ohne Einheit) */
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 3px #666666,0 0 5px #333333;
}
p { line-height: 1.6; margin-bottom: 1em; }

/* [A] Navigation */
.top-nav {
  background: #333333;
  margin-bottom: 20px;
  border-radius: 0 0 5px 5px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.nav-list li { margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 15px 25px;
  color: #cccccc;
  text-decoration: none;
  transition: background-color .3s;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 1.1em;
}
.nav-list a:hover {
  background: #dd7700;
  color: #fff;
}
/* [A] Modals*/
.modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Sehr hoch, über Gallery-Items */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px;
} s

/* Verhindert Konflikte mit Gallery-Items */
.q-gallery-item {
    position: relative;
    z-index: 1;
}

.q-gallery-item:hover {
    z-index: 10; /* Immer noch unter Modal */
}


/* Content Styling */
.content-wrapper {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.info-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.info-section {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #444444;
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  color: #dd7700;
  font-size: 1.05em;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.section-items {
  list-style-type: disc;
  margin: 0 0 0 36px;
  padding: 0;
  color: #e6e6e6;
  font-size: 0.95em;
}

.section-items li {
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Animation */
.modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.modal-open {
  opacity: 1;
}

.modal.modal-open .modal-content {
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* TV-spezifische Anpassungen */
@media screen and (min-width: 1920px) {
  .modal-content {
    max-width: 500px;
  }
  
  .modal-body::-webkit-scrollbar {
    width: 18px;
  }
  
  .close-button {
    width: 45px;
    height: 45px;
    font-size: 30px;
  }
}








/* [A] Allgemeine Blöcke */
.centered-text { text-align: center; }
.content-block { width: 596px; }
.blog-screenshot {
  margin: 25px 0 0;
  border: 0;
  width: 596px;
  height: auto;
  display: block;
}
.logo-container { text-align: center; margin: 2em 0; }
.logo-image { border: 0; }

/* [A] Links */
a:link { text-decoration: none; color: #dd7700; }
a:visited { text-decoration: none; color: #cc6600; }
a:hover { color: #cc6600; }

/* [A] Kontaktformular */
#kontaktformular {
  background: #333333;
  color: #cccccc;
  padding: 20px;
  width: 560px;
  box-sizing: border-box;
  margin-top: 0;
}
#kontaktformular table { width: 100%; border-collapse: collapse; }
#kontaktformular td {
  display: block;
  padding: 5px 0;
  width: 100%;
  text-align: left;
}
#kontaktformular input[type="text"],
#kontaktformular textarea,
#kontaktformular input[type="email"] {
  width: 100%;
  background: #444444;
  border: 1px solid #555555;
  color: #cccccc;
  padding: 5px;
  box-sizing: border-box;
}
#kontaktformular input[type="submit"],
.contact-button {
  background: #dd7700;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 4px;
  transition: background .3s;
}
#kontaktformular input[type="submit"]:hover,
.contact-button:hover {
  background: #cc6600;
  color: #fff;
}
#kontaktformular td:first-child { font-weight: bold; margin-bottom: 2px; }
#kontaktformular tr { margin-bottom: 10px; display: block; }

/* [A] Kontakt Feedback */
.success-message {
  background-color: #2a6e2a;
  color: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
}
.error-message {
  background-color: #8b2e2e;
  color: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
}

/* [A] Kontakt Optionen */
.contact-options { margin-bottom: 20px; }
.contact-option-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.option-button {
  background: #444444;
  color: #cccccc;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: all .3s;
  font-size: 15px;
  font-weight: 600;
}
.option-button:hover { background: #555555; }
.option-button.active { background: #dd7700; color: #fff; }
.whatsapp-button,
.email-button {
  display: inline-flex;
  align-items: center;
  background: #25D366;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  margin: 10px 5px;
  font-weight: bold;
  transition: background .3s;
}
.email-button { background: #dd7700; }
.whatsapp-button:hover { background: #128C7E; }
.email-button:hover { background: #cc6600; }
.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}
.qr-code {
  margin: 15px auto;
  border: 5px solid #fff;
  border-radius: 5px;
  display: block;
  max-width: 150px;
}
.small-note { font-size: .9em; opacity: .8; text-align: center; }
.contact-option {
  background: #333333;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}
.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}
.or-divider::before,
.or-divider::after { content: '';
  flex: 1;
  border-bottom: 1px solid #555555;
}
.or-divider::before { margin-right: 10px; }
.or-divider::after { margin-left: 10px; }

/* [A] Externe Links */
.external-links {
  background: #333333;
  border-radius: 5px;
  padding: 20px;
  margin: 20px 0;
}
.external-links h2 {
  color: #dcdcdc;
  font-size: 1.3em;
  margin-bottom: 15px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
.external-link-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #444444;
  border-radius: 5px;
  color: #dd7700;
  text-decoration: none;
  transition: background-color .3s;
  margin-bottom: 10px;
  gap: 12px;
}
.external-link-item:hover { background: #2a2a2a; }
.external-link-item:last-child { margin-bottom: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: #dd7700;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.external-link-icon { width: 16px; height: 16px; margin-left: auto; }
.external-link-icon svg { stroke: #666666; }

/* [A] Footer */
.footer-bar-integrated {
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg,#555555 25%,transparent 25%),linear-gradient(225deg,#555555 25%,transparent 25%),linear-gradient(315deg,#555555 25%,transparent 25%),linear-gradient(45deg,#555555 25%,transparent 25%);
  background-size: 3px 3px;
  background-position: 0 0,1.5px 0,1.5px -1.5px,0 1.5px;
  color: #cccccc;
  text-align: center;
  padding: 14px 0 12px;
  font-size: 1em;
  letter-spacing: .03em;
  border-top: 2px solid #444444;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-top: 60px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
  padding-bottom: 20px;
}
.footer-bar-integrated a {
  color: #ff9966;
  text-decoration: underline;
  margin: 0 1.1em;
  font-weight: 600;
  transition: color .2s;
}
.footer-bar-integrated a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-modal .modal-content {
  margin: 6em auto 0;
  left: 0;
  right: 0;
  width: 95vw;
  max-width: 600px;
}

/* [B] Galerie (robuste Version mit Fallback + Variable) */
.q-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}
.q-gallery-grid {
  --gallery-cols: 4;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(var(--gallery-cols), 1fr);
  gap: 15px;
}
.q-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  transition: transform .3s ease;
  cursor: pointer;
}
.q-gallery-item:hover { 
  -webkit-transform: scale(1.03);
  -ms-transform: scale(1.03);
  transform: scale(1.03); 
}
.q-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .3s ease;
}

.q-gallery-item:hover img { filter: brightness(1.1); }
.q-gallery-title {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity .3s ease;
}
.q-gallery-item:hover .q-gallery-title { opacity: 1; }

/* [B] Lightbox */
.custom-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #080101;
  display: none;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23300000' stroke-width='1.5' stroke-opacity='0.1'%3E%3Cpath d='M0 0l30 30M30 0L0 30M60 30L30 60M30 30l30 30' transform='rotate(45, 30, 30)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.custom-lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpolygon points='0,10 10,0 20,10 10,20'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  background-size: 20px 20px;
  z-index: -1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  margin: 0 auto;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  box-shadow: 0 0 30px rgba(0,0,0,.7);
  border: 1px solid rgba(100,0,0,.2);
}
.lightbox-caption {
  color: #f0f0f0;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.lightbox-counter {
  color: #a0a0a0;
  position: absolute;
  bottom: -30px;
  right: 0;
  font-size: 14px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #f0f0f0;
  font-size: 30px;
  cursor: pointer;
  z-index: 10000;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  transition: color .3s ease;
}
.lightbox-close:hover { color: #ff9999; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
  color: #f0f0f0;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  background-color: rgba(30,0,0,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 20px;
  transition: all .3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(80,0,0,.5);
  color: #fff;
}

/* [B] Responsive Galerie (angepasst: nutzt var(--gallery-cols) begrenzt) */
@media (max-width: 1024px) {
  .q-gallery-grid { grid-template-columns: repeat(min(var(--gallery-cols), 4), 1fr); }
}
@media (max-width: 768px) {
  .q-gallery-grid { grid-template-columns: repeat(min(var(--gallery-cols), 2), 1fr); }
  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 480px) {
  .q-gallery-grid { grid-template-columns: 1fr; }
  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    width: 30px;
    height: 30px;
    margin: 0 10px;
  }
}

/* [A] Responsive Basis */
@media (max-width: 800px) {
  .container,
  .content-block,
  #kontaktformular,
  .top-container,
  .blog-screenshot {
    width: 97vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
  .footer-bar-integrated {
    margin-left: -5vw;
    margin-right: -5vw;
  }
  .contact-option-buttons {
    flex-direction: column;
    gap: 5px;
  }
  .option-button { width: 100%; }
}

/* ========== MOBILE OPTIMIERUNG - NUR FÜR SMARTPHONES ========== */
/* Diese Styles greifen NUR auf mobilen Geräten und ändern NICHTS am Desktop */
@media screen and (max-width: 768px) {
  
  /* Body Anpassungen */
  body {
    min-width: unset !important;
    padding: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden;
  }
  
  /* Container responsive machen */
  .container {
    width: calc(100vw - 20px) !important;
    margin: 10px !important;
    padding: 15px !important;
    box-shadow: none !important;
    border-width: 2px !important;
  }
  
  .top-container {
    width: calc(100% - 40px) !important;
    height: auto !important;
    padding: 15px !important;
  }
  
  /* Navigation Mobile */
  .nav-list {
    flex-direction: column !important;
  }
  
  .nav-list a {
    padding: 12px 15px !important;
    font-size: 1em !important;
    border-bottom: 1px solid #444444;
    text-align: center;
  }
  
  .nav-list li:last-child a {
    border-bottom: none;
  }
  
  /* Überschriften anpassen */
  h1 {
    font-size: 1.6em !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.3em !important;
  }
  
  h3 {
    font-size: 1.1em !important;
  }
  
  /* Content Blöcke */
  .content-block,
  .blog-screenshot {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Bilder responsive */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Kontaktformular Mobile */
  #kontaktformular {
    width: 100% !important;
    padding: 15px !important;
  }
  
  #kontaktformular input[type="text"],
  #kontaktformular textarea,
  #kontaktformular input[type="email"] {
    font-size: 16px !important; /* Verhindert Zoom auf iOS */
  }
  
  /* Buttons touch-freundlich */
  .contact-button,
  #kontaktformular input[type="submit"],
  .option-button,
  .whatsapp-button,
  .email-button {
    min-height: 44px !important;
    font-size: 16px !important;
  }
  
  /* Modal Anpassungen */
  .modal-content {
    margin: 20px !important;
    width: calc(100vw - 40px) !important;
    max-width: none !important;
    padding: 20px !important;
  }
  
  .close-button {
    font-size: 35px !important;
    padding: 10px !important;
  }
  
  /* Footer Mobile */
  .footer-bar-integrated {
    margin-left: -15px !important;
    margin-right: -15px !important;
    font-size: 0.9em !important;
  }
  
  .footer-bar-integrated a {
    display: block !important;
    margin: 5px 0 !important;
  }
  
  /* Externe Links Mobile */
  .external-link-item {
    font-size: 14px !important;
    padding: 10px !important;
  }
  
  /* Button Container */
  .button-container {
    flex-direction: column !important;
  }
  
  .button-container > * {
    width: 100% !important;
  }
  
  /* Horizontales Scrollen verhindern */
  * {
    max-width: 100vw !important;
  }
  
  /* Tabellen scrollbar machen */
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Noch kleinere Geräte (sehr kleine Smartphones) */
@media screen and (max-width: 380px) {
  body {
    font-size: 14px !important;
  }
  
  h1 {
    font-size: 1.4em !important;
  }
  
  .container {
    margin: 5px !important;
    padding: 10px !important;
  }
  
  .nav-list a {
    padding: 10px !important;
    font-size: 0.95em !important;
  }
} 