/* Vorhandene Styles aus deiner originalen CSS-Datei */

/* Stile nur für diese spezielle Seite */
/* Stile nur für diese spezielle Seite */
body.special-page {
    background-color: white !important; /* Weißer Hintergrund nur auf dieser Seite */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Der obere Bereich (2/3 der Seite) */
.special-page #top-section {
    width: 100%;
    height: 56vh; /* 2/3 der Höhe */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Logo oben rechts */
.special-page .logo {
    position: absolute;
    top: 2em;
    right: 2em;
    width: 111px; 
    height: 63px;
}

/* Zweites Bild unten in diesem Bereich */
.special-page .header-image {
    max-width: 60%;    /* Maximale Breite auf 80% der Bildschirmbreite begrenzt */
    height: auto;      /* Höhe bleibt proportional zur Breite */
    display: block;    /* Block-Element für einfaches Zentrieren */
    margin: 0 auto;    /* Zentriert das Bild horizontal */
}

/* Der untere Bereich (1/3 der Seite) */
.special-page #content h1 {
	color: #0CB8B6;
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
}
.special-page #content {
    width: 100%;
    height: 44vh; /* 1/3 der Höhe */
    background-color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Text nach oben verschieben */
    align-items: center;
    border-radius: 0 !important; /* Keine abgerundeten Ecken nur auf dieser Seite */
    box-shadow: none !important; /* Kein Schatten nur auf dieser Seite */
}

.special-page .header-image {
    width: 80%;        /* Bild nimmt 100% des Containerplatzes ein */
    max-width: 80vw;    /* Bild wird maximal 80% der Viewport-Breite */
    height: auto;       /* Höhe bleibt proportional zur Breite */
    display: block;     /* Bild als Block-Element */
    margin: 0 auto;     /* Zentriert das Bild */
}

    /* Overlay Hintergrund */
    .qr_wrong_overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    /* Inhaltliche Box */
    .qr_wrong_overlay-box {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      max-width: 90%;
      width: 400px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
      position: relative;
      text-align: center;
	  display: block;
    }

    /* Schließen-X */
    .close-button {
      position: absolute;
      top: 12px;
      right: 16px;
      background: transparent;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #333;
    }

    @media (max-width: 500px) {
      .qr_wrong_overlay-box {
        padding: 1.5rem 1rem;
        width: 90%;
      }
      .qr_wrong_overlay-box h2 {
        font-size: 1.1rem;
      }
      .qr_wrong_overlay-box p {
        font-size: 0.95rem;
      }
    }

/* Auf allen anderen Seiten bleiben die abgerundeten Ecken und der Schatten */
#content {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
}

/* Button am unteren Rand */
.special-page .btn-container {
    //position: absolute;
    //bottom: 5vh;
}

/* Allgemeine Button-Stile */
.btn-outline-primary {
	border-color: #0CB8B6;
}

.btn-primary {
    background-color: #0CB8B6; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    border: none; /* Kein Rand */
    padding: 10px 20px; /* Polsterung */
    font-size: 1rem; /* Schriftgröße */
    font-weight: 600; /* Fettgedruckte Schrift */
    text-transform: uppercase; /* Großbuchstaben */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Sanfte Übergänge */
}

/* Hover-Effekt */
.btn-primary:hover {
    background-color: white; /* Hintergrund wird weiß */
    color: #0CB8B6; /* Textfarbe wird zur ursprünglichen Farbe */
    cursor: pointer; /* Zeiger wird zur Hand */
    transform: scale(1.05); /* Button wird leicht größer */
}

/* Active-Effekt (beim Klicken) */
.btn-primary:active {
    background-color: #0CB8B6; /* Hintergrund bleibt in #0CB8B6 */
    color: white; /* Text bleibt weiß */
    transform: scale(0.98); /* Button wird leicht kleiner */
}

/* Focus-Effekt (damit beim Klicken keine blaue Farbe mehr erscheint) */
.btn-primary:focus {
    outline: none; /* Entfernt die standardmäßige blaue Umrandung */
    box-shadow: none; /* Entfernt den standardmäßigen Fokus-Schattierungseffekt */
    background-color: #0CB8B6 !important; /* Hintergrundfarbe bleibt bei #0CB8B6 */
    color: white !important; /* Text bleibt weiß */
}

