/* ============================================================================
   RUUD - Sticky Footer
   ============================================================================ */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main#main-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: var(--space-12);
}

/* ============================================================================
   RUUD - Header & Navigation
   ============================================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-200);
  height: var(--header-height);
  padding-top: var(--space-2);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__nav {
  display: none;
}

.header__nav-link {
  padding: var(--space-3) var(--space-5);
  font-size: 1.33rem;
  font-weight: 500;
  color: var(--color-gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link[aria-current="page"] {
  color: var(--color-primary);
  background-color: var(--color-gray-100);
}

.header__nav-link.is-active {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.header__nav-divider {
  width: 1px;
  height: 24px;
  background-color: var(--color-gray-300);
  margin: 0 var(--space-2);
}

.header__brand {
  display: none;
  align-items: center;
  gap: var(--space-3);
  margin-right: var(--space-6);
}

.header__brand-text {
  font-family: var(--font-heading);
  font-size: 1.33rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
}

.header__brand-text-accent {
  color: #d97706;
}

.header__logo-link {
  display: flex;
  align-items: center;
}

.header__logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.header__hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: calc(var(--z-overlay) + 1);
}

.header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gray-700);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-xl);
  padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-6);
  transition: right var(--transition-slow);
  z-index: var(--z-overlay);
  overflow-y: auto;
}

.mobile-nav.is-active {
  right: 0;
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav__overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
}

.mobile-nav__link.is-active {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .header__hamburger {
    display: none;
  }

  .mobile-nav,
  .mobile-nav__overlay {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    order: 2;
  }

  .header__nav-link {
    padding: var(--space-3) var(--space-5);
    font-size: 1.33rem;
    font-weight: 500;
    color: var(--color-gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
  }

  .header__nav-link:hover,
  .header__nav-link[aria-current="page"] {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
  }

  .header__nav-link.is-active {
    color: var(--color-accent);
    background-color: var(--color-accent-light);
  }

  .header__nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--color-gray-300);
    margin: 0 var(--space-2);
  }

  .header__admin-btn {
    display: none;
  }

  .header__brand {
    display: flex;
    order: 1;
  }
}

/* ============================================================================
   RUUD - Hero Section
   ============================================================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(26, 35, 50, 0.7) 50%, rgba(41, 54, 76, 0.8) 100%),
              url('/images/hero-bg.jpg') center center / cover no-repeat;
  overflow: hidden;
}

/* Hero with custom background image (About page) */
.hero--about {
  /* Background image is set inline via style attribute */
}

/* About page hero content - warm orange background for better text readability */
.hero--about .hero__content {
  background: rgba(217, 119, 6, 0.25);
  backdrop-filter: blur(4px);
}

/* Mobile: hero content above hero section */
.hero__content-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .hero__content-mobile {
    display: block;
    background: rgba(217, 119, 6, 0.9);
    padding: 40% var(--space-4) var(--space-12);
    text-align: center;
  }

  .hero__content-mobile .hero__title {
    font-size: var(--text-3xl);
    color: white;
  }

  .hero__content-mobile .hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
  }

  .hero--about .hero__content {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero__content-mobile {
    display: none;
  }

  .hero--about .hero__content {
    display: block;
    top: calc(var(--header-height, 96px) + 300px);
    background: rgba(217, 119, 6, 0.25);
    backdrop-filter: blur(4px);
  }

  .hero--about .hero__title {
    font-size: 3.9rem;
  }

  .hero--about .hero__subtitle {
    font-size: 1.46rem;
  }

  .hero--about .heading-small {
    font-size: 1.125rem;
  }
}


.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20% var(--space-4);
  max-width: 800px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(30, 41, 59, 0.5) 50%, transparent 100%);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
}
@media (min-width: 1024px) {
  .hero {
    display: block;
    min-height: 80vh;
  }

  .hero__content {
    position: relative;
    top: calc(var(--header-height, 96px) + 50px);
    display: block;
    text-align: center;
    padding: var(--space-12) var(--space-4);
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(30, 41, 59, 0.5) 50%, transparent 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
  }

  .hero__content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--space-6);
  }

  .hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
  }

  .hero__logo img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
  }

  .hero__content-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__actions {
    justify-content: center;
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-6);
  white-space: pre-line;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Hero Slideshow */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slideshow-images {
  position: absolute;
  inset: 0;
}

