/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* === Colors (matching Stopgraffiti branding: blue splash + red stop sign) === */
:root {
  --primary: #1e73be;
  --primary-dark: #155a96;
  --primary-light: #e8f2fb;
  --accent: #2ea3f2;
  --red: #cc2828;
  --dark: #2d3940;
  --gray: #6b7280;
  --gray-light: #f4f4f4;
  --white: #ffffff;
}

/* === Header (sticky, contact bar + nav bar together) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* contact bar — top strip, blue */
.contact-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.35rem 0;
}
.contact-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.85; }
.icon { flex-shrink: 0; }

/* nav bar — white background like the original */
.nav-bar {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo img { height: 55px; width: auto; }

/* nav links — dark text on white */
.nav-list {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--dark);
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-item.active .nav-link { color: var(--primary); }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle { cursor: default; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 2px solid var(--primary);
  z-index: 110;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown a:hover, .dropdown a.active { background: var(--primary-light); color: var(--primary); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--dark);
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* === Hero === */
.hero {
  background: linear-gradient(rgba(30,57,64,0.45), rgba(21,90,150,0.5)), url('../images/hero-vehicle.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 7rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* === Trust statement === */
.trust-statement {
  padding: 1.5rem 0;
  background: var(--gray-light);
  text-align: center;
}
.trust-statement h2 {
  font-size: 1.3rem;
  color: var(--dark);
  font-weight: 400;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === So einfach geht's === */
.so-einfach {
  padding: 2.5rem 0;
  background: var(--gray-light);
}
.so-einfach h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-weight: 600;
}
.so-einfach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.so-einfach-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.so-einfach-svg {
  color: var(--primary);
}
.so-einfach-step h3 {
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 500;
}

/* === Cities grid === */
.cities-section {
  padding: 3rem 0;
  background: var(--white);
}
.cities-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--dark);
}
.cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}
.city-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.city-card:hover img {
  transform: scale(1.08);
}
.city-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
}

/* === Project teasers (horizontal scroll, full width) === */
.project-teasers {
  padding: 2.5rem 0;
  background: var(--gray-light);
  overflow: hidden;
}
.project-teasers h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}
.teasers-scroll {
  position: relative;
}
.teasers-scroll::before,
.teasers-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 1;
}
.teasers-scroll::before {
  left: 0;
  background: linear-gradient(to left, transparent, var(--gray-light));
}
.teasers-scroll::after {
  right: 0;
  background: linear-gradient(to right, transparent, var(--gray-light));
}
.teasers-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.teasers-grid::-webkit-scrollbar { height: 6px; }
.teasers-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.teaser-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
  background: var(--white);
}
.teaser-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.teaser-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.teaser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teaser-info { padding: 0.5rem 0.75rem; }
.teaser-info h3 { font-size: 0.8rem; color: var(--dark); }
.teaser-location { font-size: 0.75rem; color: var(--gray); }
.teasers-more {
  text-align: center;
  margin-top: 1.25rem;
}

/* === Selling points === */
.selling-points { padding: 4rem 0; background: var(--white); }
.selling-points h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: var(--dark); }
.points-grid { max-width: 600px; margin: 0 auto; }
.point-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
}
.point-icon { color: var(--primary); flex-shrink: 0; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* === FAQ === */
.faq-section { padding: 4rem 0; }
.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 400;
  background: var(--gray-light);
  transition: background 0.2s;
}
.faq-item summary:hover { background: #e5e7eb; }
.faq-answer { padding: 1rem 1.25rem; }

/* === CTA === */
.cta-section {
  padding: 2rem 0;
  background: var(--gray-light);
  text-align: center;
}
.cta-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gray);
  font-weight: 400;
}

