html, body {
	position: relative;
	width: 100%;
	height: 100%;
	/*overflow: hidden;*/
	font-family: Arial, sans-serif;
}

html {
	display: table;
}

body {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	color: #666;
}

main {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 1000px;
	height: 100%;
	max-height: 555px;
	border: 1px solid #666;
	text-align: left;
}

header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 45px;
	background: #6e6d71;
	text-align: center;
	z-index: 500;
}

header a {
	display: inline-block;
	width: 120px;
	height: 24px;
	margin: 9px;
	background: #82c11b;
    border-top: 1px solid #64aa27;
    border-left: 1px solid #638009;
    border-bottom: 1px solid #638009;
    border-right: 1px solid #638009;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
    border-radius: 5px;	
	vertical-align: top;
}

header a:hover {
	background: #89d324;
    line-height: 25px;
}

section {
	float: left;
}

.left {
	width: 50%;
	height: 100%;
	display: table;
	box-sizing: border-box;
}

.left-inner {
	position: relative;
	width: 100%;
}	

.beschreibung {
	width: 100%;
	margin-top: 45px;
	height: 45px;
	box-sizing: border-box;
	padding: 8px 0 0 12px;
	font-size: 16px;
}

.beschreibung h1 {
	text-transform: uppercase;
	margin-bottom: 5px;
}

.beschreibung p {
	font-size: 0.8em;
}

.video-container {
    /* width is set as 100% here. any width can be specified as per requirement 720 x 576 */
    width: 100%;
    padding-top: 75.00%;
    height: 0px;
    position: relative;
}

.video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.right {
	width: 50%;
	height: 100%;
	overflow: hidden;
	background: #f5f5f5;
	position: relative;
}

.right-top, .right-bottom {
	box-sizing: border-box;
	height: 50%;
	overflow: auto;
}

.right-top {
	border-top: 45px solid transparent;
}

.right-top > ol,
.right-bottom > ol {
	margin: 0.5em 0;
}

.right-bottom {
	border-bottom: 45px solid transparent;
}

.right ol {
	list-style-type: none;
	font-size: 14px;
}

.right h3  {
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 5px;
}

.right li {
	display: none;
	font-size: 0.95em;
	line-height: 1.3em;
	box-sizing: border-box;
	width: 100%;
}

.right .folie.aktiv,
.right .folie.aktiv > ol > li {
	display: block;
}

hr {
	width: 90%;
	position: absolute;
	top: 50%;
	left: 5%;
	margin: 0;
}

ol > li > ol > li,
.right h3 {
	padding-left: 20px;
}

ol > li > ol > li.aktiv {
	background: #dbf7a9;
}

footer {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 45px;
	width: 100%;
	background: #e6e6e6;
	font-size: 12px;
	box-sizing: border-box;
	border-top: 1px solid #c2c2c2;
}

main + p {
	font-size: 10px;
	line-height: 2.4em;
	text-indent: 10px;
}

main + p a {
	text-decoration: none;
	color: #999;
}

main + p a:hover {
	text-decoration: underline;
}

footer a {
	position: relative;
	display: block;
	float: left;
	color: #666;
	text-decoration: none;
	width: 11.1%;
	height: 42px;
	padding-top: 3px;
	text-align: center;
}

footer a:after {
	content: '';
	display: block;
	position: absolute;
	height: 30px;
	right: 0;
	top: 7px;
	width: 0;
	border-left: 1px solid #999;
}

footer a:last-child:after {
	display: none;
}

.steuerung {
	width: 100%;
	height: 45px;
	text-align: center;
}

button {
	width: 30px;
	height: 30px;
	border-radius: 15px;
	background: url('../img/alle_buttons.png') no-repeat;
	border: 0;
	margin: 7px 3px 0 3px;
	display: inline-block;
	padding: 0;
}

#repeat_slide {
	background-position: 0 0;
}

#repeat_line {
	background-position: -30px 0;
	margin-right: 30px;
}

#previous_slide {
	background-position: -60px 0;
}

#previous_line {
	background-position: -90px 0;
}

#play_pause {
	background-position: -120px 0;
}

