/*
 * Frauenarztpraxis U2 – custom styles
 * Facts: content/design-tokens.md (capture of the live site 2026-11-01).
 */

/* Exo 2, self-hosted (no Google request, nDSG). SIL OFL 1.1, see fonts/OFL-Exo2.txt.
   Source: @fontsource/exo-2 5.2.8. Live renders headings at 300; 400 is used by the slide-menu headings. */
@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("fonts/exo-2-latin-ext-300-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("fonts/exo-2-latin-300-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/exo-2-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/exo-2-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--fp-pink: #cc6699;
	--fp-text: #000000;
	--fp-white: #ffffff;
	--fp-divider: rgba(126, 127, 127, 0.3);  /* 20px band under every section */
	--fp-grey-ccc: #cccccc;                  /* phone call-to-action border */
	--fp-line: rgba(0, 0, 0, 0.1);           /* top line / slide menu borders */

	--fp-font-heading: "Exo 2", Verdana, Geneva, sans-serif;
	--fp-font-body: Verdana, Geneva, sans-serif;
}

/* =============================================================================
   Replica of the live one-pager (scripts/phase4-sections.py).
   Each text column holds one text module (.fp-contexting) with live's HTML; the rules
   below reproduce live's inline CSS + browser defaults that Divi resets. Fonts come
   from the presets. Breakpoints: live's own (1000 / 600px) where this file controls the
   behaviour; Divi stacks the columns at 980px.
   ========================================================================== */

/* Live .item{text-align:center} + .contexting{display:inline-block; text-align:left}:
   the text block is as wide as its content and centred in the column. */
.et_pb_section .et_pb_column.fp-text {
	align-items: center;
	/* safe: a block wider than the column overflows to the right only, like live's inline-block. */
	align-items: safe center;
	text-align: center;
}

.et_pb_section .et_pb_module.fp-contexting {
	width: auto;
	max-width: 100%;
	text-align: left;
}

.et_pb_section .et_pb_module.fp-contexting--center {
	text-align: center;
}

/* Browser-default block spacing (Divi uses padding-bottom instead of margins). */
.fp-contexting p,
.fp-teaminfo-text p {
	margin: 1em 0;
	padding: 0;
}

.fp-contexting h1,
.fp-contexting h2,
.fp-contexting h3,
.fp-teaminfo-text h2,
.fp-teaminfo-text h3 {
	padding: 0;
}

.fp-contexting h2,
.fp-teaminfo-text h2 {
	margin: 0;
}

/* px, not 1em: the Notfall h3 is larger (22.464px) but live's margins come from the 14.976px h3. */
.fp-contexting h3,
.fp-teaminfo-text h3 {
	margin: 14.976px 0;
}

.fp-contexting .fp-br {
	font-size: 12.8px;
	line-height: normal;
}

.et_pb_section .fp-contexting ul {
	margin: 1em 0;
	padding: 0 0 0 40px;
	list-style-type: disc;
	line-height: normal;
}

/* Hero: logo inside the h1 (decision D6), laid out like live's plain <img> in the text block. */
.et_pb_section .fp-contexting h1.fp-logo {
	margin: 0;
	padding: 0;
	font-family: var(--fp-font-body);
	font-size: 12.8px;
	font-weight: 400;
	line-height: normal;
	text-transform: none;
}

.fp-logo img {
	width: 100%;
	max-width: 700px;
	height: auto;
	vertical-align: baseline;
}

/* "Vereinbaren Sie einen Termin" + phone box (live .calltoaction). */
.et_pb_section .fp-contexting .fp-calltoaction {
	margin-top: 20%;
	font-size: 16.64px;
	line-height: normal;
}

.et_pb_section .fp-contexting .fp-calltoaction p {
	font-size: 16.64px;
	line-height: 1.8em;
}

.et_pb_section .fp-contexting .fp-calltoaction a {
	display: inline-block;
	box-sizing: content-box;
	max-width: 200px;
	margin-top: 1em;
	padding: 10px;
	border: 2px solid var(--fp-grey-ccc);
	color: var(--fp-pink);
	font-size: 24.96px;
	text-decoration: none;
}