/* === Dienstleistungen icon bar === */
.dienst-icons {
  background: var(--white);
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.dienst-icons-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dienst-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  color: var(--primary);
  text-decoration: none;
  min-width: 100px;
}
.dienst-icon-item:hover {
  background: var(--primary-light);
}
.dienst-icon-item.active {
  background: var(--primary);
  color: var(--white);
}
.dienst-icon-circle {
  width: 44px;
  height: 44px;
}
.dienst-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dienst-icon-item.active .dienst-icon-circle img {
  filter: brightness(0) invert(1);
}
.dienst-icon-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* === Two-column page layout === */
.page-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.page-twocol .page-description {
  max-width: none;
}
.page-media img, .page-media video {
  width: 100%;
  border-radius: 8px;
}
.featured-img {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* before/after */
.before-after {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.before-after-fig {
  position: relative;
}
.before-after-fig img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.before-after-fig figcaption {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* video embeds */
.video-local video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === Page header === */
.page-header-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3rem 0;
}
.page-header-section h1 { font-size: 2rem; }
.page-header-section p { opacity: 0.85; margin-top: 0.5rem; }

/* === Page hero (with background image) === */
.page-hero {
  background: center/cover no-repeat;
  color: var(--white);
  padding: 8rem 0;
  position: relative;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30,57,64,0.45), rgba(21,90,150,0.5));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* === Page content === */
.page-content { padding: 3rem 0; }
.page-content h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 2rem 0 1rem;
}
.page-content p { margin-bottom: 1rem; }
.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-section { margin-bottom: 2rem; }
.section-image {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

/* === Projects grid === */
.projects-section { padding: 3rem 0; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.page-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ddd;
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.page-btn.active, .page-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.page-info {
  margin-left: 1rem;
  color: #888;
  font-size: 0.85rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.project-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.project-card.hidden { display: none; }
.project-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-info { padding: 1rem 1.25rem; }
.project-info h3 { font-size: 1rem; color: var(--dark); }
.project-location { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; }

/* === Project detail === */
.project-detail { padding: 3rem 0; }
.project-description, .page-description { font-size: 1.05rem; margin-bottom: 2rem; max-width: 800px; line-height: 1.7; }
.project-description p, .page-description p { margin-bottom: 0.75rem; }
.project-description h2, .page-description h2 { font-size: 1.25rem; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.project-description h3, .page-description h3 { font-size: 1.15rem; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.project-description strong, .page-description strong { color: var(--dark); }
.project-description a, .page-description a { color: var(--primary); text-decoration: underline; }
.project-description a:hover, .page-description a:hover { color: var(--primary-dark); }
.project-description ul, .page-description ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.project-description ol, .page-description ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.project-description li, .page-description li { margin-bottom: 0.25rem; }
.project-description blockquote, .page-description blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--gray);
}
.project-description code, .page-description code {
  background: var(--gray-light);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.project-description hr, .page-description hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag {
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img { transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.project-nav { margin-top: 2rem; }
.project-nav .btn-secondary { color: var(--primary); border-color: var(--primary); }
.project-nav .btn-secondary:hover { background: var(--primary-light); }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { top: 50%; left: 1.5rem; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 1.5rem; transform: translateY(-50%); }

/* === Footer — cobblestone background like the original === */
.site-footer {
  background: linear-gradient(rgba(35,45,50,0.92), rgba(35,45,50,0.92)), url('../images/hero-vehicle.jpg') center/cover no-repeat;
  color: #ccc;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}
.footer-logo-img { height: 80px; width: auto; margin-bottom: 0.5rem; }
.footer-col h4 { color: var(--white); margin-bottom: 0.75rem; font-size: 1rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.5; }
.footer-about {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}
.footer-about .portrait {
  width: 180px;
  min-width: 180px;
  height: auto;
  border-radius: 4px;
}
.footer-about-text p { font-size: 0.85rem; margin-bottom: 0.4rem; }
.footer-about-text strong { color: var(--white); font-size: 0.95rem; }
.footer-credential { font-style: italic; opacity: 0.8; font-size: 0.8rem !important; }
.credentials {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.credentials li { margin-bottom: 0.25rem; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* === Kontakt === */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.kontakt-info h2 { font-size: 1.5rem; color: var(--dark); margin: 1.5rem 0 0.75rem; }
.kontakt-info h2:first-child { margin-top: 0; }
.kontakt-info p { margin-bottom: 0.75rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 0.75rem 1.5rem; }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    padding-left: 1rem;
  }
  .has-dropdown:hover .dropdown { display: block; }
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 5rem 0; }
  .page-hero h1 { font-size: 1.8rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .contact-bar-inner { justify-content: center; font-size: 0.8rem; }
  .dienst-icons-grid { gap: 0.25rem; }
  .dienst-icon-item { min-width: 80px; padding: 0.5rem 0.5rem; }
  .dienst-icon-circle { width: 36px; height: 36px; }
  .dienst-icon-label { font-size: 0.65rem; }
  .page-twocol { grid-template-columns: 1fr; gap: 1.5rem; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { flex-direction: column; align-items: center; text-align: center; }
  .footer-about .portrait { width: 150px; min-width: 150px; }
  .so-einfach-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cities-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .trust-statement h2 { font-size: 1.1rem; }
}
