/* =====================================================================
   stil.css – das komplette Aussehen der Website in EINER Datei.
   Diese Datei ist für Allgäu und Norderney IDENTISCH.
   Die Farben stehen ganz oben und hängen an der Klasse im <body>
   (wird in inc/einstellungen.php festgelegt).
   Nach Änderungen in inc/kopf.php die Zahl hinter "stil.css?v=" erhöhen,
   damit Besucher sofort die neue Fassung bekommen.
   ===================================================================== */

/* ---------- Farben ---------- */
.allgaeu {
	--akzent: #339900;        /* Original-Grün: große Überschriften, Rahmen */
	--akzent-text: #2B8000;   /* etwas dunkler: kleine Schrift und Flächen mit weißer Schrift (gut lesbar) */
}
.norderney {
	--akzent: #0085DD;
	--akzent-text: #0072BC;
}

/* ---------- Schriften (liegen im Ordner webfonts) ---------- */
@font-face {
	font-family: 'Metrophobic';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../webfonts/metrophobic-v10-latin-regular.woff2') format('woff2'),
	     url('../webfonts/metrophobic-v10-latin-regular.woff') format('woff');
}
@font-face {
	font-family: 'Marck Script';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../webfonts/marck-script-v8-latin-regular.woff2') format('woff2'),
	     url('../webfonts/marck-script-v8-latin-regular.woff') format('woff');
}

/* ---------- Grundeinstellungen ---------- */
*, *::before, *::after { box-sizing: content-box; }
html, body, div, span, iframe, h1, h2, h3, h4, p, a, img, strong, ol, ul, li,
fieldset, form, label, legend, table, tbody, thead, tr, th, td,
header, nav, main, footer, figure, figcaption {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
body {
	font-family: 'Metrophobic', Verdana, Arial, sans-serif;
	line-height: 1;
	background-color: #fff;
	text-align: center;
}
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
div { position: relative; }
strong { font-weight: bold; }
img { max-width: 100%; }
.clearfix { display: flow-root; }
:focus-visible { outline: 3px solid #000; outline-offset: 2px; }

.wrapper {
	position: relative;
	width: 980px;
	margin: 0 auto;
	text-align: left;
}

/* "Zum Inhalt springen" – erscheint nur bei Tastaturbedienung */
.sprunglink { position: absolute; left: -9999px; z-index: 3000; }
.sprunglink:focus { left: 10px; top: 10px; padding: 8px 12px; background: #fff; color: #000; }

/* ---------- Kopfbereich ---------- */
#hintergrund {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 600px;
	background: url(../images/kopfbild.webp) no-repeat center top;
	z-index: 200;
}
#header {
	position: relative;
	text-align: left;
	width: 100%;
	height: 600px;
	background: url(../images/headerhg.png) no-repeat center top;
	z-index: 500;
}
#header .wrapper { height: 580px; }
#header #logo {
	position: absolute;
	top: 365px;
	left: 10px;
	height: auto;
}
#header #kopfbild {
	position: absolute;
	top: 200px;
	right: 0;
	width: 623px;
	height: 360px;
	background: url(../images/blank.jpg) no-repeat center 10px;
}
.norderney #header #kopfbild { background-position: center 13px; }
#header #kopfbild #rahmen {
	position: absolute;
	z-index: 1000;
	pointer-events: none;     /* Klicks gehen durch den Rahmen auf das Bild */
}
.norderney #header #kopfbild #rahmen { top: 6px; }

/* Kopfbilder: Überblendung (gesteuert von skripte/site.js) */
#header ul#carousel {
	position: absolute;
	z-index: 800;
	height: 340px;
	width: 600px;
	top: 20px;
	left: 20px;
}
#header ul#carousel li {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s;
}
#header ul#carousel li.sichtbar { opacity: 1; }
#header ul#carousel img { display: block; height: auto; }

