/* ===== Detailansicht – Variables & Basics ===== */
.page-links {
	display:none;
}
.oo-detailsgallery .slick-prev::before,
.oo-detailsgallery .slick-next::before {
	display: none!important;
}
.oo-detailview {
  --oo-radius: 18px;
  --oo-gap: 18px;
  --oo-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  --oo-border: 1px solid rgb(0 0 0 / 8%);
  --oo-text: #2a2c2e;         /* slate-900 */
  --oo-muted: #475569;        /* slate-600 */
  --oo-soft:  #e2e8f0;        /* slate-200 */
  --oo-accent: #0ea5e9;       /* sky-500 – gern auf CI-Farbe ändern */
  color: var(--oo-text);
}

/* Headline */
.oo-detailsheadline h1 {
  margin: clamp(10px, 1.6vw, 18px) 0 var(--oo-gap);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  color: var(--oo-text);
}

/* ===== Galerie – Container ===== */
.oo-detailsgallery {
  position: relative;
  border-radius: var(--oo-radius);
  overflow: clip;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: var(--oo-shadow);
  border: var(--oo-border);
}

/* Gleichmäßige Bildhöhe via aspect-ratio; Bilder sauber beschneiden */
.oo-detailspicture {
  aspect-ratio: 16 / 10;           /* Desktop */
  width: 100%;
}
@media (max-width: 768px) {
  .oo-detailspicture { aspect-ratio: 4 / 3; } /* Mobile: etwas höher */
}

/* Bilder immer vollflächig */
.oo-detailspicture picture,
.oo-detailspicture img {
  display: block;
  width: 100%;
  height: 100%;
}
.oo-detailspicture img {
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

/* Kleiner Hover-Effekt (wird bei reduced motion ausgeschaltet) */
@media (hover:hover) and (pointer:fine) {
  .slick-current .oo-detailspicture img { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .oo-detailspicture img { transition: none; }
}

/* ===== Slick – Pfeile neu & zugänglich ===== */
.oo-detailsgallery .slick-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 35%);
  background: rgb(15 23 42 / 55%);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  opacity: .95;
}
.oo-detailsgallery .slick-arrow:hover { background: rgb(15 23 42 / 70%); transform: translateY(-50%) scale(1.04); }
.oo-detailsgallery .slick-prev { left: 12px; }
.oo-detailsgallery .slick-next { right: 12px; }

/* Eigene Pfeil-Icons über ::before (SVG-Mask) */
.oo-detailsgallery .slick-prev::before,
.oo-detailsgallery .slick-next::before {
  content: "";
  display: block;
  width: 16px; height: 16px;
  background: white;
  mask-size: cover; -webkit-mask-size: cover;
}
.oo-detailsgallery .slick-prev::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000" viewBox="0 0 24 24"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/></svg>");
}
.oo-detailsgallery .slick-next::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000" viewBox="0 0 24 24"><path d="m10 6 1.41 1.41L8.83 10H18v2H8.83l2.58 2.59L10 16l-6-6z"/></svg>');
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path d='m10 6 1.41 1.41L8.83 10H18v2H8.83l2.58 2.59L10 16l-6-6z'/></svg>");
}

/* Screenreader-Text im Button sichtbar machen, Icon dekorativ */
.oo-detailsgallery .slick-arrow .slick-sr-only {
  position: static;
  width: auto; height: auto; clip: auto;
  margin-left: 8px;
  color: #fff;
  font-size: 0; /* bleibt für Screenreader, visuell ausgeblendet */
}

/* ===== Slick – Dots schick & klickbar ===== */
.oo-detailsgallery .slick-dots {
  position: absolute;
  display: flex !important;
  gap: 8px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 3;
  padding: 6px 10px;
  background: rgb(15 23 42 / 55%);
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 35%);
  backdrop-filter: blur(6px);
}
.oo-detailsgallery .slick-dots li { margin: 0; }
.oo-detailsgallery .slick-dots button {
  width: 8px; height: 8px; border-radius: 999px;
  background: #fff; opacity: .45;
  border: 0; padding: 0; text-indent: -9999px;
}
.oo-detailsgallery .slick-dots .slick-active button { opacity: 1; width: 18px; }

