/*
 * Haus Othmar Schranz — Layout und Farben.
 *
 * Nachgezeichnet aus dem Contao-Stylesheet des Originals
 * (assets/css/d6cd29ecb431.css). Uebernommen sind Farben, Breiten und
 * Abstaende; die Rasterklassen des Originals (grid4, grid6, grid12) heissen
 * hier genauso, arbeiten aber mit Flexbox statt mit Floats und brechen
 * dadurch sauber um. Der im Original fest positionierte 80px-Kopf und der
 * absolut positionierte Fussbereich sind einer normalen Flex-Spalte
 * gewichen – robuster auf dem Telefon.
 *
 * Farben des Originals
 *   Seitenhintergrund   #d0d3c2
 *   Kopfbereich         #fff
 *   Menue- / Fussleiste #7C4917   Schrift #fff
 *   Menue-Hover         #cc9966, Akzent #f30
 *   Verweise            #E8780B
 */

:root {
	--os-hintergrund: #d0d3c2;
	--os-menue: #7c4917;
	--os-menue-hover: #cc9966;
	--os-akzent: #f30;
	--os-link: #e8780b;
	--os-text: #222;
	--os-breite: 960px;
}

/* ------------------------------------------------------------------ Grundlage */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	/*
	 * Das Original lud "Source Sans Pro" von Google Fonts. Wie schon beim
	 * Wegfall von Google Maps und Piwik verzichtet der Nachbau bewusst auf
	 * diesen Fremdaufruf (er wuerde bei jedem Seitenaufruf die IP-Adresse an
	 * Google uebertragen) – ein sehr aehnlich wirkender Systemfont ersetzt
	 * ihn ohne fremden Server.
	 */
	font: 100.01%/1.6 "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--os-text);
	background-color: var(--os-hintergrund);
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--os-link);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	line-height: 1.25;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 2px dotted #ccc; }
h3 { font-size: 1.2em; }
h4 { font-size: 1.05em; }

p {
	margin: 0 0 1em;
}

/* ------------------------------------------------------------------- Geruest */

#wrapper {
	display: flex;
	flex-direction: column;
	width: var(--os-breite);
	min-height: 100vh;
	max-width: 100%;
	margin: 0 auto;
}

#container {
	flex: 1 0 auto;
	background-color: #fff;
}

#footer .inside,
#Menue .inside {
	max-width: var(--os-breite);
	margin: 0 auto;
}

#main {
	padding: 20px 0 25px;
	background-color: var(--os-menue-hover);
}

#main .inside {
	overflow: hidden;
}

#footer {
	padding: 16px 10px;
	background-color: var(--os-menue);
}

#footer .inside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 24px;
}

#footer p {
	margin: 0;
	font-size: .9em;
	color: #fff;
}

.os-fuss-logo {
	flex: 0 0 auto;
}

.os-fuss-logo img {
	display: block;
}

.os-fuss-anschrift {
	flex: 1 1 240px;
}

.os-fuss-anschrift p {
	margin: 0 0 .4em;
}

.os-fuss-zeile {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, .3);
}

#footer a {
	color: #fff;
}

/* --------------------------------------------------------------- Navigation */

#Menue {
	background-color: var(--os-menue);
	text-align: center;
}

#Menue .mod_navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

#Menue .mod_navigation a,
#Menue .mod_navigation span {
	display: block;
	margin: 0 4px;
	padding: 14px 14px 11px;
	line-height: 1.2;
	text-decoration: none;
	color: #fff;
	border-bottom: 3px solid transparent;
}

#Menue .mod_navigation a:hover,
#Menue .mod_navigation a:focus {
	background-color: var(--os-menue-hover);
	border-bottom-color: var(--os-akzent);
}

#Menue .mod_navigation .active {
	font-weight: bold;
	background-color: var(--os-menue-hover);
	border-bottom-color: var(--os-akzent);
}

