:root {
	--color-white: #fdfaef;
	--color-blue: #000000;
	--color-lightblue: #daf1ff;
}
body {
	background: var(--color-blue);
	font-family: TimesNewRoman;
	max-height: 100vh;
	max-height: -webkit-fill-available;
	margin: 0;
	overflow: hidden; 
}
.noScroll {
	overflow: hidden;
}
p, table {
	letter-spacing: .006em;
	line-height: 1.4rem;
}
textarea {
	border-radius: 0;
	border: 0;
	padding: 8px 8px 6px 4px;
}

.page {
    position: relative;
	max-width: 632px;
	margin: 0 auto;
    height: 100vh;
	max-height: -webkit-fill-available;
    display: grid;
    grid-template-rows: 78px auto 115px;
}
.page-datenschutz, .page-impressum {
	margin-top: 50px;
}
.button-back {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none !important;
	font-weight: bold !important;
	letter-spacing: .008em !important;
}
.page-di h1, .page-di h3 {
	color: var(--color-white);
	letter-spacing: .008em;
}
.page-di p {
	background: var(--color-white);
	padding: 18px 22px;
	border: 2px solid black;
}
.page-datenschutz table {
	border: 2px solid black;
	border-collapse: collapse;
	background: var(--color-white);
	text-align: left;
}
.page-datenschutz table td:nth-child(2) {
	border-left: 1px solid black;
	padding-left: 14px;
}
button {
	font-family: TimesNewRoman;
	background: var(--color-blue);
	border: 2px solid var(--color-blue);
	border-radius: 0;
	cursor: pointer;
	color: white;
	font-weight: bold;
}
select {
	cursor: pointer;
	font-weight: bold;
}
.button-whiteBlue {
	background: var(--color-white);
	padding: 0 10px;
	border: 2px solid var(--color-white);
	color: var(--color-blue);
	height: 25px;
}
input[type="text"] {
	background: var(--color-white);
	padding: 0 8px;
	border: 2px solid var(--color-blue);
	color: black;
	height: 25px;
}
input[type="checkbox"] {
	position: relative;
	-webkit-appearance: none;
	cursor: pointer;
	height: 14px;
	margin-bottom: -2px;
	width: 14px;
	border: 2px solid var(--color-blue);
	border-radius: 0;
}
input[type="checkbox"]:checked:after {
	content: '\2714';
	font-size: 21px;
	position: absolute;
	top: -12px;
	left: 0px;
	color: var(--color-blue);
	transform: rotate(-7deg);
}

.main-header {
	letter-spacing: 0.07em;
	font-size: 3.4rem;
	text-align: center;
	color: white;
	margin: 50px 0 60px;
}

/* Statements */
.button-info-toggle {
	display: block;
	padding: 4px 14px;
	margin-bottom: 18px;
    position: absolute;
    text-align: left;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
}
.info-text {
	height: 30px;
	overflow: hidden;
	background: var(--color-white);
	padding: 18px 20px;
	margin-bottom: 20px;
	border: 2px solid black;
}
.info-text.active {
	height: auto;
}
.info-text.warn, .info-text.warn input {
	box-shadow: 0 0 3px red;
}
.info-text p {
	display: inline;
}
#msg p {
	padding: 4px 8px;
	background: var(--color-white);
	color: var(--color-blue);
}
.statement-table {
    border-collapse: separate;
    border-spacing: 0;
    white-space: break-spaces;
	margin: 26px auto;
	text-align: left;
	background: transparent;
	padding: 22px 0 0;
	width: 100%;
}
.statement-table tr:last-child {
    background: transparent;
}
.statement-table tr {
	background: var(--color-white);
}
.statement-table .table-spacing {
    background: transparent;
}
.statement-table .table-spacing td {
    padding: 13px;
}
.statement-table.switchmode {
	box-shadow: 0 0 3px red;
}
.statement-table.switchmode tr:hover {
	box-shadow: inset 0 0 5px #006080b5;
	cursor: pointer;
}
.statement-table.switchmode .loaded {
	background: var(--color-lightblue);
}
.switch-st-td {
	width: 0;
	padding: 0;
}
tr.active-answer {
    background: pink;
}
th, td {
    width: 100%;
	position: relative;
	padding: 12px 8px 12px 0;
    vertical-align: top;
}
th:first-child, td:first-child {
	padding-left: 22px;
}
th:last-child, td:last-child {
	padding-right: 0;
}
td:last-child p {
	position: absolute;
    top: -16px;
    margin: 0;
    color: var(--color-white);
    font-weight: bold;
    right: 0;
    text-shadow: 1px 1px var(--color-blue);
    font-size: 12px;
    min-width: max-content;
}
td:nth-child(3) {
    vertical-align: top;
    display: flex;
    border: 0;
}
td .button-rank:first-child {
    margin-right: 5px;
}
.button-rank {
	background: transparent !important;
	border: 0 !important;
	color: var(--color-blue);
	margin-left: 4px;
	opacity: .8;
}
.button-rank:hover {
	opacity: 1;
}
.statement-table button {
    background: transparent;
    color: var(--color-blue);
    border: 0;
}
#setS-statement {
    width: 100%;
    height: 115px;
}