/* Optional: Entfernt die Standard-Fokus-Rahmenfarbe (insbesondere für Chrome und Firefox) */
.btn-primary:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Dashbaord Buttons */
/* Spezifische Styles nur für den Container mit der ID "myButtonContainer" */
#dashboard {
	margin-top: 8vw !important;
	width: 80vw; /* 35vw + 35vw + 10vw Abstand */
	gap: 5vw;   /* Einheitlicher Abstand, horizontal und vertikal */
}

/* Großer Button, der genauso breit ist wie der gesamte Container (80vw) */
#dashboard .button-box, #dashboard .button-big {
	position: relative; /* Erlaubt das absolute Positionieren des Overlays */
	width: 35vw;              /* Jeder kleine Button: 35vw breit */
	aspect-ratio: 1 / 1;       /* Sorgt für eine quadratische Form */
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
	border: 4px solid #DEDEDE;
	border-radius: 20px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	cursor: pointer;
	transition: box-shadow 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}
#dashboard .button-big {
	width: 100%;              /* Füllt die gesamte Containerbreite (80v) */
	height: 35vw;             /* Höhe passend zu den kleinen Buttons */
}

#dashboard .button-box:hover, #dashboard .button-big:hover {
	box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Termin */
#map-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#map-background iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-overlay-box {
    position: fixed;
    bottom: 10vh;
    left: 10vw;
    width: 80vw;
    height: auto;
    min-height: 10vh; /* Kannst du später anpassen */
    background-color: rgba(255, 255, 255, 0.95); /* fast weißer Hintergrund */
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.map-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.map-overlay-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0CB8B6;
}

.map-overlay-rating {
    font-size: 0.95rem;
    color: #666;
    white-space: nowrap;
    margin-left: 1rem;
}

.map-overlay-box p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 0.6;
    color: #333;
    white-space: pre-line;
}

.map-search-wrapper {
    position: fixed;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.map-search-box {
    width: 75vw;
    max-width: 500px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.map-search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    padding-right: 1.5rem;
}

.search-icon {
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    color: #ccc;
    user-select: none;
    pointer-events: none;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

.location-button {
    background-color: #0CB8B6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.location-button:hover {
    background-color: #0aa7a5;
}

.location-button svg {
    display: block;
}

#termin-auswahl .date-picker-section {
    height: 66%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

#termin-auswahl .date-picker-section input[type="date"] {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#termin-auswahl .picker-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #ccc;
    width: 100%;
}

#termin-auswahl .time-slot-section {
    height: 34%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

#termin-auswahl .time-slot {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

#termin-auswahl .time-slot:hover {
    background-color: #0CB8B6;
    color: white;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.today.selected {
	background: #0CB8B6 !important;
	border-color: #0CB8B6 !important;
	color: #fff;
}
.flatpickr-day.today {
	border: 1px solid #0CB8B6;
}

.time-slot.selected {
	background-color: #0CB8B6 !important;
	color: white;
	border-radius: 6px;
}

.buchungs-box {
	background-color: #ffffff;
	border-radius: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	width: 100%;
}

@media (min-width: 768px) {
	.buchungs-box {
		width: 90%;
		margin: 0 auto;
	}
}



/* Individuelle Icons für die Buttons */
#dashboard .icon1 { background-image: url('/templates/img/icons/icon_termin.png'); }
#dashboard .icon2 { background-image: url('/templates/img/icons/icon_navi.png'); }
#dashboard .icon3 { background-image: url('/templates/img/icons/icon_eml.png'); }
#dashboard .icon4 { background-image: url('/templates/img/icons/icon_ww.png'); }
/* Großes Icon für den großen Button */
#dashboard .bigicon { background-image: url('/templates/img/icons/icon_selfcheckin.png'); }

#dashboard .icon_overlay {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	position: absolute;
	left: 50%;
	top: 75%;
	width:100%;
	transform: translate(-50%, -50%);
	background-color: rgba(255, 255, 255, 0.85); /* Weiß, 50% transparent */
	//background-color: rgba(12, 184, 182, 0.5); /* Weiß, 50% transparent */
	color: #000; /* Schwarzer Text */
	padding: 0.1em 0.5em;
	border-top: 1px solid #CCC;
	border-bottom: 1px solid #CCC;
	font-size: 1rem;
	white-space: nowrap;
}

