/* Import Fonts */
@import '../node_modules/@fontsource/roboto/300.css'; /* Light */
@import '../node_modules/@fontsource/roboto/400.css'; /* Regular */
@import '../node_modules/@fontsource/roboto/500.css'; /* Medium */
@import '../assets/fontawesome-pro-6.0.0-beta2-web/css/all.css';

/* CSS Variables für dynamisches Verstecken */
:root
{
	--pin-screen-display: flex;
	--form-selection-display: none;
}

/* Global Styles */
*
{
	box-sizing: border-box;
}

body#main-body
{
	min-height: 100vh;

	background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
}

body#main-body header
{
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
}

body
{
	font-family: 'Roboto', sans-serif;
	line-height: 1.6;

	display: flex;
	flex-direction: column;

	margin: 0;

	background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);

	justify-content: center;
	align-items: center;
}

/* Smooth transitions for all interactive elements */
*,
*::before,
*::after
{
	transition: all .3s ease;
}

/* Header */
header
{
	width: 100%;
	padding: 20px 0;

	border-bottom: 1px solid rgba(255, 255, 255, .1);
	background: linear-gradient(135deg, #008244 0%, #006b35 100%);
	box-shadow: 0 4px 20px rgba(0, 130, 68, .3);

	backdrop-filter: blur(10px);
}

header img
{
	height: 60px;

	transition: transform .3s ease;
}

header img:hover
{
	transform: scale(1.05);
}

/* Back Button Styling */
.back-button
{
	font-size: 14px;
	font-weight: 500;

	position: absolute;
	top: 50%;
	left: 0;

	display: inline-flex;

	margin-left: 0;
	padding: 8px 16px;

	cursor: pointer;
	transition: all .3s ease;
	transform: translateY(-50%);
	text-decoration: none;

	color: white;
	border: 2px solid rgba(255, 255, 255, .3);
	border-radius: 25px;
	background: rgba(255, 255, 255, .1);

	align-items: center;
	gap: 8px;
}

.back-button:hover
{
	transform: translateY(-50%) translateX(-2px);
	text-decoration: none;

	color: white;
	border-color: rgba(255, 255, 255, .5);
	background: rgba(255, 255, 255, .2);
}

.back-button i
{
	font-size: 12px;
}

/* Form Container */
.container.content
{
	max-width: 800px;
	margin: 120px 0 0 10px;
	padding: 40px 10px;

	animation: fadeInUp .6s ease-out;
}

/* ESG Form Container - zusätzliches Margin */
.container.content.esg-form
{
	width: calc(100% - 30px);
	margin-top: 120px;
	margin-right: 0;
	margin-bottom: 15px;
	margin-left: 0;
}

@keyframes fadeInUp
{
	from
	{
		transform: translateY(30px);

		opacity: 0;
	}
	to
	{
		transform: translateY(0);

		opacity: 1;
	}
}

/* Form Title */
h2
{
	font-size: 2rem;
	font-weight: 500;

	position: relative;

	margin-bottom: 30px;
	padding-bottom: 15px;

	text-align: left;

	color: #2c3e50;
}

/* Form Sign-in */
.form-signin
{
	width: 100%;
	max-width: 400px;
	margin: auto;
	padding: 40px 20px;

	animation: fadeInUp .8s ease-out;

	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 20px;
	background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .1),
	0 8px 16px rgba(0, 0, 0, .06);

	backdrop-filter: blur(10px);
}

.form-signin input[type='password']
{
	font-size: 1.5rem;

	margin-bottom: 10px;
	padding: 16px;

	transition: all .3s ease;
	text-align: center;
	letter-spacing: .5rem;

	border: 2px solid #e9ecef;
	border-radius: 12px;
}

.form-signin input[type='password']:focus
{
	border-color: #008244;
	outline: none;
	box-shadow: 0 0 0 .2rem rgba(0, 130, 68, .15);
}

.form-signin .form-floating:focus-within
{
	z-index: 2;
}

