/* Custom Styles für Kirby + Rhye */
/* Nur Ergänzungen zu Ryhe main.css! */

/* ============================================
   CSS VARIABLEN OVERRIDE
   ============================================ */

:root {
  --font-primary: 'Raleway', sans-serif;
  --font-secondary: 'Cinzel', serif;
  --paragraph-min-font-size: 16;
  --paragraph-max-font-size: 18;
  --paragraph-line-height: 1.8;
}

/* ============================================
   HTML & BODY
   ============================================ */

html,
body {
  background-color: var(--color-dark-1);
}

/* ============================================
   FLIESSTEXT: Raleway
   ============================================ */

p,
.paragraph {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================
   POST CONTENT: Listen (UL & OL)
   Gleiche Schriftgröße & line-height wie <p>
   ============================================ */

.post__content ul,
.post__content ol,
.post__content li {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: calc(var(--paragraph-min-font-size) * 1px);
  line-height: var(--paragraph-line-height);
  letter-spacing: 0.01em;
}

@media screen and (min-width: 320px) {
  .post__content ul,
  .post__content ol,
  .post__content li {
    font-size: calc(var(--paragraph-min-font-size) * 1px + (var(--paragraph-max-font-size) - var(--paragraph-min-font-size)) * ((100vw - 320px) / 2240));
  }
}

@media screen and (min-width: 2560px) {
  .post__content ul,
  .post__content ol,
  .post__content li {
    font-size: calc(var(--paragraph-max-font-size) * 1px);
  }
}

/* UL Styling */
.post__content ul {
  list-style-type: none;
  padding: 0;
  padding-left: 0.25em;
  margin: 0;
  margin-bottom: 1.5em;
}

.post__content ul li {
  display: block;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  position: relative;
  padding-left: 1.5em;
}

.post__content ul > li:before {
  content: "";
  display: block;
  width: 10px;
  height: 1px;
  background-color: currentColor;
  position: absolute;
  left: 0;
  top: 0.9em;
  opacity: 0.4;
}

/* Verschachtelte UL */
.post__content ul ul,
.post__content ul ol {
  padding-left: 0.5em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.post__content ul ul > li:before {
  width: 6px;
  opacity: 0.3;
}

/* OL Styling */
.post__content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  list-style-type: decimal;
  list-style-position: outside;
}

.post__content ol li {
  display: list-item;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  padding-left: 0.5em;
}

/* Verschachtelte OL */
.post__content ol ul,
.post__content ol ol {
  padding-left: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* P-Tags innerhalb von Listen: Margins entfernen */
.post__content li p {
  margin: 0;
  padding: 0;
}

/* Light Theme Listen */
[data-arts-theme-text="light"] .post__content ul > li:before {
  background-color: var(--paragraph-color-light);
}

/* ============================================
   LEAD TEXT: Größer für Intro-Bereiche
   ============================================ */

.paragraph-lead,
.section-content__header p {
  font-size: calc(18 * 1px) !important;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

@media screen and (min-width: 320px) {
  .paragraph-lead,
  .section-content__header p {
    font-size: calc(18px + (20 - 18) * ((100vw - 320px) / 2240)) !important;
  }
}

@media screen and (min-width: 2560px) {
  .paragraph-lead,
  .section-content__header p {
    font-size: calc(20 * 1px) !important;
  }
}

/* ============================================
   VIDEO EMBED (DSGVO-konform)
   ============================================ */

.video-embed {
  width: 100%;
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-embed video,
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

/* Custom Aspect Ratios via inline style überschreiben */
.video-embed video[style*="aspect-ratio"],
.video-embed iframe[style*="aspect-ratio"] {
  aspect-ratio: unset;
}

/* Fokus-Stil für Barrierefreiheit */
.video-embed iframe:focus {
  outline: 2px solid var(--color-dark-1);
  outline-offset: 2px;
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.post__content pre {
  background-color: var(--color-dark-1);
  color: #f8f8f2;
  padding: 1.5em;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  line-height: 1.6;
}

.post__content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ============================================
   PERFORMANCE OPTIMIERUNGEN (Safari Fix)
   ============================================ */

.section-masthead,
.section-masthead__background,
.section-masthead__bg-video,
.section-masthead__bg-video video,
[data-arts-parallax],
.js-transition-img,
.js-transition-img__transformed-el {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  will-change: transform;
}

.section-masthead__bg-video video {
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  transform: translate(-50%, -50%) translateZ(0);
}

/* ============================================
   VIDEO BACKGROUND (Hero)
   ============================================ */

.section-masthead__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.section-masthead__bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* ============================================
   LOGO (Hero) - Oben zentriert mit magnetischem Effekt
   Größe: 60px (wie Back-Button Kreis)
   ============================================ */

.section-masthead__top-logo {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 100;
}

.section-masthead__top-logo .hero-logo-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.section-masthead__top-logo .hero-logo-magnetic a {
  display: block;
  line-height: 0;
}

.section-masthead__top-logo img {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 991px) {
  .section-masthead__top-logo img {
    height: 36px;
  }
}

/* Legacy Logo (Startseite) */
.section-masthead__wrapper-logo {
  position: absolute;
  top: var(--gutter-vertical);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 100;
}

.hero-logo-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-logo-magnetic a {
  display: block;
  line-height: 0;
}

.section-masthead__logo {
  max-height: 80px;
  width: auto;
  display: block;
}

/* ============================================
   SCROLL-DOWN BUTTON
   ============================================ */

.section-masthead__wrapper-scroll-down {
  bottom: 30px !important;
}

@media (max-width: 991px) {
  .section-masthead__wrapper-scroll-down {
    bottom: 20px !important;
  }
}

/* ============================================
   LEISTUNGEN SECTIONS
   ============================================ */

.section-services .section-video {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.section-services .section-video video {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .section-services .section-video {
    min-height: 500px;
  }
  .section-services .section-video video {
    min-height: 500px;
  }
}

.section-services.section-content {
  padding-top: 0;
  padding-bottom: 0;
}

.section-services__wrapper-content {
  padding: 20px 15px;
}

@media (min-width: 992px) {
  .section-services__wrapper-content {
    padding: 30px 20px;
  }
}

[data-arts-theme-text="light"] .section-services__letter {
  color: rgb(255, 255, 255);
}

@media (max-width: 991px) {
  .section-services .section-content__image {
    margin-bottom: 30px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .section-services__wrapper-content {
    text-align: center;
  }
  .section-services__wrapper-content .section__headline {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   SERVICES SLIDER (Dunkler Stil)
   ============================================ */

.figure-service.bg-dark-2 {
  background-color: var(--color-dark-2);
  color: var(--paragraph-color-light);
}

.figure-service.bg-dark-2 .figure-service__heading,
.figure-service.bg-dark-2 .figure-service__heading h2,
.figure-service.bg-dark-2 .figure-service__text,
.figure-service.bg-dark-2 .figure-service__text p,
.figure-service.bg-dark-2 .figure-service__amount,
.figure-service.bg-dark-2 .figure-service__header {
  color: var(--paragraph-color-light);
}

[data-arts-theme-text="light"] .slider-services .slider__counter,
[data-arts-theme-text="light"] .slider-services .slider__total {
  color: var(--paragraph-color-light);
}

[data-arts-theme-text="light"] .slider__dot .circle {
  stroke: rgba(255, 255, 255, 0.3);
}

[data-arts-theme-text="light"] .slider__dot_active .circle {
  stroke: #ffffff;
}

.figure-service__content.p-small {
  padding: 30px;
}

@media (min-width: 992px) {
  .figure-service__content.p-small {
    padding: 40px;
  }
}

.figure-service__wrapper-bg {
  min-height: 300px;
}

@media (min-width: 992px) {
  .figure-service__wrapper-bg {
    min-height: 400px;
  }
}

/* ============================================
   BILDSCHUTZ
   ============================================ */

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.slider img,
.swiper-container img,
.js-slider-images img {
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */

#page-footer .logo img {
  height: 40px !important;
  width: auto !important;
}

.footer.bg-light-1 {
  background-color: var(--color-light-1);
}

.footer.bg-light-1 a {
  color: rgba(0, 0, 0, 0.6);
}

.footer.bg-light-1 a:hover {
  color: var(--color-dark-1);
}

.footer__area-border-top-dark {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social__item a {
  color: inherit;
}

/* ============================================
   PLAY BUTTON
   ============================================ */

.section-video__container .arrow__triangle {
  border-width: 10px 0 10px 16px !important;
}

.section-video__container .circle-button:hover .arrow__triangle {
  border-left-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   UTILITY CLASSES (für Block CSS-Klassen)
   ============================================ */

/* Border Radius */
.rounded-sm { border-radius: 8px; overflow: hidden; }
.rounded { border-radius: 15px; overflow: hidden; }
.rounded-lg { border-radius: 25px; overflow: hidden; }
.rounded-xl { border-radius: 40px; overflow: hidden; }
.rounded-full { border-radius: 9999px; overflow: hidden; }

/* Schatten */
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.shadow-xl { box-shadow: 0 20px 60px rgba(0,0,0,0.2); }

/* Rahmen */
.border { border: 1px solid rgba(0,0,0,0.1); }
.border-2 { border: 2px solid rgba(0,0,0,0.1); }
.border-dark { border: 1px solid rgba(0,0,0,0.3); }
.border-light { border: 1px solid rgba(255,255,255,0.2); }

/* Abstände */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Breite */
.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-full { width: 100%; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }

/* Zentrierung */
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Opacity */
.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.5; }
.opacity-25 { opacity: 0.25; }

/* Filter */
.grayscale { filter: grayscale(100%); }
.grayscale-50 { filter: grayscale(50%); }
.blur-sm { filter: blur(2px); }

/* Hover */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.02); }
.hover-brightness { transition: filter 0.3s ease; }
.hover-brightness:hover { filter: brightness(1.1); }

/* ============================================
   UNIFORM HONEYPOT (Spam-Schutz)
   ============================================ */

.uniform__potty {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================
   SURVEY FORM - Modern Wizard Style
   ============================================ */

/* Header */
.survey-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-light-1);
}

/* Alert */
.survey-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.survey-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.survey-alert p {
  margin: 0;
}

/* Stepper */
.survey-stepper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.survey-stepper__track {
  flex: 1;
  height: 4px;
  background: var(--color-light-1);
  border-radius: 2px;
  overflow: hidden;
}

.survey-stepper__progress {
  height: 100%;
  background: var(--color-dark-1);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-stepper__info {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--color-gray-1);
  white-space: nowrap;
}

.survey-stepper__current {
  font-weight: 600;
  color: var(--color-dark-1);
}

/* Steps */
.survey-step {
  display: none;
}

.survey-step.is-active {
  display: block;
  animation: surveyFadeIn 0.3s ease;
}

@keyframes surveyFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card */
.survey-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.survey-step__header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-light-1);
}

.survey-step__label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-1);
  margin-bottom: 0.25rem;
}

.survey-step__title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-dark-1);
}

.survey-step__content {
  padding: 2rem;
}

/* Questions */
.survey-question {
  margin-bottom: 2rem;
}

.survey-question:last-child {
  margin-bottom: 0;
}

.survey-question__label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-dark-1);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.survey-question__num {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-gray-1);
  margin-right: 0.5rem;
}

