/* Boemke und Partner – schlanke statische Version
   Mobile-first. Breakpoints wie bisher (Elementor): Tablet ab 768px, Desktop ab 1025px. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-600.woff2) format("woff2"); }

:root {
  --blue: #025494;
  --blue-light: #0a74c9;
  --navy: #04243f;
  --text: #040406;
  --muted: #46464e;
  --soft: #f9f9fb;
  --line: #e4e4ea;
  --radius: 4px;
  --gap: clamp(16px, 3vw, 32px);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.75 var(--font); color: var(--muted); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.3; margin: 0 0 .6em; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.05rem; }
h1 strong, h2 strong, h3 strong { font-weight: inherit; }
p, ul, ol, blockquote, figure, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
td, th { border: 1px solid var(--line); padding: .5em .75em; text-align: left; vertical-align: top; }
blockquote { border-left: 3px solid var(--blue); padding-left: 1em; font-style: italic; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: 150px;
  padding: 12px 40px; font-size: .8125rem; font-weight: 600; letter-spacing: .05em; line-height: 1.4; text-align: center; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--blue); text-decoration: none; }
.btn-sm { padding: 8px 28px; font-size: .75rem; }
.actions { margin-top: 1.5em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { margin-right: auto; }
.logo img { width: clamp(200px, 40vw, 280px); }
.bar-contact { display: none; }
@media (min-width: 768px) { .bar { min-height: 80px; } .bar-contact { display: inline-block; } }

.nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; position: relative; z-index: 60; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary span, .nav summary span::before, .nav summary span::after { display: block; width: 24px; height: 2px; background: var(--blue); transition: transform .2s, opacity .2s; }
.nav summary span { position: relative; }
.nav summary span::before, .nav summary span::after { content: ""; position: absolute; left: 0; }
.nav summary span::before { top: -7px; }
.nav summary span::after { top: 7px; }
.nav[open] summary span { background: transparent; }
.nav[open] summary span::before { transform: translateY(7px) rotate(45deg); }
.nav[open] summary span::after { transform: translateY(-7px) rotate(-45deg); }
.nav nav { position: fixed; inset: 0 0 0 auto; width: min(100%, 380px); background: #fff; box-shadow: -10px 0 40px rgba(4,36,63,.15);
  padding: 88px 32px 32px; overflow-y: auto; z-index: 55; }
.nav nav .btn { margin-bottom: 24px; }
.nav-title { color: var(--text); font-weight: 600; margin: 1.2em 0 .3em; }
.nav nav ul { list-style: none; padding: 0; margin: 0; }
.nav nav li a { display: block; padding: 6px 0; color: var(--muted); }
.nav nav li a:hover { color: var(--blue); }

/* Hinweis-Banner (Startseite) */
.notice { background: transparent; border-bottom: 1px solid #f0d58a; color: #3d3300; font-size: .9375rem; line-height: 1.6; }
.notice p { margin: 0; padding: 14px 0 14px 32px; position: relative; }
.notice p::before { content: "!"; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: #c98a00; color: #fff; font-weight: 600; font-size: .8125rem; line-height: 20px; text-align: center; }
.notice strong { display: block; color: #2a2300; }
.notice a { color: #7a4f00; text-decoration: underline; font-weight: 600; }

/* Inhaltsblöcke */
main { padding-bottom: 48px; }
.block { padding: clamp(32px, 6vw, 72px) 0 0; }
.block .block { padding: 0; }
.meta { font-size: .875rem; color: var(--muted); }
.contact { margin: 0; }
.tags span, .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: #eaf2f9; padding: 2px 10px; border-radius: 150px; }
.filter a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 16px; border: 1px solid var(--blue); border-radius: 150px; font-size: .875rem; }
figure.img { margin: 0 0 1.1em; }
figure.img img { border-radius: var(--radius); }

.cols { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-bottom: var(--gap); }
@media (min-width: 768px) { .cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
@media (min-width: 1025px) { .cols { grid-template-columns: var(--cols); align-items: start; } }
.cols > div > :last-child { margin-bottom: 0; }

/* Startseite: erste Zeile als Hero */
.home main > .block:first-child { padding-top: clamp(40px, 8vw, 120px); }
.home main > .block:first-child h1 + h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 400; margin-top: -.4em; }
@media (min-width: 1025px) { .home main > .block:first-child .cols { align-items: center; } }

/* Rechtsgebiet-Kacheln */
.card { background: linear-gradient(140deg, var(--blue-light) 0%, var(--blue) 45%, var(--navy) 100%); color: rgba(255,255,255,.88);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); text-align: center; align-self: stretch; }
.card h1, .card h2, .card h3, .card h4, .card a { color: #fff; }
.card .btn { background: transparent; border-color: #fff; }
.card .btn:hover { background: #fff; color: var(--blue); }
.tile { display: block; color: inherit; }
.tile:hover { text-decoration: none; }
.cols > .card > .tile > :last-child { margin-bottom: 0; }

/* Kontakt- und Newsletter-Kasten */
.box-cta { background: var(--soft); text-align: center; padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 64px); border-radius: var(--radius); }
.box-cta p { max-width: 640px; margin-left: auto; margin-right: auto; }
.box-contact { position: relative; background: #fff; box-shadow: 0 10px 50px rgba(4,36,63,.10); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px); padding-left: clamp(24px, 30%, 360px); }
.box-contact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: clamp(0px, 26%, 320px);
  background: #e7ddd6 url(img/b-logo-contact.svg) center / 60% no-repeat; border-radius: var(--radius) 0 0 var(--radius); }
@media (max-width: 767px) { .box-contact { padding-left: 24px; } .box-contact::before { display: none; } }

/* Team */
.team { list-style: none; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) { .team { grid-template-columns: repeat(4, 1fr); } }
.person a { display: block; color: var(--muted); text-align: center; }
.person a:hover { text-decoration: none; }
.person a:hover strong { color: var(--blue); }
.photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #e7ddd6; margin-bottom: 12px; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.photo--placeholder img { object-fit: contain; filter: none; }
.person strong { display: block; color: var(--text); font-weight: 600; }
.person span:last-child { font-size: .8125rem; line-height: 1.4; display: block; }

/* Magazin */
.posts { list-style: none; padding: 0; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.post time { font-size: .8125rem; }
.post h3 { font-size: 1.1rem; margin: .3em 0 .5em; }
.post h3 a { color: var(--text); }
.post p { font-size: .9375rem; flex: 1; }
.post .more { font-weight: 600; font-size: .875rem; }
.post-rows { list-style: none; padding: 0; }
.post-rows li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px 24px; }
@media (min-width: 768px) { .post-rows li { grid-template-columns: 140px 1fr; } }
.post-rows time { font-size: .875rem; white-space: nowrap; }
.ticker { margin-top: var(--gap); background: var(--soft); padding: 16px 24px; border-radius: var(--radius); }
.ticker-title { font-size: 1rem; margin: 0; }
.ticker .post-rows { margin: 0; }
.ticker .post-rows li:last-child { border: 0; }

/* Veranstaltungen & Veröffentlichungen */
.events, .pubs { list-style: none; padding: 0; }
.event { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event time { flex: 0 0 72px; text-align: center; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 8px 4px; font-size: .75rem; line-height: 1.3; }
.event time b { display: block; font-size: 1.05rem; }
.event a { color: var(--text); font-weight: 600; display: block; }
.event span { font-size: .875rem; }
.pub { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; justify-items: start; }
.pub a { color: var(--text); font-weight: 600; }
.pub > span:last-child { font-size: .875rem; }

/* Detailseiten */
.t-magazin main, .t-publikation main, .t-veranstaltung main, .t-page.legal main { max-width: 860px; }
.t-veranstaltung main > .block:first-child h4:first-child { color: var(--blue); margin-bottom: .3em; }
.t-team main > .block:first-child .cols { align-items: start; }
.t-team main > .block:first-child figure.img img { filter: grayscale(1); max-width: 360px; width: 100%; }

/* Footer */
.site-footer { background: var(--soft); padding: 48px 0 32px; font-size: .9375rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text); }
.footer-contact a { color: var(--blue); }
.copy { font-size: .8125rem; margin: 24px 0 0; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--blue) url(img/arrow-top.svg) center / 18px no-repeat;
  box-shadow: 0 4px 16px rgba(4,36,63,.25); z-index: 40; }
@media (min-width: 1025px) { .to-top { right: 32px; bottom: 32px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .to-top, .box-cta { display: none; } main { max-width: none; } a { color: inherit; } }
