﻿@media (prefers-color-scheme: dark)
{
	:root
	{
		/* colors */
		--color-slate-50: #F8FAFC;
		--color-slate-100: #1E293B;
		--color-slate-200: #334155;
		--color-slate-300: #475569;
		--color-slate-400: #64748B;
		--color-slate-500: #94A3B8;
		--color-slate-600: #CBD5E1;
		--color-slate-700: #E2E8F0;
		--color-slate-800: #F1F5F9;
		--color-slate-900: #FFFFFF;
		--color-green-50: #F0FDF4;
		--color-green-100: #DCFCE7;
		--color-green-200: #BBF7D0;
		--color-green-300: #86EFAC;
		--color-green-400: #4ADE80;
		--color-green-500: #22C55E;
		--color-green-700: #15803D;
		--color-black: #0F172A;
		--color-white: #1E293B;
		--color-body-bg: var(--color-black);
		/* images */
		--bg-img-fmh-logo: url(https://cdn1.fmh.de/images/fmh.svg);
		--bg-img-award: url(https://cdn1.fmh.de/images/fmh/award-dm.svg);
		--bg-img-award-line: url(https://cdn1.fmh.de/images/fmh/award-line-dm.svg);
		--bg-img-chevron-down-select: url(https://cdn1.fmh.de/images/fmh2/chevron-down-select.svg);
		--bg-img-info-circle: url(https://cdn1.fmh.de/images/fmh/info-circle-dm.svg);
		--bg-img-location-fill: url(https://cdn1.fmh.de/images/fmh/location-fill-dm.svg);
		--bg-img-location-on: url(https://cdn1.fmh.de/images/fmh/location-on-dm.svg);
		--bg-img-question-fill: url(https://cdn1.fmh.de/images/fmh/question-fill-dm.svg);
	}

	div.alfag select option:hover, div.alfag select option:checked
	{
		color: var(--color-slate-100);
	}
	div.alfag ul.tabs li.active a
	{
		background: var(--color-slate-200);
	}
	div.alfag ul.tabs li.active a:hover
	{
		background: var(--color-slate-100);
	}
	div.alfag fieldset .submit, div.alfag fieldset .button_selected
	{
		background: var(--color-slate-200);
	}
	div.alfag fieldset .submit:hover, div.alfag fieldset .button_selected:hover
	{
		background: var(--color-slate-100);
	}
	div.alfag .angebotslink
	{
		background: var(--color-slate-200);
	}
	div.alfag .angebotslink:hover
	{
		background: var(--color-slate-100);
	}
	div.alfag .mlink
	{
	}
	div.alfag .mlink:hover
	{
		color: var(--color-slate-100);
		background: var(--color-green-300);
	}
	div.alfag .ui-checkboxradio-label.ui-button:hover
	{
		color: var(--color-white-permanent);
	}
}

@media (max-width: 840px)
{
	div.alfag.schnellcheck .resulttable .col-angebot-gueltigkeit
	{
		display: none;
	}
}

@media (max-width: 740px)
{
	div.alfag .resulttable .col-zinssatz-fest-variabel
	{
		display: none;
	}
}

@media (max-width: 640px)
{
	:root
	{
		/*  */
		--font-size-h1: 32px;
		--font-size-h2: 28px;
		--font-size-h3: 26px;
		--font-size-h4: 22px;
		--font-size-h5: 20px;
		--font-size-h6: 18px;
	}

	div.alfag ul.tabs li
	{
		width: 40%;
	}

	div.alfag .resulttable .col-bonusbetrag
	{
		display: none;
	}
}

@media (max-width: 560px)
{
	div.alfag .schnellcheck-buttonset table, div.alfag .schnellcheck-buttonset tbody, div.alfag .schnellcheck-buttonset tr
	{
		display: block;
	}
	div.alfag .schnellcheck-buttonset td
	{
		display: inline-block;
		width: 32%;
	}
	div.alfag .schnellcheck-buttonset td:nth-child(1)
	{
		width: 100%;
		padding: 10px 0 4px 0;
	}

	div.alfag .resulttable .col-rendite
	{
		display: none;
	}
	div.alfag .resulttable .col-rendite-ohne-steuer
	{
		display: none;
	}
}

@media (max-width: 480px)
{
	div.alfag .printlink
	{
		display: none;
	}

	div.alfag ul.tabs li
	{
		width: 100%;
	}
	div.alfag ul.tabs li a
	{
		text-align: center;
	}
	
	div.alfag fieldset label
	{
		width: 100%;
	}
	div.alfag fieldset input, div.alfag fieldset input[type=text], div.alfag fieldset select
	{
		width: 50%;
		margin: 4px 0px;
	}
	div.alfag.schnellcheck fieldset input, div.alfag.schnellcheck fieldset input[type=text]
	{
		width: 95%;
	}
	div.alfag fieldset .select2
	{
		/*width: 50%;*/
	}
	div.alfag fieldset input.submit
	{
		width: 50%;
	}
	div.alfag.schnellcheck fieldset input.submit
	{
		width: 95%;
	}
	
	div.alfag .schnellcheck-buttonset tr:nth-child(3) td:nth-child(2), div.alfag .schnellcheck-buttonset tr:nth-child(3) td:nth-child(3)
	{
		width: 49%;
	}
	div.alfag .schnellcheck-buttonset input
	{
		float: none;
	}
	
	div.alfag .result table, div.alfag .result tbody, div.alfag .result tr
	{
		display: block;
	}
	div.alfag .result td
	{
		display: inline-block;
	}
	div.alfag .result td:nth-child(odd)
	{
		width: 40%;
	}
	div.alfag .result td:nth-child(even)
	{
		width: 55%;
	}

	div.alfag .headerrow th, div.alfag .headerrow td
	{
		white-space: normal;
	}
	
	div.alfag .resulttable, div.alfag .resulttable > thead, div.alfag .resulttable > tbody
	{
		display: block;
	}
	div.alfag .resulttable .headerrow, div.alfag .resulttable .datarow1, div.alfag .resulttable .datarow2
	{
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: center;
	}

	div.alfag .resulttable th.col-anbieter,
	div.alfag .resulttable .col-zinsen,
	div.alfag .resulttable .col-gesamtbetrag
	{
		display: flex;
		align-items: center;
	}
	div.alfag .resulttable .col-zinsen,
	div.alfag .resulttable .col-gesamtbetrag
	{
		justify-content: center;
	}

	div.alfag .resulttable .col-anbieter
	{
		width: 48% !important;
		min-height: 56px;
	}
	div.alfag .resulttable .col-zinsen
	{
		width: 20% !important;
	}
	div.alfag .resulttable .col-gesamtbetrag
	{
		width: 32% !important;
	}
	div.alfag .resulttable .headerrow .col-angebot
	{
		display: none;
	}
	div.alfag .resulttable td.col-angebot
	{
		width: 100%;
		background-color: var(--color-body-bg);
	}
		
	div.alfag .angebotslink
	{
		/*width: 80%;*/
	}
	
	div.alfag .award
	{
		display: none;
	}

}

@media (max-width: 400px)
{
	div.alfag input, div.alfag select,
	div.alfag .schnellcheck-buttonset .rb label, div.alfag .schnellcheck-buttonset .cb label,
	div.alfag .schnellcheck-buttonset li span
	{
		font-size: 14px;
	}
}
