/* PLATTE disputes.solutions – shared stylesheet for all pages */

:root {
  --navy: #0e3f68;
  --blue: #1f548f;
  --text: #333;
  --gray: #666;
  --gray-light: #8a8a8a;
  --border: #e4e4e4;
  --panel-gradient: linear-gradient(155deg, #123a5e 0%, #0e3f68 55%, #0a2c4a 100%);
  --photo-overlay: linear-gradient(160deg, rgba(9,32,54,.12), rgba(9,32,54,.32));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 3vw + 1rem, 2.6rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.7rem); margin: 32px 0 16px; }
h3 { font-size: 1.15rem; margin: 28px 0 12px; }
p { margin: 0 0 16px; }
a { color: inherit; }

hr {
  width: 70px;
  border: none;
  border-top: 3px solid var(--navy);
  margin: 0 0 28px;
}
hr.on-dark { border-top-color: #fff; }

ul.plain { list-style: none; margin: 0; padding: 0; }

.lead { font-size: 1.15rem; font-weight: 600; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 18px; z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Menu toggle button ---------- */
.menu-toggle {
  position: fixed;
  top: 0; right: 0;
  z-index: 1100;
  width: 64px; height: 64px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  transition: background .2s ease;
}
.menu-toggle:hover { background: var(--navy); }
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Slide-in menu ---------- */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1050;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.site-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 320px;
  max-width: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0,0,0,.2);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.25,.8,.3,1);
  z-index: 1090;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 44px;
  overflow-y: auto;
}
.site-menu.open { transform: translateX(0); }

.site-menu nav ul { list-style: none; margin: 0 0 32px; padding: 0; text-align: right; }
.site-menu nav ul.submenu { margin-bottom: 0; }
.site-menu nav li + li { margin-top: 4px; }
.site-menu nav a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #999;
  font-size: 1.4rem;
  transition: color .2s ease;
}
.site-menu nav ul.submenu a { font-size: .85rem; color: #b3b3b3; }
.site-menu nav a:hover,
.site-menu nav a.active { color: var(--navy); }

@media (max-width: 640px) {
  .site-menu { width: 100%; padding: 80px 32px; }
  .site-menu nav a { font-size: 1.6rem; }
}

/* ---------- Fixed brand panel + scrollable content (subpages) ---------- */
.fixed-panel {
  position: fixed;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: var(--panel-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.fixed-panel img { width: 180px; position: relative; z-index: 1; }

/* Compound selectors (two classes) so these reliably win over the single-class
   base rules (.fixed-panel / .mobile-brand / .home-hero) regardless of source order. */
.fixed-panel.bg-home, .mobile-brand.bg-home, .home-hero.bg-home,
.fixed-panel.bg-team, .mobile-brand.bg-team, .home-hero.bg-team,
.fixed-panel.bg-martin-platte, .mobile-brand.bg-martin-platte, .home-hero.bg-martin-platte,
.fixed-panel.bg-legal, .mobile-brand.bg-legal, .home-hero.bg-legal,
.fixed-panel.bg-gruber, .mobile-brand.bg-gruber, .home-hero.bg-gruber,
.fixed-panel.bg-publikationen, .mobile-brand.bg-publikationen, .home-hero.bg-publikationen {
  background-size: cover;
  background-position: center;
}
.fixed-panel.bg-home, .mobile-brand.bg-home, .home-hero.bg-home { background-image: var(--photo-overlay), url("../images/bg-home.jpg"); }
.fixed-panel.bg-team, .mobile-brand.bg-team, .home-hero.bg-team { background-image: var(--photo-overlay), url("../images/bg-team.jpg"); }
.fixed-panel.bg-martin-platte, .mobile-brand.bg-martin-platte, .home-hero.bg-martin-platte { background-image: var(--photo-overlay), url("../images/bg-martin-platte.jpg"); }
.fixed-panel.bg-legal, .mobile-brand.bg-legal, .home-hero.bg-legal { background-image: var(--photo-overlay), url("../images/bg-legal.jpg"); }
.fixed-panel.bg-gruber, .mobile-brand.bg-gruber, .home-hero.bg-gruber { background-image: var(--photo-overlay), url("../images/bg-gruber.jpg"); }
.fixed-panel.bg-publikationen, .mobile-brand.bg-publikationen, .home-hero.bg-publikationen { background-image: var(--photo-overlay), url("../images/bg-publikationen.jpg"); }

.content {
  position: relative;
  z-index: 1;
  margin-left: 50%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
}
.content-inner {
  width: 100%;
  padding: 90px 7vw;
}

.hero-image { margin-bottom: 32px; }
.hero-image img { width: 100%; height: auto; }

.mobile-brand { display: none; }

@media (max-width: 860px) {
  .fixed-panel { display: none; }
  .content { margin-left: 0; align-items: stretch; }
  .content-inner { padding: 48px 6vw 0; }
  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-gradient);
    padding: 40px 0;
    margin-top: 40px;
  }
  .mobile-brand img { width: 140px; }
}

/* ---------- Home page ---------- */
.home-hero {
  min-height: 100vh;
  background: var(--panel-gradient);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero img { width: 220px; position: relative; z-index: 1; }

.home-intro {
  background: var(--navy);
  color: #fff;
  padding: 70px 7vw;
}
.home-intro .inner { max-width: 900px; text-align: left; }
.home-intro h1 { color: #fff; }
.home-intro .tagline { margin-top: 33px; margin-bottom: 0; font-size: 1.3rem; font-weight: 600; }

.awards {
  padding: 50px 7vw 60px;
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .awards-grid { grid-template-columns: 1fr; }
}
.award-card {
  border: 1px solid var(--border);
  padding: 24px 18px;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #565656;
}
.award-card svg { width: 28px; height: 28px; color: var(--border); }
.award-card .title { font-family: Georgia, "Times New Roman", serif; }
.award-card .small { font-size: .8rem; color: var(--gray-light); }

/* ---------- Team overview ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
  margin: 8px 0 40px;
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; max-width: 280px; }
}
.team-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 8px;
}
.team-card .photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--navy);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.team-card .name { font-weight: 600; display: block; margin-top: 4px; }
.team-card .role { font-size: .8rem; color: var(--gray); display: block; }

/* ---------- Profile page ---------- */
.profile-name { font-size: 1.7rem; margin: 0 0 4px; }
.profile-role { display: block; font-size: 1rem; color: var(--gray); margin-bottom: 24px; }

.content-body ul { padding-left: 20px; }
.content-body li { padding-bottom: 6px; line-height: 1.7; }

/* ---------- Kontakt ---------- */
.contact-block { margin-bottom: 28px; }
.contact-block a { color: var(--blue); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease, color .2s ease;
  z-index: 900;
}
.scroll-top.visible { opacity: .85; pointer-events: auto; }
.scroll-top:hover { opacity: 1; background: #fff; color: var(--blue); }
.scroll-top svg { width: 18px; height: 18px; }
