/* Basis */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--white);
  font-family: ui-serif, "Georgia", serif;
  position: relative;
  overflow-x: hidden;
}

/* Gold ist Pflicht */
a, .gold{ color: var(--gold); }
a{ text-decoration:none; }
a:hover{ text-decoration:underline; }

/* =========================================
   HEADER (Band) – deutlich dunkler + Linie safe
   ========================================= */
.site-header{
  position: relative;
  z-index: 3;

  /* deutlich dunkler, damit es sich abhebt */
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18));

  /* Rahmen */
  border-top: 1px solid rgba(201,162,74,0.35);

  /* DIE Linie unter der Nav: echte Vollbreite */
  border-bottom: 2px solid rgba(201,162,74,0.65);

  /* Backup-Linie (falls Browser/Rendering mal „frisst“) */
  box-shadow: inset 0 -1px 0 rgba(201,162,74,0.25);
}

/* Topbar (EN + Burger) */
.topbar{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px 6px 18px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 10px;
}

.lang-switch{
  font-size: 13px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(201,162,74,0.45);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201,162,74,0.03);
}

/* Burger */
.nav-toggle{
  display:none; /* Desktop aus */
  background: rgba(201,162,74,0.03);
  border: 1px solid rgba(201,162,74,0.45);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  line-height: 0;
}
.nav-toggle-bar{
  display:block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  border-radius: 2px;
}

/* Logo/Runen-Zeile */
.brand-row{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px 10px 18px;
  display:flex;
  align-items:center;
  gap: 18px;
}

.ornament{
  flex:1;
  height:1px;
  background: linear-gradient(90deg,
    rgba(201,162,74,0),
    rgba(201,162,74,0.85),
    rgba(201,162,74,0)
  );
}

.brand-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 16px;
}

.logo-img{
  display:block;
  height: 64px;
  width: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
}

.rune-set{
  display:flex;
  align-items:center;
  gap: 10px;
}

.rune{
  display:block;
  height: 34px;
  width: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.18));
}

/* Navigation Desktop */
.main-nav{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px 16px 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 14px;
  font-size: 13.5px;
  letter-spacing: 0.10em;
}

.main-nav a{
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
  background: rgba(201,162,74,0.04);
  border: 1px solid rgba(201,162,74,0.10);
}

.main-nav a:hover{
  background: rgba(201,162,74,0.10);
  border-color: rgba(201,162,74,0.22);
  text-decoration:none;
  transform: translateY(-1px);
}

.main-nav .is-disabled{
  opacity: 0.55;
  pointer-events:none;
}

/* =========================================
   MAIN (heller/edler)
   ========================================= */
.site-main{
  max-width: 1200px;
  margin: 26px auto 0 auto;
  padding: 54px 24px 86px 24px;
  min-height: 60vh;

  background:
    radial-gradient(1200px 520px at 50% 0%,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.02) 62%),
    linear-gradient(180deg,
      rgba(255,255,255,0.06),
      rgba(0,0,0,0.06));

  border: 1px solid rgba(201,162,74,0.14);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.28);
  position: relative;
  z-index: 1;
}

/* Wasserzeichen-Logo NUR im Hauptteil */
.site-main::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/assets/img/Logo.png");
  background-repeat: no-repeat;
  background-position: 50% 170px;
  background-size: min(820px, 92vw);
  opacity: 0.045;
  filter: saturate(0.9) contrast(0.95);
}

.site-main > *{
  position: relative;
  z-index: 1;
}

/* Startseite Layout */
.home-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}

/* Cards */
.card{
  border: 1px solid rgba(201,162,74,0.18);
  background:
    radial-gradient(800px 220px at 20% 0%,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.14));
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 22px 54px rgba(0,0,0,0.22);
  position: relative;
}

.card::before{
  content:"";
  position:absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px solid rgba(201,162,74,0.10);
  pointer-events:none;
}

.card h2{
  margin: 0 0 12px 0;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.card p, .card div{
  line-height: 1.55;
}

/* News */
.card.news{ min-height: 30vh; }

.news-item{
  padding: 10px 0;
  border-top: 1px solid rgba(201,162,74,0.16);
}
.news-item:first-child{ border-top:0; padding-top:0; }

.news-date{
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.news-title{
  margin: 6px 0 0 0;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* News Seite: Bilder-Galerie */
.news-card{ margin-bottom: 18px; }

.news-gallery{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}

.news-gallery.cols-1{ grid-template-columns: 1fr; }
.news-gallery.cols-2{ grid-template-columns: 1fr 1fr; }
.news-gallery.cols-3{ grid-template-columns: 1fr 1fr 1fr; }

.news-gallery img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.20);
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
}

/* =========================================
   FOOTER (Band) – gleich dunkel wie Header
   ========================================= */
.site-footer{
  position: relative;
  z-index: 2;

  /* exakt gleich wie Header */
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18));

  /* Rahmen */
  border-top: 2px solid rgba(201,162,74,0.65);
  border-bottom: 1px solid rgba(201,162,74,0.35);

  box-shadow: inset 0 1px 0 rgba(201,162,74,0.25);

  padding: 36px 0;
  margin-top: 40px;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.footer-title{
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 6px;
}