.invisible {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.invisible:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	color: var(--os-menue);
}

/* --------------------------------------------------------------- Inhaltsraster */

.mod_article {
	margin: 0 10px;
}

.ce_text {
	margin: 0 0 20px;
}

.os-reihe {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.os-reihe > [class*="grid"] {
	padding: 0 10px;
}

.grid4  { flex: 1 1 280px; }
.grid6  { flex: 1 1 420px; }
.grid12 { flex: 1 1 100%; }

/* Zwei nebeneinanderstehende ce_text-Bloecke (Appartement / Stube, Kontakt / Kontaktformular).
   align-items: flex-start, damit eine kurze Spalte (z.B. "Stube") nicht auf die
   Hoehe der langen Nachbarspalte gestreckt wird - sonst klafft darunter eine
   Luecke und die naechste Zeile (Kontakt) wirkt, als haenge sie direkt unter
   der kurzen Spalte. */
.os-zweispaltig {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 20px;
}

.os-zweispaltig > .ce_text,
.os-zweispaltig > .os-spalte {
	flex: 1 1 420px;
	min-width: 0;
}

/* Rechte Spalte mit mehreren gestapelten Bloecken (Stube, Kontakt, Kontaktformular) -
   damit "Kontakt" direkt unter dem Stube-Bild folgt, statt erst unter der
   ganzen, viel laengeren Appartement-Spalte anzufangen. */
.os-spalte > .ce_text + .ce_text {
	margin-top: 2em;
}

.os-seitentitel {
	font-size: 1.6em;
}

.os-abschnitt {
	scroll-margin-top: 20px;
}

.os-mitte {
	text-align: center;
}

.os-bild {
	display: block;
}

.os-bild img {
	display: block;
	margin: 0 auto;
}

.os-haus-schild {
	float: right;
	margin: 0 0 10px 25px;
}

/* --------------------------------------------------------------------- Hinweis */

.os-hinweis-geschlossen {
	margin: 0 0 1.2em;
	padding: 12px 16px;
	font-weight: bold;
	text-align: center;
	color: #7c4917;
	background: #fdf2e3;
	border: 1px solid #e8780b;
}

/* ------------------------------------------------------------------ Karussell */

.os-karussell {
	position: relative;
	margin: 0 0 20px;
	overflow: hidden;
	background: #000;
}

.os-karussell__buehne {
	position: relative;
}

.os-karussell__bild {
	display: none;
	width: 100%;
	height: auto;
}

.os-karussell__bild.ist-sichtbar {
	display: block;
}

.os-karussell__punkte {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.os-karussell__punkte button {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: rgba(255, 255, 255, .3);
	font-size: 0;
	cursor: pointer;
}

.os-karussell__punkte button.ist-aktiv {
	background: #fff;
}

/* ------------------------------------------------------------------- Akkordeon */

.os-akkordeon {
	margin: 0 0 1px;
	border-bottom: 1px solid var(--os-akzent);
}

.os-akkordeon summary {
	padding: 12px 16px;
	list-style: none;
	font-weight: 600;
	color: #fff;
	background: var(--os-menue);
	cursor: pointer;
}

.os-akkordeon summary::-webkit-details-marker {
	display: none;
}

.os-akkordeon summary::before {
	content: "+ ";
}

.os-akkordeon[open] summary::before {
	content: "– ";
}

.os-akkordeon summary:hover,
.os-akkordeon summary:focus {
	background: var(--os-menue-hover);
}

.os-akkordeon__inhalt {
	padding: 16px;
}

.os-akkordeon__inhalt .ce_text:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------- Preistabelle */

.os-preise table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
}

.os-preise caption {
	margin-bottom: .5em;
	font-weight: 600;
	text-align: left;
}

.os-preise th,
.os-preise td {
	padding: 8px 10px;
	text-align: center;
	border: 1px solid #ddd;
}

.os-preise thead th {
	color: #fff;
	background: var(--os-menue);
}

.os-preise tbody tr:nth-child(odd) {
	background: #f7f3ee;
}

/* ------------------------------------------------------------------- Bahnlogos */

.os-bahnen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	gap: 20px;
	margin: 0 0 1.5em;
}

