/* ==========================================================================
   Page-Specific Styles — Treppenidee Redesign
   Mobile-first: base = mobile, media queries at bottom
   ========================================================================== */

/* ---- Screen-reader only (skip link) ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  z-index: 9999;
}

/* ---- Logo Text ---- */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition);
}

.header--solid .logo-text {
  color: var(--color-primary);
}

/* ---- Hero Trust Bar ---- */
.hero__trust-bar {
  margin-top: 2.5rem;
  color: var(--color-white);
}

.hero__trust-bar .trust-bar__icon {
  color: var(--color-white);
  opacity: 0.9;
}

.hero__trust-bar .trust-bar__item {
  color: var(--color-white);
  opacity: 0.95;
}

/* ---- Hero secondary button (white outline on dark bg) ---- */
.btn--white-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

.btn--white-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* ---- Card as link (remove default anchor styles) ---- */
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover .card__link {
  text-decoration: underline;
}

/* ---- Section CTA (centered button below content) ---- */
.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---- USP Section ---- */
.usp-grid {
  align-items: center;
}

.usp-content .section__title {
  text-align: left;
  margin-bottom: 2rem;
}

.usp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.usp-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.usp-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-accent);
}

.usp-item__icon svg {
  width: 48px;
  height: 48px;
}

.usp-item__title {
  font-size: var(--font-size-h3);
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.usp-item__text {
  color: var(--color-text-light);
  font-size: var(--font-size-body);
  line-height: var(--line-height);
}

/* USP image — hidden on mobile, shown on tablet+ via grid-2 */
.usp-image {
  display: none;
}

/* ---- Before/After Slider aspect ratio ---- */
.ba-slider {
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Footer address ---- */
.footer__address {
  font-style: normal;
  line-height: var(--line-height);
}

.footer__address p + p {
  margin-top: 0.5rem;
}

/* ---- Footer legal links ---- */
.footer__legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer__legal a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__legal a:hover {
  opacity: 1;
}

/* ---- Mobile menu phone ---- */
.mobile-menu__phone {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent) !important;
}

/* ---- Header link color on transparent header ---- */
.site-header:not(.header--solid) .site-header__nav a {
  color: var(--color-white);
}

.site-header:not(.header--solid) .site-header__nav a:hover,
.site-header:not(.header--solid) .site-header__nav a.active {
  color: var(--color-accent);
}

.site-header:not(.header--solid) .hamburger span {
  background: var(--color-white);
}

.site-header:not(.header--solid) .header-phone {
  color: var(--color-white);
}

/* ==========================================================================
   Responsive overrides for page-specific elements
   ========================================================================== */

/* ---- Gallery filter ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { padding: 0.5rem 1.25rem; border: 2px solid var(--color-primary); border-radius: 2rem; background: transparent; color: var(--color-primary); font-weight: 600; font-size: var(--font-size-small); cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn--active { background: var(--color-primary); color: var(--color-white); }

/* ---- Team Cards ---- */
.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.team-card__initials {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-heading);
}

.team-card__name {
  font-size: var(--font-size-h3);
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.team-card__role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card__text {
  color: var(--color-text-light);
  line-height: var(--line-height);
}

/* ---- Text Content Block ---- */
.text-content {
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--line-height);
  color: var(--color-text);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-bg-alt);
}

.timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__number {
  position: absolute;
  left: -3rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.timeline__content h3 {
  margin-bottom: 0.5rem;
}

.timeline__content p {
  color: var(--color-text-light);
  line-height: var(--line-height);
}

/* ---- FAQ Accordion ---- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-bg-alt);
}

.faq-question {
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: var(--transition);
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ==========================================================================
   Responsive overrides for page-specific elements
   ========================================================================== */

/* ---- Contact Page ---- */
.contact-info {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__item svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-info__item a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-info__item a:hover {
  color: var(--color-accent);
}

.contact-map {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Responsive overrides for page-specific elements
   ========================================================================== */

/* ---- Landing Pages ---- */
.landing-header {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: relative;
}

.landing-footer {
  border-top: 1px solid var(--color-bg-alt);
}

.landing-footer a {
  color: var(--color-text-light);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--color-primary);
}

.landing-form {
  max-width: 500px;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.landing-form .btn {
  width: 100%;
}

.landing-form .form-label {
  color: var(--color-text);
}

.landing-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.landing-hero-text {
  text-align: center;
}

/* Before/After pair labels */
.ba-pair {
  position: relative;
}

.ba-pair__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  font-size: var(--font-size-small);
  border-radius: var(--radius);
  z-index: 1;
}

/* Service area city list */
.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
}

.service-area-list li {
  padding: 0.5rem 1rem;
  background: var(--color-bg-alt);
  border-radius: 2rem;
  font-weight: 600;
  font-size: var(--font-size-small);
}

@media (min-width: 768px) {
  .usp-image {
    display: block;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .landing-hero-grid {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .landing-hero-text {
    text-align: left;
    flex: 1;
  }

  .landing-form {
    flex-shrink: 0;
    width: 400px;
  }
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: var(--font-size-h3); }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { text-decoration: underline; }
