/*
Theme Name: RigaDone
Theme URI: https://rigadone.com
Author: Robin Pflügl
Author URI: https://rigadone.com
Description: Child-Theme von Twenty Twenty-Five für RigaDone — Gravur & Design.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rigadone
*/

/* Feinheiten, die theme.json nicht abdeckt. */

/* Weiches Scrollen bei Sprungmarken im Menue. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Bilder in Beitragsrastern immer gleich hoch. */
.wp-block-post-featured-image img { display: block; width: 100%; }

/* Karten: Rahmen soll das Bild oben mit abrunden. */
.rd-karte { overflow: hidden; }
.rd-karte:hover { border-color: var(--wp--preset--color--line-2); }

/* Leistungsliste: ganze Zeile anklickbar, Pfeil ruecken bei Hover. */
.rd-zeile { text-decoration: none; }
.rd-zeile:hover .rd-pfeil { transform: translateX(4px); }
.rd-pfeil { display: inline-block; transition: transform 0.15s ease; }

/* Tastaturbedienung sichtbar halten. */
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
/* WordPress setzt bei einseitigen Rahmen border-style auf allen vier Seiten.
   Diese Regeln halten das in Grenzen, falls der Editor die Klasse neu setzt. */
.wp-block-group.has-border-color { border-style: none; }
.wp-block-group.has-border-color[style*="border-width"] { border-style: solid; }
.wp-block-group[style*="border-top-width"] { border-top-style: solid; }
.wp-block-group[style*="border-right-width"] { border-right-style: solid; }
.wp-block-group[style*="border-bottom-width"] { border-bottom-style: solid; }
.wp-block-group[style*="border-left-width"] { border-left-style: solid; }

/* Beitragsbilder in Karten sauber beschneiden. */
.rd-karte .wp-block-post-featured-image img { object-fit: cover; width: 100%; height: 100%; }
/* Logo im Seitenkopf. */
.rd-logo { display: inline-block; line-height: 0; }
.rd-logo img { display: block; width: 160px; height: auto; }
@media (max-width: 782px) { .rd-logo img { width: 132px; } }

/* Logo auf der Baustellenseite. */
.rd-logo-gross { text-align: center; margin: 0; }
.rd-logo-gross img { display: inline-block; width: 340px; max-width: 86%; height: auto; }

/* Logo auf der Baustellenseite: groesser und mittig. */
.rd-logo-gross { text-align: center; margin: 0; }
.rd-logo-gross img { display: block; width: 640px; max-width: 88%; height: auto; margin-left: auto; margin-right: auto; }

/* Bildmarke im Seitenkopf. */
.rd-logo { display: inline-flex; align-items: center; gap: 0.7rem; line-height: 0; text-decoration: none; } .rd-logo img { display: block; width: 46px; height: auto; } .rd-logo-mit-name span { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; line-height: 1; color: var(--wp--preset--color--contrast); }
