/* ==========================================================================
   Rechtsanwältin Dr. jur. Angela Wettach – statische Website
   Masterlayout: FireShot Capture 214 (Desktop 1920 px)
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, kein Google-Fonts-Abruf) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
}

/* ---------- Design-Tokens (aus dem Masterlayout gemessen) ---------- */
:root {
  --blau: #174195;          /* Überschriften, Icons, Hervorhebungen */
  --blau-hell: #5399cd;     /* Originalton aus dem Master (nur noch Referenz) */
  --blau-kachel: #2f6fa8;   /* Info-Kacheln: Kontrast zu Weiß 5,3 : 1 (WCAG AA) */
  --overlay-oben: rgba(16, 32, 72, .45);   /* Verlauf über Bildkacheln */
  --overlay-unten: rgba(16, 32, 72, .72);
  --text: #323232;          /* Fließtext */
  --grau: #edebec;          /* Flächen hellgrau */
  --footer: #727272;
  --totop: #5f5e5c;
  --weiss: #ffffff;

  --container: 988px;       /* Inhaltsbreite laut Master (466 px Rand bei 1920 px) */
  --fliesstext: 14px;       /* Desktop */

  --font-text: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --font-display: "Roboto", Arial, sans-serif;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grau);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fliesstext);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3 { font-weight: 400; margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blau); color: #fff; padding: 10px 16px;
  text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--weiss);
  height: 111px;
  border-bottom: 17px solid var(--grau);
  box-sizing: content-box;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
}
.logo { display: inline-block; margin-left: 1px; }
.logo img { width: 323px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 565px;
  background: #91bdda url("../img/hero-kanzlei.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 84px;
  line-height: 82px;
  color: var(--blau);
  letter-spacing: 0;
  margin-top: 6px;
}

/* ---------- Intro ---------- */
.intro {
  position: relative;
  background: var(--grau);
  padding: 70px 0 92px;
}
.intro .container {
  position: relative;
  min-height: 195px;
}
.intro__text { max-width: 650px; }
.intro h2 {
  font-size: 35px;
  line-height: 41px;
  color: var(--blau);
  margin-bottom: 26px;
}
.intro p { margin: 0; line-height: 1.6; }
.intro__sticker {
  position: absolute;
  right: 11px;
  top: 1px;
  width: 252px;
}
/* Pfeil-Ecke nach unten */
.intro::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 84px;
  height: 26px;
  margin-left: -42px;
  background: var(--grau);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 2;
}

/* ---------- Leistungen ---------- */
.leistungen {
  background: var(--weiss);
  padding: 52px 0 80px;
}
.leistungen h2 {
  text-align: center;
  font-size: 30px;
  line-height: 36px;
  color: var(--blau);
  margin-bottom: 22px;
}
.leistungen__lead { margin: 0 0 12px; }
.rechtsgebiet { margin: 0; line-height: 1.25; }
.rechtsgebiet strong { color: var(--blau); font-weight: 700; }
.rechtsgebiet + .checklist { margin-top: 30px; }
.checklist + .rechtsgebiet { margin-top: 52px; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  column-gap: 0;
  row-gap: 0;
}
.checklist li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0 6px 37px;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='11.6' fill='none' stroke='%23174195' stroke-width='2.4'/%3E%3Cpath d='M7.6 13.4l3.7 3.7 7.2-7.6' fill='none' stroke='%23174195' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist--arbeitsrecht { grid-template-rows: repeat(5, auto); }
.checklist--dienstrecht  { grid-template-rows: repeat(6, auto); }

/* ---------- Bildkacheln ---------- */
.kacheln {
  background: var(--grau);
  padding: 64px 36px 62px;
}
.kacheln__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.kachel {
  position: relative;
  height: 244px;
  overflow: hidden;
  margin: 0;
}
.kachel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kachel figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 19px;
  line-height: 28px;
  letter-spacing: .02em;
  padding: 0 16px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, var(--overlay-oben) 0%, var(--overlay-unten) 100%);
}
.kachel img { transition: transform .6s ease; }
.kachel:hover img { transform: scale(1.04); }

