/*
	V.42
	Rhein Rheinfelden Wasser und Wetter
	Gemeinsame Formatierung
*/

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #000000;
	color: #fff2a8;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
}

a {
	color: #fff2a8;
	text-decoration: none;
}

a:hover {
	color: #ffffff;
	text-decoration: none;
}


/* =========================================================
   TITEL
   ========================================================= */

.titel {
	box-sizing: border-box;
	height: 56px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border-bottom: 1px solid #5b5633;
	background: #000000;
}

.titel h1 {
	margin: 0;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.04em;
}


/* =========================================================
   MENÜ
   ========================================================= */

.menu {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 6px 5px 16px 5px;
	border-right: 1px solid #5b5633;
	background: #000000;
	font-size: 14px;
	line-height: 1.05;
	overflow-x: hidden;
}

.menu-klick {
	box-sizing: border-box;
	display: block;
	width: 100%;
	border: 0;
	border-radius: 2px;
	color: #fff2a8;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.10s ease,
		color 0.10s ease;
}

.menu-klick:hover {
	background: #2d2a16;
	color: #ffffff;
	text-decoration: none;
}

.menu-klick.aktiv {
	background: #5b5633;
	color: #66ff66 !important;
}

.menu-details {
	margin: 0;
	padding: 0;
}

.menu-details > summary {
	user-select: none;
}

.menu-details > summary::marker {
	color: #fff2a8;
}


/* Ebene 1: Wasser / Wetter / Webcam */

.ebene-1 {
	margin: 0;
}

.ebene-1 > summary {
	padding: 2px 6px;
	font-size: 15px;
	font-weight: 700;
}

.ebene-1-direkt {
	padding: 2px 6px;
	font-size: 15px;
	font-weight: 700;
}


/* Untermenü generell */

.untermenue {
	margin: 0;
	padding: 0;
}


/* Ebene 2 */

.ebene-2 {
	margin-left: 11px;
}

.ebene-2 > summary {
	padding: 2px 5px;
	font-weight: 600;
}

.ebene-2-direkt {
	width: calc(100% - 11px);
	margin-left: 11px;
	padding: 2px 5px;
	font-weight: 600;
}


/* Ebene 3 */

.ebene-3 {
	width: calc(100% - 27px);
	margin-left: 27px;
	padding: 2px 5px;
	font-weight: 400;
}


/* =========================================================
   INHALTSBEREICH
   ========================================================= */

.inhalt {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 28px 40px 28px;
	background: #000000;
}

.inhalt h1 {
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.1;
}

.inhalt h2 {
	margin-top: 24px;
	font-size: 20px;
	font-weight: 500;
}

.inhalt p {
	max-width: 850px;
	line-height: 1.55;
}

.linie {
	height: 1px;
	margin: 8px 0 16px 0;
	background: #5b5633;
}




/* =========================================================
   PEGELVERLAUF RHEINFELDEN – RESPONSIVE PNG-GRAFIKEN
   ========================================================= */

.pegel-verlauf-rahmen {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0;
	overflow: hidden;
	background: #ffffff;
}

.pegel-verlauf-grafik {
	display: block;
	width: 100%;
	max-width: 1200px;
	height: auto;
	border: 0;
	background: #ffffff;
}

/*
   Hochformat: vollständig in die verfügbare Breite einpassen.
   Beim Drehen wächst die Grafik automatisch mit der breiteren
   Anzeige, jedoch nie über ihre erzeugten 1200 px hinaus.
*/
@media (orientation: portrait) {
	.pegel-verlauf-rahmen,
	.pegel-verlauf-grafik {
		max-width: 100%;
	}
}

@media (orientation: landscape) {
	.pegel-verlauf-rahmen,
	.pegel-verlauf-grafik {
		width: 100%;
		max-width: 1200px;
	}
}


/* =========================================================
   RESPONSIVE HAUPTSEITE / INDEX
   ========================================================= */

.site-shell {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	overflow: hidden;
}

.site-kopf {
	box-sizing: border-box;
	height: 56px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px;
	border-bottom: 1px solid #5b5633;
	background: #000000;
	position: relative;
	z-index: 1200;
}

