/* ==========================================================
   ROTONDI RECHTSANWÄLTE – Stylesheet
   Schriften lokal (SIL OFL), keine externen Ressourcen.
   ========================================================== */

@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blau: #2a75b9;
  --blau-hell: #6ba6de;
  --navy: #004164;
  --sand: #e6e4e1;
  --taupe: #7b7067;
  --dunkel: #353535;
  --text: #242424;
  --hell: #e9f1f8;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", Arial, Helvetica, sans-serif;
  --container: 1270px;
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 26px;
  color: #000;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
.intro-person > img, .two-col img { width: 100%; background: var(--hell); }
.signature { width: 200px !important; background: none !important; }
a { color: var(--blau); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 2px; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 1016px; margin: 0 auto; padding: 0 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; font-family: var(--sans); }
.skip-link:focus { top: 12px; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.logo img { width: 270px; height: auto; }
.logo:hover { text-decoration: none; }

.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 8px 12.8px;
  font-family: var(--sans); font-weight: 700; font-size: 13px; line-height: 28px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text);
}
.main-nav > ul > li > a { position: relative; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 12.8px; right: 12.8px; bottom: 2px;
  height: 2px; background: var(--blau); transform: scaleX(0); transition: transform .2s;
}
.main-nav > ul > li.active > a::after,
.main-nav > ul > li > a:hover::after { transform: scaleX(1); }
.main-nav a:hover { text-decoration: none; color: var(--blau); }

.sub-nav {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; left: 0; top: 100%; min-width: 280px;
  background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover > .sub-nav, .has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: none; }
