/*
Theme Name: Hello Koester
Description: Child-Theme von Hello Elementor für praxis-dr-koester.de. Rahmen und Optik wie die TYPO3-Seite (drkoester_theme).
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-koester
*/

/* ---- Übernommen aus drkoester_theme (style.css, navi.css) und fileadmin/templates/css/new.css ---- */

* {
	padding: 0;
	margin: 0;
	font-family: arial;
}

body {
	background: url(images/body.jpg) repeat-x #c3c7e4;
	overflow-y: scroll;
}

#wrapper {
	width: 990px;
	background: url(images/wrapper.jpg) repeat-y;
	margin: 50px auto;
}

#header {
	height: 175px;
	background-repeat: no-repeat;
}

#address {
	height: 50px;
	padding-top: 5px;
	text-align: left;
	padding-left: 188px;
}
#address p,
#address a {
	font-size: 10px;
	font-weight: bold;
	color: #0E4797;
	letter-spacing: 0.3px;
}
#address a {
	text-decoration: none;
}
#address a:hover {
	color: #0E3787;
	text-decoration: underline;
}

#left {
	width: 150px;
	float: left;
	padding-bottom: 15px;
}
#right {
	width: 787px;
	padding-left: 38px;
	padding-right: 15px;
	padding-bottom: 15px;
	float: left;
}
#footer {
	height: 20px;
	padding-right: 15px;
}
#logo {
	text-align: right;
}

h1, h2, h3, h4, h5, h6 {
	color: #0F4A9E;
	font-weight: normal;
}
h1 { font: 18px arial; font-weight: bold; }
h2 { font-size: 17px; font-weight: bold; }
h3 { font-size: 16px; font-weight: bold; }
h4 { font-size: 15px; font-weight: bold; }
h5 { font-size: 14px; font-weight: bold; }
h6 { font-size: 13px; font-weight: bold; }

/* Startseite */
#right #c3 p {
	line-height: 12pt;
	padding: 30px 0 20px 0;
}
#right .bodytext,
#right p {
	color: #0F4A9E;
	font-size: 15px;
	line-height: 20px;
}
#right #c3 p.lead {
	color: red;
	line-height: 12pt;
	padding: 0;
}
.startseite_h1 {
	font-size: 40px;
	font-weight: normal;
}
.startseite_h1,
.startseite_logo {
	float: left;
}
.startseite_logo {
	margin-left: 15px;
}
.clear {
	clear: both;
}

#right a {
	color: #0E4797;
	text-decoration: none;
}
#right a:hover {
	color: #0E3787;
	text-decoration: underline;
}

#right ul,
#right ol {
	color: #0F4A9E;
	position: relative;
	left: 20px;
	padding-right: 20px;
	font-size: 14px;
}
#right ul li,
#right ol li {
	margin-bottom: 18px;
	list-style-image: url(images/list_style.png);
}

/* Leistungen: zwei Spalten (Backend-Layout "partner") */
#right .e-con.subcl,
#right .e-con.subcr {
	box-sizing: content-box;
	width: 47%;
	padding: 0 0 0 1em;
}
#right #c16 a {
	text-decoration: underline;
}
.frame-type-text {
	color: #0F4A9E;
	font-size: 15px;
	line-height: 20px;
}
.counter {
	float: right;
}

/* Navigation */
#navi {
	text-align: right;
}
#navi ul {
	list-style: none;
}
#navi li {
	line-height: 28px;
}
#navi a {
	color: #0E4797;
	text-decoration: none;
	font-weight: bold;
	font-size: 12px;
}
#navi a.current {
	color: #34B44B;
}
#navi a:hover {
	color: #d23118;
}

/* Abstände der TYPO3-Inhaltselemente (fluid_styled_content) */
.ce-gallery img { display: block; }

/* ---- Elementor an das TYPO3-Markup angleichen ---- */

#right .elementor *,
#right .elementor *::before,
#right .elementor *::after {
	box-sizing: content-box;
}
#right .e-con,
#right .e-con-inner,
#right .e-con > .elementor-widget {
	box-sizing: border-box;
}
/* Text neben dem Bild (Text & Bilder, "im Text links") nimmt die Restbreite */
#right .e-con > .ce-bodytext {
	flex: 1 1 0;
	min-width: 0;
}
#right .elementor-heading-title {
	line-height: normal;
}
#right .elementor-widget-image img {
	display: block;
	max-width: none;
}
#right .elementor-widget-text-editor {
	color: inherit;
}

/* ---- Ergänzungen gegenüber dem Original ---- */

/* Datenschutz-Hinweis (unten, schließbar; ersetzt den alten Cookie-Banner) */
#privacy-note {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px;
	background: #fff;
	border-top: 2px solid #0F4A9E;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
	color: #0F4A9E;
	font-size: 13px;
	line-height: 18px;
}
#privacy-note[hidden] {
	display: none;
}
#privacy-note p {
	max-width: 760px;
}
#privacy-note a {
	color: #0E4797;
	text-decoration: underline;
}
#privacy-note button {
	flex: none;
	padding: 6px 14px;
	border: 0;
	border-radius: 3px;
	background: #0F4A9E;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
}
#privacy-note button:hover {
	background: #0E3787;
}

