/*
 * francoamato.de – Nachbau des bisherigen SIQUANDO-Layouts ("Halifax")
 * Farben, Schriftgrößen und Abstände aus den alten sf.css / sd.css / sc.css übernommen.
 */

@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/sourcesansprolight.woff) format('woff'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sourcesansproregular.woff) format('woff'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/sourcesansprosemibold.woff) format('woff'); }
@font-face { font-family: 'Source Sans Pro'; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/sourcesansprolightitalic.woff) format('woff'); }
@font-face { font-family: 'Source Sans Pro'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/sourcesansproitalic.woff) format('woff'); }
@font-face { font-family: 'Source Sans Pro'; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/sourcesansprosemibolditalic.woff) format('woff'); }

:root {
	--dark: #363738;
	--dark-2: #40474c;
	--light: #f7f8f9;
	--text: #333333;
	--accent: #993d73;
	--split-bg: #555555;
	--border: #dddddd;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	background-color: var(--dark);
	color: var(--text);
	font-family: 'Source Sans Pro', Verdana, Arial, sans-serif;
	font-size: 18px;
}

button { font: inherit; }

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

h1 { font-size: 48px; font-weight: 300; color: var(--dark-2); margin: 20px 0 -20px 0; }
h2 { font-size: 32px; font-weight: 300; color: var(--dark); margin: 20px 0 10px 0; }
h3 { font-size: 18px; font-weight: normal; text-transform: uppercase; color: var(--dark); margin: 10px 0; }

p, ul, ol { line-height: 1.8; margin: 10px 0 20px 0; }

a:focus-visible, button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.skiplink {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 3000;
	background: var(--light);
	color: var(--dark);
	padding: 12px 22px;
}
.skiplink:focus { left: 0; }

#maincontainer {
	max-width: 1200px;
	margin: 0 auto;
}

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

.mainnav {
	background-color: var(--dark);
	line-height: 22px;
	user-select: none;
	position: relative;
	z-index: 1000;
}

.mainnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mainnav a,
.mainnav-toggle {
	display: block;
	margin: 0;
	padding: 12px 22px;
	color: var(--light);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 90%;
	line-height: 22px;
}

.mainnav li.active > a { font-weight: bold; }

.mainnav-toggle {
	width: 100%;
	text-align: left;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.075);
	background: transparent url(../img/menu.svg) right center no-repeat;
	cursor: pointer;
}
.mainnav-toggle-close { display: none; }
.mainnav.open .mainnav-toggle-open { display: none; }
.mainnav.open .mainnav-toggle-close { display: inline; }

@media screen and (max-width: 767px) {
	.mainnav a { border-bottom: 1px solid rgba(255, 255, 255, 0.075); }
	/* ohne JavaScript bleibt die Navigation sichtbar */
	.js .mainnav ul { display: none; }
	.js .mainnav.open ul { display: block; }
	html:not(.js) .mainnav-toggle { display: none; }
}