/* styles.css */
body {
    background-color: #0CB8B6; /* Original Hintergrundfarbe beibehalten */
    font-family: 'Roboto', sans-serif;
	font-weight: 300 !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header-Stile */
#header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0%;
    background: #0CB8B6 !important; /* Original Hintergrundfarbe beibehalten */
    color: white;
}

/* Header mit 50% Höhe */
body.header-50 #header {
    height: 50vh;
}

/* Header mit 33% Höhe */
body.header-33 #header {
    height: 17vh;
}

/* Main Content */
.container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

#content {
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 0px 10px 0px 10px;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white; /* Original Hintergrundfarbe beibehalten */
    font-weight: normal;
}

/* Transparente Hintergründe */
#content.transparent, #footer.transparent {
    background-color: rgba(255,255,255,0.5);
}

#content.transparent_full {
    background-color: transparent;
    box-shadow: 0 0 0 10px #0CB8B6; /* außen weiß, innen transparent */
    border-radius: 20px; /* deine runden Ecken */
    overflow: hidden; /* sauberes Abschneiden der Inhalte */
}

#content.white, #footer.white {
    background: white;
}

/* Die neue Box, die über dem Content liegt und nach unten geht */
.overlay-box {
    position: absolute;
    top: calc(50% - (40% / 3)); /* Box ragt 1/3 ihrer Höhe nach oben */
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 20px;
	overflow: hidden; /* Alles außerhalb der Box wird ausgeblendet */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#overlay-message {
    font-size: 16px !important;
    line-height: 1.0 !important; /* Falls der Text zu groß wirkt */
    font-weight: normal; /* Falls Bootstrap fett macht */
	margin: 0.25em 0 0 0;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-video {
    width: 100%;  /* Nimmt die volle Breite der Box ein */
    height: auto; /* Höhe wird automatisch angepasst */
    min-height: 100%; /* Stellt sicher, dass das Video die volle Höhe ausfüllt */
    object-fit: cover; /* Überstehende Teile werden abgeschnitten */
}

.qr-overlay {
    position: absolute;
    top: 0; /* Box ragt 1/3 ihrer Höhe nach oben */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 2;
	display: flex;
    justify-content: center;
	flex-direction: column;
    align-items: center;
	color: white;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Erfolgsnachricht */
#overlay .message {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.video-container .hidden { visibility: hidden; }
.video-container .show { visibility: visible; }

/* Responsives Design */
@media (max-width: 576px) {
    body.header-50 #header {
        height: 35vh;
    }

    body.header-33 #header {
        height: 17vh;
    }

    #header h1 {
        font-size: 2.5rem;
		font-weight: 700;
    }
    
    #footer {
        font-size: 0.7rem;
    }

    .overlay-box {
        width: 70%;
        top: 30%;
        height: 50%;
    }
    .special-page .header-image {
        max-width: 100%;  /* Auf kleinen Bildschirmen 100% der Breite */
	}
}

/* Neue Styles für deine Anforderungen */

/* Anpassungen im Header (Logo und Bild) */
.special-page #header {
    position: relative;
    height: 66vh; /* 2/3 Höhe des Bildschirms */
    background-color: white; /* Weißer Hintergrund für den oberen Bereich */
}

#header .logo {
    position: absolute;
    top: 2em;
    right: 2em;
    width: 80px; /* Logo-Größe */
    height: auto;
    z-index: 2;
}

/** Forms */
.form-control:disabled {
  border: 0;
  font-size: 1em;
  color: #777 !important;
}

/* Anamnese Formular */
#anamnesebogen {
    background: #fff;
    border-radius: 10px;
}

fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}


/* Content-Bereich für den unteren Abschnitt */

#header h1.welcome {
	font-size: 3.5rem;
	font-weight: 700;
	margin: 10px 0 0 10%;
}

#header h3.patient_name {
	font-size: 2rem;
	font-weight: 300;
	margin: -10px 0 0 10%;
	padding: 0;
}

