@font-face {
  font-family: 'CloiserBlack';
  src: url('CloisterBlack.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== BASIS-STYLES ===== */
* {
  box-sizing: border-box;
}

body, p, a, div, span {
  font-family: 'CloiserBlack', Georgia, 'Times New Roman', serif;
  margin: 0;
  padding: 0;
}

/* ===== TRAUERBANDEROLE ===== */
.mourning-banderole {
  position: fixed;
  top: 30px;
  right: -80px;
  transform: rotate(45deg);
  padding: 20px 80px;
  color: white;
  background-color: black;
  font-family: 'CloiserBlack', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  text-align: center;
  overflow: hidden;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ===== HAUPTINHALT ===== */
.main-text {
  font-family: 'CloiserBlack', Georgia, 'Times New Roman', serif;
  font-size: 48px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  margin-top: 80px;
  padding: 0 20px;
}

/* ===== MODERNE DOWNLOAD-BUTTONS ===== */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding: 0 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #000000, #2a2a2a);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.download-btn:hover {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  color: #000000;
  transform: translateY(-3px) scale(1.02);
  border-color: #000000;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(255, 255, 255, 0.1);
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.download-btn .fa-download {
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.download-btn:hover .fa-download {
  transform: translateY(1px);
  filter: brightness(0) invert(0);
}

/* ===== BILDER ===== */
.image-section {
  position: relative;
  overflow: hidden;
}

.image-section img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* ===== MEDIA QUERIES ===== */

/* Tablets & kleine Desktops */
@media (max-width: 1024px) {
  .main-text {
    font-size: 36px;
    margin-top: 70px;
  }
  
  .download-buttons {
    gap: 15px;
  }
  
  .download-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* Mobile Geräte */
@media (max-width: 768px) {
  .mourning-banderole {
    top: 20px;
    right: -60px;
    padding: 15px 60px;
    font-size: 16px;
    min-width: 200px;
  }
  
  .main-text {
    font-size: 28px;
    text-align: left;
    margin-top: 60px;
    padding: 0 15px;
    line-height: 1.3;
  }
  
  body, p, a, div {
    text-align: left;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
  }
  
  .download-btn {
    width: 100%;
    max-width: 280px;
    font-size: 15px;
    padding: 16px 24px;
    border-radius: 14px;
  }
}

/* Sehr kleine Displays */
@media (max-width: 480px) {
  .mourning-banderole {
    top: 15px;
    right: -50px;
    padding: 12px 50px;
    font-size: 14px;
    min-width: 180px;
  }
  
  .main-text {
    font-size: 24px;
    margin-top: 50px;
  }
  
  .download-btn {
    font-size: 14px;
    padding: 14px 20px;
    max-width: 240px;
    gap: 10px;
  }
}

/* ===== FALLBACKS & SPEZIFISCHE STYLES ===== */
@supports not (font-family: 'CloiserBlack') {
  body, p, a, div {
    font-family: Georgia, 'Times New Roman', serif;
  }
}

/* Verbesserte Lesbarkeit für Text */
.main-text {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Verbesserte Accessibility für Buttons */
.download-btn:focus {
  outline: 2px solid #000000;
  outline-offset: 3px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  color: #000000;
  border-color: #000000;
}

.download-btn:focus .fa-download {
  filter: brightness(0) invert(0);
}

/* ===== LUPENFUNKTION ===== */
.image-section.magnifiable {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  margin: 20px 0;
}

.image-section.magnifiable img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.image-magnifier {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 3px solid #fff;
  border-radius: 50%;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 
    0 0 25px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.3);
  z-index: 100;
  transform: translate(-50%, -50%);
  background-color: #fff;
  display: block !important;
}

.image-section.magnifier-active .image-magnifier {
  opacity: 1;
}

.image-section.magnifier-active img {
  transform: scale(1.01);
}

/* Mobile Optimierung mit kleinerer Lupe */
@media (max-width: 768px) {
  .image-magnifier {
    width: 180px;  /* Kleinere Lupe für Mobile */
    height: 180px; /* Kleinere Lupe für Mobile */
  }
}

@media (max-width: 480px) {
  .image-magnifier {
    width: 140px;  /* Noch kleinere Lupe für sehr kleine Displays */
    height: 140px; /* Noch kleinere Lupe für sehr kleine Displays */
  }
}

@media (hover: none) and (pointer: coarse) {
  .image-section.magnifiable {
    cursor: default;
  }
  
  .image-magnifier {
    display: none !important;
  }
}
/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(145deg, #000000, #1a1a1a);
  color: #fff;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: 'CloiserBlack', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: #fff;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .site-footer {
    padding: 25px 15px;
    margin-top: 30px;
  }
}