/* Hero: live height 100vh (the columns keep their content height, the rest stays white). */
@media (min-width: 1001px) {
	.et_pb_section.fp-hero {
		box-sizing: border-box;
		height: 100vh;
	}
}

/* Live's 50px margin on the hero row collapses through the section, so the section moves. */
@media (max-width: 1000px) {
	.et_pb_section.fp-hero {
		margin-top: 50px;
	}
}

@media (max-width: 600px) {
	.et_pb_section .fp-contexting .fp-calltoaction a {
		font-size: 16.64px;
	}
}

/* Lageplan: the Google Maps iframe fills the map column (live .item.picture padding 0). */
.et_pb_section .et_pb_column.fp-map {
	position: relative;
	background: none;
}

.fp-map .et_pb_code,
.fp-map .et_pb_code_inner {
	position: static;
}

.fp-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Team photos (live ul.team). #page-container: beats the text preset's 40px list indent. */
#page-container .et_pb_section .fp-contexting ul.fp-team {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

/* Live: 400px images clamped to 200px. Fixed width, because the flex text block would
   otherwise shrink the second photo. */
.fp-team li {
	display: inline-block;
	width: 200px;
	max-width: 100%;
	margin-right: 2rem;
	vertical-align: top;
	line-height: normal;
}

.fp-team img {
	width: 100%;
	height: auto;
	margin-bottom: 1rem;
}

/* Team list: table on desktop (live .teaminfo.hidden-s) … */
.fp-teaminfo-text h2 {
	margin: 38px 0 0;
}

.et_pb_section .fp-teaminfo-text table {
	width: 100%;
	margin: 40px 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 2px;
}

.et_pb_section .fp-teaminfo-text table td {
	width: 50%;
	padding: 10px 0;
	border: 0;
	line-height: normal;
	text-align: left;
	vertical-align: middle;
}

.et_pb_section .fp-teaminfo-text td h3 {
	margin: 0;
}

/* … and the stacked, centred list of live's phone/tablet copy (.teaminfo.hidden-l). */
@media (max-width: 980px) {
	/* Like the other text columns: block as wide as its content, centred, text left. */
	.et_pb_section .et_pb_column.fp-teaminfo {
		align-items: center;
	}

	.et_pb_section .et_pb_module.fp-teaminfo-text {
		width: auto;
		max-width: 100%;
		text-align: left;
	}

	.fp-teaminfo-text h2 {
		margin: 0;
	}

	.et_pb_section .fp-teaminfo-text table,
	.et_pb_section .fp-teaminfo-text tbody,
	.et_pb_section .fp-teaminfo-text tr,
	.et_pb_section .fp-teaminfo-text table td {
		display: block;
		width: auto;
		margin: 0;
		padding: 0;
		border-spacing: 0;
		text-align: left;
	}

	.et_pb_section .fp-teaminfo-text table td:empty {
		display: none;
	}

	.et_pb_section .fp-teaminfo-text table td:not(:has(h3)) {
		margin: 12.8px 0;
		line-height: 23.04px;
	}

	.et_pb_section .fp-teaminfo-text td h3 {
		margin: 1em 0;
	}
}

/* =============================================================================
   Top line (live section.topline, of/css/nwMenuStandalone.css) – Theme Builder header,
   scripts/phase4-layouts.py. Fixed, white, 1px line; table layout logo | menu | toggle.
   ========================================================================== */
.et_pb_section.fp-topline {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	z-index: 100;
	width: 100%;
	padding: 0;
	border-bottom: 1px solid var(--fp-line);
	background: var(--fp-white);
	font-family: var(--fp-font-body);
	font-size: 14.4px;
	line-height: normal;
}