/* ---------- Kontakt-Kacheln ---------- */
.kontakt {
  background: var(--weiss);
  padding: 184px 0 142px;
}
.kontakt__grid {
  display: grid;
  grid-template-columns: repeat(3, 318px);
  justify-content: center;
  gap: 18px;
}
.info {
  position: relative;
  background: var(--blau-kachel);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  text-align: center;
  min-height: 168px;
  padding: 30px 14px 30px;
}
.info__icon {
  position: absolute;
  left: 50%;
  top: 0;
  width: 52px;
  height: 52px;
  margin: -28px 0 0 -26px;
  border-radius: 50%;
  background: var(--blau);
  box-shadow: 0 0 0 5px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info__icon svg { width: 30px; height: 30px; fill: #fff; }
.info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 28px;
  margin: 0 0 16px;
}
.info h2 a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.info h2 a:hover { text-decoration-thickness: 2px; }
.info p {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
}
.info p a { text-decoration: none; }
.info p a:hover { text-decoration: underline; }

/* ---------- Karte ---------- */
.karte {
  background: var(--weiss);
  padding: 0 56px;
}
.karte__link {
  position: relative;
  display: block;
  aspect-ratio: 2048 / 572;
  overflow: hidden;
}
.karte__link img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.karte__button {
  position: absolute;
  left: 47%;
  top: 46.4%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d3a8a;
  color: #fff;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1;
  padding: 6px 10px 6px 8px;
  white-space: nowrap;
  border-radius: 2px;
}
.karte__button svg { width: 13px; height: 13px; fill: #fff; }
.karte__link:hover .karte__button,
.karte__link:focus-visible .karte__button { background: var(--blau); text-decoration: underline; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--footer);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.site-footer .container {
  max-width: 1020px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-footer p { margin: 0; }
.site-footer nav { margin-left: auto; margin-right: 82px; display: flex; gap: 37px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] { text-decoration: underline; }
.page-end { height: 64px; background: var(--grau); }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed;
  right: 19px;
  bottom: 17px;
  width: 37px;
  height: 37px;
  background: var(--totop);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-head {
  background: var(--grau);
  padding: 70px 0 60px;
}
.page-head h1 {
  font-size: 35px;
  line-height: 39px;
  color: var(--blau);
}
.legal {
  background: var(--weiss);
  padding: 56px 0 80px;
}
.legal h2 {
  font-size: 20px;
  line-height: 26px;
  color: var(--blau);
  margin: 34px 0 10px;
}
.legal h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--blau);
  margin: 26px 0 8px;
}
.legal h2:first-child { margin-top: 0; }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--blau); word-break: break-word; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .hero { height: 440px; }
  .hero h1 { font-size: 64px; line-height: 64px; }
  .kacheln { padding-left: 24px; padding-right: 24px; }
  .kacheln__grid { gap: 20px; }
  .kontakt__grid { grid-template-columns: repeat(3, 1fr); padding: 0 24px; }
  .karte { padding: 0 24px; }
  .site-footer nav { margin-right: 0; }
  .intro__text { max-width: calc(100% - 270px); }
}

@media (max-width: 767px) {
  :root { --fliesstext: 16px; }   /* Fließtext mobil */

  .container { padding: 0 16px; }

  .site-header { height: 84px; border-bottom-width: 10px; }
  .logo img { width: 230px; }

  .hero { height: 300px; background-position: 20% center; }
  .hero h1 { font-size: 36px; line-height: 40px; padding: 0 16px; margin-top: 0; text-shadow: 0 0 18px rgba(255,255,255,.55); }

  .intro { padding: 44px 0 60px; }
  .intro .container { min-height: 0; }
  .intro__text { max-width: none; }
  .intro h2 { font-size: 26px; line-height: 31px; margin-bottom: 18px; }
  .intro__sticker { position: static; width: 190px; margin: 28px auto 0; }

  .leistungen { padding: 48px 0 56px; }
  .leistungen h2 { font-size: 26px; }
  .checklist,
  .checklist--arbeitsrecht,
  .checklist--dienstrecht { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; padding-left: 0; }
  .checklist li { min-height: 40px; }
  .checklist + .rechtsgebiet { margin-top: 32px; }
  .rechtsgebiet { line-height: 1.45; }
  .rechtsgebiet + .checklist { margin-top: 16px; }

  .kacheln { padding: 40px 16px; }
  .kacheln__grid { grid-template-columns: 1fr; gap: 16px; }
  .kachel { height: 200px; }
  .kachel figcaption { font-size: 19px; }

  .kontakt { padding: 64px 0 56px; }
  .kontakt__grid { grid-template-columns: 1fr; gap: 52px; padding: 0 16px; }
  .info { min-height: 0; padding: 36px 14px 26px; }
  .info h2 { font-size: 22px; }
  .info p { font-size: 17px; line-height: 24px; }

  .karte { padding: 0; }
  .karte__link { aspect-ratio: auto; height: 300px; }
  .karte__link img { object-position: 49% 45%; }
  .karte__button { left: 50%; transform: translateX(-50%); top: 60%; }

  .site-footer .container { flex-direction: column; align-items: center; text-align: center; padding: 16px; gap: 10px; }
  .site-footer nav { margin: 0; gap: 28px; }
  .site-footer nav a { padding: 6px 0; display: inline-block; }

  .page-head { padding: 44px 0 36px; }
  .page-head h1 { font-size: 28px; line-height: 33px; }
  .legal { padding: 36px 0 56px; }
  .legal h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
  .kachel img { transition: none; }
  .kachel:hover img { transform: none; }
}
