@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300&display=swap');

:root {
  --bs-body-font-family: 'Nunito', sans-serif;
}

.section {
	position: relative;
	height: 100vh;
}

@media (max-width: 600px) {
    #booking {
        margin-top: 0px !important;
    }
    .form-select {
    	height: 30px; /* Kleinere Höhe für mobile Geräte */
    	font-size: 0.875rem; /* Optional: Text minimal verkleinern */
    	padding-top: 0.25rem; /* Optional: Innenabstand oben korrigieren */
    	padding-bottom: 0.25rem; /* Optional: Innenabstand unten korrigieren */
  	}
  	.form-control {
    	height: 30px; /* Kleinere Höhe für mobile Geräte */
    	font-size: 0.875rem; /* Optional: Text minimal verkleinern */
    	padding-top: 0.25rem; /* Optional: Innenabstand oben korrigieren */
    	padding-bottom: 0.25rem; /* Optional: Innenabstand unten korrigieren */
  	}
  	.label {
    	font-size: 0.575rem; /* Optional: Text minimal verkleinern */
  	}
  	.input-group-text {
		height: 30px; 
		font-size: 0.875rem; /* Optional: Text minimal verkleinern */
    	padding-top: 0.25rem; /* Optional: Innenabstand oben korrigieren */
    	padding-bottom: 0.25rem; /* Optional: Innenabstand unten korrigieren */
	}
	.section-title {
        align-items: flex-start;
        gap: 8px;
    }

    .title-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .title-left h3 {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .add-cart-btn {
        flex: 0 0 auto;
        max-width: 45%;
        padding: 8px 6px;
        font-size: 12px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }
    
    .michi-btn {
    	flex: 0 0 auto;
    	height: 52px;
    	border-radius: 12px;
    	border: 2px solid #3F7D4E;
    	max-width: 45%;
        padding: 8px 6px;
        font-size: 12px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    	background: white;
    	color: #3F7D4E;
    	cursor: pointer;
	}
}

.body {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  height: -webkit-fill-available;
  margin: auto;
}

.section .section-center {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

#booking {
 	background-image: url('../img/back_henner.png');
	background-size: cover;
	background-position: center;
}

#booking::before {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

/* LAYOUT */
.booking-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* CARD */
.form-card {
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    height: 85vh;
    max-height: 780px;

    background: #ffffff;
    border-radius: 24px;
    padding: 30px;

    box-shadow:
        0 40px 100px rgba(0,0,0,0.35),
        0 15px 40px rgba(0,0,0,0.2);

    transform: translateY(-10px); /* 🔥 leicht „floating“ */
}

/* HEADER */
.form-header {
    flex-shrink: 0;
    text-align: center;
}

.form-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2f5e3b;
}

.form-header p {
    font-size: 14px;
    color: #888;
}

/* PROGRESS */
.progress-bar {
    height: 20px;
    background: #eaeaea;
    border-radius: 20px;
    position: relative;
    margin: 5px 5px 10px 5px; /* top right bottom left */
}

.progress_green {
    height: 100%;
    background: #3F7D4E;
    border-radius: 20px;
}

.progress_gelb {
    height: 100%;
    background: #F7E62D;
    border-radius: 20px;
}

.progress_red {
    height: 100%;
    background: #F04E0E;
    border-radius: 20px;
}

.progress_green::before {
  content: "Verfügbar";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #F7F3EC;
  font-size: 12px;
  font-weight: bolder;
}

.progress_gelb::before {
  content: "Mäßig verfügbar";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #262626;
  font-size: 12px;
  font-weight: bolder;
}

.progress_red::before {
  content: "Wenig verfügbar";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #262626;
  font-size: 12px;
  font-weight: bolder;
}

/* SCROLL */
.form-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px 5px;
}

/* SECTION */
.form-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 5px 0;
    margin-bottom: 20px;
	transition: all 0.2s ease;
    border: 1px solid #eee;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
  	font-weight: bold;  /* Macht den Text fett */
}

/* GRID */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

/* GRID */
.grid-31 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

/* INPUTS */
.form-control {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    height: 48px;
}