/* Imprint Privacy */
.imprint-link, .privacy-link {
	color: var(--color-white);
	font-weight: bold;
	text-decoration: none;
	float: right;
	margin-right: 8px;
	padding-bottom: 5px;
	font-size: 12px;
	letter-spacing: .04em;
}

/* Stulle */
#stulle-header {
	color: var(--color-white);
    font-weight: bold;
    z-index: 111;
    background: var(--color-blue);
    padding: 20px 24px 12px;
    margin: 0;
}
#image-sandwiche {
    object-fit: contain;
    object-position: left top;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
}
.toggle-stulle {
	margin: 0;
}
#stulle-list {
    background: var(--color-blue); 
    z-index: 11;
    position: relative;
	height: 300px;
    max-height: 100vh;
    overflow: scroll;
    position: relative;
    z-index: 1000;
}
#stulle-list.hide {
    display: none;
}

#statements-list {
	overflow: scroll;
}
#statements-add {
    position: relative;
    z-index: 100;
}
#statements-add .container-save {
	position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    transform: rotate(-90deg) translate( -123px, -54px);
}
#statements-add .button-save {
    font-size: 20px;
    padding: 8px;
	height: 54px;
	width: 132px;
    background: var(--color-blue);
	border: 0;
    color: var(--color-white);
	margin: 0;
}
#setS-statement {
    box-sizing: border-box;
    background: var(--color-white);
}
#statement-add textarea {
    padding-right: 58px;
}
.info-text.active .button-info-toggle {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
}
.info-text.active {
    transform: rotate(360deg) translate(0, 0);
    background: var(--color-blue);
    color: var(--color-white);
}
.info-text {
    transition: all ease 1.2s;
    transform: rotate(-180deg) translate(0, 115px);
    padding: 0;
    width: auto;
    background: transparent;
    /* transform-origin: center; */
    position: absolute;
    border: 0;
	bottom: 0;
	height: 0;
    padding-top: 28px;
    padding: 28px 14px 4px;
    margin: 0;
}


/* answer table */
.answer-row td:last-child p {
    top: -7px;
    color: var(--color-blue);
    text-shadow: none;
    font-weight: normal;
}
.answer-row td:first-child {
    border-left: 22px solid var(--color-blue);
}
.answer-row td {
    border-top: 1px solid var(--color-blue);
}

#answers-add.hidden {
    display: none;
}
#answers-add {
	position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 100%;
    background: var(--color-blue);
    color: var(--color-white);
}
#answers-add textarea {
    height: 100%;
    width: calc(100% - 54px);
    box-sizing: border-box;
    background: var(--color-blue);
    color: var(--color-white);

}
#answers-add .button-save {
    color: var(--color-blue);
    background: var(--color-white);
}
.cancel-answer {
    position: absolute;
    font-size: 17px;
    top: -25px;
}

/*footer*/
.footer {
	position: fixed;
    right: 0;
    bottom: 0;
    transform: rotate(-90deg) translateX(100%);
    transform-origin: right;
    background: var(--color-blue);
    padding: 2px;
    z-index: 1111;
}



@media screen and (-webkit-min-device-pixel-ratio:0) { 
  select,
  textarea,
  input {
    font-size: 16px;
  }
}

.page-datenschutz {
    overflow: scroll;
}