/* Kleine Navigation oben (Kontakt, Impressum, Startseite) */
ul#metanavi { padding-left: 50px; }
ul#metanavi li { display: inline; }
ul#metanavi li a {
	float: left;
	color: #fff;
	text-decoration: none;
	font-size: 0.8em;
	padding: 5px 10px;
	min-height: 15px;
}
ul#metanavi li a:hover, ul#metanavi li a:focus-visible { text-decoration: underline; }

/* ---------- Seitenbereich ---------- */
#page {
	position: relative;
	width: 100%;
	text-align: left;
	padding-bottom: 30px;
}
.nav-knopf { display: none; }

#leftcol {
	position: relative;
	width: 300px;
	padding-left: 10px;
	float: left;
}
ul#navi a {
	display: block;
	width: 220px;
	text-decoration: none;
	padding: 12px 0;
	font-family: 'Marck Script', cursive;
	font-size: 2em;
	color: var(--akzent);
}
ul#navi a:hover, ul#navi a[aria-current="page"] { color: #000; }
ul#navi ul.subnavi { padding-bottom: 12px; }
ul#navi ul.subnavi li a {
	font-family: 'Metrophobic', Verdana, Arial, sans-serif;
	padding: 4px 0 4px 20px;
	margin-bottom: 3px;
	font-size: 1em;
	color: var(--akzent-text);
}
ul#navi ul.subnavi li a:hover, ul#navi ul.subnavi li a[aria-current="page"] { color: #000; }

#maincol {
	float: left;
	position: relative;
	margin-left: 70px;
	width: 580px;
}
#maincol h1 {
	font-family: 'Marck Script', cursive;
	font-size: 2em;
	color: var(--akzent);
	line-height: 1.5em;
	margin-top: 5px;
	margin-bottom: 0.5em;
}
#maincol h2, #maincol h3 {
	font-size: 1.2em;
	color: var(--akzent-text);
	margin-top: 2em;
	margin-bottom: 0.85em;
	line-height: 1.5em;
}
#maincol h3 { font-size: 1em; }
#maincol h1 + h2 { margin-top: 0; }
#maincol p {
	font-size: 0.85em;
	line-height: 1.5em;
	margin-bottom: 0.85em;
}
#maincol .tklein { font-size: 0.75em; line-height: 1.5em; }
#maincol a { color: #000; text-decoration: underline; }
#maincol a:hover, #maincol a:active { color: #da251d; }
#maincol ul {
	list-style-type: square;
	padding-left: 17px;
	margin-bottom: 0.85em;
}
#maincol li {
	font-size: 0.85em;
	line-height: 1.5em;
	margin-bottom: 0.4em;
}
#maincol li li, #maincol li p { font-size: 1em; }
#maincol .hinweis { padding-top: 15px; }
#maincol .fussnote { margin-top: 50px; }

/* Vorschaubilder der Galerie */
#maincol .miniaturen { margin-top: 2.5em; }
#maincol .miniaturen a { float: left; margin: 0 15px 15px 0; }
#maincol .miniaturen img {
	display: block;
	width: 150px;
	height: 150px;
	border: 10px solid #fff;
	box-shadow: 0 0 3px #666;
}

/* Preistabelle */
.tabelle { overflow-x: auto; margin-bottom: 0.85em; }
table.preise th, table.preise td {
	font-size: 0.85em;
	line-height: 1.4em;
	padding: 0 2.5em 0.8em 0;
	text-align: left;
	vertical-align: top;
}
table.preise th { font-weight: normal; }
.norderney table.preise td.preis { text-align: right; }

/* Externe Links: Hinweis mit der Adresse beim Darüberfahren */
.exlink { position: relative; }
a.exlink span { display: none; }
a.exlink:hover span, a.exlink:focus-visible span {
	display: block;
	position: absolute;
	top: 25px;
	left: 0;
	background-color: var(--akzent-text);
	padding: 5px;
	color: #fff;
	border: 10px solid #fff;
	font: 10px Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none;
	z-index: 100;
	white-space: nowrap;
}

