/* =============================================================================
   FONTS & COLOR SYSTEM
============================================================================= */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@media (prefers-color-scheme: light) {
  :root {
    --primary: oklch(0.4598 0.1116 152.04) !important;
    --primary-75: oklch(from var(--primary) l c h / 0.75);
    --primary-50: oklch(from var(--primary) l c h / 0.5);
    --primary-25: oklch(from var(--primary) l c h / 0.25);
    --primary-10: oklch(from var(--primary) l c h / 0.1);
    --foreground: oklch(0.2621 0.0095 248.19);
    --background: oklch(0.98 0.0107 118.02) !important;
    --border: oklch(0.9335 0.0143 128.63) !important;
    --accent: oklch(0.6824 0.1503 54.97) !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: oklch(59.779% 0.11836 155.348 / 0.5) !important;
    --primary-75: oklch(from var(--primary) l c h / 0.75);
    --primary-50: oklch(from var(--primary) l c h / 0.5);
    --primary-25: oklch(from var(--primary) l c h / 0.25);
    --primary-10: oklch(from var(--primary) l c h / 0.1);
    --foreground: oklch(0.9109 0.007 247.9);
    --background: oklch(0.2814 0.0107 118.02) !important;
    --border: oklch(0.3219 0.0205 139.43) !important;
    --accent: oklch(0.6824 0.1503 54.97) !important;
  }
}

/* =============================================================================
   BASE STYLES
============================================================================= */

* {
  font-family: "Geist", sans-serif !important;
}

body {
  background-color: var(--background) !important;
}

nav {
  position: sticky !important;
  top: 0.5rem !important;
  z-index: 9999;
}

/* =============================================================================
   COMPONENTS
============================================================================= */

.navbar-toggler,
.alert,
.btn-primary,
.btn-secondary,
.card,
.custom-badge,
.sustainability-badge,
.feature-badge,
.apartments-badge,
.apartment-badge {
  border-radius: 32px !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: var(--primary-75) !important;
  border-color: var(--primary-75) !important;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: var(--border) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
}

.btn-secondary:hover {
  background-color: var(--accent) !important;
  transition: all 0.3s ease;
}

.card {
  transition: transform 0.2s ease;
}

.hovercard:hover,
.apartment-card:hover {
  transform: translateY(-4px);
}

.apartment-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
  border-radius: 8px !important;
  border-color: var(--border) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.25rem var(--primary-25) !important;
}

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

.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.card-header {
  border-radius: 32px 32px 0 0 !important;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-link:hover,
.social-link:hover,
.team-social-link:hover,
.contact-link:hover {
  color: var(--primary) !important;
  transition: color 0.2s ease;
}

/* Badges */
.custom-badge,
.sustainability-badge {
  background-color: var(--primary-25);
  border: 1px solid var(--primary-75);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground) !important;
}

.sustainability-badge {
  background-color: var(--primary-25) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary-50) !important;
}

.feature-badge {
  background-color: var(--border) !important;
  color: var(--foreground) !important;
  border: none !important;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.apartments-badge {
  background-color: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--foreground) !important;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.apartment-badge {
  top: 1rem;
  right: 1rem;
  background-color: var(--primary) !important;
  color: white;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* =============================================================================
   UTILITIES
============================================================================= */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
  .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.icon,
.icon-small,
.icon-large {
  color: var(--primary);
  flex-shrink: 0;
}

.icon-box,
.cert-icon {
  border-radius: 32px;
  background-color: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box {
  height: 3rem;
  width: 3rem;
}

.cert-icon {
  height: 4rem;
  width: 4rem;
}

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

.transition {
  transition: all 0.3s ease;
}

/* =============================================================================
   PAGE-SPECIFIC
============================================================================= */

/* Index */
.hero-section {
  min-height: 500px;
}

.hero-image,
.impact-image,
.green-image {
  overflow: hidden;
  border-radius: 32px;
}

.hero-image {
  height: 400px;
}

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

@media (min-width: 768px) {
  .hero-image {
    height: 500px;
  }
}

.features-section,
.certification-section {
  background-color: rgba(0, 0, 0, 0.02);
}

.feature-icon,
.impact-icon,
.contact-icon-wrapper {
  background-color: var(--primary-25);
  color: var(--primary);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
}

.impact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.impact-image {
  height: 400px;
}

.impact-icon {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

.cta-section,
.team-cta-card {
  background-color: var(--primary);
}

.cta-text,
.team-cta-text {
  opacity: 0.9;
}

.team-cta-text {
  opacity: 0.8;
}

.team-cta-card {
  background-color: var(--primary) !important;
  color: var(--foreground) !important;
}

/* Apartments */
.apartment-image-wrapper {
  height: 12rem;
  overflow: hidden;
}

.apartment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.apartment-card:hover .apartment-image {
  transform: scale(1.05);
}

.apartment-co2 {
  color: var(--primary);
}

.apartment-details svg {
  flex-shrink: 0;
}

/* Standorte */
.location-card {
  overflow: hidden;
  border: 1px solid var(--border);
}

.location-image {
  height: 16rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .location-image {
    height: 100%;
    min-height: 24rem;
  }
}

.transport-list {
  list-style: none;
  padding-left: 1.75rem;
  margin-bottom: 0;
}

.transport-list li {
  margin-bottom: 0.25rem;
}

.transport-list li:last-child {
  margin-bottom: 0;
}

.co2-box {
  background-color: var(--primary-10);
}

.co2-box .text-primary {
  color: var(--primary) !important;
}

.info-box,
.faq-cta-box {
  background-color: var(--border);
  border-radius: 32px;
}

/* Nachhaltigkeit */
.sustainability-intro {
  max-width: 48rem;
}

.stat-card-primary {
  background-color: var(--primary) !important;
  border: none;
}

.stat-card-accent {
  background-color: var(--accent) !important;
  border: none;
}

.stat-box {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 32px;
}

@media (prefers-color-scheme: dark) {
  .stat-box,
  .certification-section,
  .features-section {
    background-color: rgba(255, 255, 255, 0.03);
  }

  .certification-section {
    background-color: rgba(255, 255, 255, 0.02);
  }

  .features-section {
    background-color: rgba(255, 255, 255, 0.02);
  }
}

.stat-box .text-primary {
  color: var(--primary) !important;
}

.green-image {
  position: relative;
  height: 18rem;
}

.sections-wrapper section {
  margin-bottom: 4rem;
}

.sections-wrapper section:last-child {
  margin-bottom: 0;
}

/* Team */
.team-image-wrapper {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

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

.team-role {
  color: var(--primary);
}

/* FAQ */
.accordion-flush .faq-item {
  border: 1px solid var(--border) !important;
  border-radius: 32px !important;
  overflow: hidden;
}

.accordion-flush .faq-item .accordion-button {
  background-color: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.accordion-flush .faq-item .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: inherit;
  box-shadow: none;
}

.accordion-flush .faq-item .accordion-button:focus {
  border-color: var(--border);
  box-shadow: none;
}

.accordion-flush .faq-item .accordion-button::after {
  background-image: none;
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin-left: auto;
  color: var(--primary);
}

.accordion-flush .faq-item .accordion-button:not(.collapsed)::after {
  content: "−";
  transform: none;
}

.accordion-flush .faq-item .accordion-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.accordion-flush .faq-item .accordion-collapse {
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.faq-link {
  color: var(--primary);
  text-decoration: none;
}

.faq-link:hover {
  text-decoration: underline;
}

/* Kontakt */
.contact-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
}
