/*
Theme Name: UWR Graz
Theme URI: https://uwrgraz.at
Author: Union Unterwasserrugby Graz
Description: Block-Theme für die Union Unterwasserrugby Graz. Enthält nur Gestaltung (Farben, Schriften, Vorlagen, Blockstile). Alle Inhalte werden in WordPress gepflegt.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Version: 0.3.8
License: GNU General Public License v2 or later
Text Domain: uwr-graz
*/
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:where(section[id]) { scroll-margin-top: 5rem; }
/* Kopfbereich bleibt beim Scrollen sichtbar. Sticky muss auf dem äußeren <header> der Vorlage sitzen,
   weil der innere Block nur so hoch ist wie der Kopf selbst. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.uwr-header { box-shadow: 0 1px 0 var(--wp--preset--color--mist); }
/* Halbtransparenter, unscharfer Hintergrund des Kopfbereichs auf einem Pseudo-Element, nicht auf .uwr-header selbst:
   backdrop-filter (ebenso filter, transform) macht das Element zum Bezugsrahmen für position: fixed. Dann wäre das
   Handy-Menü (fixed, ganzer Bildschirm) nur so hoch wie der Kopfbereich. */
.wp-block-group.uwr-header { position: relative; background: transparent !important; }
.wp-block-group.uwr-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.uwr-header-cta .wp-block-button__link { font-size: .9375rem; padding: .55rem 1.15rem; white-space: nowrap; }
@media (max-width: 600px) {
	/* WordPress setzt Preset-Schriftgrößen mit !important, daher hier ebenfalls !important */
	.uwr-header .wp-block-site-title { font-size: .9rem !important; line-height: 1.15; min-width: 0; }
	.uwr-header-actions { flex-shrink: 0; }
	.uwr-header-actions { gap: .6rem !important; }
	.uwr-header-cta .wp-block-button__link { font-size: .85rem; padding: .45rem .85rem; }
}
.is-style-card { overflow: hidden; border-radius: var(--wp--custom--radius--md); box-shadow: var(--wp--custom--shadow--card); background: var(--wp--preset--color--white); }
.is-style-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8125rem; }
.is-style-eyebrow a { text-decoration: none; color: inherit; }
.wp-block-cover.is-style-gradient .wp-block-cover__background { background: linear-gradient(180deg, rgb(6 36 58 / .35), rgb(6 36 58 / .85)) !important; opacity: 1 !important; }
.is-style-big-number { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--wp--preset--color--ocean); margin: 0; }
.is-style-list table { border-collapse: collapse; width: 100%; }
.is-style-list td, .is-style-list th { border: 0; border-bottom: 1px solid var(--wp--preset--color--mist); padding: .75rem .5rem; text-align: left; }
.is-style-list td:last-child, .is-style-list th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--mist); padding: 1rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.wp-block-button__link { transition: background-color .15s ease, transform .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
@media (max-width: 600px) {
	.is-style-list td:last-child, .is-style-list th:last-child { white-space: normal; }
	.is-style-list td { padding: .6rem .25rem; }
}

/* Titelbild: Inhalt an der Inhaltsbreite ausrichten statt am Bildrand.
   WordPress setzt bei Inhaltsposition „unten links“ width:auto auf den Inhaltsbereich. */
.wp-block-cover.is-style-gradient.is-style-gradient.is-style-gradient.has-custom-content-position .wp-block-cover__inner-container { width: 100%; }

/* Berichte-Karten (Abfrage-Loop) */
.is-style-card .wp-block-post-featured-image { margin: 0; }
.is-style-card .wp-block-post-featured-image img { transition: transform .5s ease; }
.is-style-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.is-style-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.is-style-card .wp-block-post-title a:hover { color: var(--wp--preset--color--ocean); }

/* Sehr schmale Handys (z. B. iPhone SE, 320 px): Titel und Button weiter verkleinern */
@media (max-width: 380px) {
	.uwr-header .wp-block-site-title { font-size: .7rem !important; letter-spacing: 0 !important; }
	.uwr-header-actions { gap: .5rem !important; }
	.uwr-header-cta .wp-block-button__link { font-size: .8rem; padding: .4rem .7rem; }
}
