/*
Theme Name: Stammanwalt
Theme URI: https://stammanwalt.de/
Author: Rechtsanwalt Martin Stammwitz
Description: Schlichtes Block-Theme für die Kanzlei Stammwitz – Verkehrsunfallregulierung. Schrift lokal eingebunden, keine externen Dienste.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: stammanwalt
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Hinweisbalken „Aktuell“ ---------- */
.sa-aktuell { background: var(--wp--preset--color--sand); border-bottom: 1px solid #E2D7C4; }
.sa-aktuell__inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sa-aktuell__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--wp--preset--color--akzent); color: #fff; padding: 2px 10px; border-radius: 4px; }
.sa-aktuell__text { margin: 0; font-weight: 500; }
.sa-aktuell__text p { margin: 0; display: inline; }

/* ---------- Kopfzeile ---------- */
.sa-header { border-bottom: 1px solid var(--wp--preset--color--linie); }
.sa-header .sa-brand a { text-decoration: none; color: inherit; }
.sa-header .sa-brand p { margin: 0; }
.sa-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 500; font-size: 16px; }
.sa-nav p { margin: 0; }
.sa-nav a { color: var(--wp--preset--color--tinte); text-decoration: none; display: inline-block; padding: 10px 0; }
.sa-nav a:hover { text-decoration: underline; }
.sa-nav .sa-mail a { background: var(--wp--preset--color--akzent); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.sa-nav .sa-mail a:hover { background: #183a2d; text-decoration: none; }

/* ---------- Knöpfe ---------- */
.wp-block-button__link { transition: background-color .15s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid var(--wp--preset--color--tinte); color: var(--wp--preset--color--tinte); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--sand); }

/* ---------- Abbildung mit Nummernmarken ---------- */
.sa-abb { margin: 0; }
.sa-abb__bild { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #E5E7EB; }
.sa-abb__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.sa-marke { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: var(--wp--preset--color--akzent); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.sa-abb-titel { margin: 16px 0 12px !important; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--grau); }
ol.sa-legende { counter-reset: legende; list-style: none; margin: 0 !important; padding: 0 0 20px !important; border-bottom: 1px solid var(--wp--preset--color--linie); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; font-size: 15px; }
ol.sa-legende li { counter-increment: legende; display: flex; gap: 10px; align-items: flex-start; }
ol.sa-legende li::before { content: counter(legende); flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--wp--preset--color--akzent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ---------- Ablauf ---------- */
.sa-schritt .sa-nr { font-weight: 700; color: var(--wp--preset--color--akzent); margin: 0; }

/* ---------- Kontakt ---------- */
.sa-kontakt-zeile { margin: 0 !important; }
.sa-kontakt-zeile .sa-lbl { display: inline-block; width: 64px; color: var(--wp--preset--color--grau); }

/* ---------- Gravity Forms angleichen ---------- */
.gform_wrapper { --gf-color-primary: #23503F; --gf-ctrl-border-color: #9CA3AF; --gf-ctrl-radius: 8px; --gf-ctrl-label-color-primary: #16191D; --gf-font-family-base: inherit; }
.gform_wrapper .gsection { border-bottom: 1px solid var(--wp--preset--color--linie) !important; padding-bottom: 12px !important; margin-top: 32px !important; }
.gform_wrapper .gsection_title { font-size: 22px !important; font-weight: 700 !important; }
.gform_wrapper input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=file]),
.gform_wrapper select, .gform_wrapper textarea { font: inherit; font-size: 17px; border: 1.5px solid #9CA3AF; border-radius: 8px; padding: 10px 12px; }
.gform_wrapper .gform_button, .gform_wrapper input[type=submit] { background: var(--wp--preset--color--akzent) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; padding: 14px 28px !important; font-weight: 600 !important; font-size: 17px !important; cursor: pointer; }
.gform_wrapper .gfield_description { color: var(--wp--preset--color--grau); }

/* ---------- Seitenleiste Unfallmeldung ---------- */
.sa-kasten { border-radius: 12px; padding: 24px !important; }

@media (max-width: 600px) {
  .sa-marke { width: 26px; height: 26px; font-size: 13px; }
}

/* Kopf, Hinweis und Fuß an der Inhaltsbreite ausrichten */
.sa-aktuell__inner, .sa-header > div, footer > div { box-sizing: border-box; }
