* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
	position: relative;
    width: 98%;
    margin: 0 1%;
    padding: 0;
    max-width: 800px;
    background: white;
    border-radius: 30px;
	border: 5px solid #0c5c7f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header {
    background: white;
    padding: 25px;
    text-align: center;
	border-top-left-radius: 30px;
	border-top-right-radius: 30px;
}

.logo {
	width: 80%;
	max-width: 300px;
}

.flags {
	position: absolute;
    right: 20px;
    top: 10px;
	display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.flags img {
	width: 32px;
}

.flags button {
	padding: 0;
	margin-left: 6px;
	background-color: #ffffff;
}
.flags button:first-child img {
	margin-top: 2px;
}

.header h1 {
	color:  #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
	display: none;
}

.header p {
	color:#b91c1c
}

.steps {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    font-weight: 500;
    color: #95a5a6;
}

.step.active {
    color: #3498db;
    font-weight: 600;
}

.step .dot {
    display: block;
    font-size: 12px;
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
    z-index: 2;
}

.step.active .dot {
    background: #3498db;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 10px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.form-container {
    padding: 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    font-size: 22px;
}
#form-step-1 h2,
#form-step-2 h2 {
	display: none;
} 

.form-group {
    margin-bottom: 20px;
	width:100%;
}
#form-step-3 .form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #0066b3;
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.form-group select:hover {
    border-color: #aaa;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.tarif-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.tarif-option {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tarif-option:hover {
    border-color: #3498db;
    background-color: #f8fafd;
}

.tarif-option.selected {
    border-color: #3498db;
    background-color: #e1f0fa;
}

.tarif-name {
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
}

.tarif-details {
    margin-top: 8px;
    color: #7f8c8d;
}

.tarif-price {
    margin-top: 10px;
    font-weight: 600;
    color: #27ae60;
    font-size: 18px;
}

.tarif-price div {
	margin-bottom: 10px;
	font-weight: 400;
}

.tarif-price div:last-child {
	margin-bottom: 0;
	font-weight: 600;
}

.error-message {
    color: #e74c3c;
    margin-top: 5px;
    font-size: 14px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-prev {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-prev:hover {
    background: #dde4e6;
}

.btn-next, .btn-submit {
    background: #3498db;
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background: #2980b9;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.not-possible {
    text-align: center;
    padding: 40px;
}

.not-possible-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.parodontose-question {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.price-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.final-price {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
}

.no-tariffs-message {
    text-align: center;
    padding: 30px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.no-tariffs-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.no-tariffs-message h3 {
    color: #856404;
    margin-bottom: 10px;
}

.no-tariffs-message p {
    color: #856404;
    margin-bottom: 20px;
}

.tarif-all-info { margin-top: 8px; }
.tarif-all-info a { 
	text-decoration: underline; 
	 font-size: 0.9em;
	color:  #0c5c7f;
}

.price-table-title { margin: 10px 0 6px; font-size: 1rem; font-weight: 600; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.price-table th, .price-table td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: right; }
.price-table th:first-child, .price-table td:first-child { text-align: center; }
.price-table th:nth-child(2), .price-table td:nth-child(2) { text-align: center; }
.price-table th:last-child, .price-table td:last-child { white-space: nowrap; }

.spinner{
  width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:#3b82f6;
  border-radius:50%;animation:spin 1s linear infinite;margin:12px auto;
}
.warnung {
	position: absolute;
    left: 20%;
    bottom: 30px;
	transform:translateX(-50%) translateY(20px);
	min-width:260px;max-width:90vw;padding:12px 14px;border-radius:10px;
	background:#fef2f2;color:#7f1d1d;border:1px solid #fecaca;
	box-shadow:0 8px 24px rgba(0,0,0,.12);
	font-size:15px;line-height:1.3;opacity:0;pointer-events:none;transition:opacity .2s, transform .2s;
} 
@keyframes spin{to{transform:rotate(360deg)}}

/* Toggle-Infos */
.tarif-more { margin-top: 8px; }
.tarif-more .toggle-details {
  color: #0c5c7f;
  background: none; border: 0; cursor: pointer;
  font-size: 14px; text-decoration: underline; padding: 0;
}
.tarif-details-panel {
  display: none; margin-top: 8px; padding: 10px;
  border: 1px solid #e5e7eb; border-radius: 8px; background:#f8f9fa;
}
.tarif-details-panel.open { display: block; }
.tarif-details-panel ul { margin: 0; padding-left: 18px; }
.tarif-details-panel li { margin-top: 10px; }

.leeresfeld {
  display:block;
  margin-top:4px;
  font-size:0.9rem;
  color:#b91c1c; /* rot */
}
input[aria-invalid="true"] { border-color:#b91c1c; outline-color:#b91c1c; }
@media (max-width: 600px) {
	body {
		padding: 5px;
	}
	h2 {
    	font-size: 18px;
		margin-bottom: 12px;
	}
	.header {
		padding: 15px;
	}
	.flags { 
		position: relative;
		right: auto;
		top: 10px;	
		flex-wrap: wrap;
		align-content: center;
		align-items: center;
		justify-content: center;
		margin-bottom: 5px;
	}
	.flags button {
        width: auto;
    }
    .steps {
        padding: 15px 5px;
		font-size: 14px;
    }

    .step:after {
        display: none;
    }
	
	.form-container,
	.tarif-option  {
		  padding: 16px;
	}
	
	.tarif-details-panel {
		padding: 6px;
	}
	
	.tarif-details-panel li {
		margin-top: 10px;
		line-height: 1.4;
	}

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
	.warnung { 
		left: 50%;
		bottom: 70px;
	}
}
