/* ==========================================================================
   components.css — Wiederverwendbare Komponenten
   Raumausstatter Köln
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform 0.2s ease-out;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

/* Primär: ausgefüllt Terrakotta */
.btn-primary {
  background: var(--color-accent-2);
  color: #fff;
  border: 2px solid var(--color-accent-2);
}

.btn-primary:hover {
  background: #b3705a;
  border-color: #b3705a;
}

/* Outline: Terrakotta-Rahmen */
.btn-outline {
  background: transparent;
  color: var(--color-accent-2);
  border: 2px solid var(--color-accent-2);
}

.btn-outline:hover {
  background: var(--color-accent-2);
  color: #fff;
}

/* Ghost: für Dark Background */
.btn-ghost {
  background: transparent;
  color: var(--color-hover);
  border: 2px solid var(--color-accent-1);
}

.btn-ghost:hover {
  background: var(--color-hover);
  color: var(--color-text);
  border-color: var(--color-hover);
}

/* Kleiner Abstand für Nav-Button */
.btn-nav {
  padding: 0.625rem 1.375rem;
  font-size: var(--text-xs);
}

/* ==========================================================================
   LABEL (Kategorie-Tag)
   ========================================================================== */

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-1);
}

/* ==========================================================================
   KARTE (Service Card)
   ========================================================================== */

.card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: var(--transition-card);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card .label {
  margin-bottom: 0.25rem;
}

.card h3 {
  font-size: var(--text-xl);
  color: var(--color-text);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.85;
  flex-grow: 1;
}

.card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  transition: gap var(--transition-base);
}

.card-link:hover {
  gap: 0.625rem;
}

/* ==========================================================================
   TESTIMONIAL-KARTE
   ========================================================================== */

.testimonial {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testimonial-quote::before {
  content: '\201E';
  color: var(--color-accent-2);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1em;
}

.testimonial-quote::after {
  content: '\201C';
  color: var(--color-accent-2);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-left: 0.1em;
}

.testimonial-author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial-author strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ==========================================================================
   TRENNLINIE
   ========================================================================== */

.divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent-1);
  border: none;
  margin-bottom: 2rem;
}

.divider.centered {
  margin-inline: auto;
}

/* ==========================================================================
   ARTIKEL-HEADER (Ratgeber)
   ========================================================================== */

.artikel-header {
  margin-bottom: 2.5rem;
}

.artikel-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.artikel-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.artikel-img-main {
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.artikel-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ==========================================================================
   CTA INLINE (in Artikel)
   ========================================================================== */

.artikel-cta-box {
  background: var(--color-hover);
  padding: 2rem;
  border-left: 3px solid var(--color-accent-2);
  margin-top: 3rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.artikel-cta-box p {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ==========================================================================
   BADGE / TAG
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-hover);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   HIGHLIGHT-TEXT (Zahlen im Fließtext)
   ========================================================================== */

.text-highlight {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--text-2xl);
  color: var(--color-accent-2);
}

/* ==========================================================================
   ADRESS-BLOCK
   ========================================================================== */

.address-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.address-block dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-1);
  margin-top: 1rem;
}

.address-block dt:first-child {
  margin-top: 0;
}

.address-block dd {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.address-block a {
  color: var(--color-accent-2);
  transition: color var(--transition-base);
}

.address-block a:hover {
  color: var(--color-text);
}

/* ==========================================================================
   VORHER / NACHHER SLIDER
   ========================================================================== */

.vn-section {
  background: var(--color-surface);
}

.vn-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.vn-intro h2 {
  margin-bottom: 1rem;
}

.vn-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.vn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 3rem;
}

.vn-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vn-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-1);
}

.vn-caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Der eigentliche Slider */
.vn-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow-card-hover);
}

.vn-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vn-slider .vn-after {
  z-index: 1;
}

/* Vorher-Bild wird durch clip-path enthüllt */
.vn-slider .vn-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0); /* initial: 50% sichtbar */
}

/* Trennlinie */
.vn-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Anfasser */
.vn-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.vn-slider:hover .vn-handle,
.vn-slider.dragging .vn-handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Pfeil-Chevrons im Anfasser */
.vn-handle::before,
.vn-handle::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-style: solid;
  border-color: var(--color-text);
}

.vn-handle::before {
  border-width: 2px 0 0 2px;
  transform: rotate(-45deg) translateX(1px);
}

.vn-handle::after {
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg) translateX(-1px);
}

/* Labels Vorher / Nachher */
.vn-badge {
  position: absolute;
  bottom: 14px;
  z-index: 5;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.vn-badge-before {
  left: 14px;
  background: rgba(46, 38, 34, 0.75);
  color: #fff;
}

.vn-badge-after {
  right: 14px;
  background: var(--color-accent-2);
  color: #fff;
}