.hero__slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__slideshow-img.active {
  opacity: 1;
}

.hero__slideshow-dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.hero__slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero__slideshow-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero__slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   RUUD - Services Section
   ============================================================================ */

.services {
  background-color: var(--color-gray-50);
}

.services__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services__item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  height: 100%;
}

.services__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.services__icon-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

.services__item:hover .services__icon-wrap img {
  transform: scale(1.08);
}

.services__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.services__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

.services__info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.services__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a2332;
  margin: 0;
}

.services__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.services__text {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.services__info .btn--warm,
.services__info .btn--outline {
  align-self: center;
  margin-top: auto;
}

/* ============================================================================
   RUUD - CTA Banner
   ============================================================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--color-warm) 0%, var(--color-warm-hover) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  white-space: pre-line;
}

@media (min-width: 768px) {
  .cta-banner__title {
    font-size: var(--text-3xl);
  }
}

.cta-banner__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn--white:hover {
  background-color: var(--color-gray-100);
  color: var(--color-warm);
}

/* ============================================================================
   RUUD - Footer
   ============================================================================ */

.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer__logo span {
  color: var(--color-warm);
}

.footer__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer .footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer .footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--color-warm);
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   RUUD - Page Header
   ============================================================================ */

.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-12) 0;
  text-align: center;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: var(--text-4xl);
  }
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.page-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header__breadcrumb a:hover {
  color: var(--color-white);
}

.page-header__breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   RUUD - Projects Page
   ============================================================================ */

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.projects-filter__btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.projects-filter__btn:hover,
.projects-filter__btn.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.project-detail__hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
}

/* ============================================================================
   RUUD - Dienst Detail Page
   ============================================================================ */

.dienst-hero {
  margin-bottom: var(--space-8);
}

.dienst-hero__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.project-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.project-location {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin-top: var(--space-2);
  font-weight: 400;
}

.project-detail__meta-item {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.project-detail__meta-label {
  font-weight: 600;
  color: var(--color-gray-700);
}

.project-detail__gallery,
.project-media {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--space-8);
}

.project-detail__gallery-img,
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.project-detail__gallery-img,
.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.project-detail__gallery-img:hover,
.project-image:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.project-image__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  pointer-events: none;
}

.project-image__overlay svg {
  opacity: 0;
  transition: opacity var(--transition-fast);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.project-image:hover .project-image__overlay {
  background: rgba(0, 0, 0, 0.35);
}

.project-image:hover .project-image__overlay svg {
  opacity: 1;
}

.project-image:hover img {
  transform: scale(1.05);
}

.project-image:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ============================================================================
   RUUD - Gallery Page
   ============================================================================ */

.gallery-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================================================
   RUUD - Lightbox
   ============================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: var(--text-3xl);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: var(--text-sm);
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--color-white);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__prev {
  left: var(--space-6);
}

.lightbox__next {
  right: var(--space-6);
}

/* ============================================================================
   RUUD - Contact Page
   ============================================================================ */

.contact-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: var(--text-xl);
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-gray-600);
}

.contact-map {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: var(--radius-lg);
  margin-top: var(--space-8);
}

/* ============================================================================
   RUUD - Contact Form Success
   ============================================================================ */

.form-success {
  background-color: var(--color-success-light);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.form-success__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--color-gray-700);
}

/* ============================================================================
   RUUD - About / History Page
   ============================================================================ */

.about-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.about-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.about-content__text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-gray-700);
  margin-bottom: var(--space-6);
}

.about-content__text strong {
  color: var(--color-primary);
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-gray-300);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: var(--space-1);
  width: 16px;
  height: 16px;
  background-color: var(--color-accent);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ============================================================================
   RUUD - Legal Page
   ============================================================================ */

.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.legal-content__heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-content__text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
}

