/* Haustechnik Bielmeier - Statische Website CSS */

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

:root {
  --brand-green: #8DC63F;
  --brand-green-dark: #4B5D3F;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: white;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-brand-green { color: var(--brand-green); }
.bg-brand-green { background-color: var(--brand-green); }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--brand-green);
  background: var(--gray-50);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding: 0.625rem 1.5rem;
  background: var(--brand-green);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--brand-green-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-mobile a:hover {
  color: var(--brand-green);
  background: var(--gray-50);
}

.nav-mobile-cta {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--brand-green);
  color: white !important;
  text-align: center;
  border-radius: 0.5rem;
}

.nav-mobile-cta:hover {
  background: var(--brand-green-dark) !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17,24,39,0.95), rgba(17,24,39,0.85), rgba(17,24,39,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(141, 198, 63, 0.9);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.hero-trust-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-green);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--brand-green);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-green-dark);
}

.btn-white {
  background: white;
  color: var(--gray-900);
}

.btn-white:hover {
  background: var(--gray-100);
}

.btn-dark {
  background: var(--gray-900);
  color: white;
}

.btn-dark:hover {
  background: var(--gray-800);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto;
}

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

.section-dark {
  background: linear-gradient(to bottom right, var(--gray-900), var(--gray-800));
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-green {
  background: linear-gradient(to bottom right, var(--brand-green), var(--brand-green-dark));
  color: white;
}

.section-green h2 {
  color: white;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

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

/* Service Cards */
.service-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background: var(--brand-green);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

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

.service-card h3 {
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.service-card:hover h3 {
  color: var(--brand-green);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.service-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-green);
  font-weight: 600;
  transition: gap 0.2s;
}

.service-card:hover .service-card-link {
  gap: 0.75rem;
}

/* Specialization Cards */
.spec-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 20rem;
}

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

.spec-card:hover img {
  transform: scale(1.1);
}

.spec-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
}

.spec-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.spec-card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--brand-green);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.spec-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.spec-card h3 {
  color: white;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.spec-card:hover h3 {
  color: var(--brand-green);
}

.spec-card p {
  color: var(--gray-300);
  font-size: 0.875rem;
}

.spec-featured {
  grid-column: span 2;
}

@media (max-width: 1023px) {
  .spec-featured { grid-column: span 1; }
}

/* Viessmann Banner */
.viessmann-banner {
  text-align: center;
}

.viessmann-logo {
  width: 12rem;
  margin: 0 auto 1.5rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

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

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

.benefit-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.benefit-card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(141, 198, 63, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-green);
}

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

.benefit-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

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

.cta-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

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

.cta-info-item svg {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.5rem;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-logo {
  height: 3rem;
  width: auto;
  background: white;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 1rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-links a {
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p:last-child {
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Page Headers */
.page-header {
  padding: 5rem 0;
  padding-top: calc(5rem + 80px);
}

.page-header h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 48rem;
  line-height: 1.8;
}

/* Service Detail Cards */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .service-detail { grid-template-columns: 1fr 1fr; }
  .service-detail.reverse { direction: rtl; }
  .service-detail.reverse > * { direction: ltr; }
}

.service-detail-image {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.service-detail-icon {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 4rem;
  height: 4rem;
  background: var(--brand-green);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.service-detail-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.service-detail h2 {
  margin-bottom: 1rem;
}

.service-detail > div:last-child p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ONE BASE Section */
.one-base-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--brand-green);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.one-base-image {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto 3rem;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

.one-base-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

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

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

.one-base-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.one-base-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-green);
  margin-bottom: 0.75rem;
}

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

.one-base-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* About Page */
.about-story {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.about-story p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.about-tag {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

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

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

.value-card-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(141, 198, 63, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-card-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-green);
}

.milestones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

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

.milestone-circle {
  width: 5rem;
  height: 5rem;
  background: var(--brand-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Viessmann Section About */
.viessmann-section-logo {
  width: 12rem;
  margin: 0 auto 1.5rem;
}

.viessmann-section-image {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin: 2rem auto;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.viessmann-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 56rem;
  margin: 2rem auto 0;
}

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

.viessmann-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-300);
}

.viessmann-check-item svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

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

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(141, 198, 63, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-green);
}

.contact-info-content h3 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-info-content a {
  color: var(--gray-600);
  transition: color 0.2s;
}

.contact-info-content a:hover {
  color: var(--brand-green);
}

.contact-form-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.2);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-note {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 1rem;
}

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

/* Utility */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