.survey-question__req {
  color: #dc3545;
  margin-left: 0.25rem;
}

/* Chips (Checkboxes & Radio als Tags) */
.survey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.survey-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--color-light-3);
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  user-select: none;
}

.survey-chip:hover {
  background: var(--color-light-1);
}

.survey-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.survey-chip input:checked + .survey-chip__text {
  color: white;
}

.survey-chip:has(input:checked) {
  background: var(--color-dark-1);
  border-color: var(--color-dark-1);
}

.survey-chip__text {
  color: var(--color-dark-3);
  transition: color 0.2s ease;
}

/* Fallback für Browser ohne :has() */
.survey-chip input:checked ~ .survey-chip__text {
  color: white;
}

/* Groups */
.survey-group {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--color-light-3);
  border-radius: 8px;
}

.survey-group:last-child {
  margin-bottom: 0;
}

.survey-group__title {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-dark-2);
  margin-bottom: 0.75rem;
}

.survey-group .survey-chip {
  background: white;
}

.survey-group .survey-chip:hover {
  background: var(--color-light-2);
}

/* Input Fields */
.survey-field {
  max-width: 100%;
}

.survey-field--small {
  max-width: 300px;
}

.survey-field--inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
}

.survey-field__suffix {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--color-gray-1);
}

.survey-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-dark-1);
  background: var(--color-light-3);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.survey-input:focus {
  background: white;
  border-color: var(--color-dark-1);
}