.footer-text{ line-height: 1.55; }

.footer-copy{
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.85;
}

/* Backdrop für Mobile Drawer */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 50;
}

/* Desktop: Seite darf breiter werden */
@media (min-width: 1300px){
  .site-main,
  .topbar,
  .brand-row,
  .main-nav,
  .footer-inner{
    max-width: 1400px;
  }
}
@media (min-width: 1600px){
  .site-main,
  .topbar,
  .brand-row,
  .main-nav,
  .footer-inner{
    max-width: 1560px;
  }
}

/* Responsive */
@media (max-width: 900px){
  .home-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .brand-row{ gap: 12px; }

  .logo-img{ height: 52px; }
  .rune{ height: 26px; }
  .brand-mark{ gap: 12px; }

  .site-main{
    margin-top: 14px;
    border-radius: 20px;
    padding: 34px 16px 60px 16px;
  }

  .site-main::before{
    background-position: 50% 140px;
    background-size: min(700px, 120vw);
    opacity: 0.04;
  }

  .nav-toggle{ display:inline-block; }

  /* Nav wird Drawer */
  .main-nav{
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    padding: 20px 18px;
    background: linear-gradient(180deg, rgba(5,6,43,0.98), rgba(7,10,58,0.98));
    border-left: 1px solid rgba(201,162,74,0.25);
    z-index: 60;
    display: grid;
    align-content: start;
    gap: 10px;
    transition: right 220ms ease;
    letter-spacing: 0.08em;
  }

  .main-nav a{
    display:block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(201,162,74,0.06);
    border: 1px solid rgba(201,162,74,0.12);
    transform: none;
  }

  body.nav-open .main-nav{ right: 0; }
}

@media (max-width: 620px){
  .news-gallery.cols-2,
  .news-gallery.cols-3{ grid-template-columns: 1fr; }
  .news-gallery img{ height: 220px; }
}

@media (max-width: 520px){
  .rune-set{ display:none; }
  .logo-img{ height: 50px; }
}

/* HARD OVERRIDE (falls irgendwo noch alte Regeln drüber liegen) */
.site-header{
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18)) !important;
  border-bottom: 2px solid rgba(201,162,74,0.65) !important;
}



/* ==============================
   Kontaktformular (Styling)
   ============================== */

.kunden-nachricht-page .container{
  max-width: 980px;
  margin: 0 auto;
}

.kunden-nachricht-page .intro-container{
  margin-bottom: 18px;
}

.kunden-nachricht-page h1{
  margin: 0 0 10px 0;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* Status-Meldungen */
.success-message,
.error-message{
  border: 1px solid rgba(201,162,74,0.22);
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.08));
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  line-height: 1.55;
}

.success-message{
  border-color: rgba(90, 220, 170, 0.35);
  background: linear-gradient(180deg, rgba(90,220,170,0.10), rgba(0,0,0,0.10));
}

.error-message{
  border-color: rgba(255, 120, 120, 0.35);
  background: linear-gradient(180deg, rgba(255,120,120,0.10), rgba(0,0,0,0.10));
}

/* Formularlayout */
#kontakt-formular{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

#kontakt-formular .form-group{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#kontakt-formular .form-group.full-width{
  grid-column: 1 / -1;
}

#kontakt-formular label{
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

/* Inputs */
#kontakt-formular input[type="text"],
#kontakt-formular input[type="email"],
#kontakt-formular textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.18);
  background: rgba(0,0,0,0.18);
  color: var(--white);
  padding: 12px 12px;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

#kontakt-formular textarea{
  min-height: 170px;
  resize: vertical;
  padding: 12px 12px;
  line-height: 1.55;
}

#kontakt-formular input::placeholder,
#kontakt-formular textarea::placeholder{
  color: rgba(255,255,255,0.55);
}

#kontakt-formular input:focus,
#kontakt-formular textarea:focus{
  border-color: rgba(201,162,74,0.40);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 3px rgba(201,162,74,0.12);
}

/* Checkboxen sauber umbrechen + volle Breite */
#kontakt-formular .form-group.is-checkbox{
  grid-column: 1 / -1;
}

.checkbox-label{
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
}

.checkbox-label input[type="checkbox"]{
  margin-top: 3px;
  accent-color: var(--gold);
}

.checkbox-text{
  display: inline;
}

.checkbox-label a{
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,162,74,0.25);
}

