@charset "utf-8";

/* ==========================================================================
   Kieferorthopädie Dr. Ingrid Glatzel, Marktredwitz
   Statische HTML-Fassung – Layout und Farbgebung der Contao-Vorlage
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schrift: Open Sans (lokal, latin)
   -------------------------------------------------------------------------- */

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../font/open-sans-v34-latin-300.woff2') format('woff2'),
	     url('../font/open-sans-v34-latin-300.woff') format('woff');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../font/open-sans-v34-latin-regular.woff2') format('woff2'),
	     url('../font/open-sans-v34-latin-regular.woff') format('woff');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../font/open-sans-v34-latin-600.woff2') format('woff2'),
	     url('../font/open-sans-v34-latin-600.woff') format('woff');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../font/open-sans-v34-latin-700.woff2') format('woff2'),
	     url('../font/open-sans-v34-latin-700.woff') format('woff');
}

@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../font/open-sans-v34-latin-italic.woff2') format('woff2'),
	     url('../font/open-sans-v34-latin-italic.woff') format('woff');
}

/* --------------------------------------------------------------------------
   Variablen
   -------------------------------------------------------------------------- */

:root {
	--gruen: #76b729;
	--gruen-dunkel: #5f9420;
	--text: #434f4f;
	--seite: #f7f9f8;
	--rahmen: #434f4f;
	--breite-aussen: 960px;
	--breite-innen: 780px;
}

/* --------------------------------------------------------------------------
   Grundgerüst
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 20px;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	background-color: var(--seite);
	font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
	font-weight: 400;
	font-size: 13.5px;
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

#bodywrapper {
	width: var(--breite-aussen);
	max-width: 100%;
	margin: 0 auto;
	background-image: url(../tl_files/gui/body_background.jpg);
	background-repeat: repeat-y;
	background-position: center top;
	overflow: hidden;
}

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

a {
	color: var(--gruen);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

:focus-visible {
	outline: 2px solid var(--gruen);
	outline-offset: 2px;
}

h1 {
	font-weight: 600;
	font-size: 24px;
	line-height: 1.25;
	color: var(--gruen);
	margin-bottom: 20px;
}

h2 {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	color: var(--gruen);
	margin: 22px 0 8px;
}

/* Abschnittsüberschriften mit der Optik der Seitenüberschrift */
.sektion {
	font-weight: 600;
	font-size: 24px;
	line-height: 1.25;
	color: var(--gruen);
	margin: 0 0 20px;
}

h3 {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.35;
	color: var(--text);
	margin: 18px 0 6px;
}

p {
	line-height: 1.45;
	margin-bottom: 10px;
}

ul,
ol {
	margin: 10px 0 10px 20px;
}

li {
	line-height: 1.45;
	margin-bottom: 4px;
}

hr {
	border-top: 1px solid var(--rahmen);
	margin: 20px 0;
}

.clear {
	clear: both;
}

/* Sichtbar nur für Screenreader */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Sprunglink zum Inhalt */
.skiplink {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--gruen);
	color: #fff;
	padding: 10px 16px;
	font-weight: 600;
}

.skiplink:focus {
	left: 0;
	text-decoration: none;
}

/* Innerer Satzspiegel – 780 px, wie im Original */
.innen {
	width: var(--breite-innen);
	max-width: 100%;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */

#siteheader {
	padding-top: 25px;
	padding-bottom: 50px;
}

#logo {
	width: 219px;
	max-width: 60%;
	margin: 0 auto;
}

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

#navigationwrapper {
	border-top: 1px solid var(--rahmen);
	border-bottom: 1px solid var(--rahmen);
}

.mod_navigation ul {
	list-style: none;
	margin: 0;
	padding: 9px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	padding-left: 20px;
}

.mod_navigation a {
	color: var(--text);
	line-height: 20px;
	display: inline-block;
}

.mod_navigation a:hover,
.mod_navigation a:focus-visible,
.mod_navigation a[aria-current='page'] {
	color: var(--gruen);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Bildspalten unter der Navigation
   -------------------------------------------------------------------------- */

#imagecolumnwrapper {
	margin-top: 20px;
	display: flex;
	gap: 0;
}

#imagecolumnwrapper > div {
	width: 260px;
	flex: 1 1 0;
}

#imageCenterColumn img {
	margin: 0 auto;
}

#imageRightColumn img {
	margin-left: auto;
}

/* --------------------------------------------------------------------------
   Inhaltsbereich (zwei Spalten)
   -------------------------------------------------------------------------- */

#contentwrapper {
	margin-top: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rahmen);
	display: flex;
	align-items: flex-start;
}

#contentLeftColumn {
	width: 520px;
	flex: 0 0 520px;
	padding-right: 20px;
}

#contentLeftColumn p {
	font-weight: 300;
	line-height: 16px;
	margin-bottom: 10px;
}

#contentLeftColumn h2 + p,
#contentLeftColumn h3 + p {
	margin-top: 0;
}

#contentRightColumn {
	width: 260px;
	flex: 0 0 260px;
	padding-left: 20px;
}

#contentRightColumn p {
	font-size: 12px;
	line-height: 14px;
}

#contentRightColumn ul {
	margin: 10px 0 0 20px;
	font-size: 12px;
	font-weight: 700;
	color: var(--gruen);
}