#stop {
	background-position: -180px 0;
}

#next_line {
	background-position: -210px 0;
}

#next_slide {
	background-position: -240px 0;
}

#pause_after_line {
	background-position: -270px 0;
	margin-left: 30px;
}

#pause_after_slide {
	background-position: -300px 0;
}

.frage .right {
	display: none;
}

.frage .left {
	display: block;
	width: 100%;
	position: absolute;
	top: 45px;
	bottom: 45px;
	height: auto;
	padding: 45px;
	box-sizing: border-box;
	overflow: auto;
}

.frage .left h2,
.frage .left p {
	margin-bottom: 20px;
}

.frage ol,
.frage ul {
		list-style-type: bullet;
		margin-bottom: 20px;
}

.frage li {
	margin-left: 20px;
}
/* Responsive refresh 2026: keeps the original look, but works on phones/tablets. */
:root {
	--green: #82c11b;
	--green-hover: #8dd42a;
	--dark: #5f5e62;
	--border: #c9c9c9;
	--panel: #f7f7f7;
	--highlight: #dbf7a9;
}

html {
	display: block;
	box-sizing: border-box;
	font-size: 16px;
}

*, *:before, *:after {
	box-sizing: inherit;
}

html, body {
	min-height: 100%;
	height: auto;
}

body {
	display: block;
	padding: clamp(8px, 2vw, 20px);
	background: #f0f0f0;
	line-height: 1.45;
}

main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(100%, 1100px);
	height: min(640px, calc(100vh - 70px));
	min-height: 555px;
	max-height: none;
	margin: 0 auto;
	overflow: hidden;
	background: #fff;
	border-color: var(--border);
	border-radius: 10px;
	box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

header {
	position: static;
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: auto;
	min-height: 45px;
	padding: 8px;
	background: var(--dark);
}

header a {
	width: auto;
	min-width: 120px;
	height: auto;
	min-height: 30px;
	margin: 0;
	padding: 6px 12px;
	font-size: 0.83rem;
	line-height: 1.2;
	background: var(--green);
}

header a:hover,
header a:focus-visible {
	background: var(--green-hover);
	line-height: 1.2;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

section {
	float: none;
}

.left,
.right {
	width: auto;
	height: auto;
	min-width: 0;
}

.left {
	display: block;
	grid-column: 1;
	grid-row: 2;
	overflow: auto;
	background: #fff;
}

.left-inner {
	display: flex;
	min-height: 100%;
	flex-direction: column;
}

.beschreibung {
	margin-top: 0;
	height: auto;
	min-height: 64px;
	padding: 12px 16px;
}

.beschreibung h1 {
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.2;
}

.beschreibung p {
	font-size: 0.9rem;
}

.video-container {
	flex: 0 0 auto;
	background: #111;
}

.video {
	display: block;
}

.steuerung {
	height: auto;
	min-height: 56px;
	padding: 6px 8px 10px;
}

button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	margin: 6px 4px 0;
	background-size: auto 36px;
	cursor: pointer;
}

button:focus-visible {
	outline: 3px solid var(--green);
	outline-offset: 2px;
}

#previous_slide { background-position: -72px 0; }
#previous_line { background-position: -108px 0; }
#play_pause { background-position: -144px 0; }
#stop { background-position: -216px 0; }
#next_line { background-position: -252px 0; }
#next_slide { background-position: -288px 0; }

.right {
	grid-column: 2;
	grid-row: 2;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
	overflow: hidden;
	background: var(--panel);
}

.right-top,
.right-bottom {
	height: auto;
	overflow: auto;
	padding: 16px 18px;
	scroll-behavior: smooth;
}

.right-top,
.right-bottom {
	border: 0;
}

.right ol {
	font-size: clamp(0.92rem, 1.5vw, 1rem);
}

.right h3 {
	font-size: 1.05rem;
	line-height: 1.3;
}

ol > li > ol > li,
.right h3 {
	padding: 8px 10px 8px 14px;
}

ol > li > ol > li.aktiv {
	background: var(--highlight);
	border-radius: 7px;
}

