/*
Theme Name: Röntgenordination Gänserndorf 2026
Theme URI: https://www.roentgen-gaenserndorf.at
Description: Block-Theme der Röntgenordination Gänserndorf. Nachbau des Themes „rog“ (2016) ohne Foundation, jQuery und Plugin-Abhängigkeiten; lauffähig mit PHP 8.2–8.5.
Author: Florian Hammer
Author URI: https://hammer.wien
Version: 2.5.0
Requires at least: 6.6
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rog26

Webfonts: SwiftNeueLTPro-Book (Linotype) und FF Info Text Web Pro (FontFont),
MyFonts Webfont Build ID 3192549 – lizenziert für roentgen-gaenserndorf.at.
Die Schriftdateien sind nicht Teil der GPL.
*/

/* ================================================================
   Grundlagen
   ================================================================ */

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

strong {
	font-family: var(--wp--preset--font-family--info);
	font-weight: normal;
	font-size: 17px;
	text-transform: uppercase;
}

:where(a, button, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

h2.wp-block-heading {
	margin-bottom: 1rem;
}

@media (min-width: 64rem) {
	h2.wp-block-heading {
		margin-bottom: 2rem;
	}
}

/* Dachzeile über Abschnittsüberschriften („UNSERE UNTERSUCHUNGEN“) */
.is-style-rog-dachzeile {
	font-family: var(--wp--preset--font-family--info);
	font-size: 21px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

/* Punktlinie */
hr.is-style-rog-punktlinie,
.wp-block-separator.is-style-rog-punktlinie {
	border: 0;
	border-bottom: 2px dotted var(--wp--preset--color--orange);
	width: 100%;
	max-width: none;
	height: 0;
	margin-block: 8px;
	opacity: 1;
	background: none;
}

/* ================================================================
   Kopfzeile
   ================================================================ */

.rog-header {
	max-width: 77rem;
	margin-inline: auto;
	background: var(--wp--preset--color--weiss);
}

.rog-header__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
}

.rog-header .wp-block-site-logo img,
.rog-header .custom-logo {
	width: 327px;
	max-width: 60vw;
	height: auto;
}

.rog-nav .wp-block-navigation-item__content {
	display: block;
	padding: .7rem .5rem;
	font-family: var(--wp--preset--font-family--info);
	font-size: 21px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--violett);
}

.rog-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--orange);
}

.rog-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}

.rog-nav .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--violett);
}

@media (max-width: 599px) {
	.rog-header__inner {
		align-items: center;
	}
}

/* ================================================================
   Hinweis-Banner (optional, schließbar)
   ================================================================ */

.rog-hinweis {
	position: relative;
	padding: 1.5rem 3rem 1.5rem 1rem;
}

.rog-hinweis__schliessen {
	position: absolute;
	top: .75rem;
	right: .75rem;
	border: 0;
	background: none;
	font-size: 2rem;
	line-height: 1;
	color: var(--wp--preset--color--violett);
	cursor: pointer;
}

.rog-hinweis[hidden] {
	display: none;
}

/* ================================================================
   Buttons
   ================================================================ */

.wp-block-button.is-style-rog-breit {
	width: 100%;
	margin-bottom: 1rem;
}

.wp-block-button.is-style-rog-breit .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 1.3rem;
}

.wp-block-button.is-style-rog-breit .wp-block-button__link strong {
	font-size: 1.25rem;
	font-weight: 900;
}

.wp-block-button.is-style-rog-breit .wp-block-button__link:hover,
.wp-block-button.is-style-rog-breit .wp-block-button__link:focus {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--weiss);
}

/* ================================================================
   Startbereich: violett | orange geteilt
   ================================================================ */

.rog-violett-orange {
	background: var(--wp--preset--color--violett);
}

@media (min-width: 64rem) {
	.rog-violett-orange {
		background: linear-gradient(to right, #7d254d 49%, #ea694f 50%);
	}
}

.rog-start {
	gap: 0 !important;
}

.rog-start__info {
	color: var(--wp--preset--color--weiss);
	padding: 2rem 1rem 1rem 0;
}

.rog-start__info strong,
.rog-footer strong {
	color: var(--wp--preset--color--orange);
}

.rog-start__info p {
	margin-block: .5rem;
}

.rog-start__bild {
	background: var(--wp--preset--color--orange);
	font-size: 16px;
}

.rog-start__bild h4 {
	padding: 1rem 0 0 1rem;
	margin: 0;
	color: var(--wp--preset--color--violett);
}

.rog-start__bild h3 {
	padding: .5rem 0 1rem 1rem;
	margin: 0;
	color: var(--wp--preset--color--weiss);
}

.rog-start__bild .wp-block-image {
	margin: 0;
}

.rog-start__info p a {
	color: inherit;
	text-decoration: none;
}

.rog-start__info p a:hover {
	color: var(--wp--preset--color--orange);
}

@media (min-width: 782px) {
	.rog-start__bild {
		margin-left: auto;
	}
}

/* Mobil: Bild zuerst, Ordinationszeiten darunter (wie bisher) */
@media (max-width: 781px) {
	.rog-start__bild {
		order: -1;
		margin-inline: -1rem;
	}
	.rog-start__info {
		padding-right: 0;
	}
}

/* Ordinationszeiten als Tabelle */
.wp-block-table.is-style-rog-zeiten {
	margin: 0;
}

.wp-block-table.is-style-rog-zeiten table {
	width: auto;
	table-layout: auto;
	border-collapse: collapse;
}

.wp-block-table.is-style-rog-zeiten :where(td, th) {
	border: 0;
	padding: 0;
	vertical-align: top;
}

.wp-block-table.is-style-rog-zeiten td:first-child {
	text-transform: uppercase;
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--info);
	padding-right: 1rem;
}