.checkbox-label a:hover{
  border-bottom-color: rgba(201,162,74,0.55);
  text-decoration: none;
}

/* Button */
.btn-row{
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

#absendenButton,
button.glow{
  appearance: none;
  border: 1px solid rgba(201,162,74,0.32);
  background: linear-gradient(180deg, rgba(201,162,74,0.16), rgba(0,0,0,0.18));
  color: var(--gold);
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}

#absendenButton:hover,
button.glow:hover{
  border-color: rgba(201,162,74,0.55);
  background: linear-gradient(180deg, rgba(201,162,74,0.22), rgba(0,0,0,0.18));
  transform: translateY(-1px);
}

#absendenButton:active,
button.glow:active{
  transform: translateY(0px);
}

#absendenButton:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Mobile: 1 Spalte */
@media (max-width: 900px){
  #kontakt-formular{
    grid-template-columns: 1fr;
  }
}



/* ===== News Accordion + Lightbox ===== */

.news-accordion{
  display: grid;
  gap: 14px;
}

.year-panel{
  border: 1px solid rgba(201,162,74,0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.08));
  overflow: hidden;
}

.year-btn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--white);
  text-align: left;
}

.year-btn strong{
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.year-meta{
  opacity: 0.85;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.year-chevron{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(201,162,74,0.18);
  background: rgba(201,162,74,0.04);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--gold);
  flex: 0 0 auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.year-panel[open] .year-chevron{
  transform: rotate(180deg);
  background: rgba(201,162,74,0.08);
  border-color: rgba(201,162,74,0.26);
}

.year-body{
  padding: 0 16px 16px 16px;
  border-top: 1px solid rgba(201,162,74,0.12);
}

.news-list{
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.news-card{
  border: 1px solid rgba(201,162,74,0.16);
  border-radius: 16px;
  background: rgba(0,0,0,0.10);
  padding: 14px 14px 12px 14px;
}

.news-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.news-date{
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.news-title{
  margin: 8px 0 8px 0;
  color: var(--gold);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.news-text{
  margin: 0;
  line-height: 1.6;
  opacity: 0.98;
}

/* Galerie: 1-3 Bilder, max 250px hoch */
.news-gallery{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.news-gallery.cols-1{ grid-template-columns: 1fr; }
.news-gallery.cols-2{ grid-template-columns: 1fr 1fr; }
.news-gallery.cols-3{ grid-template-columns: 1fr 1fr 1fr; }

.news-gallery a{
  display:block;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(201,162,74,0.20);
  background: rgba(0,0,0,0.10);
}

.news-gallery img{
  width: 100%;
  height: 250px;
  max-height: 250px;
  object-fit: cover;
  display:block;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.78);
}

.lightbox.is-open{ display: flex; }

.lightbox-inner{
  position: relative;
  width: min(1100px, 96vw);
  max-height: 92vh;
  border-radius: 18px;
  border: 1px solid rgba(201,162,74,0.22);
  background: linear-gradient(180deg, rgba(10,12,60,0.92), rgba(0,0,0,0.55));
  box-shadow: 0 26px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}

.lightbox-img{
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0.12);
}

.lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.28);
  background: rgba(201,162,74,0.06);
  color: var(--gold);
  cursor: pointer;
  font-size: 18px;
  line-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-caption{
  padding: 10px 14px 12px 14px;
  border-top: 1px solid rgba(201,162,74,0.16);
  font-size: 13px;
  opacity: 0.92;
}

/* Mobile: Galerie untereinander */
@media (max-width: 620px){
  .news-gallery.cols-2,
  .news-gallery.cols-3{
    grid-template-columns: 1fr;
  }
}


/* =========================
   HORSE DETAIL PAGE
========================= */

.no-scroll{ overflow:hidden; }

.horse-head-top{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.horse-kicker{
  font-size: 12.5px;
  letter-spacing: .10em;
  opacity: .9;
  color: var(--gold);
}

.horse-title{
  margin: 6px 0 0 0;
  font-size: 32px;
  letter-spacing: .04em;
}

.horse-meta{
  min-width: 260px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(201,162,74,0.16);
  background: rgba(255,255,255,0.03);
}
.horse-meta div{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 4px 0;
}
.horse-meta span{
  opacity: .85;
}

.horse-media-grid{
  display:grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  align-items:start;
}

.horse-hero img{
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(201,162,74,0.18);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  display:block;
}

.horse-thumbs{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.horse-thumb img{
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.18);
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
  display:block;
}

.horse-feature img{
  width:100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(201,162,74,0.18);
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
  display:block;
}
.horse-feature-cap{
  margin-top: 10px;
  opacity: .92;
  line-height: 1.55;
}

.prose{
  line-height: 1.65;
}
.prose p{ margin: 0 0 12px 0; }

.list-clean{
  margin: 0;
  padding-left: 18px;
  display:grid;
  gap: 6px;
}

/* Pedigree */
.pedigree-table{
  margin-top: 12px;
  border: 1px solid rgba(201,162,74,0.18);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,0.02);
}
.ped-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.ped-row.head{
  background: rgba(0,0,0,0.12);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ped-row.head > div{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(201,162,74,0.12);
}
.ped-cell{
  padding: 12px;
  border-top: 1px solid rgba(201,162,74,0.12);
  border-right: 1px solid rgba(201,162,74,0.10);
}
.ped-row .ped-cell:last-child{ border-right: 0; }
.ped-cell.strong{
  font-weight: 700;
  color: var(--gold);
}
.ped-cell span{
  display:block;
  opacity: .92;
  color: var(--white);
  font-weight: 500;
}

/* Accordion */
.accordion{
  margin-top: 10px;
  display:grid;
  gap: 10px;
}
.acc-item{
  border: 1px solid rgba(201,162,74,0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  overflow:hidden;
}
.acc-summary{
  cursor:pointer;
  padding: 12px 14px;
  color: var(--gold);
  letter-spacing: .04em;
  list-style:none;
}
.acc-summary::-webkit-details-marker{ display:none; }
.acc-item[open] .acc-summary{
  background: rgba(201,162,74,0.06);
  border-bottom: 1px solid rgba(201,162,74,0.12);
}
.acc-body{
  padding: 14px;
}

/* Gallery */
.gallery-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item img{
  width:100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.18);
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
  display:block;
}

/* Button */
.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.22);
  background: rgba(201,162,74,0.06);
  color: var(--gold);
  text-decoration:none;
}
.btn:hover{
  background: rgba(201,162,74,0.10);
  text-decoration:none;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.78);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.lightbox-img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 16px;
  border: 1px solid rgba(201,162,74,0.22);
  box-shadow: 0 26px 60px rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.25);
}
.lightbox-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(201,162,74,0.22);
  background: rgba(0,0,0,0.35);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  cursor:pointer;
}