.sub-nav a { text-transform: none; letter-spacing: .3px; font-weight: 500; font-size: 14px; padding: 6px 22px; }
.sub-nav .sub-sub a { padding-left: 38px; font-size: 13px; }
.sub-nav li.active > a { color: var(--blau); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- Bühne / Headerbild ---------- */
.stage { background: linear-gradient(120deg, var(--navy), var(--blau)); aspect-ratio: 3 / 1; overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage img.broken { visibility: hidden; }
/* Ohne Headerbild (Lizenz ungeklärt): schmaler Farbverlauf statt Foto */
.stage.stage-leer { aspect-ratio: auto; height: 140px; }
@media (max-width: 860px) { .stage.stage-leer { height: 72px; } }

/* ---------- Brotkrumen ---------- */
.breadcrumb { padding-top: 40px; padding-bottom: 40px; font-size: 12px; color: #333; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #999; }
.breadcrumb a { color: #333; }
.breadcrumb svg { display: block; }

/* ---------- Typografie im Inhalt ---------- */
h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 { font-size: 48px; line-height: 60px; font-weight: 400; color: var(--text); text-align: center; padding-bottom: 32px; }
h2 { font-size: 40px; line-height: 60px; font-weight: 500; color: var(--blau); }
h3 { font-size: 17px; line-height: 26px; font-weight: 700; color: var(--blau); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 24px; }
.section { padding: 60px 0; }
.section-first { padding-top: 0; }
.home-intro { padding-top: 60px; }
.teaser { display: block; text-align: center; margin-bottom: 1.2em; }
.text-block { text-align: justify; hyphens: auto; }
.text-block ul { padding-left: 20px; margin: 0 0 1.1em; }
.center { text-align: center; }

/* ---------- Kacheln Rechtsgebiete ---------- */
.band { padding: 80px 0; }
.band-sand { background: var(--sand); }
.band-navy { background: var(--navy); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--navy); color: #fff; padding: 36px 24px 40px; min-height: 260px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1); transition: transform .2s, background .2s;
}
.tile:hover, .tile:focus-visible { text-decoration: none; background: var(--blau); transform: translateY(-4px); }
.tile-nr { font-family: var(--serif); font-size: 40px; line-height: 48px; font-weight: 700; }
.tile-title { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; margin: 6px 0 18px; }
.tile-text { font-family: var(--sans); font-size: 13px; line-height: 23px; }

/* ---------- Vorstellung Start ---------- */
.intro-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.signature { width: 200px; margin: 6px 0 14px; }
.person-lines { font-style: italic; color: var(--blau); }
.person-lines strong { font-style: normal; color: #000; }

/* ---------- Aktuelles ---------- */
.band-navy h2 { color: #fff; text-align: center; margin-bottom: 48px; font-weight: 400; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { background: #fff; color: var(--dunkel); padding: 32px 28px; display: flex; flex-direction: column; }
.news-card h3 { font-family: var(--sans); font-size: 15px; line-height: 22px; letter-spacing: 1.5px; padding-bottom: 16px; }
.news-card h3 a { color: var(--blau); }
.news-card p { font-family: var(--sans); font-size: 14px; line-height: 24px; flex: 1; }
.news-card .btn { align-self: center; margin-top: 18px; }
.news-list .news-card { box-shadow: 0 4px 18px rgba(0, 0, 0, .1); }
.news-meta { font-family: var(--sans); font-size: 13px; color: #666; margin-bottom: 18px; text-align: center; }
.empty-note { text-align: center; font-style: italic; }

.btn {
  display: inline-block; padding: 8px 20px;
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  border: 0; cursor: pointer;
}
.btn-dark { background: var(--dunkel); color: #fff; }
.btn-blue { background: var(--blau); color: #fff; }
.btn:hover, .btn:focus-visible { background: var(--blau); color: #fff; text-decoration: none; }
.btn-blue:hover { background: var(--navy); }

/* ---------- Zwei Spalten (Anwälte, Büro) ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.two-col + .two-col { margin-top: 72px; }
.two-col h2 { margin-bottom: 24px; }
.two-col h3 { padding-bottom: 8px; margin-top: 18px; }
.two-col ul { margin: 0 0 12px; padding-left: 20px; }
.band-hell { background: var(--hell); }

.hours dt { font-weight: 700; }
.hours dd { margin: 0 0 12px; }

/* ---------- Downloads ---------- */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.downloads a {
  display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%;
  background: #fff; border: 1px solid rgba(0, 0, 0, .1); padding: 26px 20px; color: var(--text);
  transition: box-shadow .2s, border-color .2s;
}
.downloads a:hover, .downloads a:focus-visible { text-decoration: none; border-color: var(--blau); box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.dl-title { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--blau); }
.dl-meta { font-family: var(--sans); font-size: 13px; color: #666; margin: 4px 0 14px; }
.dl-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--dunkel); color: #fff; align-items: center; justify-content: center; }
.downloads a:hover .dl-icon { background: var(--blau); }

.link-list dt { font-weight: 700; margin-top: 16px; }
.link-list dd { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.contact-grid h3 { padding-bottom: 12px; }
.route-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.address-box { background: var(--hell); padding: 24px 28px; }
.ext-note { font-size: 13px; line-height: 20px; color: #555; margin-top: 10px; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 26px; line-height: 36px; margin: 36px 0 14px; }
.legal h3 { font-size: 15px; padding-bottom: 8px; margin-top: 20px; }
.legal { text-align: left; hyphens: auto; }
.legal ul { padding-left: 20px; }
.todo { background: #fff3b0; outline: 2px dashed #c94242; padding: 0 4px; }

/* ---------- Fußbereich ---------- */
.site-main { padding-bottom: 60px; }
.site-main:has(> .band:last-child) { padding-bottom: 0; }
.site-footer { background: var(--taupe); color: #fff; font-family: var(--sans); font-size: 14px; line-height: 26px; padding: 48px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li::before { content: "» "; }
.footer-copy { margin-top: 32px; font-size: 13px; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; background: var(--blau); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2); opacity: 0; visibility: hidden; transition: .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--navy); }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  :root { --header-h: 80px; }
  .logo img { width: 220px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
    padding: 20px 40px 40px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav a { font-size: 15px; padding: 12px 0; border-bottom: 1px solid #eee; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav > ul > li.active > a { color: var(--blau); }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 18px; min-width: 0; }
  .sub-nav a { font-size: 15px; padding: 10px 0; }
  .sub-nav .sub-sub a { padding-left: 18px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container, .narrow { padding: 0 22px; }
  h1 { font-size: 34px; line-height: 44px; padding-bottom: 22px; }
  h2 { font-size: 30px; line-height: 40px; }
  .stage { aspect-ratio: 16 / 9; }
  .intro-person, .two-col, .news-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .band { padding: 56px 0; }
  .breadcrumb { padding-top: 24px; padding-bottom: 24px; }
  .text-block { text-align: left; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}

@media print {
  .site-header, .stage, .to-top, .breadcrumb { display: none; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}

/* Abstände zwischen nebeneinanderliegenden Buttons */
.btn + .btn { margin-left: 8px; }
.news-grid + p.center { margin-top: 40px; margin-bottom: 0; }
