/*
Theme Name: Traunsee Kälte
Theme URI: https://www.traunsee-kaelte.at/
Description: Block-Theme für die Traunsee Kälte - Klima GmbH. Farben, Schrift (Poppins, lokal eingebunden) und Abstände sind im Website-Editor anpassbar.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traunsee-kaelte
*/

/* ---------- Grundlegendes ---------- */
html { scroll-behavior: smooth; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
#anfrage { scroll-margin-top: 110px; }

.tk-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blau);
	margin-bottom: 0.25rem !important;
}
.has-blau-dunkel-background-color .tk-eyebrow,
.wp-block-cover .tk-eyebrow { color: var(--wp--preset--color--gelb); }

/* ---------- Kopfbereich ---------- */
.tk-site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(22, 52, 77, 0.08); }
.admin-bar .tk-site-header { top: 32px; }
.tk-topbar p { margin: 0; }
.tk-topbar a { color: inherit; text-decoration: none; }
.tk-topbar a:hover { color: var(--wp--preset--color--gelb); }
.tk-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--wp--preset--color--gelb); margin-right: 0.5rem; vertical-align: middle;
	box-shadow: 0 0 0 0 rgba(254, 198, 0, 0.7); animation: tk-puls 2s infinite;
}
@keyframes tk-puls { 70% { box-shadow: 0 0 0 7px rgba(254, 198, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 198, 0, 0); } }
.tk-header .wp-block-navigation a { text-decoration: none; }
.tk-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--blau); }
.tk-header .wp-block-navigation__submenu-container {
	border: 0 !important; border-radius: 12px; padding: 0.5rem 0;
	box-shadow: 0 12px 32px rgba(22, 52, 77, 0.16); min-width: 260px !important;
}
.tk-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.5rem 1.1rem !important; }
.wp-block-site-logo + .tk-site-title { display: none; }
.tk-site-title { font-weight: 700; font-size: 1.15rem; }
.tk-site-title a { text-decoration: none; color: var(--wp--preset--color--blau-dunkel); }
.tk-header .wp-block-site-logo img { max-height: 56px; width: auto; }
@media (max-width: 781px) {
	.tk-topbar-rechts, .tk-header-cta { display: none !important; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.tk-pagehead {
	background-image: radial-gradient(circle at 85% 20%, rgba(63, 128, 176, 0.55), transparent 55%),
		linear-gradient(135deg, #16344d 0%, #1f4a6b 100%);
}
.tk-pagehead .wp-block-post-title { text-wrap: balance; font-size: clamp(1.75rem, 4vw, 2.75rem); color: #fff; }

/* ---------- Startseite ---------- */
.tk-hero .wp-block-cover__inner-container { max-width: 1200px; margin-inline: auto; }
.tk-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.tk-hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); max-width: 760px; }
.tk-hero p { max-width: 620px; }
.tk-fakten { margin-top: 0 !important; }
.tk-fakt { text-align: left; }
@media (max-width: 781px) { .tk-fakten { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.25rem !important; } }
.tk-fakt strong { display: block; font-size: 1.35rem; color: var(--wp--preset--color--blau-dunkel); line-height: 1.2; }
.tk-fakt p { margin: 0; color: var(--wp--preset--color--grau); font-size: 0.95rem; }

.tk-karte {
	background: #fff; border-radius: 18px; overflow: hidden; height: 100%;
	box-shadow: 0 10px 30px rgba(22, 52, 77, 0.08); transition: transform .2s ease, box-shadow .2s ease;
}
.tk-karte:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(22, 52, 77, 0.14); }
.tk-karte .wp-block-image { margin: 0; }
.tk-karte .wp-block-image img { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tk-karte__text { padding: 1.4rem 1.5rem 1.6rem; }
.tk-karte__text h3 a { text-decoration: none; color: inherit; }
.tk-karte__text h3 a::after { content: " →"; color: var(--wp--preset--color--blau); }
.wp-block-columns .wp-block-column:has(> .tk-karte) { display: flex; }

.tk-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tk-chips li {
	background: #fff; border: 1px solid rgba(63, 128, 176, 0.25); border-radius: 999px;
	padding: 0.45rem 1rem; font-size: 0.95rem; font-weight: 500; color: var(--wp--preset--color--blau-dunkel);
}
.has-blau-hell-background-color .tk-chips li { border-color: transparent; }

.tk-notdienst { border-radius: 22px; }
.tk-notdienst h2 { margin: 0; }
.tk-notdienst .wp-block-button__link { background: var(--wp--preset--color--blau-dunkel); color: #fff; }
.tk-notdienst .wp-block-button__link:hover { background: #0e2537; color: #fff; }

.tk-kunden li { font-weight: 600; }

/* ---------- Inhalte ---------- */
.tk-bild-quer img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tk-produkt h3 a { color: inherit; text-decoration: none; }
.tk-produkt h3 a::after { content: " →"; color: var(--wp--preset--color--blau); }
.tk-produkt h3 a:hover { color: var(--wp--preset--color--blau); }
.entry-content > .wp-block-group.alignfull:first-child { margin-top: 0; }
.wp-block-image img { box-shadow: 0 10px 30px rgba(22, 52, 77, 0.10); }
.tk-liste { padding-left: 0; list-style: none; }
.tk-liste li { position: relative; padding-left: 1.6rem; margin-bottom: 0.4rem; }
.tk-liste li::before {
	content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem;
	border-radius: 50%; background: var(--wp--preset--color--gelb); box-shadow: 0 0 0 3px rgba(254, 198, 0, 0.25);
}
.tk-box { background: var(--wp--preset--color--hell); border-radius: 18px; }

.wp-block-table.tk-tabelle table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.wp-block-table.tk-tabelle th, .wp-block-table.tk-tabelle td { border: 0; border-bottom: 1px solid #dde5ec; padding: 0.6rem 0.75rem; text-align: left; }
.wp-block-table.tk-tabelle thead th { background: var(--wp--preset--color--blau-dunkel); color: #fff; }
.wp-block-table.tk-tabelle thead th:first-child { border-top-left-radius: 10px; }
.wp-block-table.tk-tabelle thead th:last-child { border-top-right-radius: 10px; }
.wp-block-table.tk-tabelle tbody tr:nth-child(even) { background: var(--wp--preset--color--hell); }

/* ---------- Formular ---------- */
.tk-form { background: #fff; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 30px rgba(22, 52, 77, 0.08); }
.tk-form p { margin: 0 0 1rem; }
.tk-form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
.tk-form input[type="text"], .tk-form input[type="email"], .tk-form input[type="tel"], .tk-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; padding: 0.7rem 0.9rem;
	border: 1px solid #cfd9e2; border-radius: 10px; background: #fbfcfd;
}
.tk-form input:focus, .tk-form textarea:focus { outline: 2px solid var(--wp--preset--color--blau); outline-offset: 1px; border-color: transparent; }
.tk-form__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .tk-form__reihe { grid-template-columns: 1fr; } }
.tk-form__check label { font-weight: 400; font-size: 0.85rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.tk-form__check input { margin-top: 0.3rem; flex: none; }
.tk-form__hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.tk-form button { cursor: pointer; border: 0; }
.tk-meldung { padding: 0.9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500; }
.tk-meldung--ok { background: #e3f4e8; color: #17502a; }
.tk-meldung--fehler { background: #fdecea; color: #7a1d14; }
.tk-kontaktblock { background: #fff; border-radius: 14px; padding: 1.1rem 1.3rem; }

/* ---------- Fußbereich ---------- */
.tk-footer a { color: #fff; }
.tk-footer a:hover { color: var(--wp--preset--color--gelb); }
.tk-footer .wp-block-separator { border-color: rgba(255, 255, 255, 0.18); opacity: 1; }
.tk-footer p { color: rgba(255, 255, 255, 0.85); }
.tk-notdienst { padding-left: clamp(1.5rem, 4vw, 3rem) !important; padding-right: clamp(1.5rem, 4vw, 3rem) !important; }
