/* ===================================
   CSS Variables & Theme
   =================================== */
:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #ef4d48;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #6b6b6b;
  --accent: #1a1a1a;
  --accent-foreground: #ffffff;
  --destructive: #ef4d48;
  --destructive-foreground: #ffffff;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #ef4d48;
  --whatsapp: #25D366;

  /* Spacing */
  --radius: 0.5rem;

  /* Typography */
  --font-sans: 'Inter', 'Inter Fallback', sans-serif;
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 70px; /* Space for mobile contact bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================================
   Utility Classes
   =================================== */
.hidden {
  display: none !important;
}

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

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

.text-primary {
  color: var(--primary);
}

.bg-white {
  background-color: var(--background);
}

.bg-gray {
  background-color: var(--secondary);
}

.icon {
  flex-shrink: 0;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.icon-check {
  color: var(--primary);
}

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

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

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

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

.header-logo {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 1024px) {
  .header-logo {
    height: 3rem;
  }
}

.header-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .header-nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

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

.header-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.mobile-menu {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.mobile-menu-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu-link:hover {
  color: var(--primary);
}

/* ===================================
   Button Styles
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: rgba(239, 77, 72, 0.9);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: var(--accent-foreground);
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.625rem;
  color: var(--foreground);
}

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

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  background-color: var(--accent);
  padding-top: 4rem;
}

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

.hero-content {
  max-width: 48rem;
  text-align: center;
  margin: 0 auto;
  padding: 4rem 1rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 6rem 2rem;
  }
}

.hero-subtitle {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--accent-foreground);
  text-wrap: balance;
}

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

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

.hero-description {
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}

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

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

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

.hero-buttons .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons .btn {
    width: auto;
  }
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1s infinite;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ===================================
   Section Styles
   =================================== */
.section {
  padding: 5rem 0;
}

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

.section-header {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-subtitle {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.section-title {
  margin-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--foreground);
  text-wrap: balance;
}

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

.section-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ===================================
   Services Grid
   =================================== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@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 {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
  transition: all 0.3s;
}

@media (min-width: 1024px) {
  .service-card {
    padding: 2rem;
  }
}

.service-card:hover {
  border-color: rgba(239, 77, 72, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(239, 77, 72, 0.1);
  padding: 0.75rem;
}

.service-icon .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.service-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.service-description {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* ===================================
   Leasing Partners Grid
   =================================== */
.leasing-grid {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

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

.leasing-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--card);
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.leasing-name {
  font-weight: 500;
  color: var(--card-foreground);
}

.leasing-note {
  max-width: 36rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================================
   Service Area
   =================================== */
.service-area-container {
  max-width: 56rem;
  margin: 0 auto;
}

.service-area-group {
  margin-bottom: 2rem;
}

.service-area-group-title {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.areas-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

.area-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

.area-secondary {
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  font-weight: 500;
}

.area-secondary .icon {
  color: var(--muted-foreground);
}

.service-area-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================================
   Contact Section
   =================================== */
.contact-container {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  background-color: var(--card);
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-card-static {
  cursor: default;
}

.contact-card-static:hover {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
}

.bg-primary {
  background-color: rgba(239, 77, 72, 0.1);
}

.bg-primary .icon {
  color: var(--primary);
}

.bg-whatsapp {
  background-color: rgba(37, 211, 102, 0.1);
}

.bg-whatsapp .icon {
  color: var(--whatsapp);
}

.contact-label {
  font-weight: 700;
  color: var(--card-foreground);
}

.contact-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Form */
.contact-form-wrapper {
  border-radius: 0.75rem;
  background-color: var(--card);
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.contact-form-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.375rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
}

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

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

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(239, 77, 72, 0.2);
}

textarea.form-input {
  resize: none;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form-link {
  text-decoration: underline;
  color: var(--primary);
}

.form-link:hover {
  opacity: 0.8;
}

/* Success Message */
.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background-color: rgba(37, 211, 102, 0.1);
}

.success-icon .icon {
  width: 32px;
  height: 32px;
  color: var(--whatsapp);
}

.success-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.success-text {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.error-message {
  font-size: 0.875rem;
  color: var(--destructive);
}

/* Spinner Animation */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.footer-container {
  padding: 3rem 1rem;
}

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

.footer-grid {
  display: grid;
  gap: 2.5rem;
  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-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

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

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Mobile Contact Bar
   =================================== */
.mobile-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.mobile-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.mobile-contact-btn:first-child {
  color: var(--whatsapp);
}

.mobile-contact-btn:last-child {
  color: var(--primary);
}

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

.mobile-contact-divider {
  width: 1px;
  background-color: var(--border);
}

/* ===================================
   Legal Pages (Impressum & Datenschutz)
   =================================== */
.legal-page {
  min-height: 100vh;
  background-color: var(--background);
  padding-bottom: 0;
}

.legal-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}

.legal-header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .legal-header-container {
    padding: 1rem 2rem;
  }
}

.legal-header-logo {
  height: 2rem;
  width: auto;
}

@media (min-width: 1024px) {
  .legal-header-logo {
    height: 2.5rem;
  }
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.legal-back-link:hover {
  color: var(--primary);
}

.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 1024px) {
  .legal-main {
    padding: 5rem 2rem;
  }
}

.legal-title {
  margin-bottom: 2rem;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

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

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.legal-content strong {
  color: var(--foreground);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  opacity: 0.8;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 0.25rem;
  color: var(--muted-foreground);
}

.legal-date {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 640px) {
  .hero-buttons .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 1rem;
  }
}
