@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/titillium-web-v6-latin-regular.ttf') format('truetype');
}

/* ============================= */
/* BASIS */
/* ============================= */

@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/titillium-web-v6-latin-regular.ttf') format('truetype');
}

html, body {
	/*font-family: 'Inter', sans-serif;*/
	font-family: Titillium Web;
	font-size: 18px;
    margin: 0;
	padding: 0;
	height: 100%;
	background: linear-gradient(to bottom, #f8fafc, #eef2f7);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================= */
/* LAYOUT */
/* ============================= */

main {
    flex: 1;
	display: flex;
	flex-direction: column;	
	min-height: 0;
}

/*header {
	background: linear-gradient(to bottom, rgba(50,100,30,0.5), rgba(16,46,4,1));
	color: #fff;	
	width: 100%;
}*/

/* ============================= */
/* NAVBAR (BOOTSTRAP) */
/* ============================= */

.navbar {
    background: linear-gradient(to bottom, rgba(50,100,30,0.5), rgba(16,46,4,1));
    padding: 10px 15px;
}

.navbar-brand {
    font-size: 20px;
    color: white !important;
}

.nav-link {
    color: white !important;
    transition: 0.2s;
}

.nav-link:hover {
    color: yellow !important;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
	display: flex;
	background: linear-gradient(to bottom, rgba(16,46,4,.5), rgba(50,100,30,1));
	color: #fff;
	font-size: 16px;
	width: 100%;
	padding: 15px;	
    align-items: center;
    justify-content: space-between;
}

footer nav {
	display: flex;
	gap: 10px;
}

footer nav a {
    color: white;
	text-decoration: none;
}

footer nav a:hover {
    color: yellow;
}

/* ============================= */
/* CONTENT */
/* ============================= */

article, #results {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

article iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* ============================= */
/* TYPO */
/* ============================= */

h2 {
	font-size: 24px;
	margin: 0 12px;
	color: rgba(0,0,0,0.5);
}

a {
    color: blue;
    text-decoration: none;
}

a:hover {
	color: #73886a;
}

/* ============================= */
/* CARD */
/* ============================= */

.card {
    background: rgba(255,255,255,0.8);
    overflow-y: auto;
	width: 100%;
    padding: 20px;	
	margin: 0 auto;
	border-radius: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* ============================= */
/* FORM */
/* ============================= */

.form-control {
    padding: 10px;
	width: 60%;
	margin: 2px 0;
}

.form-control:focus {
	background-color: #fff3cd!important;
    border-color: #16a34a!important;
	box-shadow: 0 0 0 0.2rem rgba(22,163,74,.25)!important;
}

.form-check-input {
    background-color: #fff3cd!important; /* gelb */
    border-color: #16a34a!important; /*grün */
    box-shadow: 0 0 0 0.2rem rgba(22,163,74,.25)!important;
}

/* Optional: auch wenn angehakt */
.form-check-input:checked {
    background-color: #333!important; /* kräftigeres gelb */
    border-color: #16a34a!important; /*grün */
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-control.is-invalid,
.form-check-input.is-invalid {

    border-color: #dc3545 !important;

}

.form-control.is-invalid:focus,
.form-check-input.is-invalid:focus {

    border-color: #dc3545 !important;

    box-shadow:
        0 0 0 0.2rem rgba(220,53,69,.25) !important;

}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn-success {
    background: #16a34a;
    border: none;
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

.btn-success:hover {
	color: white;
    box-shadow: 0 6px 18px rgba(34,197,94,0.4);
}

/* ============================= */
/* BACKGROUND */
/* ============================= */

.background {
	background-image: url(../images/background.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================= */
/* INFO-ICON */
/* ============================= */

.info-icon {
    cursor: pointer;
    font-size: 16px;
    color: #6c757d; /* Bootstrap secondary */
    transition: 0.2s;
}

.info-icon:hover {
    color: #0d6efd; /* Bootstrap primary */
    transform: scale(1.1);
}



/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {

    main {
        padding: 10px;
    }

    article {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    /* NAV */
    .navbar-nav {
        text-align: center;
        margin-top: 10px;
    }

    .nav-link {
        padding: 8px;
    }

    /* FORM */
    .form-control {
        width: 100%;
    }

    /* FOOTER */
    footer {
        flex-direction: column;
        text-align: center;
    }
	
	 .modal-dialog {
        margin: 1rem auto;
        width: calc(100% - 2rem);
        max-width: 500px;
    }

}