/*
 Theme Name:   Ostsee-Feeling Modern
 Theme URI:    https://www.ostsee-feeling.com/
 Description:  Moderne Variante des Ostsee-Feeling-Designs (Child-Theme von Twenty Seventeen): helle Sand- und Meeresfarben, runde Karten, Wellenkante unter dem Header. Das klassische Theme „Ostsee-Feeling“ bleibt unverändert daneben bestehen.
 Author:       Tobias Friede
 Author URI:   https://www.ostsee-feeling.com/
 Template:     twentyseventeen
 Version:      1.0
 Text Domain:  ostseefeeling-modern
*/

/* ==========================================================================
   Farben & Maße
   ========================================================================== */

:root {
	--of-deep: #0b3c5d;       /* tiefes Ostseeblau */
	--of-sea: #1d7a8c;        /* Wasser */
	--of-sea-dark: #155e6d;
	--of-foam: #eaf5f7;       /* Gischt */
	--of-sand: #f6efe2;       /* Strand */
	--of-sand-dark: #e8dcc2;
	--of-coral: #e8836b;      /* Abendrot / Akzent */
	--of-coral-dark: #c9644c;
	--of-text: #25363f;
	--of-muted: #5d727c;
	--of-radius: 14px;
	--of-shadow: 0 10px 30px -12px rgba(11, 60, 93, .28);
	--of-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--of-font-head: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
	font-family: var(--of-font);
	color: var(--of-text);
}

body {
	background: var(--of-sand);
	font-size: 17px;
	line-height: 1.7;
}