/* Belegungsplan */
.belegungsplan { display: block; width: 100%; height: 580px; margin-left: -5px; }

/* ---------- Kontaktformular ---------- */
.adresse { display: flex; flex-wrap: wrap; gap: 0 10%; }
.adresse p { flex: 1 1 45%; }
#formular { width: 100%; margin-top: 1.5em; }
#formular p { margin: 10px 0 5px; line-height: 140%; }
fieldset {
	margin-top: 1em;
	width: 95%;
	border: 1px solid var(--akzent);
	padding: 10px;
	border-radius: 8px;
}
fieldset p { padding-left: 8px; }
legend {
	padding: 0 5px 5px;
	color: var(--akzent-text);
	font-size: 1.2em;
}
#formular label {
	float: left;
	width: 180px;
	padding-top: .35em;
}
.form {
	background: var(--akzent-text);
	color: #fff;
	font: bold 1em 'Metrophobic', Verdana, Arial, sans-serif;
	width: 310px;
	min-height: 1.6em;
	padding: .3em .5em;
	border: 0;
	border-radius: 5px;
	text-align: left;
}
.form option { background: #fff; color: #000; }
textarea.form { display: block; width: 95%; height: 80px; margin: 5px 0; }
#formular .feld-textarea label { float: none; display: block; }
.form[aria-invalid="true"] { box-shadow: 0 0 0 3px #b00020; }
.fehler {                                  /* rote Meldung unter dem Feld */
	display: block;
	clear: both;
	margin: .3em 0 0 180px;
	color: #b00020;
	font-size: .85em;
}
.fehler:empty { display: none; }
.hp { position: absolute; left: -9999px; }   /* Spamschutz-Feld verstecken */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* nur für Screenreader */
.form2 {
	display: block;
	margin: 20px 0;
	font: 1.2em 'Metrophobic', Verdana, Arial, sans-serif;
	color: #000;
	background-color: #fff;
	border: 1px solid var(--akzent-text);
	padding: 8px 12px;
	border-radius: 5px;
	cursor: pointer;
}
.form2:hover, .form2:focus-visible { color: #fff; background-color: var(--akzent-text); }
.meldung ul { color: #b00020; }

/* ---------- Fußbereich ---------- */
#footer {
	clear: both;
	padding-top: 20px;
	background: #fff url(../images/footerhg.png) no-repeat center top;
	color: #fff;
	height: 140px;
}
.norderney #footer { height: 180px; }
#footer p { color: #fff; font-size: 0.9em; line-height: 150%; }
#footer p a { color: #fff; text-decoration: none; }
#footer .logoschrift { font-family: 'Marck Script', cursive; font-size: 1.3em; }
ul#footer_navi { float: right; }
ul#footer_navi li { display: inline; }
ul#footer_navi li a {
	float: left;
	color: #fff;
	text-decoration: none;
	font: 0.8em 'Metrophobic', Verdana, Arial, sans-serif;
	padding: 4px 10px;
}
ul#footer_navi li a:hover { text-decoration: underline; }

/* ---------- Großansicht der Bilder (skripte/site.js) ---------- */
dialog.galerie { padding: 10px; border: 0; border-radius: 6px; max-width: 95vw; }
dialog.galerie::backdrop { background: rgba(0, 0, 0, .8); }
dialog.galerie img { display: block; max-width: 100%; max-height: 80vh; height: auto; }
dialog.galerie figcaption { padding-top: 6px; font-size: .9em; line-height: 1.4; }
dialog.galerie button {
	/* runde Knöpfe mit fester Größe; das Zeichen ist eine kleine Grafik (SVG) und sitzt genau mittig */
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #000;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
dialog.galerie button svg { width: 22px; height: 22px; display: block; }
dialog.galerie button:hover { background: #fff; }
dialog.galerie .schliessen { top: 14px; right: 14px; }
dialog.galerie .zurueck { left: 14px; top: 50%; transform: translateY(calc(-50% - 16px)); } /* 16px = halbe Bildunterschrift */
dialog.galerie .weiter { right: 14px; top: 50%; transform: translateY(calc(-50% - 16px)); } /* 16px = halbe Bildunterschrift */

/* =====================================================================
   Handy und Tablet (bis 979 Pixel Breite)
   ===================================================================== */
@media (max-width: 979px) {
	.wrapper { width: 94%; }
	#hintergrund { display: none; }
	#header {
		height: auto;
		padding-bottom: 10px;
		background: url(../images/kopfbild-mobil.webp) no-repeat center top;
	}
	#header .wrapper { height: auto; text-align: center; }
	#header #logo {
		position: relative;
		width: 100%;
		max-width: 320px;
		top: auto;
		left: auto;
		padding-top: 30px;
	}
	#header #kopfbild { display: none; }

	ul#metanavi { padding: 0 0 10px; background-color: rgba(255, 255, 255, 0.8); }
	ul#metanavi li a { color: #000; font-size: 0.85em; padding: 8px 10px; }

	#leftcol, #maincol {
		float: none;
		width: 100%;
		margin-left: 0;
		padding-left: 0;
	}
	#maincol { margin-top: 30px; }
	#maincol h1 { font-size: 1.6em; }
	#maincol .miniaturen a { float: none; margin: 0 0 20px; }
	#maincol .miniaturen img { width: 85%; height: auto; border-width: 5px; }
	table.preise th, table.preise td { padding-right: 1.2em; }

	/* Navigation einklappen (nur wenn JavaScript läuft) */
	.nav-knopf {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		min-height: 44px;
		margin-top: 6px;
		padding: 8px 2%;
		box-sizing: border-box;
		border: 0;
		font: 1em 'Metrophobic', Verdana, Arial, sans-serif;
		color: #fff;
		background: var(--akzent-text) url(../images/navi.png) no-repeat right 8px center;
		text-align: left;
		cursor: pointer;
		/* Knopf bleibt beim Scrollen oben am Bildschirmrand stehen */
		position: sticky;
		top: 0;
		z-index: 20;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	}
	/* Sprungziele nicht unter dem stehenden Knopf verstecken */
	#maincol, #leftcol { scroll-margin-top: 60px; }
	.nav-knopf .aus, .aktiv-eins .nav-knopf .ein { display: none; }
	.aktiv-eins .nav-knopf .aus { display: inline; }
	.js #leftcol { display: none; }
	.aktiv-eins #leftcol { display: block; }
	.aktiv-eins #maincol { display: none; }

	/* Formular untereinander */
	#formular { width: 95%; }
	#formular label { float: none; display: block; width: 100%; padding: 0 0 4px; }
	.form { width: 100%; box-sizing: border-box; display: block; }
	.fehler { margin-left: 0; }

	ul#footer_navi { float: none; padding-bottom: 20px; }
	ul#footer_navi li a { font-size: 0.9em; padding: 6px 10px; }
	#footer { height: auto; min-height: 140px; padding-bottom: 20px; }
}

/* Bewegung reduzieren, wenn der Besucher es im System so eingestellt hat */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Drucken
   ===================================================================== */
@media print {
	body { font-family: Verdana, Arial, sans-serif; }
	.wrapper { width: 16cm; }
	#hintergrund, #header, #leftcol, .nav-knopf, ul#footer_navi, .sprunglink, .miniaturen { display: none; }
	#maincol { float: none; width: 100%; margin: 0; }
	#maincol h1 { font-size: 20pt; }
	#maincol p, #maincol li { font-size: 10pt; }
	#footer { background: none; height: auto; }
	#footer p, #footer p a { color: #000; }
}