.survey-input::placeholder {
  color: var(--color-gray-1);
}

.survey-input--large {
  font-size: 1.25rem;
  padding: 1rem 1.25rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.survey-input--number {
  text-align: center;
  -moz-appearance: textfield;
}

.survey-input--number::-webkit-outer-spin-button,
.survey-input--number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.survey-input--textarea {
  min-height: 100px;
  resize: vertical;
}

.survey-input[readonly] {
  background: var(--color-light-1);
  color: var(--color-gray-1);
}

/* Navigation */
.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.survey-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.survey-nav__btn--prev {
  background: transparent;
  color: var(--color-gray-1);
}

.survey-nav__btn--prev:hover:not(:disabled) {
  color: var(--color-dark-1);
}

.survey-nav__btn--prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.survey-nav__btn--next,
.survey-nav__btn--submit {
  background: var(--color-dark-1);
  color: white;
}

.survey-nav__btn--next:hover,
.survey-nav__btn--submit:hover {
  background: var(--color-dark-2);
}

.survey-nav__btn--submit {
  background: #059669;
}

.survey-nav__btn--submit:hover {
  background: #047857;
}

.survey-nav__btn--submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Success */
.survey-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: #d1fae5;
  border-radius: 50%;
}

.survey-success__icon svg {
  stroke: #059669;
}