#content h1, #header h1 {
    font-size: 2.5rem;
	font-weight: 700;
}

#content p {
    font-size: 1.25rem;
    margin: 20px 0;
}

#content .btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.25rem;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.6rem;
	line-height: 0 !important; /* Falls der Text zu groß wirkt */
    padding: 0px;
	margin: 0px;
    text-align: center;
}

/* Halbrunde Navigation */
.nav-button, .add-button {
	position: fixed;
	background-color: rgba(0, 123, 255, 0.85); /* 85% Deckkraft */
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
	transition: background 0.3s ease, transform 0.2s ease;
	z-index:999;
}

.nav-button {
	width: 60px;
	height: 60px;
	font-size: 1.5rem;
	color: white;
}

.add-button {
	width: 100px;
	height: 100px;
}

.medikament-button {
	border-radius: 50px 50px 50px 50px; /* Halbkreis oben */
	bottom: 5%;
	right: 5%;
	background-color: rgba(12, 184, 182, 0.65); /* Weiß, 50% transparent */
}
.medikament-button i.back { 
	color: rgba(255, 255, 255, 0.35); /* Weiß, 50% transparent */ 
	font-size: 4.25rem;
}
.medikament-button i.full { 
	color: rgba(255, 255, 255, 1); /* Weiß, 50% transparent */ 
	font-size: 2.75rem;
}

/* Stil für das rote "X" genau am Ende des Textes, in gleicher Höhe wie das Eingabefeld */
.clear-icon {
    position: absolute;
    right: 0px;  /* Direkt am Ende des Textes */
    top: 50%;
    bottom: 0;
    width: 25px; /* Gleiche Höhe wie das Input-Feld */
    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 0 6px 6px 0; /* Abgerundete Ecken auf der rechten Seite */
    display: none; /* Anfangs ausblenden */
}

/* Input-Feld bekommt einen rechten Innenabstand, damit der Text nicht unter das "X" rutscht */
#selectedMedicationText {
    padding-right: 50px; /* Platz für das "X" lassen */
}

/* Sobald ein Medikament ausgewählt wurde, wird das "X" sichtbar */
#selectedMedicationSection.active .clear-icon {
    display: flex;
}


#selectedMedicationSection .form-control {
    padding-right: 30px; /* Platz für das X lassen */
}

#searchSection {
    position: relative;
}

#suggestionList {
    position: absolute;
    top: 100%; /* Direkt unter dem Suchfeld */
    left: 0;
    width: 100%; /* Stellt sicher, dass die Breite exakt der Suchleiste entspricht */
    max-height: 50vh; /* Verhindert zu lange Listen */
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
	text-align: left !important; /* Links bündig setzen */
}

.dosage-input {
    width: 70px; /* Kompakte Eingabefelder */
    text-align: center; /* Zahlen mittig ausrichten */
    font-size: 18px;
}

.form-label {
    display: block;
    font-weight: bold;
}

/* Positionen für Home & Profil */
.home-button {
	border-radius: 0 30px 30px 0; /* Halbkreis oben */
	bottom: 10%;
	left: 0;
	background-color: rgba(12, 184, 182, 0.65); /* Weiß, 50% transparent */
	padding: 0 10px 0 0;
}

.profile-button {
	border-radius: 30px 0 0 30px; /* Halbkreis oben */
	top: 5%;
	right: 0;
	background-color: rgba(134, 220, 219, 0.85); /* Weiß, 50% transparent */
	padding: 0 0 0 10px;
}

/* Hover-Effekt */
.nav-button:hover, .add-button:hover {
	background-color: #0CB8B6;
	transform: scale(1.1);
}

/* Icon-Style */
.nav-button i, .add-button i {
	font-size: 1.5em;
}

/* Responsives Design für kleinere Geräte */
@media (max-width: 576px) {
   .special-page #header {
        height: 45vh; /* Kleinere Höhe auf mobilen Geräten */
    }

    .logo {
        width: 60px;
        top: 1em;
        right: 1em;
    }

    #content h1, #header h1 {
        font-size: 2.5rem;
		font-weight: 700;
    }

    #content p {
        font-size: 1rem;
    }

    #content .btn {
        font-size: 1rem;
    }
}