@media screen and (min-width: 768px) {
	.mainnav-toggle { display: none; }
	.mainnav ul { display: flex; flex-wrap: wrap; }
	.mainnav a { transition: background-color 0.2s; }
	.mainnav a:hover { background-color: rgba(255, 255, 255, 0.1); }
	.mainnav-home > a {
		background: transparent url(../img/home.svg) no-repeat center center;
		width: 40px;
		height: 46px;
		padding: 12px;
	}
	.mainnav-home > a > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------- Kopfbild */

.siteheader {
	position: relative;
	overflow: hidden;
	margin: 0;
	aspect-ratio: 16 / 9;
	background-color: var(--light);
}

.siteheader-image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.siteheader-logo {
	position: absolute;
	top: 0;
	left: 0;
	height: 150px;
	width: auto;
	margin: 40px 0 0 40px;
}

@media screen and (max-width: 767px) {
	.siteheader-logo { height: 20vw; margin: 5vw 0 0 5vw; }
}

/* ---------------------------------------------------------------- Inhalt */

.content {
	margin: 0;
	padding: 10px 0;
	background-color: var(--light);
}
.content:focus { outline: none; }

@media screen and (min-width: 1200px) {
	.content > :first-child { margin-top: 80px; }
	.content { padding-bottom: 80px; }
}

.para {
	padding: 0 30px;
	margin: 0 auto 40px auto;
}
.para::after { content: ''; display: block; clear: both; }

@media screen and (min-width: 1200px) {
	.para { padding: 0 160px; }
}

.para-fw { padding: 0; }
.para-fw > h2 { padding: 0 30px; }
@media screen and (min-width: 1200px) {
	.para-fw > h2 { padding: 0 160px; }
}

.breadcrumbs {
	margin-bottom: 10px;
	padding-top: 10px;
	font-size: 90%;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { color: var(--dark); }

.content p a,
.content li a {
	color: var(--accent);
	font-weight: bold;
	text-decoration: none;
}
.content p a:hover,
.content li a:hover { text-decoration: underline; }

/* Tabellen (Preise, Öffnungszeiten) – wie ehemals .sqrtable */
.richtext table {
	width: 100%;
	table-layout: auto;
	background-color: #fff;
	border: 1px solid var(--border);
	border-collapse: collapse;
	margin: 0 0 40px 0;
}
.richtext td,
.richtext th {
	line-height: 1.8;
	border: 1px solid var(--border);
	padding: 12px 18px;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
}
.richtext th {
	border-color: var(--dark);
	background-color: var(--dark);
	color: var(--light);
}
@media screen and (max-width: 767px) {
	.richtext table { display: block; overflow-x: auto; }
}

/* Im Editor ausgerichtete Bilder (ehemals "sqrfigr") */
.richtext img.align_right,
.richtext img.align_left {
	width: 33%;
	border: 1px solid var(--border);
	background: #fff;
}
.richtext img.align_right { float: right; margin: 0 0 2% 4%; }
.richtext img.align_left { float: left; margin: 0 4% 2% 0; }
.richtext img.align_center { display: block; margin: 0 auto; }

.two-columns { columns: 2; column-gap: 40px; }
.two-columns > * { break-inside: avoid; margin-top: 0; }
@media screen and (max-width: 767px) {
	.two-columns { columns: 1; }
}

/* ---------------------------------------------------------------- Bild-Text-Block */
/* Startseite: randlos (ehemals .sqrparafw), Unterseiten: eingerückt, nur mobil randlos */

.split {
	display: flex;
	background-color: var(--split-bg);
	color: #fff;
}
.split-right { flex-direction: row-reverse; }

.split-picture {
	flex: 0 0 50%;
	position: relative;
	overflow: hidden;
	margin: 0;
}
.split-picture img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.split-text {
	flex: 0 0 50%;
	display: flex;
	align-items: center;
}
.split-text > div { padding: 30px; width: 100%; }
.split-text p:first-child { margin-top: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-lead { font-size: 120%; }

@media screen and (max-width: 767px) {
	.split, .split-right { display: block; }
	.split-picture { aspect-ratio: auto !important; }
	.split-picture img { position: static; height: auto; }
}

/* ---------------------------------------------------------------- Galerie */

.gallery {
	display: block;
	margin: 0;
	padding: 0;
	border: 1px solid var(--border);
	background: #fff;
}
.gallery-start { display: block; position: relative; }
.gallery-start img { display: block; width: 100%; height: auto; }

.gallery-button {
	position: absolute;
	bottom: 30px;
	right: 30px;
	background: rgba(255, 255, 255, 0.8) url(../img/sqwplugintouchpopupstart.svg) no-repeat right center;
	padding: 12px 30px 12px 20px;
	color: var(--dark);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	border: 1px solid var(--border);
	transition: background-color 0.5s;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.gallery-start:hover .gallery-button { background-color: rgba(240, 240, 240, 0.8); }

@media screen and (max-width: 767px) {
	.para-mobile-fw, .para-split { padding: 0; }
	.para-split > h2 { padding: 0 30px; }
	.para-mobile-fw > h2 { padding: 0 30px; }
	.gallery { border-left: 0; border-right: 0; }
}

.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #222;
}
.lightbox::backdrop { background: #222; }
.lightbox img {
	position: absolute;
	inset: 0;
	margin: auto;
	max-width: calc(100% - 96px);
	max-height: calc(100% - 96px);
	width: auto;
	height: auto;
}
.lightbox button {
	position: absolute;
	border: 0;
	cursor: pointer;
	background: transparent center center no-repeat;
	width: 48px;
	color: transparent;
	overflow: hidden;
}
.lightbox .lb-close { top: 0; right: 0; height: 48px; background-image: url(../img/close.svg); }
.lightbox .lb-prev { left: 0; top: calc(50% - 48px); height: 96px; background-image: url(../img/prev.svg); }
.lightbox .lb-next { right: 0; top: calc(50% - 48px); height: 96px; background-image: url(../img/next.svg); }
/* Dunkler Hintergrund, damit die weißen Pfeile auch über hellen Fotos sichtbar sind (mobil liegen sie auf dem Bild) */
.lightbox .lb-prev, .lightbox .lb-next { background-color: rgba(0, 0, 0, 0.5); }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { background-color: rgba(0, 0, 0, 0.75); }
.lightbox img { cursor: pointer; }
.lightbox .lb-count {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	text-align: center;
	color: #ccc;
	font-size: 90%;
}
@media screen and (max-width: 767px) {
	.lightbox img { max-width: 100%; }
}

/* ---------------------------------------------------------------- Fußzeile */

.sitefooter {
	margin: 0;
	padding: 30px 0 0 0;
	font-size: 90%;
}
.sitefooter-links,
.sitefooter-text {
	margin: 0 auto;
	padding: 0 30px 30px 30px;
	text-align: center;
	color: var(--light);
}
.sitefooter-links a {
	text-decoration: none;
	color: var(--light);
	padding: 0 8px;
	transition: color 0.3s;
	text-transform: uppercase;
}
.sitefooter-links a:hover { color: #fff; }


@media screen and (max-width: 767px) {
	h1 { font-size: 36px; margin: 20px 0 -30px 0; }
	h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