/* Mobile */
@media (max-width: 768px) {
  .survey-step__header {
    padding: 1.25rem 1.25rem;
  }
  
  .survey-step__title {
    font-size: 1.25rem;
  }
  
  .survey-step__content {
    padding: 1.5rem 1.25rem;
  }
  
  .survey-chips {
    gap: 0.4rem;
  }
  
  .survey-chip {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
  }
  
  .survey-question {
    margin-bottom: 1.5rem;
  }
  
  .survey-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .survey-nav__btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }
  
  .survey-nav__btn--prev {
    order: 2;
  }
  
  .survey-nav__btn--next,
  .survey-nav__btn--submit {
    order: 1;
    flex: 2;
  }
}

/* ==========================================================================
   Blog Article Navigation
   ========================================================================== */

.section-article-nav {
  display: flex;
  align-items: center;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 3rem;
}

.article-nav__prev,
.article-nav__next {
  flex: 1;
  min-width: 0;
}

.article-nav__prev {
  text-align: left;
}

.article-nav__next {
  text-align: right;
}

.article-nav__prev a,
.article-nav__next a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.article-nav__prev a:hover,
.article-nav__next a:hover {
  opacity: 0.7;
}

.article-nav__arrow {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.article-nav__prev a:hover .article-nav__arrow {
  transform: translateX(-4px);
}

.article-nav__next a:hover .article-nav__arrow {
  transform: translateX(4px);
}

.article-nav__title {
  margin: 0;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Responsive */
@media (max-width: 767px) {
  .article-nav {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .article-nav__prev,
  .article-nav__next {
    width: 100%;
    text-align: center;
  }
}

/* Print */
@media print {
  .survey-stepper,
  .survey-nav {
    display: none;
  }
  
  .survey-step {
    display: block !important;
    page-break-inside: avoid;
  }
  
  .survey-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
