/* Allgemeine Stile */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Container & Überschriften */
.container {
    background-color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    margin: 30px auto;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #C31924;
    text-align: center;
    letter-spacing: 4px;
}

/* Eingabegruppen Styling */
.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ddd;
}

.input-group label span {
    font-size: 14px;
    color: #ff6b6b;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,input,
input[type="date"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #555;
    color: #fff;
    transition: border-color 0.3s ease;
}

input[type="date"] {
    background-color: #444;
    color: #fff;
}

input[type="date"]:focus {
    border-color: #e3000f;
    outline: none;
}

select:disabled {
    background-color: #555;
    color: #888;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background-color: #e3000f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: linear-gradient(180deg, #e3000f 0%, #96000f 80%);
    transform: scale(1.05);
}

/* Appointment & Zusatzbereiche */
.appointment-block {
    margin-bottom: 30px;
}

.appointment-block h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #C31924;
}

.appointment-block h2 span {
    font-size: 14px;
    color: #ff6b6b;
}

.optional {
    border-top: 2px dashed #444;
    padding-top: 20px;
    margin-top: 20px;
}

#responseMessage {
    margin-top: 20px;
    color: #28a745;
    text-align: center;
}

/* Footer */
footer {
    width: 100%;
    padding: 10px 0;
    background-color: #111;
    color: #fff;
    text-align: center;
    position: relative;
    bottom: 0;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-container a {
    color: #e3000f;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: #ff6b6b;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.styled-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.styled-checkbox + .styled-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
    line-height: 20px;
    color: #ddd;
}

.styled-checkbox + .styled-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.styled-checkbox:checked + .styled-label:before {
    background: #e3000f;
    border-color: #e3000f;
    content: '✔';
    color: white;
    text-align: center;
    line-height: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #333;
}

.modal-content p {
  color: black;
  white-space: pre-line;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Animation */
.fade-container {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
