:root {
    --primary: #20bf6b;
    --primary-dark: #55ec9c;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --danger: #ef4444;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    margin: 0;
    padding: 40px 20px;
    color: var(--text);
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

#calendar {
    max-width: 1100px;
    margin: auto;
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow:
        0 10px 25px rgba(0,0,0,.05),
        0 25px 60px rgba(0,0,0,.06);
}

/* FullCalendar Premium Tweaks */
.fc {
    --fc-border-color: #e5e7eb;
    --fc-page-bg-color: transparent;
}

.fc-toolbar-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.fc-button {
    background: var(--primary) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-weight: 500;
    transition: all .2s ease;
}

.fc-button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.fc-timegrid-slot {
    height: 52px;
}

.fc-timegrid-slot-label {
    color: var(--muted);
}

.fc-event {
    border-radius: 10px;
    padding: 4px 6px;
    font-size: 0.85rem;
    background: var(--danger) !important;
    border: none !important;
}

/* Modal Overlay */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.hidden {
    display: none;
}

.modal-content {
    background: var(--card);
    width: 100%;
    max-width: 460px;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: fadeUp .3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--muted);
    font-size: .95rem;
}

/* Form */
label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    font-size: .9rem;
}

input,
select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: .95rem;
    transition: border .2s, box-shadow .2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.actions button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.actions button#closeModal {
    background: #e5e7eb;
}

.actions button#closeModal:hover {
    background: #d1d5db;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }

    #calendar {
        padding: 16px;
    }
}


/* Popup Kalender etwas kompakter */
.flatpickr-calendar {
    font-size: 14px;
}


/* Für kleine Bildschirme (SM und darunter) */
@media (max-width: 768px) {
  #Start {
    height: auto; /* Der Container passt sich der Höhe des Inhalts an */
  }

  .logo-container {
    width: 100%; /* Stellt sicher, dass der Logo-Container die volle Breite einnimmt */
    margin-bottom: 200px; /* Vergrößert den Abstand unter dem Text */
    order: 1; /* Zwingt das Logo unter den Text */
  }

  .text-container {
    text-align: center;
  }

  /* Damit das Logo unter dem Text erscheint */
  .row {
    flex-direction: column-reverse; /* sorgt dafür, dass das Logo unter dem Text erscheint */
  }
}
  /* Hero Section - Hintergrundbild */



#Start {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 1. Section-Padding komplett entfernen */
#Immovermittlung {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Container auf volle Breite ohne Padding */
#Immovermittlung > .container {
  padding: 0 !important;
  margin: 0 auto;
}

/* 3. Carousel auf volle Höhe des Section */
#Immovermittlung .carousel {
  height: 100%;
}

/* 4. Carousel-inner und Items auf volle Höhe + keine vertikale Zentrierung */
#Immovermittlung .carousel-inner {
  height: 100%;
  display: block; /* wichtig: kein vertikales Zentrieren */
}

#Immovermittlung .carousel-item {
  height: 100%;
}

#Immovermittlung .carousel-item img {
  height: 100%;        /* Bild füllt Container */
  width: 100%;
  object-fit: cover;   /* schneidet sauber */
}

/* Sicherstellen, dass die Karten responsive sind */
.flip-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.flip-card {
  width: 100%;
  max-width: 350px;  /* Maximalgröße für mobile Ansicht */
  height: 300px; /* Feste Höhe für die Karten */
  perspective: 1000px; /* Perspektive für die Drehung */
  transition: all 0.3s ease;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
}

.flip-card-back {
  transform: rotateY(180deg);
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.8);  /* Heller Hintergrund für bessere Lesbarkeit */
  overflow-y: auto;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  /* Auf kleinen Geräten: Layout anpassen */
  .flip-card {
    width: 100%;
    height: auto;
    min-height: 250px;
  }

  .flip-card-back {
    padding: 15px;
    font-size: 14px;
  }
}