/* Design for winlaw.ch - "Kanzlei im Bahnhof"
   Clean, typographic, warm-toned, generous whitespace.
   Based on the style of ramses.ch / ramses.html.
*/

:root {
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5a5a5a;
  --rule: #d8d4ca;
  --accent: #8a1c1c;        /* SBB-red accent, subtle */
  --accent-soft: #f3e6e6;
  --tag-bg: #ecebe6;
  --tag-ink: #2a2a2a;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Inter", "Arial", sans-serif;
  --maxw: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--accent); }
img { max-width: 100%; display: block; height: auto; }

/* Header / Brand */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 4px;
}
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: none;
  font-weight: 500;
}
.nav a:hover, .nav a.is-active { color: var(--accent); }

/* Main Content Container */
.main-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Page Intro/Hero (for pages other than index) */
.page-intro {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.page-intro h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 44px);
  margin: 0 0 8px;
  line-height: 1.15;
}
.page-intro .subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0;
}

/* Base typography elements */
h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 40px 0 16px;
  line-height: 1.3;
}
h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 28px 0 12px;
  line-height: 1.35;
}
p {
  margin: 0 0 20px;
  color: var(--ink);
}
ul, ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}

/* Callout blocks & closing periods */
.closing-periods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.closing-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 16px;
  border-radius: 2px;
}
.closing-card h4 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.closing-card p {
  margin: 0;
  font-size: 15px;
}

/* Tastaturfokus – sichtbar auf hellem Grund, ohne Mausklicks zu stören */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.approach__btn:focus-visible,
.link-pill:focus-visible,
.pdf-pill:focus-visible,
.btn-card:focus-visible {
  outline-offset: 4px;
}
.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline-offset: 2px;
}

/* Multi-column Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
/* Spaltenverhältnisse als Modifier, damit die Media Query sie erreicht */
.grid-2col--wide { grid-template-columns: 1.5fr 1fr; }
.grid-2col--text { grid-template-columns: 1.8fr 1fr; }
@media (max-width: 768px) {
  .grid-2col,
  .grid-2col--wide,
  .grid-2col--text {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Wide banners */
.banner-image {
  border: 1px solid var(--rule);
  margin: 32px 0;
  width: 100%;
}

/* Profile cards (attorneys list on homepage) */
.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.profile-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.15);
}
.profile-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.profile-card h3 a {
  color: var(--ink);
  border-bottom: none;
}
.profile-card h3 a:hover {
  color: var(--accent);
}
.profile-card .meta {
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.profile-card .description {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.5;
}
.profile-card .btn-card {
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 640px) {
  .profile-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Language selector */
.lang-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-selector a {
  padding: 6px 12px;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 2px;
}
.lang-selector a:hover {
  background: var(--bg-elev);
}
.lang-selector a.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* PDF/Link Pills for Publications */
.entry__links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
}
.pdf-pill:hover { background: var(--accent); color: #fff; border-bottom: none; }
.pdf-pill::before {
  content: "PDF";
  font-size: 10px;
  background: rgba(0,0,0,.08);
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}
.link-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.link-pill:hover { background: var(--ink); color: var(--bg); border-bottom: 1px solid var(--ink); }

/* Notice / Wichtiger Hinweis */
.notice-box {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px;
  margin: 32px 0;
  border-radius: 2px;
}
.notice-box h3 {
  margin-top: 0;
  color: var(--accent);
}
.notice-box p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.notice-box p:last-child {
  margin-bottom: 0;
}

/* Detail Lists for legal areas/memberships */
.details-list {
  list-style-type: none;
  padding-left: 0;
}
.details-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
.details-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Anflug-Sequenz: Bilder + Video mit Videoton (Drohnen-Anflug) */
.approach {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 10;
  overflow: hidden;
  background: #000;
}

.approach__stage {
  position: absolute;
  inset: 0;
}
.approach__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
  pointer-events: none;
}
.approach__layer.is-visible { opacity: 1; }

/* Each layer gets its own Ken-Burns-Zoom for incoming feeling */
.approach__layer[data-step="1"] { animation-name: kb1; }
.approach__layer[data-step="2"] { animation-name: kb2; }
.approach__layer[data-step="3"] { animation-name: kb3; }
.approach__layer[data-step="4"] { animation-name: kb4; }
.approach__layer[data-step="5"] { animation-name: kb5; }
.approach__layer[data-step] {
  animation-duration: 4s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}
.approach__layer.is-visible[data-step] { animation-play-state: running; }
@keyframes kb1 { from { transform: scale(1.0); } to { transform: scale(1.18); } }
@keyframes kb2 { from { transform: scale(1.08); } to { transform: scale(1.28); } }
@keyframes kb3 { from { transform: scale(1.10); } to { transform: scale(1.30); } }
@keyframes kb4 { from { transform: scale(1.10); } to { transform: scale(1.30); } }
@keyframes kb5 { from { transform: scale(1.06); } to { transform: scale(1.20); } }

.approach__video {
  transition: opacity 1.4s ease;
}

.approach__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0,0,0,.45);
}

.approach__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.approach__btn {
  background: rgba(26,26,26,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .15s ease;
}
.approach__btn:hover { background: var(--accent); transform: translateY(-1px); }
.approach__btn[hidden] { display: none; }

.approach__progress {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
  z-index: 2;
}
.approach__progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--accent);
  transition: width .2s linear;
}

.approach__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  max-width: 60%;
  opacity: 0;
  transition: opacity .8s ease;
}
.approach__caption small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 6px;
  color: rgba(255,255,255,.85);
}
.approach[data-state="running"] .approach__caption,
.approach[data-state="ended"] .approach__caption { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .approach__layer[data-step] { animation: none; }
}

@media (max-width: 720px) {
  .approach {
    aspect-ratio: 16 / 9;
  }
  .approach__caption {
    font-size: 18px;
    max-width: 80%;
    left: 16px;
    bottom: 16px;
  }
}

/* Einklappbare Datenschutzerklärung */
.ds-collapse { border-top: none; }
.ds-collapse > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ds-collapse > summary::-webkit-details-marker { display: none; }
.ds-collapse > summary h2 { margin: 0; }
.ds-collapse > summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-muted);
  line-height: 1;
}
.ds-collapse[open] > summary::after { content: "–"; }
.ds-collapse > .grid-2col { margin-top: 20px; }