/* Kontaktformular [koester_kontakt] (Felder wie das alte TYPO3-Formular) */
.koester-kontakt {
	max-width: 520px;
	margin-top: 10px;
	color: #0F4A9E;
	font-size: 14px;
}
.koester-kontakt-row {
	margin-bottom: 12px;
}
.koester-kontakt label {
	display: block;
	margin-bottom: 3px;
	font-weight: bold;
}
#right .koester-kontakt input,
#right .koester-kontakt textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #9aa3cf;
	border-radius: 2px;
	color: #222;
	font-size: 14px;
	background: #fff;
}
.koester-kontakt input:focus,
.koester-kontakt textarea:focus {
	outline: 2px solid #0F4A9E;
	outline-offset: 0;
	border-color: #0F4A9E;
}
.koester-kontakt .has-error input,
.koester-kontakt .has-error textarea {
	border-color: #c8102e;
}
.koester-kontakt-hint,
#right .koester-kontakt-error {
	color: #c8102e;
}
.koester-kontakt-hint {
	display: block;
	margin-top: 3px;
	font-size: 13px;
}
#right .koester-kontakt-error {
	margin-bottom: 12px;
	font-weight: bold;
}
#right .koester-kontakt-note {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 18px;
}
#right .koester-kontakt-note a {
	text-decoration: underline;
}
.koester-kontakt button {
	padding: 8px 20px;
	border: 0;
	border-radius: 3px;
	background: #0F4A9E;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
}
.koester-kontakt button:hover {
	background: #0E3787;
}
/* Feld für Spam-Bots, für Menschen unsichtbar */
.koester-kontakt-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Menü-Schalter: nur auf schmalen Bildschirmen sichtbar */
#navi-toggle {
	display: none;
}

/* Schmale Bildschirme: bis 990 px bleibt alles wie im Original, darunter einspaltig */
@media (max-width: 1009px) {
	body {
		overflow-y: auto;
		background: #fff;
	}
	#wrapper {
		width: auto;
		margin: 0;
		background: #fff;
	}
	#header {
		height: auto;
		aspect-ratio: 990 / 175;
		background-size: cover;
		background-position: left center;
	}
	#address {
		height: auto;
		padding: 8px 16px;
	}
	#address p {
		line-height: 15px;
	}

	#left {
		float: none;
		width: auto;
		padding: 0 16px;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid #c3c7e4;
	}
	#logo img {
		display: block;
		width: 45px;
		height: auto;
		margin: 6px 0;
	}
	#navi-toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 10px 4px;
		border: 0;
		background: none;
		color: #0E4797;
		font-size: 14px;
		font-weight: bold;
		cursor: pointer;
	}
	.navi-toggle-bars,
	.navi-toggle-bars::before,
	.navi-toggle-bars::after {
		display: block;
		width: 22px;
		height: 3px;
		background: #0E4797;
		border-radius: 1px;
	}
	.navi-toggle-bars {
		position: relative;
	}
	.navi-toggle-bars::before,
	.navi-toggle-bars::after {
		content: "";
		position: absolute;
		left: 0;
	}
	.navi-toggle-bars::before { top: -7px; }
	.navi-toggle-bars::after { top: 7px; }
	#navi {
		display: none;
		flex-basis: 100%;
		text-align: left;
		padding-bottom: 8px;
	}
	.navi-open #navi {
		display: block;
	}
	#navi li {
		line-height: normal;
		border-top: 1px solid #e3e5f1;
	}
	#navi a {
		display: block;
		padding: 11px 0;
		font-size: 15px;
	}

	#right {
		float: none;
		width: auto;
		padding: 16px 16px 24px;
	}
	#right .e-con {
		flex-wrap: wrap;
	}
	#right .e-con > .elementor-widget {
		max-width: 100%;
	}
	#right .elementor-widget-image img {
		max-width: 100% !important;
		height: auto !important;
	}
	#right .e-con > .ce-bodytext {
		flex: 1 1 260px;
	}
	#right .e-con.subcl,
	#right .e-con.subcr {
		width: 100%;
		padding: 0;
	}
	#right ul,
	#right ol {
		left: 0;
		padding-left: 20px;
		padding-right: 0;
	}
	#right iframe,
	#right table {
		max-width: 100%;
	}
	.startseite_h1 {
		font-size: 28px;
		line-height: 1.2;
	}
	.startseite_logo {
		width: 70px;
	}
	/* Doctolib-Button (c52) nicht über den Text legen, sondern unten rechts */
	#c52 a {
		top: auto !important;
		bottom: 16px;
		width: auto !important;
		font-size: 15px !important;
		padding: 8px 12px !important;
	}
	#c52 a span {
		font-size: 15px !important;
	}
	#footer {
		height: auto;
		padding: 0 16px 16px;
	}
	#privacy-note {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	#privacy-note button {
		padding: 10px 14px;
	}
}