hr {
	position: static;
	width: calc(100% - 32px);
	margin: 0 auto;
	border: 0;
	border-top: 1px solid var(--border);
}

footer {
	position: static;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	height: auto;
	min-height: 54px;
	font-size: 0.73rem;
}

footer a {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	min-height: 54px;
	padding: 5px 4px;
	line-height: 1.15;
}

footer a:hover,
footer a:focus-visible {
	background: #f4f4f4;
	outline: 2px solid var(--green);
	outline-offset: -2px;
}

footer a:after {
	top: 12px;
	height: calc(100% - 24px);
}

.meta-links {
	width: min(100%, 1100px);
	margin: 0 auto;
	text-align: left;
}

.frage main {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: min(760px, calc(100vh - 70px));
}

.frage .left {
	position: static;
	grid-column: 1;
	grid-row: 2;
	width: auto;
	height: auto;
	padding: clamp(18px, 4vw, 45px);
	font-size: clamp(1rem, 2vw, 1.08rem);
}

.frage .left h1,
.frage .left h2,
.frage .left h3 {
	line-height: 1.25;
}

.frage .left p,
.frage .left li {
	max-width: 72ch;
}

@media (max-width: 820px) {
	body {
		padding: 0;
		background: #fff;
	}

	main,
	.frage main {
		width: 100%;
		height: auto;
		min-height: 100vh;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto;
		overflow: visible;
	}

	header {
		position: sticky;
		top: 0;
		z-index: 10;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 4px;
		padding: 5px;
		overflow-x: visible;
	}

	header a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 30px;
		min-width: auto;
		padding: 5px 3px;
		font-size: 0;
		white-space: nowrap;
	}

	header a:after {
		content: attr(data-short);
		font-size: 0.76rem;
		line-height: 1;
		white-space: nowrap;
	}

	.left,
	.right {
		grid-column: 1;
	}

	.left {
		grid-row: 2;
		overflow: visible;
	}

	.right {
		grid-row: 3;
		display: block;
		overflow: visible;
	}

	.right-top,
	.right-bottom {
		max-height: none;
		overflow: visible;
		padding: 18px 16px;
	}

	footer {
		grid-row: 4;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		font-size: 0.8rem;
	}

	footer a {
		min-height: 58px;
		border-top: 1px solid var(--border);
	}

	footer a:after {
		display: none;
	}

	.meta-links {
		padding: 8px 12px 14px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.beschreibung {
		padding: 12px;
	}

	.steuerung {
		position: sticky;
		bottom: 0;
		z-index: 8;
		background: rgba(255,255,255,0.96);
		border-top: 1px solid var(--border);
	}

	button {
		margin-left: 2px;
		margin-right: 2px;
	}

	header {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 3px;
		padding: 4px;
	}

	header a {
		min-height: 28px;
		padding: 4px 2px;
		white-space: nowrap;
	}

	header a:after {
		font-size: 0.68rem;
	}

	footer {
		grid-template-columns: 1fr;
	}

	footer a {
		min-height: 44px;
	}

	footer br {
		display: none;
	}
}

/* Compact prayer times widget */
.prayer-times-toggle,
.prayer-times-row button,
.prayer-times-location,
.prayer-times-close {
	background-image: none;
}

header .prayer-times-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 90px;
	height: auto;
	min-height: 30px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid #638009;
	border-radius: 5px;
	background: #f4f4f4;
	color: #555;
	font-size: 0.83rem;
	line-height: 1.2;
	font-family: Arial, sans-serif;
	cursor: pointer;
}

header .prayer-times-toggle:hover,
header .prayer-times-toggle:focus-visible {
	background: #fff;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.prayer-times-panel[hidden] {
	display: none;
}

.prayer-times-panel {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 70px 12px 12px;
	background: rgba(0,0,0,0.28);
}

.prayer-times-card {
	position: relative;
	width: min(100%, 520px);
	padding: 18px;
	background: #fff;
	border: 1px solid var(--border, #c9c9c9);
	border-radius: 12px;
	box-shadow: 0 16px 45px rgba(0,0,0,0.25);
	color: #555;
}

.prayer-times-card h2 {
	margin: 0 36px 12px 0;
	font-size: 1.25rem;
	line-height: 1.2;
	color: #555;
}

.prayer-times-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #eee;
	color: #555;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.prayer-times-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.prayer-times-row {
	display: flex;
	gap: 8px;
}