.wp-block-table.is-style-rog-zeiten td:last-child {
	text-align: right;
	min-width: 10rem;
}

/* ================================================================
   Abschnitte
   ================================================================ */

.rog-abschnitt {
	padding-top: 64px;
	padding-bottom: 32px;
}

.rog-versatz-spalten {
	gap: 2rem;
}

@media (min-width: 64rem) {
	.rog-versatz {
		margin-left: 8.333%;
	}
}

/* ================================================================
   Untersuchungen (Reiter)
   ================================================================ */

.rog-untersuchungen {
	padding-block: 64px;
}

.rog-reiter-leiste {
	border-bottom: 2px dotted var(--wp--preset--color--orange);
	margin-bottom: 2rem;
	gap: 1rem;
}

.wp-block-button.is-style-rog-reiter .wp-block-button__link {
	border: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--weiss);
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 52px;
	color: var(--wp--preset--color--violett);
	font-family: var(--wp--preset--font-family--swift);
	font-size: 17px;
	text-transform: none;
	text-align: center;
	padding: 64px 1rem .75rem;
}

.wp-block-button.is-style-rog-reiter .wp-block-button__link:hover,
.wp-block-button.is-style-rog-reiter .wp-block-button__link:focus,
.wp-block-button.is-style-rog-reiter .wp-block-button__link[aria-selected="true"] {
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--orange);
}

.rog-reiter--roentgen .wp-block-button__link { background-image: url("assets/img/roentgen-violett.svg"); }
.rog-reiter--mammografie .wp-block-button__link { background-image: url("assets/img/mammografie-violett.svg"); }
.rog-reiter--ultraschall .wp-block-button__link { background-image: url("assets/img/ultraschall-violett.svg"); }
.rog-reiter--knochendichte .wp-block-button__link { background-image: url("assets/img/knochendichte-violett.svg"); }

.rog-reiter--roentgen .wp-block-button__link:is(:hover, :focus, [aria-selected="true"]) { background-image: url("assets/img/roentgen-orange.svg"); }
.rog-reiter--mammografie .wp-block-button__link:is(:hover, :focus, [aria-selected="true"]) { background-image: url("assets/img/mammografie-orange.svg"); }
.rog-reiter--ultraschall .wp-block-button__link:is(:hover, :focus, [aria-selected="true"]) { background-image: url("assets/img/ultraschall-orange.svg"); }
.rog-reiter--knochendichte .wp-block-button__link:is(:hover, :focus, [aria-selected="true"]) { background-image: url("assets/img/knochendichte-orange.svg"); }

@media (max-width: 48rem) {
	.rog-reiter-leiste {
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: .25rem;
	}
	.wp-block-button.is-style-rog-reiter .wp-block-button__link {
		background-size: 40px;
		padding: 48px 4px 8px;
		font-size: 14px;
		word-break: break-word;
	}
}

.rog-reiter-inhalt {
	min-height: 500px;
}

.rog-reiter-feld[hidden] {
	display: none;
}

.rog-reiter-feld__rechts {
	font-size: 90%;
}

.rog-reiter-feld h5 {
	margin-top: 1rem;
	margin-bottom: .25rem;
}

/* ================================================================
   Team
   ================================================================ */

.rog-team {
	gap: 0 !important;
}

.rog-team .wp-block-image {
	margin: 0;
}

.rog-team__text {
	background: var(--wp--preset--color--orange);
	padding: 32px 1rem;
	color: var(--wp--preset--color--weiss);
}

@media (min-width: 782px) {
	.rog-team__text {
		padding: 32px 2rem;
	}
}

/* ================================================================
   Ordination: Slideshow (Galerie-Blockstil)
   ================================================================ */

.rog-galerie-band {
	padding-block: 0;
}

.wp-block-gallery.has-nested-images.is-style-rog-slideshow {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin: 0;
}

.wp-block-gallery.has-nested-images.is-style-rog-slideshow::-webkit-scrollbar {
	display: none;
}

.wp-block-gallery.has-nested-images.is-style-rog-slideshow > figure.wp-block-image {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
	scroll-snap-align: start;
}

.wp-block-gallery.has-nested-images.is-style-rog-slideshow > figure.wp-block-image img {
	width: 100%;
	aspect-ratio: 800 / 533;
	object-fit: cover;
}