.os-bahnen img {
	display: block;
}

/* --------------------------------------------------------------------- Karte */

.os-karte {
	margin: 0 0 1.5em;
}

.os-karte iframe {
	display: block;
	width: 100%;
	height: 450px;
	border: 0;
}

.os-karte p {
	margin: .4em 0 0;
	font-size: .85em;
	text-align: right;
}

/* ---------------------------------------------------------------- Kontaktkarte */

.os-kontakt-qr {
	text-align: center;
}

/* ---------------------------------------------------------------------- Formular */

.os-form {
	max-width: 560px;
	margin: 0 0 1.5em;
}

.os-form .os-feld {
	margin-bottom: 12px;
}

.os-form label {
	display: block;
	margin-bottom: 3px;
	font-size: .95em;
}

.os-form input[type="text"],
.os-form input[type="email"],
.os-form input[type="date"],
.os-form input[type="number"],
.os-form select,
.os-form textarea {
	width: 100%;
	padding: 6px 8px;
	font-family: inherit;
	font-size: 1em;
	color: var(--os-text);
	background: #fff;
	border: 1px solid #aaa;
}

.os-form textarea {
	min-height: 120px;
	resize: vertical;
}

.os-form .os-feld.ist-fehlerhaft input,
.os-form .os-feld.ist-fehlerhaft select,
.os-form .os-feld.ist-fehlerhaft textarea {
	border-color: #a02020;
	background: #fff6f6;
}

.os-form .os-fehler {
	margin: 3px 0 0;
	font-size: .9em;
	color: #a02020;
}

.os-form .os-pflicht {
	color: #a02020;
}

.os-form .os-knopfleiste {
	margin-top: 14px;
}

.os-form button[type="submit"] {
	padding: 9px 26px;
	font-family: inherit;
	font-size: 1.05em;
	color: #fff;
	background: var(--os-menue);
	border: 0;
	cursor: pointer;
}

.os-form button[type="submit"]:hover,
.os-form button[type="submit"]:focus {
	background: var(--os-akzent);
}

.os-honigtopf {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.os-hinweis {
	margin: 0 0 1em;
	padding: 10px 14px;
	font-size: .95em;
	border: 1px solid;
}

.os-hinweis--erfolg {
	color: #1c5b20;
	background: #eef8ee;
	border-color: #1c5b20;
}

.os-hinweis--fehler {
	color: #a02020;
	background: #fdeeee;
	border-color: #a02020;
}

/* --------------------------------------------------- Knopf "nach oben" (fest) */

.os-nachoben {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 50;
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--os-menue);
	font: 1.4em/1 sans-serif;
	color: #fff;
	cursor: pointer;
	opacity: .85;
}

.os-nachoben.ist-sichtbar {
	display: block;
}

.os-nachoben:hover,
.os-nachoben:focus {
	opacity: 1;
	background: var(--os-akzent);
}

/* ------------------------------------------------------------- Kleine Schirme */

@media (min-width: 768px) and (max-width: 979px) {
	:root {
		--os-breite: 744px;
	}
}

@media (max-width: 767px) {
	:root {
		--os-breite: 100%;
	}

	#wrapper {
		width: 100%;
	}

	#Menue .mod_navigation a,
	#Menue .mod_navigation span {
		padding: 10px 8px;
		font-size: .95em;
	}

	.os-haus-schild {
		float: none;
		display: block;
		margin: 0 auto 15px;
		text-align: center;
	}

	.os-karte iframe {
		height: 320px;
	}

	#footer .inside {
		text-align: center;
		justify-content: center;
	}

	.os-fuss-zeile {
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