.site-titel {
	min-width: 0;
	flex: 1;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-version {
	flex: 0 0 auto;
	font-size: 11px;
	color: #aaa579;
}

.hamburger {
	display: none;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 8px;
	border: 1px solid #5b5633;
	border-radius: 3px;
	background: #000000;
	cursor: pointer;
}

.hamburger:hover {
	background: #2d2a16;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 4px 0;
	background: #fff2a8;
	transition:
		transform 0.15s ease,
		opacity 0.15s ease;
}

.hamburger.offen span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.hamburger.offen span:nth-child(2) {
	opacity: 0;
}

.hamburger.offen span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.site-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	width: 100%;
	height: calc(100vh - 56px);
	height: calc(100dvh - 56px);
	min-height: 0;
}

.site-menu-panel,
.site-inhalt-panel {
	min-width: 0;
	min-height: 0;
	background: #000000;
}

.site-menu-panel {
	border-right: 1px solid #5b5633;
}

.site-menu-panel iframe,
.site-inhalt-panel iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000000;
}

.menu-sperre {
	display: none;
}


/* =========================================================
   SONNENZEIT – GANZE SEITENBREITE OHNE MENÜ/KOPF
   ========================================================= */

.site-shell.sonnenzeit-vollbild .site-kopf,
.site-shell.sonnenzeit-vollbild .site-menu-panel,
.site-shell.sonnenzeit-vollbild .menu-sperre {
	display: none !important;
}

.site-shell.sonnenzeit-vollbild .site-layout {
	display: block;
	width: 100%;
	height: 100vh;
	height: 100dvh;
}

.site-shell.sonnenzeit-vollbild .site-inhalt-panel {
	width: 100%;
	height: 100%;
}


/* =========================================================
   WEBCAM-VOLLBILD AUF NATEL
   ========================================================= */

.site-shell.webcam-vollbild .site-kopf,
.site-shell.webcam-vollbild .site-menu-panel,
.site-shell.webcam-vollbild .menu-sperre {
	display: none !important;
}

.site-shell.webcam-vollbild .site-layout {
	display: block;
	width: 100%;
	height: 100vh;
	height: 100dvh;
}

.site-shell.webcam-vollbild .site-inhalt-panel {
	width: 100%;
	height: 100%;
}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 760px) {

	.site-kopf {
		height: 54px;
		padding: 0 8px;
		gap: 8px;
	}

	.site-titel {
		font-size: 17px;
		letter-spacing: 0.02em;
	}

	.site-version {
		font-size: 10px;
	}

	.hamburger {
		display: block;
	}

	.site-layout {
		display: block;
		height: calc(100vh - 54px);
		height: calc(100dvh - 54px);
	}

	.site-inhalt-panel {
		width: 100%;
		height: 100%;
	}

	.site-menu-panel {
		position: fixed;
		left: 0;
		top: 54px;
		z-index: 1100;
		width: min(320px, 86vw);
		height: calc(100vh - 54px);
		height: calc(100dvh - 54px);
		border-right: 1px solid #5b5633;
		transform: translateX(-102%);
		transition: transform 0.18s ease;
		box-shadow: 8px 0 20px rgba(0, 0, 0, 0.45);
	}

	.site-menu-panel.offen {
		transform: translateX(0);
	}

	.menu-sperre {
		position: fixed;
		left: 0;
		right: 0;
		top: 54px;
		bottom: 0;
		z-index: 1000;
		background: rgba(0, 0, 0, 0.60);
	}

	.menu-sperre.offen {
		display: block;
	}

	/*
		Das Menü selbst bleibt dreistufig und kompakt.
		Auf dem Handy bekommt es nur etwas grössere Klickflächen.
	*/

	.menu {
		border-right: 0;
		padding-top: 8px;
	}

	.ebene-1 > summary,
	.ebene-1-direkt {
		padding-top: 7px;
		padding-bottom: 7px;
		font-size: 16px;
	}

	.ebene-2 > summary,
	.ebene-2-direkt {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.ebene-3 {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	/*
		Inhaltsseiten bekommen auf kleinen Displays weniger Seitenrand.
	*/

	.inhalt {
		padding-left: 10px;
		padding-right: 10px;
	}

	.inhalt h1 {
		font-size: 21px;
	}
}
