/* Rechtsanwalt Jürgen Fiegler – statische Website
   Gestaltung 1:1 nach der bisherigen YOOtheme-Seite (gemessen am 29.11.2026):
   Blau #09387C, Playfair Display (Überschriften), PT Serif (Text), Helvetica (Menü). */

@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/playfair-display-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/pt-serif-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/pt-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/pt-serif-700.woff2") format("woff2"); }

:root {
  --blau: #09387c;
  --text: #6c6d74;
  --dunkel: #2d2e33;
  --grau-flaeche: #f7f7f7;
  --weiss: #ffffff;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 26px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dunkel); text-decoration: none; }
a:hover { color: var(--blau); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--blau); margin: 0 0 20px; }
h1 { font-size: 36.54px; line-height: 1.2; }
/* Startseite: Fachanwaltstitel in eigener Zeile, damit kein Wort allein umbricht */
.h1-zeile { display: block; text-wrap: balance; }
.nobr { white-space: nowrap; }
h2 { font-size: 32.04px; line-height: 1.3; margin-top: 40px; }
p, ul, ol { margin: 0 0 20px; }
ul { padding-left: 30px; }
em { font-style: italic; }
strong { font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--blau); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; color: #fff; }

/* Container wie UIkit: max. 1200 px Inhalt, Rand 15 / 30 / 40 px */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; box-sizing: content-box; }

/* Blaue Leiste mit Flaggen (nur ab 960 px, wie im Original) */
.topbar { display: none; background: var(--blau); padding: 10px 0; font-size: 11px; line-height: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topkontakt { display: flex; gap: 28px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .3px; line-height: 12px; }
.topkontakt a, .topkontakt a[href^="tel:"] { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .9); text-decoration: none; }
.topkontakt .symbol { width: 13px; height: 13px; flex: 0 0 13px; margin-top: -1px; }
.topkontakt a:hover { color: #fff; text-decoration: underline; }
.flaggen { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.flaggen a { display: block; }
.flaggen img { width: 18px; height: 12px; }
.flaggen [aria-current] img { outline: 0; }

/* Kopfbereich */
.header { background: #fff; position: sticky; top: 0; z-index: 50; }
.header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; height: 118px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 130px; height: 118px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a {
  position: relative; display: flex; align-items: center; height: 40px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blau); line-height: 22.75px;
}
.nav a:hover { color: var(--dunkel); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--dunkel); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blau); }

/* Handy-Menü */
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--dunkel); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobilmenue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 8px 16px rgba(0, 0, 0, .08); padding: 10px 15px 20px; }
.mobilmenue.offen { display: block; }
.mobilmenue ul.menue { list-style: none; margin: 0 0 15px; padding: 0; }
.mobilmenue ul.menue a { display: block; padding: 10px 0; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--blau); }
.mobilmenue ul.menue a[aria-current="page"] { color: var(--dunkel); }

/* Inhalt */
.inhalt { padding: 40px 0; }
.inhalt .wrap > :last-child, .rechtstext > :last-child { margin-bottom: 0; }
.bild { margin: 0 0 20px; }
.bild img { width: 100%; height: auto; }

/* Slideshow (Services & Leistungen) */
.slideshow { position: relative; margin: 0 0 20px; overflow: hidden; height: 450px; background: #222; }
.slideshow .folie { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.slideshow .folie.aktiv { opacity: 1; }
.slideshow .folie img { width: 100%; height: 100%; object-fit: cover; }
.slideshow .pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 5px; border: 0; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; display: none; }
.slideshow .pfeil:hover { color: #fff; }
.slideshow .pfeil.zurueck { left: 20px; }
.slideshow .pfeil.vor { right: 20px; }
.slideshow .pfeil svg { width: 14px; height: 24px; display: block; margin: 0 auto; }
.slideshow .punkte { position: absolute; left: 0; right: 0; bottom: 20px; list-style: none; margin: 0; padding: 0; display: none; justify-content: center; gap: 15px; }
.slideshow .punkte button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
.slideshow .punkte button[aria-current="true"] { background: #fff; }
.slideshow.js .pfeil { display: block; }
.slideshow.js .punkte { display: flex; }

/* Rechtstexte */
.rechtstext { overflow-wrap: break-word; }
.rechtstext h2 { font-size: 26px; margin-top: 30px; }
.rechtstext h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 26px; color: var(--dunkel); margin: 20px 0 10px; }
.hinweis { background: var(--grau-flaeche); padding: 15px 20px; }

/* Fußzeile: graue Fläche mit drei Spalten */
.footer { background: var(--grau-flaeche); padding: 20px 0; border-top: 2px solid var(--blau); }

/* Telefonnummern: überall klickbar (tel:), am Rechner optisch wie Text, auf dem Handy unterstrichen */
a[href^="tel:"] { color: inherit; text-decoration: none; }
@media (max-width: 959px) {
  a[href^="tel:"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}
.footer .spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.footer p { margin: 0; }

/* ab 640 px */
@media (min-width: 640px) {
  .wrap { padding: 0 20px; }
  .mobilmenue { padding: 10px 20px 20px; }
}

/* ab 960 px: Desktop-Kopf wie im Original */
@media (min-width: 960px) {
  .wrap { padding: 0 40px; }
  .topbar { display: block; }
  .header .wrap { height: 136px; }
  .logo img { width: 150px; height: 136px; }
  .nav { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nav-toggle, .mobilmenue, .mobilmenue.offen { display: none; }
  .inhalt { padding: 70px 0; }
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  .footer .spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

@media print {
  .topbar, .nav, .nav-toggle, .mobilmenue { display: none; }
  .header { position: static; }
}
