/* ========================================
   ProParc Website - Clean CSS
   No external dependencies, no tracking
   ======================================== */

/* 1. FONTS - Self-hosted Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. CSS VARIABLES */
:root {
  --color-primary: #a02c2c;
  --color-primary-dark: #8a2424;
  --color-secondary: #6b8e23;
  --color-bg-light: #f5f3ef;
  --color-bg-dark: #2a2a2a;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;

  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 80px;
  --max-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --border-radius: 4px;
  --transition: 0.3s ease;
}

/* 3. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

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

ul, ol {
  list-style: none;
}

/* 4. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

/* 5. LAYOUT - Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

/* 6. HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav a {
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* 7. BUTTONS */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

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

.btn-secondary {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* 8. HERO SECTION */
.hero {
  position: relative;
  aspect-ratio: 2500 / 1141;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  margin-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

/* Curved bottom - hero extends down with convex curve */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-bg-light);
  clip-path: polygon(
    0% 100%,
    0% 0%,
    5% 35%,
    15% 60%,
    30% 80%,
    50% 90%,
    70% 80%,
    85% 60%,
    95% 35%,
    100% 0%,
    100% 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.125rem;
  margin-top: var(--spacing-sm);
  opacity: 0.9;
}

/* 9. HALLENFORMATE SECTION */
.hallenformate {
  background: var(--color-bg-light);
  text-align: center;
}

.hallenformate h2 {
  margin-bottom: var(--spacing-sm);
}

.hallenformate .subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.price-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  padding-bottom: var(--spacing-md);
}

.price-card .card-header {
  background: #d5d5d5;
  height: 40px;
  margin-bottom: var(--spacing-md);
}

.price-card .size {
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

.price-card .size::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0,15 c10,-0.5 40,-2 60,-1.5 c20,0.5 55,3 60,3 c-5,0 -30,-3 -50,-2.5 c-20,0.5 -55,5 -60,5.5 c-5,0.5 35,-1 50,-1 c15,0 35,0.5 35,1 c0,0.5 -25,2 -35,2.5 c-10,0.5 -20,0 -25,0' fill='none' stroke='%2383BE5B' stroke-width='3' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--spacing-sm);
}

.price-card .price-suffix {
  font-size: 1rem;
  color: var(--color-text-light);
}

.price-card .icon {
  width: 60px;
  height: auto;
  margin: var(--spacing-md) auto;
  display: block;
}

.price-card .dimensions {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

.hallenformate .footnote {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--spacing-md);
}

/* 10. FEATURES SECTION */
.features {
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-md);
}

.feature-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* 11. STANDORTE SECTION */
.standorte {
  background: var(--color-bg-light);
  text-align: center;
}

.standorte h2 {
  margin-bottom: var(--spacing-sm);
}

.standorte .badge {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.location-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.location-card:hover {
  transform: translateY(-5px);
}

.location-card a {
  display: block;
  text-align: center;
}

.location-card .map-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.location-card .location-info {
  padding: var(--spacing-md);
}

.location-card h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.location-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.location-address {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--spacing-sm);
}

/* 12. FOOTER */
.footer {
  background: var(--color-white);
  padding: var(--spacing-md) 0;
  border-top: 1px solid #eee;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color var(--transition);
}

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

/* 13. CONTACT PAGE */
.contact-section {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
  min-height: 100vh;
}

.contact-section h1 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* 14. GALLERY PAGE */
.gallery-section {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
}

.gallery-section h1 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* 15. IMPRESSUM PAGE */
.impressum-section {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
  min-height: 100vh;
}

.impressum-section h1 {
  margin-bottom: var(--spacing-lg);
}

.impressum-section h2 {
  font-size: 1.25rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.impressum-section p {
  margin-bottom: var(--spacing-sm);
}

/* 16. RESPONSIVE */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 500px;
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }
}