.prayer-times-row input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid var(--border, #c9c9c9);
	border-radius: 7px;
	font: inherit;
}

.prayer-times-row button,
.prayer-times-location {
	width: auto;
	height: auto;
	min-height: 38px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #638009;
	border-radius: 7px;
	background: var(--green, #82c11b);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.prayer-times-location {
	width: 100%;
	margin-top: 9px;
	background: #6e6d71;
	border-color: #59585c;
}

.prayer-times-status {
	min-height: 1.4em;
	margin: 10px 0;
	font-size: 0.92rem;
}

.prayer-times-status.is-error {
	color: #a40000;
}

.prayer-times-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.prayer-times-list div {
	padding: 9px 8px;
	background: #f5f5f5;
	border-radius: 8px;
	text-align: center;
}

.prayer-times-list dt {
	margin-bottom: 3px;
	font-size: 0.78rem;
	color: #777;
}

.prayer-times-list dd {
	margin: 0;
	font-size: 1.15rem;
	font-weight: bold;
	color: #444;
}

.prayer-times-note {
	margin: 12px 0 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #777;
}

@media (max-width: 820px) {
	header {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	header .prayer-times-toggle {
		min-width: auto;
		min-height: 30px;
		padding: 5px 2px;
		font-size: 0.76rem;
	}
}

@media (max-width: 480px) {
	header {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	header .prayer-times-toggle {
		min-height: 28px;
		padding: 4px 1px;
		font-size: 0.68rem;
	}

	.prayer-times-panel {
		padding-top: 48px;
	}

	.prayer-times-card {
		padding: 14px;
	}

	.prayer-times-row {
		gap: 6px;
	}

	.prayer-times-row button {
		padding-left: 9px;
		padding-right: 9px;
	}

	.prayer-times-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.meta-links {
	font-size: 10px;
	line-height: 2.4em;
	text-indent: 10px;
}

.meta-links a {
	text-decoration: none;
	color: #999;
}

.meta-links a:hover {
	text-decoration: underline;
}

/* Mobile: one-line prayer times + hamburger menu for prayer selection */
.mobile-menu-toggle {
	display: none;
}

@media (max-width: 820px) {
	header {
		grid-template-columns: minmax(0, 1fr) 42px !important;
		gap: 5px !important;
		padding: 5px !important;
	}

	header .prayer-times-toggle {
		order: 1;
		grid-column: 1;
		grid-row: 1;
		min-height: 32px;
		min-width: 0;
		padding: 5px 8px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 0.78rem;
		text-align: left;
		justify-content: flex-start;
	}

	.mobile-menu-toggle {
		order: 2;
		grid-column: 2;
		grid-row: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto;
		height: auto;
		min-height: 32px;
		margin: 0;
		padding: 0;
		border: 1px solid #638009;
		border-radius: 5px;
		background: var(--green, #82c11b);
		color: #fff;
		font-size: 1.15rem;
		line-height: 1;
		cursor: pointer;
	}

	header > a {
		order: 3;
		display: none;
		grid-column: 1 / -1;
		min-height: 34px;
		font-size: 0;
	}

	header > a:after {
		font-size: 0.9rem;
	}

	header.nav-open > a {
		display: flex;
	}
}

@media (max-width: 480px) {
	header {
		grid-template-columns: minmax(0, 1fr) 38px !important;
		gap: 4px !important;
		padding: 4px !important;
	}

	header .prayer-times-toggle,
	.mobile-menu-toggle {
		min-height: 30px;
	}

	header .prayer-times-toggle {
		font-size: 0.72rem;
	}
}

.meta-links {
	font-size: 10px !important;
	line-height: 2.4em !important;
	text-indent: 0 !important;
	text-align: left;
}

.meta-links a {
	text-decoration: none !important;
	color: #999 !important;
}

.meta-links {
	width: min(100%, 1000px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