/* Rechtstexte (Impressum / Datenschutz) über die volle Breite */
.seite-text #contentwrapper {
	display: block;
}

.seite-text #contentLeftColumn {
	width: 100%;
	padding-right: 0;
}

.seite-text #contentLeftColumn p {
	line-height: 1.5;
}

/* Lange URLs in den Rechtstexten umbrechen statt überstehen lassen */
.seite-text #contentLeftColumn a {
	overflow-wrap: anywhere;
}

.seite-text #contentLeftColumn h1 {
	margin-bottom: 24px;
}

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

#gallerywrapper {
	font-weight: 300;
	padding-top: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rahmen);
}

.ce_gallery ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding-top: 20px;
}

.ce_gallery li {
	margin: 0;
}

.ce_gallery a {
	display: block;
	position: relative;
	overflow: hidden;
	background: #e9edec;
}

.ce_gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .35s ease, opacity .35s ease;
}

.ce_gallery a:hover img,
.ce_gallery a:focus-visible img {
	transform: scale(1.06);
	opacity: .9;
}

/* --------------------------------------------------------------------------
   Anfahrt
   -------------------------------------------------------------------------- */

#mapwrapper {
	font-weight: 300;
	padding-top: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rahmen);
}

.button-maps {
	background-color: var(--gruen);
	color: #fff;
	padding: 15px 32px;
	text-align: center;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	transition: background-color .2s ease;
}

.button-maps:hover,
.button-maps:focus-visible {
	background-color: var(--gruen-dunkel);
	color: #fff;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */

#footerwrapper {
	font-weight: 300;
	padding-top: 20px;
	padding-bottom: 10px;
	background-image: url(../tl_files/gui/separator_dotted.png);
	background-position: bottom center;
	background-repeat: no-repeat;
	text-align: center;
}

#sitefooter {
	padding-top: 20px;
}

#footerwrapper h2 {
	font-weight: 700;
	font-size: 14px;
	color: var(--text);
	margin: 0 0 -4px;
}

#footerwrapper p {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 1.5;
}

#footerwrapper a {
	color: var(--text);
}

#footerwrapper a:hover,
#footerwrapper a:focus-visible {
	color: var(--gruen);
}

#toplink {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 14px;
	padding-bottom: 10px;
	font-weight: 700;
	font-size: 12px;
}

#toplink a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
}

#toplink a:hover,
#toplink a:focus-visible {
	color: var(--gruen);
	text-decoration: none;
}

#toplink img {
	width: 40px;
	height: 41px;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

#lightbox[hidden] {
	display: none;
}

#lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(20, 26, 26, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 60px 64px;
}

#lightbox figure {
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

#lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	width: auto;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

#lightbox figcaption {
	color: #dfe6e4;
	font-size: 12px;
	font-weight: 300;
	text-align: center;
}

#lightbox button {
	position: absolute;
	background: none;
	color: #fff;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	padding: 14px 18px;
	opacity: .75;
	transition: opacity .2s ease;
}

#lightbox button:hover,
#lightbox button:focus-visible {
	opacity: 1;
}

#lb-close {
	top: 6px;
	right: 10px;
	font-size: 34px;
}

#lb-prev {
	left: 4px;
	top: 50%;
	transform: translateY(-50%);
}

#lb-next {
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Anpassung an kleinere Bildschirme
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	#bodywrapper {
		background-image: none;
		background-color: #fff;
	}

	.innen {
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}

	#footerwrapper {
		background-size: contain;
	}
}

@media (max-width: 760px) {
	#siteheader {
		padding-bottom: 30px;
	}

	#navigationwrapper .mod_navigation ul {
		justify-content: center;
		gap: 6px 18px;
		padding-left: 0;
	}

	#imagecolumnwrapper {
		gap: 10px;
	}

	#contentwrapper {
		display: block;
	}

	#contentLeftColumn,
	#contentRightColumn {
		width: 100%;
		flex: none;
		padding: 0;
	}

	#toplink {
		justify-content: center;
	}

	#contentRightColumn {
		margin-top: 24px;
		padding-top: 20px;
		border-top: 1px solid #d5dcda;
	}

	.ce_gallery ul {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	#lightbox {
		padding: 20px 12px 56px;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 14px;
	}

	h1 {
		font-size: 21px;
	}

	#imagecolumnwrapper {
		flex-wrap: wrap;
		justify-content: center;
	}

	#imagecolumnwrapper > div {
		flex: 0 0 48%;
	}

	#imagecolumnwrapper img,
	#imageCenterColumn img,
	#imageRightColumn img {
		margin: 0 auto;
	}

	#contentLeftColumn p {
		line-height: 1.5;
	}

	.ce_gallery ul {
		grid-template-columns: repeat(2, 1fr);
	}

	#footerwrapper {
		background-image: none;
	}
}

/* --------------------------------------------------------------------------
   Druck
   -------------------------------------------------------------------------- */

@media print {
	#navigationwrapper,
	#imagecolumnwrapper,
	#toplink,
	#lightbox {
		display: none;
	}

	#bodywrapper {
		width: auto;
		background: none;
	}

	body {
		color: #000;
		font-size: 11pt;
	}

	a {
		color: #000;
	}
}
