/*
Theme Name: Bauservice Leubner
Theme URI: https://bauservice-leubner.de
Author: Bauservice Leubner
Description: Landingpage für Bauservice Leubner Leipzig
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: bauservice-leubner
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 20%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 15%);
  --primary: hsl(51, 100%, 50%);
  --primary-foreground: hsl(220, 20%, 15%);
  --secondary: hsl(211, 100%, 50%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(220, 14%, 96%);
  --muted-foreground: hsl(220, 10%, 45%);
  --accent: hsl(51, 100%, 95%);
  --accent-foreground: hsl(220, 20%, 15%);
  --border: hsl(220, 13%, 91%);
  --radius: 0.5rem;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 2rem;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
}

.logo-banner-wrapper {
  display: flex;
  align-items: center;
}

.logo-banner {
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-banner {
    height: 3rem;
    max-width: 280px;
  }
}

.logo-fallback {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
}

.logo-fallback span {
  white-space: nowrap;
}

/* WordPress custom-logo styling */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .custom-logo {
    height: 3rem;
    max-width: 280px;
  }
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  color: rgba(31, 41, 55, 0.8);
  position: relative;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero Section */
.hero-section {
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 5rem;
  }
}

.hero-inner {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .hero-inner {
    padding: 3rem 0;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    padding: 4rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    gap: 2rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title span {
  color: var(--secondary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--muted);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

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

.hero-stats-number {
  font-size: 1.875rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--secondary);
}

.hero-stats-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background-color: rgba(226, 232, 240, 0.5);
}

@media (min-width: 768px) {
  .services-section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* Service Cards */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.service-card {
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card-content {
  padding: 1.25rem;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-item:hover {
  opacity: 0.9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-more {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background-color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted-foreground);
  font-weight: 500;
  border: none;
}

.gallery-more:hover {
  background-color: rgba(255, 215, 0, 0.2);
  color: var(--foreground);
}

.gallery-more span {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Gallery Overlay */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 41, 55, 0.9);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal {
  background-color: var(--card);
  border-radius: 0.75rem;
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.gallery-modal-header {
  position: sticky;
  top: 0;
  background-color: var(--card);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-modal-header h4 {
  font-size: 1rem;
}

.gallery-modal-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.gallery-modal-close:hover {
  background-color: var(--muted);
}

.gallery-modal-content {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.gallery-modal-content .gallery-item img:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

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

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 2rem;
  }
}

.contact-form-wrapper h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.2s;
}

.input-field::placeholder {
  color: var(--muted-foreground);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

textarea.input-field {
  resize: none;
  min-height: 8rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-box {
  background-color: var(--accent);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.contact-info-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 215, 0, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  color: var(--secondary);
}

.contact-info-item p {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-info-item span,
.contact-info-item a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-info-item a:hover {
  color: var(--secondary);
}

/* Map */
.contact-map {
  aspect-ratio: 16/9;
  background-color: var(--muted);
  border-radius: 0.75rem;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.site-footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-placeholder {
  background-color: var(--primary);
}

.footer-logo p {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
}

.footer-logo span {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: all 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-contact address {
  font-style: normal;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-contact p {
  margin-bottom: 0.25rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  opacity: 0.6;
  transition: all 0.2s;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Page Template */
.page-content {
  padding-top: 6rem;
  padding-bottom: 4rem;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* SVG Icons (inline) */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out;
}

/* Hidden utility */
.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;
}