body.colors-custom,
body.colors-light,
.site-content-contain,
.site-content {
	background: var(--of-sand);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.widget-title {
	font-family: var(--of-font-head);
	color: var(--of-deep);
	letter-spacing: -.01em;
}

h1, h2, h3, h4, h5, h6,
.entry-title {
	text-transform: none;
	font-weight: 700;
}

.entry-title {
	font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
	letter-spacing: -.02em;
}

.entry-header .entry-title a,
.entry-title a {
	color: var(--of-deep);
}

a,
.colors-custom a {
	color: var(--of-sea);
	text-decoration-color: rgba(29, 122, 140, .35);
	text-underline-offset: 3px;
	box-shadow: none;
	transition: color .15s, text-decoration-color .15s;
}

a:hover,
a:focus,
.colors-custom a:hover,
.colors-custom a:focus,
.colors-custom .entry-content a:hover,
.colors-custom .entry-content a:focus {
	color: var(--of-coral-dark);
	box-shadow: none;
}

.entry-content a,
.entry-summary a,
.comment-content a,
.widget a {
	box-shadow: none;
}

img {
	border-radius: 10px;
}

.custom-logo-link img,
.site-footer img {
	border-radius: 0;
}

::selection {
	background: var(--of-coral);
	color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
	background: var(--of-deep);
}

.custom-header {
	position: relative;
}

.has-header-image .custom-header-media:before,
.has-header-video .custom-header-media:before {
	background: linear-gradient(to bottom, rgba(11, 60, 93, .05) 0%, rgba(11, 60, 93, .55) 100%);
	background-image: linear-gradient(to bottom, rgba(11, 60, 93, .05) 0%, rgba(11, 60, 93, .55) 100%);
}

.site-title,
.site-title a,
.colors-custom .site-title a {
	color: #fff;
	font-weight: 800;
	letter-spacing: -.02em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.site-description,
.colors-custom .site-description {
	color: rgba(255, 255, 255, .9);
	font-weight: 500;
}

/*
 * Header-Höhe auf allen Unterseiten gleich.
 * Twenty Seventeen misst die Menühöhe per JavaScript (global.js) und schreibt sie
 * als Inline-Style in den unteren Abstand des Headers. Das Menü liegt ab 48em
 * absolut in diesem Abstand. Weicht der Messwert ab (Zeitpunkt der Messung,
 * Umbruch im Menü, andere Fensterbreite), ist der Header mal höher, mal niedriger
 * und das Logo stößt ans Menü. Deshalb hier feste Werte: Menü genau 64px hoch,
 * Header-Abstand ebenso (!important schlägt den Inline-Style).
 * Die Startseite regelt das Eltern-Theme selbst.
 */
@media (min-width: 48em) {
	body:not(.twentyseventeen-front-page):not(.home) .custom-header {
		margin-bottom: 64px !important;
	}

	.navigation-top {
		height: 64px;
	}

	.navigation-top .wrap {
		display: flex;
		align-items: center;
		height: 100%;
		padding-top: 0;
		padding-bottom: 0;
	}

	.navigation-top nav {
		width: 100%;
	}
}

/*
 * Menü und Wellenkante sind ein Stück: gleiche, deckende Farbe, der Schatten
 * kommt per drop-shadow über beide. Die Welle hängt am Menü und wandert mit,
 * wenn es beim Scrollen fixiert wird. (Inline-SVG, kein externer Request)
 */
.navigation-top,
.colors-custom .navigation-top {
	background: #fff;
	border: 0;
	filter: drop-shadow(0 6px 8px rgba(11, 60, 93, .16));
}

.navigation-top:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 36px;
	margin-top: -1px;
	pointer-events: none;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path fill='%23ffffff' d='M0 0h1440v26c-120 24-240 30-360 16S840 6 720 12 480 46 360 44 120 18 0 30z'/></svg>") center top / 100% 100% no-repeat;
}

.navigation-top a,
.colors-custom .navigation-top a {
	color: var(--of-deep);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.navigation-top a:hover,
.navigation-top a:focus,
.colors-custom .navigation-top a:hover,
.colors-custom .navigation-top a:focus {
	color: var(--of-coral-dark);
}

.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a,
.colors-custom .navigation-top .current-menu-item > a,
.colors-custom .navigation-top .current_page_item > a {
	color: var(--of-sea);
	box-shadow: inset 0 -3px 0 var(--of-coral);
}

.main-navigation ul ul {
	border-radius: 0 0 var(--of-radius) var(--of-radius);
	box-shadow: var(--of-shadow);
	overflow: hidden;
}

.menu-toggle,
.colors-custom .menu-toggle {
	color: var(--of-deep);
	border-radius: 999px;
}

.site-header .menu-scroll-down {
	color: #fff;
}

/* ==========================================================================
   Inhalt: Karten
   ========================================================================== */

.site-content {
	padding-top: 1.5em;
}

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article,
.single .site-main > article,
.page:not(.twentyseventeen-front-page) .site-main > article {
	background: #fff;
	border-radius: var(--of-radius);
	box-shadow: var(--of-shadow);
	padding: 1.75em 1.5em;
}

@media (min-width: 48em) {
	.blog .site-main > article,
	.archive .site-main > article,
	.search .site-main > article,
	.single .site-main > article,
	.page:not(.twentyseventeen-front-page) .site-main > article {
		padding: 2.5em 3em;
	}
}

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article {
	margin-bottom: 2.5em;
	padding-bottom: 2em;
}

.blog .entry-header,
.archive .entry-header,
.single .entry-header,
.page .entry-header {
	border: 0;
}

.entry-meta,
.entry-meta a,
.colors-custom .entry-meta a,
.posted-on a,
.byline,
.cat-links,
.tags-links {
	color: var(--of-muted);
	font-size: 13px;
	letter-spacing: .06em;
}

.post-thumbnail img,
.single-featured-image-header img,
.wp-block-image img {
	border-radius: var(--of-radius);
}

.single-featured-image-header {
	border: 0;
}

blockquote {
	border-left: 4px solid var(--of-coral);
	background: var(--of-foam);
	border-radius: 0 var(--of-radius) var(--of-radius) 0;
	padding: 1em 1.5em;
	color: var(--of-deep);
	font-style: italic;
}

hr {
	background: var(--of-sand-dark);
	height: 2px;
	border-radius: 2px;
}

table,
th,
td {
	border-color: var(--of-sand-dark);
}

th {
	background: var(--of-foam);
	color: var(--of-deep);
}

/* Startseite: Bereiche (Panels) abwechselnd Sand / Gischt */
.twentyseventeen-front-page .panel {
	border: 0;
}

.twentyseventeen-front-page article:not(.has-post-thumbnail):not(:first-child) {
	border: 0;
}

.twentyseventeen-front-page .panel-content .entry-title,
.twentyseventeen-front-page .panel-content .entry-header .entry-title {
	text-align: center;
}

.twentyseventeen-front-page .panel-content .entry-title:after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: .5em auto 0;
	border-radius: 4px;
	background: var(--of-coral);
}

.twentyseventeen-front-page article:nth-of-type(even) {
	background: var(--of-foam);
}

.twentyseventeen-front-page article:nth-of-type(odd) {
	background: var(--of-sand);
}

/* ==========================================================================
   Buttons & Formulare
   ========================================================================== */

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link,
.colors-custom button,
.colors-custom input[type="button"],
.colors-custom input[type="submit"] {
	background: var(--of-coral);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: .8em 1.8em;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	box-shadow: 0 8px 18px -8px rgba(201, 100, 76, .7);
	transition: transform .15s, background .15s, box-shadow .15s;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.button:hover,
.wp-block-button__link:hover,
.colors-custom button:hover,
.colors-custom input[type="submit"]:hover,
.colors-custom input[type="submit"]:focus {
	background: var(--of-coral-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 22px -10px rgba(201, 100, 76, .8);
}

/* Menü-Schalter soll kein Coral-Button sein */
.menu-toggle,
.colors-custom .menu-toggle {
	background: transparent;
	box-shadow: none;
	text-transform: uppercase;
}

.menu-toggle:hover,
.menu-toggle:focus,
.colors-custom .menu-toggle:hover {
	background: var(--of-foam);
	color: var(--of-deep);
	transform: none;
	box-shadow: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	background: #fff;
	border: 2px solid var(--of-sand-dark);
	border-radius: 10px;
	padding: .7em 1em;
	color: var(--of-text);
	transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	border-color: var(--of-sea);
	box-shadow: 0 0 0 4px rgba(29, 122, 140, .18);
	outline: 0;
}

/* ==========================================================================
   Sidebar, Footer, Navigation zwischen Beiträgen
   ========================================================================== */

.widget {
	background: #fff;
	border-radius: var(--of-radius);
	box-shadow: var(--of-shadow);
	padding: 1.5em;
}

.widget-title,
.colors-custom .widget-title {
	color: var(--of-sea);
	font-size: 13px;
	letter-spacing: .12em;
}

.widget ul li {
	border-color: var(--of-sand-dark);
}

.pagination .nav-links > *,
.posts-navigation a,
.post-navigation a {
	border-radius: 999px;
}

.site-footer,
.colors-custom .site-footer {
	background: var(--of-deep);
	border: 0;
	color: rgba(255, 255, 255, .85);
	margin-top: 3em;
	position: relative;
}

.site-footer:before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -39px;
	height: 40px;
	pointer-events: none;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path fill='%230b3c5d' d='M0 48c120-32 240-44 360-28s240 56 360 56 240-48 360-56 240 8 360 28v32H0z'/></svg>") center bottom / 100% 100% no-repeat;
}

.site-footer a,
.site-footer .widget-area a,
.colors-custom .site-footer a,
.site-info a,
.colors-custom .site-info a {
	color: #fff;
	box-shadow: none;
}

.site-footer a:hover,
.site-footer .widget-area a:hover,
.colors-custom .site-footer a:hover,
.site-info a:hover,
.colors-custom .site-info a:hover {
	color: var(--of-coral);
}

.site-footer .widget {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.site-footer .widget-title,
.colors-custom .site-footer .widget-title {
	color: var(--of-sand-dark);
}

.site-footer .widget-area,
.site-footer .widget,
.site-footer .widget p {
	color: rgba(255, 255, 255, .85);
}

.site-footer .site-info,
.site-footer .widget-area {
	border-color: rgba(255, 255, 255, .15);
}

.social-navigation a,
.colors-custom .social-navigation a {
	background: var(--of-sea);
	color: #fff;
	border-radius: 50%;
}

.social-navigation a:hover,
.colors-custom .social-navigation a:hover {
	background: var(--of-coral);
}

/* Zurück-nach-oben / Scrolldown-Pfeil */
.back-to-top,
.menu-scroll-down {
	border-radius: 50%;
}

/* ==========================================================================
   Plugins (FooGallery, Ninja Forms, Buchungskalender)
   ========================================================================== */

/*
 * FooGallery (Layout „Justified“): Reihen mit unterschiedlich breiten Bildern wirken bei
 * gemischten Formaten unruhig. Hier ein gleichmäßiges Raster, alle Bilder im selben
 * Seitenverhältnis zugeschnitten. Die Werte setzen die Inline-Größen des Plugins
 * (per JavaScript berechnet) mit !important außer Kraft.
 * Bildunterschriften erscheinen nur beim Darüberfahren (auf Touch-Geräten gar nicht,
 * der Text steht im Alt-Text und im Lightbox-Info-Feld).
 */
body .foogallery.fg-justified {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	height: auto !important;
	margin-bottom: 1.5em;
}

body .foogallery.fg-justified .fg-item {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
}

body .foogallery.fg-justified .fg-item-inner {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--of-foam);
	box-shadow: 0 6px 16px -10px rgba(11, 60, 93, .45);
}

body .foogallery.fg-justified .fg-item .fg-thumb,
body .foogallery.fg-justified .fg-item .fg-image-wrap {
	width: 100% !important;
	height: 100% !important;
	border-radius: 0;
}

body .foogallery.fg-justified .fg-item .fg-image,
body .foogallery.fg-justified .fg-item.fg-positioned .fg-image {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	object-fit: cover;
	border-radius: 0;
}

body .foogallery.fg-justified .fg-item .fg-caption {
	opacity: 0;
	visibility: hidden;
}

@media (hover: hover) {
	body .foogallery.fg-justified .fg-item-inner:hover .fg-caption {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 600px) {
	body .foogallery.fg-justified {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

.nf-form-cont .nf-field-container {
	margin-bottom: 1.2em;
}

.nf-form-cont input[type="button"],
.nf-form-cont input[type="submit"] {
	height: auto;
}

/* ==========================================================================
   Aus dem klassischen Ostsee-Feeling-Theme übernommen
   ========================================================================== */

/* Elemente mit der Klasse .hide-mobile auf dem Handy ausblenden */
@media (max-width: 600px) {
	.hide-mobile {
		display: none;
	}
}

/* Umflossene Bilder auf dem Handy zentriert untereinander statt daneben */
@media (max-width: 600px) {
	.wp-block-image {
		float: none;
	}

	.alignleft,
	.alignright {
		float: none !important;
		margin-left: auto !important;
		margin-right: auto !important;
		width: 50%;
	}
}

/* Größeres Logo auf der Startseite mit Header-Bild */
@media screen and (min-width: 48em) {
	.custom-logo-link img,
	body.home.title-tagline-hidden.has-header-image .custom-logo-link img,
	body.home.title-tagline-hidden.has-header-video .custom-logo-link img {
		max-width: 550px !important;
	}
}

/*
 * Belegungsplan: externer Kalender (Travanto) wird als Iframe mit fester Breite von
 * 800px eingefügt und sprengt auf dem Handy die Seite (waagerechter Scrollbalken).
 * Der Kalender ist „responsive“ und passt sich der Iframe-Breite an.
 */
.entry-content iframe[src*="travanto.de"] {
	display: block;
	width: 100% !important;
	max-width: 100%;
}

/*
 * Tabellen (z. B. Preise auf den Belegungsplan-Seiten) passen sich auf dem Handy
 * der Bildschirmbreite an, statt seitlich zu scrollen: feste Breiten aus dem
 * Editor werden ignoriert, lange Wörter umbrechen, Zellen werden enger.
 */
@media (max-width: 600px) {
	.entry-content table,
	.entry-content .wp-block-table table {
		width: 100% !important;
		max-width: 100%;
		table-layout: auto;
	}

	.entry-content .wp-block-table,
	.entry-content figure.wp-block-table {
		overflow-x: visible;
	}

	.entry-content table th,
	.entry-content table td {
		width: auto !important;
		padding: .5em .4em;
		font-size: 14px;
		line-height: 1.4;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	/* Buchungskalender nie breiter als der Bildschirm */
	.wpbs-container,
	.wpbs-main-wrapper {
		max-width: 100%;
	}
}

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

	* {
		transition: none !important;
	}
}