/* Responsive */
@media (max-width: 980px){
  .horse-media-grid{ grid-template-columns: 1fr; }
  .horse-thumbs{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .ped-row{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .horse-title{ font-size: 26px; }
  .horse-thumbs{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
}


/* =========================
   HORSE LIST (horses.php / sale.php)
========================= */

.muted{ opacity:.85; line-height:1.55; }

.horse-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.horse-tile{
  display:block;
  border: 1px solid rgba(201,162,74,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.10));
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
}

.horse-tile:hover{
  border-color: rgba(201,162,74,0.28);
  text-decoration:none;
}

.horse-tile-img{
  position:relative;
  height: 180px;
  background: rgba(255,255,255,0.02);
}

.horse-tile-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.horse-tile-body{
  padding: 12px 12px 14px 12px;
}

.horse-tile-title{
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 4px;
}

.horse-tile-sub{
  opacity: .9;
  margin-bottom: 6px;
}

.horse-tile-meta{
  font-size: 12.5px;
  opacity: .9;
  margin-top: 4px;
}

.horse-tile-note{
  margin-top: 8px;
  line-height: 1.55;
  opacity: .92;
}

/* Badges */
.horse-badge{
  position:absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  border: 1px solid rgba(201,162,74,0.22);
  background: rgba(0,0,0,0.35);
  color: var(--gold);
  backdrop-filter: blur(4px);
}
.horse-badge.sale{ }
.horse-badge.sold{
  opacity: .95;
}

/* Sale category title */
.sale-cat-title{
  margin: 0 0 10px 0;
  color: var(--gold);
  letter-spacing: .06em;
}

/* Responsive */
@media (max-width: 980px){
  .horse-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .horse-grid{ grid-template-columns: 1fr; }
  .horse-tile-img{ height: 200px; }
}


/* ===== Lightbox / Overlay (Horse + Galerie) ===== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;                 /* muss über nav-backdrop liegen */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,0.78);
}

.lightbox.is-open{ display: flex; }

.lightbox__inner{
  position: relative;
  width: min(1100px, 94vw);
  max-height: 90vh;
  border-radius: 18px;
  border: 1px solid rgba(201,162,74,0.25);
  background: linear-gradient(180deg, rgba(10,12,46,0.95), rgba(5,6,43,0.95));
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}

.lightbox__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,74,0.45);
  background: rgba(201,162,74,0.06);
  color: var(--gold);
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
}

.lightbox__close:hover{
  background: rgba(201,162,74,0.12);
}

/* Wenn Lightbox offen ist: Hintergrund nicht scrollen */
body.lightbox-open{ overflow: hidden; }

/* Wichtig: dein Nav-Backdrop darf dann nicht im Weg sein */
body.lightbox-open .nav-backdrop{
  display: none !important;
}