.form-control:focus {
    border-color: #3F7D4E;
    box-shadow: 0 0 0 4px rgba(63,125,78,0.12);
}

.form-select {
    height: 48px;
    /* Verhindert, dass der Bootstrap-Pfeil verzerrt oder unsichtbar wird: */
  	background-size: 16px 12px;
}

.input-group-text {
	background-color: #ffffff; 
	height: 48px; 
	border: #3F7D4E; 
	border-radius: 3px; 
	border-style: solid; 
	border-width: 1px; 
	font-size: 14px; 
	font-family: 'Nunito'; 
	flex-shrink: 0;
}

/* BUTTONS */
.form-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;

    margin-top: 15px;
    padding-top: 15px;

    border-top: 1px solid #eee;
}

.submit-btn {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    border: none;
    color: white;

    background: linear-gradient(135deg, #3F7D4E, #4fa866);
    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.michi-btn {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    border: 2px solid #3F7D4E;
    background: white;
    color: #3F7D4E;
    cursor: pointer;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: space-between; /* 🔥 verteilt links/rechts */
}

.title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 15px;
    position: relative;
}
/* Linie */
.stepper::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e5e5;
    z-index: 0;
}

/* Fortschritt (optional dynamisch) */
.stepper::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    height: 3px;
    background: #3F7D4E;
    z-index: 1;
    width: var(--progress, 0%);
}

/* Step */
.step {
    position: relative;
    text-align: center;
    z-index: 2;
    flex: 1;
}

/* Kreis */
.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;

    background: #e5e5e5;
    color: #777;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    margin: 0 auto 6px;

    transition: all 0.3s ease;
}

/* Label */
.step span {
    font-size: 10px;
    color: #999;
}

/* AKTIVER STEP */
.step.active .circle {
    background: #3F7D4E;
    color: #fff;
}

.step.active span {
    color: #3F7D4E;
    font-weight: 600;
}

/* FERTIGE STEPS */
.step.done .circle {
    background: #3F7D4E;
    color: white;
}

/* Hover (nice UX) */
.step:hover .circle {
    transform: scale(1.05);
}

.step.done .circle::after {
    content: "✔";
    font-size: 10px;
}

.input-container {
  display: flex;
  gap: 10px; /* Abstand zwischen den Feldern */
  align-items: center;
}

.input-container .form-control {
  flex: 1; /* 👈 darf wachsen */
}

.input-container .input-group-text {
  flex: 0 0 auto; /* 👈 bleibt kompakt */
}

/* 1. Standard-Zustand: Das Symbol ist grau */
input[id^="Artikel"] + label .warenkorb-icon {
  color: #888888;
  display: inline-block;
  font-size: 1.0rem;
  transition: color 0.2s ease;
}

/* 2. Aktivierter Zustand: Das Symbol wird knallgrün */
input[id^="Artikel"]:checked + label .warenkorb-icon {
  color: #00aa00 !important; /* !important erzwingt die Farbe gegen andere Styles */
}

/* 🟢 Standard (noch NICHT im Warenkorb) */
.add-cart-btn {
  flex: 0 0 auto;   /* 👈 verhindert Strecken */
  white-space: nowrap;
  width: auto;              /* 🔥 verhindert Strecken */
  display: inline-flex;     /* 🔥 wichtig */
  background: #e8f5e9;        /* sehr helles Grün */
  color: #2e7d32;
  border: 2px solid #a5d6a7;

  border-radius: 12px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover → etwas stärker */
.add-cart-btn:hover {
  background: #c8e6c9;
}

/* ✅ IM WARENKORB */
.add-cart-btn.added {
  background: #2e7d32;   /* etwas dunkler */
  color: #ffffff;        /* reines weiß */
  border-color: #2e7d32;
  font-weight: bold;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;           /* 🔥 WICHTIG */
}

.cart-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 14px;
	justify-self: end;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
	font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

#cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    margin-left: 6px;
    font-size: 12px;
}

/* .item1 { */
/*   grid-row-start: 1; */
/*   grid-row-end: 1; */
/* } */