/* ============================================================================
   RUUD - Admin CMS
   ============================================================================ */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-4);
}

.admin-login__card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
}

.admin-login__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-8);
}

.admin-login__error {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: none;
}

.admin-login__error.is-visible {
  display: block;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .admin-layout {
    grid-template-columns: 240px 1fr;
  }
}

.admin-sidebar {
  background-color: var(--color-primary-dark);
  padding: var(--space-6) var(--space-4);
}

.admin-sidebar__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  display: block;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-sidebar__logo span {
  color: var(--color-warm);
}

.admin-sidebar__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.admin-sidebar__link:hover,
.admin-sidebar__link.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.admin-sidebar__link.is-active {
  background-color: var(--color-accent);
}

.admin-sidebar__logout {
  margin-top: auto;
  padding-top: var(--space-6);
}

.admin-main {
  background-color: var(--color-gray-50);
  padding: var(--space-6);
  overflow-y: auto;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-toolbar__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table thead {
  background-color: var(--color-gray-100);
}

.admin-table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.admin-table td {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: var(--color-gray-50);
}

.admin-table__actions {
  display: flex;
  gap: var(--space-2);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.admin-modal.is-active {
  display: flex;
}

.admin-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.admin-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
}

.admin-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}

.admin-modal__close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--color-gray-400);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
}

.admin-modal__close:hover {
  color: var(--color-gray-600);
}

.admin-modal__body {
  padding: var(--space-8);
}

.admin-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-gray-200);
  background-color: var(--color-gray-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.admin-upload-zone {
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-upload-zone:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.admin-upload-zone__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.admin-upload-zone__text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.admin-upload-zone__text strong {
  color: var(--color-accent);
}

.admin-image-preview {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-top: var(--space-4);
}

.admin-image-preview__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.admin-image-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-preview__delete {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  background: var(--color-danger);
  color: var(--color-white);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.toast--success {
  border-left: 4px solid var(--color-success);
}

.toast--error {
  border-left: 4px solid var(--color-danger);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hidden { display: none; }

/* ============================================================================
   RUUD - Gallery Grid
   ============================================================================ */

.gallery-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background-color: var(--color-gray-100);
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================================================
   RUUD - Page Header
   ============================================================================ */

.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--space-12) 0;
  text-align: center;
}

.page-header .heading-primary {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-header .text-lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================================
   RUUD - Footer
   ============================================================================ */

.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer__logo span {
  color: var(--color-warm);
}

.footer__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer .footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer .footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.footer__contact-icon {
  font-size: var(--text-lg);
  opacity: 0.7;
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom a:hover {
  color: var(--color-white);
}

/* ============================================================================
   RUUD - Form Success
   ============================================================================ */

.form-success {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-success-light);
  border-radius: var(--radius-lg);
}

.form-success__icon {
  font-size: var(--text-4xl);
  color: var(--color-success);
  margin-bottom: var(--space-4);
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--color-gray-700);
}

/* ============================================================================
   RUUD - Prose content
   ============================================================================ */

.prose {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-gray-700);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose h1 {
  font-size: var(--text-3xl);
}

.prose h2 {
  font-size: var(--text-2xl);
}

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

.prose p {
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

/* --- Projects gallery spacing --- */
.projects-gallery-section {
  padding: 6rem 0;
  background: #ffffff;
}

.projects-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 420px;
}

.projects-card .card__image {
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

.projects-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.projects-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.projects-card:hover::before {
    transform: scaleX(1);
}

.projects-card .card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-card .card__image img[src*="placeholder"] {
    opacity: 0.3;
}

.projects-card:hover .card__image img {
    transform: scale(1.08);
}

@media (min-width: 768px) {
  .projects-gallery-section {
    padding-bottom: var(--space-20);
  }
}

@media (min-width: 1024px) {
  .projects-gallery-section {
    padding-bottom: var(--space-24);
  }
}

@media (max-width: 768px) {
  .projects-gallery-section {
    padding: 4rem 0;
  }

  .projects-card {
    min-height: 420px;
  }
}