.rog-slideshow {
	position: relative;
}

.rog-slideshow__pfeil {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 50px;
	height: 50px;
	transform: translateY(-50%);
	border: 0;
	background: center / contain no-repeat;
	opacity: .9;
	cursor: pointer;
}

.rog-slideshow__pfeil:hover,
.rog-slideshow__pfeil:focus-visible {
	opacity: 1;
}

.rog-slideshow__pfeil--zurueck {
	left: 16px;
	background-image: url("assets/img/pfeil-links.svg");
}

.rog-slideshow__pfeil--weiter {
	right: 16px;
	background-image: url("assets/img/pfeil-rechts.svg");
}

@media (min-width: 64rem) {
	.rog-slideshow__pfeil {
		width: 180px;
		height: 180px;
	}
	.rog-slideshow__pfeil--zurueck { left: 32px; }
	.rog-slideshow__pfeil--weiter { right: 32px; }
}

/* ================================================================
   Anfahrt
   ================================================================ */

.rog-anfahrt {
	max-width: 90rem;
	margin-inline: auto;
	gap: 0 !important;
	margin-bottom: 0;
}

.rog-anfahrt__karte iframe {
	display: block;
	width: 100%;
	height: 300px;
	border: 0;
}

.rog-anfahrt__bild {
	margin: 0;
}

/* Mobil: erst Überschrift und Wegbeschreibung, dann die Karte */
@media (max-width: 781px) {
	.rog-anfahrt__karte {
		order: 2;
	}
}

.rog-anfahrt__bild a {
	display: block;
}

.rog-anfahrt__bild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 840 / 620;
	transition: filter .2s ease;
}

.rog-anfahrt__bild a:hover img {
	filter: saturate(1.15) brightness(1.02);
}

.rog-anfahrt__text {
	padding: 48px 1rem 2rem;
}

@media (min-width: 64rem) {
	.rog-anfahrt__karte iframe {
		height: 620px;
	}
	.rog-anfahrt__text {
		padding: 48px 32px 0;
	}
}

/* ================================================================
   Jobs (optional)
   ================================================================ */

.rog-jobs img {
	max-width: 200px;
}

@media (min-width: 64rem) {
	.rog-jobs img {
		max-width: none;
	}
}

/* ================================================================
   Impressum & Datenschutz
   ================================================================ */

.rog-rechtstext {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--weiss);
	padding-block: 64px;
}

.rog-rechtstext h3 {
	color: var(--wp--preset--color--weiss);
	margin-top: 2rem;
}

.rog-rechtstext a {
	color: var(--wp--preset--color--weiss);
	text-decoration: underline;
}

.rog-rechtstext a:hover {
	color: var(--wp--preset--color--violett);
}

@media (min-width: 64rem) {
	.rog-rechtstext__inhalt {
		padding-left: 8.333%;
		max-width: 83.333%;
	}
}

/* ================================================================
   Fußzeile
   ================================================================ */

.rog-footer {
	background: var(--wp--preset--color--violett);
	color: var(--wp--preset--color--weiss);
	padding: 48px var(--wp--style--root--padding-right, 1rem) 64px var(--wp--style--root--padding-left, 1rem);
}

.rog-footer__inhalt {
	color: var(--wp--preset--color--weiss);
}

@media (min-width: 64rem) {
	.rog-footer__inhalt {
		padding-left: 8.333%;
	}
}

.rog-footer h4 {
	font-size: 28px;
	margin-bottom: 21px;
}

.rog-footer a:is([href^="tel:"], [href^="mailto:"]) {
	text-decoration: none;
}

/* Fußzeile direkt an den Inhalt anschließen (wie bisher) */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

.rog-footer a {
	color: var(--wp--preset--color--weiss);
	text-decoration: underline;
}

.rog-footer a:hover {
	color: var(--wp--preset--color--orange);
}

/* ================================================================
   Contact Form 7 (optional)
   ================================================================ */

.wpcf7 label {
	display: block;
	margin-top: 6px;
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--info);
	text-transform: uppercase;
}

.wpcf7 :is([type="text"], [type="number"], [type="date"], [type="tel"], [type="email"], textarea) {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: .5rem;
	margin: 0 0 8px;
	border: 1px solid var(--wp--preset--color--violett);
	border-radius: 2px;
	background: var(--wp--preset--color--feld);
	color: var(--wp--preset--color--violett);
	font-family: var(--wp--preset--font-family--info);
	font-size: 16px;
}

.wpcf7 textarea {
	height: 200px;
}

.wpcf7 .wpcf7-submit {
	padding: 4px 8px;
	border: 2px solid var(--wp--preset--color--orange);
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--info);
	text-transform: uppercase;
	cursor: pointer;
}

.wpcf7 .wpcf7-submit:hover {
	border-color: var(--wp--preset--color--violett);
	background: var(--wp--preset--color--violett);
	color: var(--wp--preset--color--weiss);
}

/* ================================================================
   Bewegung reduzieren
   ================================================================ */

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

html {
	scroll-behavior: smooth;
}
