/*
Theme Name:        Katharina Wolf
Theme URI:         https://www.katharina-wolf.com/
Author:            Paku
Description:       Block-Theme für die Autorinnen-Website von Katharina Wolf. Warmes Papier, Nachtblau und Mauve; Schriften Bricolage Grotesque und Inter, lokal eingebunden (keine Verbindung zu Google). Am besten zusammen mit dem Plugin „KW Bücher“.
Requires at least: 6.6
Tested up to:      7.1
Requires PHP:      8.1
Version:           1.2.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       kw-autorin
Tags:              block-theme, full-site-editing, one-column, wide-blocks
*/

/* Ergänzungen, die theme.json nicht abdeckt. */

.wp-site-blocks { overflow-x: clip; }

.skip-link.screen-reader-text:focus { background: #fff; color: #1B1A2E; padding: 12px 16px; z-index: 100000; }

:where(.wp-site-blocks) *:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* Lange deutsche Wörter in Überschriften sauber trennen statt mitten im Wort umzubrechen */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }

/* Kopfbereich */
.kw-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.kw-header .wp-block-navigation a:hover,
.kw-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--accent); }

/* Kleine Überzeile */
.is-style-eyebrow { font-size: 0.875rem !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Buttons: Varianten */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-button.is-style-hell > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-button.is-style-hell > .wp-block-button__link:hover { background: var(--wp--preset--color--paper); border-color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-hell-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.wp-block-button.is-style-hell-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* Gruppen: weiße Karte */
.wp-block-group.is-style-karte { background: #fff; border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); }

/* Bilder: Bogenform fürs Porträt, abgerundete Ecken */
.wp-block-image.is-style-bogen img { border-radius: 999px 999px 28px 28px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.is-style-rund-eckig img { border-radius: 28px; }

/* Bild mit versetzter Mauve-Fläche dahinter – wie im Entwurf */
.wp-block-image.is-style-versetzt { padding: 0 var(--kw-versatz, 32px) var(--kw-versatz, 32px) 0; }
.wp-block-image.is-style-versetzt img { border-radius: 28px; box-shadow: var(--kw-versatz, 32px) var(--kw-versatz, 32px) 0 0 var(--wp--preset--color--mauve-strong); }
@media (max-width: 781px) { .wp-block-image.is-style-versetzt { --kw-versatz: 16px; } }

/* Galerie im Polaroid-Look – ersetzt das alte Plugin */
.wp-block-gallery.is-style-polaroid { gap: 28px !important; }
.wp-block-gallery.is-style-polaroid .wp-block-image { background: #fff; padding: 12px 12px 44px; box-shadow: 0 10px 24px rgba(27, 26, 46, 0.16); transition: transform 0.2s ease; }
.wp-block-gallery.is-style-polaroid .wp-block-image:nth-child(odd) { transform: rotate(-2deg); }
.wp-block-gallery.is-style-polaroid .wp-block-image:nth-child(even) { transform: rotate(2deg); }
.wp-block-gallery.is-style-polaroid .wp-block-image:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.wp-block-gallery.is-style-polaroid .wp-block-image figcaption { position: absolute; left: 0; right: 0; bottom: 10px; background: none; color: var(--wp--preset--color--ink-soft); font-size: 0.875rem; text-align: center; padding: 0; text-shadow: none; }
.wp-block-gallery.is-style-polaroid .wp-block-image img { border-radius: 0; }

/* Steckbrief-Liste */
.kw-steckbrief { margin-block: 0 0.9rem !important; line-height: 1.4; }
.kw-steckbrief span { color: var(--wp--preset--color--muted); font-size: 0.8125rem; }

/* Zeitleiste */
.kw-zeitleiste .wp-block-group.is-style-karte { height: 100%; }
.kw-jahr { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--wp--preset--color--accent); margin: 0; }

/* Download-Kacheln */
.kw-download a { text-decoration: none; }

/* Auf dunklen Flächen gedämpften Text aufhellen */
.has-ink-background-color .has-muted-color { color: #D6D3E3 !important; }