/* ===== Galerie-UI: Zähler + Vollbild-Button ===== */
.oo-gallery-ui {
  position: absolute; inset: auto 12px 12px auto;
  display: flex; gap: 10px; align-items: center; z-index: 4;
}
.oo-gallery-counter {
  padding: 6px 10px;
  font-size: .9rem; color: #fff;
  background: rgb(15 23 42 / 65%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.oo-fs-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 35%);
  background: rgb(15 23 42 / 65%);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.oo-fs-btn:hover { transform: scale(1.04); background: rgb(15 23 42 / 80%); }
.oo-fs-btn::before {
  content: ""; width: 18px; height: 18px; background: #fff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm12 5h-5v-2h3v-3h2v5zM7 7h3V5H5v5h2V7zm10 0h-3V5h5v5h-2V7z"/></svg>') no-repeat center / cover;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path d='M7 14H5v5h5v-2H7v-3zm12 5h-5v-2h3v-3h2v5zM7 7h3V5H5v5h2V7zm10 0h-3V5h5v5h-2V7z'/></svg>") no-repeat center / cover;
}

/* Vollbild-Modus: Ecken begradigen, Bild höher */
:fullscreen .oo-detailsgallery {
  border-radius: 0; border: none; box-shadow: none;
}
:fullscreen .oo-detailspicture { aspect-ratio: 16 / 9; }

/* Kleine Politur: Abstand zur Headline */
.oo-details-main { margin-top: var(--oo-gap); }

/* Dark Mode Unterstützung */
@media (prefers-color-scheme: dark) {
  .oo-detailview { --oo-text:#2a2c2e; --oo-muted:#94a3b8; --oo-soft:#334155; }
  .oo-detailsgallery { background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%); border-color: rgb(255 255 255 / 7%); }
}


/* ===========================
   Kontakt-Formular – Styling
   =========================== */

.detail-contact-form {
  --gap: 14px;
  --radius: 12px;
  --border: 1px solid #e5e7eb;   /* hellgrau */
  --focus: 0 0 0 3px rgba(59,130,246,.15); /* blaues Focus-Glühen */
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  max-width: 720px;
}

.detail-contact-form h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
}

/* --- Anti-Spam (Honeypot) komplett ausblenden --- */
#onoffice-form .message,
#onoffice-form label.message {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --- Grundlayout --- */
#onoffice-form {
  display: block;                 /* bewusst einspaltig für sauberes Markup */
  font-size: 16px;
  color: #111827;
}

/* Zeilenumbrüche stören nicht – wir nutzen Abstände an den Feldern */
#onoffice-form br { display: none; }

/* Inputs & Textarea */
#onoffice-form input[type="text"],
#onoffice-form input[type="email"],
#onoffice-form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin: 6px 0 16px;             /* vertikale Abstände zwischen den Feldern */
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  outline: 0;
  line-height: 1.25;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
}

#onoffice-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Fokuszustand */
#onoffice-form input[type="text"]:focus,
#onoffice-form input[type="email"]:focus,
#onoffice-form textarea:focus {
  border-color: #3b82f6;
  box-shadow: var(--focus);
}

/* Dezentere Platzhalter */
#onoffice-form ::placeholder { color: #9ca3af; }

/* Button */
#onoffice-form .submit_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: #e1e1e1;            /* fast schwarz */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 20px rgba(17,24,39,.18);
}

#onoffice-form .submit_button:hover { opacity: .95; }
#onoffice-form .submit_button:active { transform: translateY(1px); }
#onoffice-form .onoffice-unclickable-form {
  opacity: .6; cursor: not-allowed;
}

/* reCAPTCHA-Container soll das Layout nicht sprengen */
#onoffice-form .g-recaptcha {
  margin-top: -6px;               /* näher an den Button */
}

/* Barrierefreiheit: sichtbarer Tastaturfokus beim Button */
#onoffice-form .submit_button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

/* Dunkles Theme Support (falls Seite dark ist) */
@media (prefers-color-scheme: dark) {
  .detail-contact-form { background:#e1e1e1; border-color:#1f2937; box-shadow:none; }
  .detail-contact-form h3, #onoffice-form { color:##606060; }
  #onoffice-form input[type="text"],
  #onoffice-form input[type="email"],
  #onoffice-form textarea {
    background:#e1e1e1;
    border-color:#374151;
    color:#606060;
  }
  #onoffice-form ::placeholder { color:##606060; }
  #onoffice-form .submit_button { background:#2563eb; }
}