/* Button Styles */
#contact-form button.btn,
.esg-form button.btn,
button.btn
{
	font-size: 1rem;
	font-weight: 500;

	position: relative;

	overflow: hidden;

	margin-top: 15px;
	padding: 14px 28px;

	cursor: pointer;
	transition: all .3s ease;

	color: white;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #008244 0%, #006b35 100%);
	box-shadow: 0 4px 15px rgba(0, 130, 68, .3),
	0 2px 4px rgba(0, 0, 0, .1);
}

#contact-form .btn:hover,
.esg-form .btn:hover,
.btn:hover
{
	transform: translateY(-2px);

	background: linear-gradient(135deg, #006b35 0%, #005a2a 100%);
	box-shadow: 0 8px 25px rgba(0, 130, 68, .4),
	0 4px 8px rgba(0, 0, 0, .15);
}

#contact-form .btn:active,
.esg-form .btn:active,
.btn:active
{
	transform: translateY(0);

	box-shadow: 0 2px 10px rgba(0, 130, 68, .3),
	0 1px 2px rgba(0, 0, 0, .1);
}

/* Daten-löschen Button */
.clear-cache-btn
{
	margin-top: 0 !important;
	padding: 6px 14px !important;

	color: white !important;
	border-radius: 8px !important;
	background: #dc3545 !important;
	box-shadow: none !important;
}

.clear-cache-btn:hover
{
	transform: none !important;

	background: #bb2d3b !important;
	box-shadow: none !important;
}

/* Custom Select */
.custom-select
{
	font-weight: 400;

	padding: 12px 16px;

	transition: all .3s ease;

	border: 2px solid #e9ecef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .02);
}

.custom-select:focus
{
	border-color: #008244;
	outline: none;
	box-shadow: 0 0 0 .2rem rgba(0, 130, 68, .15);
}

/* Checkbox Styling */
#contact-form .form-check-input:checked,
.esg-form .form-check-input:checked,
.form-check-input:checked
{
	border-color: #008244;
	background-color: #008244;
	box-shadow: 0 2px 8px rgba(0, 130, 68, .3);
}

/* Radio Button Styling */
#contact-form .form-check-input[type='radio']:checked,
.esg-form .form-check-input[type='radio']:checked,
.form-check-input[type='radio']:checked
{
	border-color: #008244;
	background-color: #008244;
	box-shadow: 0 2px 8px rgba(0, 130, 68, .3);
}

/* Focus states */
#contact-form .form-check-input:focus,
.esg-form .form-check-input:focus,
.form-check-input:focus
{
	border-color: #008244;
	box-shadow: 0 0 0 .2rem rgba(0, 130, 68, .15);
}

/* Enhanced Form Check Styling */
.form-check
{
	margin-bottom: 4px;
	padding: 2px 0;
}

.form-check-input
{
	width: 1.2em;
	height: 1.2em;
	margin-top: .2em;

	transition: all .3s ease;
}

.form-check-label
{
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.5;

	margin-left: 8px;

	cursor: pointer;

	color: #2c3e50;
}

/* Form Group */
.form-group
{
	margin-bottom: 1.8rem;
}

/* Enhanced Form Controls */
.form-control,
.custom-select
{
	font-size: 1rem;

	padding: 12px 16px;

	transition: all .3s ease;

	border: 2px solid #e9ecef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .02);
}

.form-control:focus,
.custom-select:focus
{
	border-color: #008244;
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 .2rem rgba(0, 130, 68, .15);
}

.form-control:hover,
.custom-select:hover
{
	border-color: #dee2e6;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .04);
}

/* Form Labels */
.form-group label
{
	font-size: .95rem;
	font-weight: 500;

	display: block;

	margin-bottom: 8px;

	letter-spacing: .01em;

	color: #2c3e50;
}

.form-group label b
{
	font-weight: 600;
}

/* Tiles for Form Selection */
.tile-container
{
	overflow: hidden;

	margin: 20px 0;

	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

/* Individual Tile */
.tile
{
	display: flex;

	padding: 16px 20px;

	cursor: pointer;
	transition: background .15s ease;

	color: #1a1a1a;
	border-bottom: 1px solid #f0f0f0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;

	align-items: center;
}

.tile:last-child
{
	border-bottom: none;
}

.tile:hover
{
	transform: none;

	background: #f5f5f5;
	box-shadow: none;
}

.tile:active
{
	background: #ebebeb;
}

/* Icon within Tile */
.tile-icon
{
	font-size: 1.2rem;

	width: 28px;

	text-align: center;

	color: #4a4a4a;
}

/* Tile Title */
.tile-title
{
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;

	flex: 1;

	margin-left: 16px;

	color: #1a1a1a;
}

/* Chevron */
.tile-chevron
{
	font-size: .75rem;

	color: #c0c0c0;
}

/* ESG Form Sections */
.form-section .card
{
	overflow: hidden;

	margin-bottom: 24px;

	transition: all .3s ease;

	border: 1px solid #e9ecef;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.form-section .card:hover
{
	transform: translateY(-2px);

	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.form-section .card-header
{
	padding: 1.5rem 1.5rem;

	border-bottom: none;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Data Controls Section zwischen Header und Body */
.card-data-controls
{
	padding: .75rem 1.5rem;

	border-top: 1px solid #e9ecef;
	border-bottom: 1px solid #e9ecef;
	background: #f8f9fa;
}

.card-data-controls .clear-data-btn
{
	font-size: .8rem;

	padding: .375rem .75rem;

	transition: all .2s ease;

	border-radius: 6px;
}

.card-data-controls .clear-data-btn:hover
{
	/* Hover effects removed for less prominence */
}

.card-data-controls .clear-data-btn i
{
	margin-right: .5rem;
}

.form-section .card-body
{
	padding: 2rem 1.5rem;
}

.section-title
{
	font-size: 1.1rem;
	font-weight: 600;

	color: #2c3e50;
}

/* Form Check Styling */
.form-check
{
	margin-bottom: 12px;
	padding-left: 2rem;
}

.form-check .form-check-input
{
	margin-top: .25rem;
	margin-left: -2rem;
}

.form-check-label
{
	font-size: .95rem;
	line-height: 1.4;

	color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px)
{
	.container.content
	{
		margin: 100px 0 0 15px;
		padding: 24px 0;

		border-radius: 16px;
	}

	.tile
	{
		height: 70px;
		padding: 16px 20px;
	}

	.tile i
	{
		font-size: 1.6rem;

		margin-right: 12px;
	}

	.tile-title
	{
		font-size: 1.1rem;
	}

	.back-button
	{
		font-size: 13px;

		left: 10px;

		padding: 6px 12px;
	}

	h2
	{
		font-size: 1.6rem;

		margin-bottom: 24px;
	}
}

/* Utility Classes */
.hidden
{
	display: none;
}

.text-danger
{
	color: #ff4d4d !important;
}

.test-pdf-btn
{
	display: none;
}
.test-pdf-btn-active
{
	display: inline-block;
}

/* PIN Screen specific styling */
#pin-screen
{
	margin-top: 10vh;
}

/* Success states */
.form-control.is-valid
{
	border-color: #008244;
	box-shadow: 0 0 0 .2rem rgba(0, 130, 68, .15);
}

.form-control.is-invalid
{
	border-color: #dc3545;
	box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15);
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px)
{
	.form-signin
	{
		max-width: none;
		margin: 5vh 15px;
		padding: 30px 20px;
	}

	.tile-container
	{
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.form-group
	{
		margin-bottom: 1.5rem;
	}

	.container.content
	{
		padding: 20px 0;
	}
}

/* Version Display */
.version-display
{
	position: static;

	margin-top: 2rem;
	margin-right: auto;
	margin-left: auto;
	padding: 8px 12px;

	text-align: center;

	border-radius: 4px;
	background: rgba(0, 0, 0, .05);
}

.version-display small
{
	font-size: .75rem;
	font-weight: 400;

	opacity: .7;
	color: #6c757d;
}

@media (max-width: 480px)
{
	.version-display
	{
		margin-top: 1.5rem;
		padding: 6px 10px;
	}

	.version-display small
	{
		font-size: .7rem;
	}
}