.fp-topline .et_pb_row,
.fp-topline .et_pb_column,
.fp-topline .et_pb_code,
.fp-slidemenu .et_pb_row,
.fp-slidemenu .et_pb_column,
.fp-slidemenu .et_pb_code {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.fp-tl {
	display: table;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
}

.fp-tl-row {
	display: table-row;
}

.fp-tl-cell {
	display: table-cell;
	box-sizing: content-box;
	vertical-align: middle;
	text-align: center;
}

.fp-tl-logo {
	width: 53px;
	max-width: 25%;
	padding: 0 15px;
}

.fp-tl-logo img {
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.fp-tl-toggle {
	width: 83px;
	padding: 0;
	text-align: right;
}

.fp-slide-toggle {
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	max-width: 64px;
	margin: 0;
	padding: 20px;
	border: 0;
	background: none;
	color: var(--fp-pink);
	font: inherit;
	line-height: normal;
	text-align: center;
	cursor: pointer;
}

.fp-slide-toggle .fp-i {
	display: none;
	vertical-align: middle;
}

.fp-slide-toggle .fp-i-info,
.fp-slide-toggle .fp-label-desktop {
	display: inline-block;
}

.fp-slide-toggle .fp-label-mobile {
	display: none;
}

.fp-slide-toggle.is-open .fp-i {
	display: none;
}

.fp-slide-toggle.is-open .fp-i-close {
	display: inline-block;
}

/* Desktop menu (live .nwMenu.desktopMenu). */
.fp-desktop-menu {
	display: inline-block;
	text-align: center;
	user-select: none;
}

.fp-desktop-menu ul {
	display: block;
	float: right;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* line-height: Divi gives header lists 26px; live uses normal (57px high links). */
.fp-desktop-menu li,
.fp-desktop-menu li a {
	line-height: normal;
}

.fp-desktop-menu li {
	position: relative;
	display: inline-block;
	border-top: 2px solid rgba(255, 255, 255, 0);
	border-bottom: 2px solid rgba(255, 255, 255, 0);
	transition: all 0.15s;
}

.fp-desktop-menu li:hover {
	border-bottom-color: var(--fp-pink);
}

.fp-desktop-menu li a {
	display: block;
	padding: 20px 30px;
	color: #000;
	text-decoration: none;
	outline: none;
}

/* =============================================================================
   Slide menu (live section.slidemenu): panel from the right, "Menu" block ≤1350px.
   ========================================================================== */
.et_pb_section.fp-slidemenu {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 11;
	display: block;
	box-sizing: border-box;
	width: 80%;
	max-width: 340px;
	overflow: auto;
	border-left: 1px solid var(--fp-line);
	background: var(--fp-white);
	font-family: var(--fp-font-body);
	font-size: 14.4px;
	line-height: normal;
	visibility: hidden;
	/* padding 94px 0 30px: set in the layout (Divi's instance spacing wins over this file). */
	transform: translateX(100%);
	/* Live: jQuery animate 300ms in, 200ms out. */
	transition: transform 0.2s ease, visibility 0s linear 0.2s;
}

.et_pb_section.fp-slidemenu.is-open {
	visibility: visible;
	transform: none;
	transition: transform 0.3s ease;
}

.admin-bar .et_pb_section.fp-slidemenu {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.fp-sm-block {
	display: block;
	clear: both;
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 30px;
	padding: 0 30px 30px;
	border-bottom: 1px solid var(--fp-line);
}

.fp-sm-block:last-child {
	border-bottom: 0;
}

.fp-sm-menu {
	display: none;
}

.et_pb_section.fp-slidemenu h2 {
	margin: 0;
	padding: 0;
	color: var(--fp-pink);
	font-family: var(--fp-font-heading);
	font-size: 17.28px;
	font-weight: 400;
	line-height: normal;
	text-transform: uppercase;
}

.fp-sm-cont {
	margin-top: 15px;
}

.fp-sm-cont > ul {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-sm-cont > ul > li {
	display: block;
	width: 100%;
	padding: 0;
	line-height: normal;
}

.fp-sm-cont > ul > li a {
	display: block;
	padding: 15px 0;
	color: var(--fp-menu-link, rgba(0, 0, 0, 0.8));
	text-decoration: none;
	outline: none;
}

.fp-sm-cont > ul > li a:hover {
	color: var(--fp-pink);
}

/* Live breakpoints of the menu. */
@media (max-width: 1600px) {
	.fp-tl-toggle {
		width: 64px;
	}

	.fp-tl-cell {
		text-align: right;
	}
}

@media (max-width: 1350px) {
	.fp-tl-cell {
		text-align: left;
	}

	.fp-tl-logo {
		width: auto;
	}

	.fp-tl-logo img {
		width: auto;
		max-width: 100%;
		max-height: 45px;
	}

	.et_pb_section .fp-tl-menu {
		display: none;
	}

	.fp-sm-menu {
		display: block;
	}

	.fp-slide-toggle .fp-i-info,
	.fp-slide-toggle .fp-label-desktop {
		display: none;
	}

	.fp-slide-toggle .fp-i-bars,
	.fp-slide-toggle .fp-label-mobile {
		display: inline-block;
	}
}

@media (max-width: 700px) {
	.fp-tl-logo {
		max-width: 25%;
		padding: 0 10px;
	}

	.fp-tl-logo img {
		width: auto;
		max-width: 100%;
		max-height: 40px;
	}

	.fp-tl-toggle {
		width: 50px;
	}

	.fp-slide-toggle {
		padding: 15px;
	}
}

/* =============================================================================
   Datenschutzerklärung (live /datenschutz.php: one white 50% column, centred text).
   ========================================================================== */
.et_pb_section.fp-datenschutz > .et_pb_row {
	justify-content: center;
}

@media (max-width: 1000px) {
	.et_pb_section.fp-datenschutz {
		margin-top: 50px;
	}
}

/* Live: the long word "DATENSCHUTZERKLÄRUNG" does not break; it widens the text block beyond
   the column (desktop: block shifted right, phones: cut off). Divi would break the word. */
.et_pb_section .et_pb_module.fp-ds-text,
.et_pb_section .fp-ds-text h1 {
	min-width: min-content;
	overflow-wrap: normal;
	word-wrap: normal;
}

/* Live h1: 4em of 12.8px, uppercase Exo 2 300, margins 0.67em / 50px. */
.et_pb_section .fp-ds-text h1 {
	margin: 0.67em 0 50px;
	padding: 0;
	color: #000;
	font-family: var(--fp-font-heading);
	font-size: 51.2px;
	font-weight: 300;
	line-height: normal;
	text-transform: uppercase;
}

/* Deviation D11 (accepted 2026-11-01): on live the heading cuts the page off on phones.
   Up to 680px (where the 620px word no longer fits) the heading shrinks to the available width. */
@media (max-width: 680px) {
	.et_pb_section .fp-ds-text h1 {
		font-size: min(51.2px, calc((100vw - 60px) / 12.2));
	}
}

/* Live h2 keep the browser margins here (the home sections set margin: 0 inline). */
.fp-contexting.fp-ds-text h2 {
	margin: 0.83em 0;
}

.fp-ds-text b {
	font-weight: 700;
}

/* =============================================================================
   Cookie banner (live of/js/cookie-consent.js, decision D2): pink bar at the bottom.
   Markup built by frauenarztpraxis.js; styles = live's inline styles.
   ========================================================================== */
.fp-cookie {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	background-color: var(--fp-pink);
}

.fp-cookie-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 1336px;
	margin: 0 auto;
	color: #fff;
}

.fp-cookie .fp-cookie-text {
	margin: 16px 0;
	padding: 0;
	color: #fff;
	font-family: var(--fp-font-body);
	font-size: 16px;
	line-height: 1.8em;
}

.fp-cookie .fp-cookie-accept {
	display: inline-block;
	margin: 0 5px;
	padding: 7px 15px;
	border: none;
	outline: none;
	background-color: #fff;
	color: #000;
	font: 400 13.3333px Arial, sans-serif;
	line-height: normal;
}

.fp-cookie .fp-cookie-link {
	color: #fff;
	font-family: var(--fp-font-body);
	font-size: 16px;
	line-height: normal;
	text-decoration: underline;
}
