/* ==========================================================================
   Rechtsanwaltskanzlei Christoph Weber – Modern redesign
   ========================================================================== */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f2744;
  --navy-800: #163556;
  --navy-700: #1e466c;
  --navy-100: #e8eef5;
  --navy-50: #f4f7fb;
  --gold-500: #c4a35a;
  --gold-400: #d4b76a;
  --gold-600: #a8873f;
  --ink: #1a2332;
  --muted: #5c6b7a;
  --line: #d9e1ea;
  --white: #ffffff;
  --success: #1f6b4a;
  --success-bg: #e8f5ef;
  --error: #9b2c2c;
  --error-bg: #fdecec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(15, 39, 68, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 39, 68, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --header-offset: 6.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-600);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
}

.header-bar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
}

.header-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.header-bar a {
  color: inherit;
  text-decoration: none;
}

.header-bar a:hover {
  color: var(--gold-400);
}

.header-phone-label {
  opacity: 0.7;
  margin-right: 0.35rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.25);
}

.brand-logo img,
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--navy-50);
  color: var(--navy-900);
}

.site-nav a.nav-cta {
  background: var(--navy-900);
  color: var(--white);
  margin-left: 0.35rem;
}

.site-nav a.nav-cta:hover {
  background: var(--navy-800);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(196, 163, 90, 0.28);
}

.btn-primary:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

.btn-secondary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn-text {
  background: transparent;
  color: inherit;
  padding-inline: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  /* Darker only where text sits (left); skyline more open to the right */
  background:
    linear-gradient(
      100deg,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(10, 22, 40, 0.72) 28%,
      rgba(15, 39, 68, 0.42) 55%,
      rgba(15, 39, 68, 0.22) 78%,
      rgba(15, 39, 68, 0.18) 100%
    ),
    url("../img/skyline.png") center center / cover no-repeat;
  background-color: var(--navy-900);
  min-height: clamp(320px, 42vh, 440px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Soft transition under the content — keep out of the text area */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 3.25rem;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.55rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  margin-bottom: 0.55rem;
  max-width: 20ch;
  line-height: 1.12;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 48ch;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-actions .btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.94rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.hero-meta span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--navy-50);
}

.section-dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  color: var(--gold-600);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-dark .section-kicker {
  color: var(--gold-400);
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

/* Intro / about */

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.intro-copy p {
  font-size: 1.08rem;
  color: #344556;
}

.intro-copy p:first-of-type {
  font-size: 1.18rem;
  color: var(--ink);
}

.history-note {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold-500);
  background: var(--navy-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #3a4a5b;
  font-size: 0.98rem;
}

.intro-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.intro-card img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

.intro-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.intro-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.trust-item {
  background: var(--navy-50);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 0.2rem;
}

.trust-item span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Practice areas */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.practice-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(196, 163, 90, 0.14);
  color: var(--gold-600);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.practice-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.practice-card p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.practice-card ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.practice-card li {
  position: relative;
  padding-left: 1.1rem;
  color: #3a4a5b;
  font-size: 0.98rem;
}

.practice-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.practice-card.span-2 {
  grid-column: 1 / -1;
}

.verkehr-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.verkehr-list {
  columns: 2;
  column-gap: 1.5rem;
  list-style: none;
}

.verkehr-list li {
  break-inside: avoid;
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: #3a4a5b;
  font-size: 0.96rem;
}

.verkehr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* Profile / testimonial */

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.profile-photo {
  position: relative;
}

.profile-photo img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.profile-photo::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid rgba(196, 163, 90, 0.45);
  border-radius: var(--radius);
  z-index: -1;
}

.quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  color: var(--navy-900);
  margin-bottom: 1.25rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.98rem;
}

.quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-800);
  display: block;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: center;
}

.badge-row img {
  height: 96px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
}

/* News */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.news-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.news-body {
  padding: 1.1rem 1.1rem 1.1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.news-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-400);
}

.contact-list a {
  color: var(--white);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--gold-400);
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.contact-form > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
}

.form-field .req {
  color: var(--gold-600);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--navy-50);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 70, 108, 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.form-field.checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

.form-field.checkbox label {
  font-weight: 400;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.captcha-box {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
  background: var(--navy-50);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.captcha-box .captcha-question {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
  min-width: 8rem;
}

.captcha-box input {
  max-width: 8rem;
  background: var(--white);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(31, 107, 74, 0.2);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(155, 44, 44, 0.2);
}

/* Legal pages */

.page-hero {
  background:
    linear-gradient(
      100deg,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(10, 22, 40, 0.7) 32%,
      rgba(15, 39, 68, 0.4) 62%,
      rgba(15, 39, 68, 0.2) 100%
    ),
    url("../img/skyline.png") center bottom / cover no-repeat;
  background-color: var(--navy-900);
  color: var(--white);
  padding: 1.75rem 0 1.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  margin: 0;
}

.page-hero .eyebrow {
  margin-bottom: 0.4rem;
}

.legal-content {
  padding: 3rem 0 5rem;
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  color: #3a4a5b;
}

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-address {
  margin-bottom: 1rem;
  line-height: 1.55;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-badge-zoom {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-badge-zoom:hover,
.footer-badge-zoom:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

.footer-badges img,
.footer-badge-zoom img {
  width: 110px;
  height: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 0.4rem;
  display: block;
  pointer-events: none;
}

/* Image lightbox / zoombox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.88);
  cursor: zoom-out;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: min(90vh, 100%);
  animation: lightbox-in 0.18s ease-out;
}

.image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: var(--gold-500);
  outline: none;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.lightbox-open {
  overflow: hidden;
}

.footer-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

.footer-hours {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.footer-bottom .link-button {
  color: rgba(255, 255, 255, 0.86);
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin-inline: auto;
}

.cookie-banner-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.cookie-copy h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.cookie-copy p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.cookie-options {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.cookie-options label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.cookie-actions .btn-ghost {
  border-color: var(--line);
  color: var(--navy-900);
}

.cookie-actions .btn-ghost:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}

.cookie-actions .btn-text {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .intro-grid,
  .profile-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-card {
    position: static;
  }

  .practice-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .practice-card.span-2 {
    grid-column: auto;
  }

  .verkehr-grid {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .verkehr-list {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }

  .site-nav a,
  .site-nav a.nav-cta {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    min-height: clamp(300px, 48vh, 400px);
  }

  .hero-inner {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-meta {
    gap: 0.75rem 1.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    min-height: 180px;
    max-height: 200px;
  }

  .news-body {
    padding: 0 1.1rem 1.2rem;
  }

  .header-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .profile-photo::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .practice-card,
  .news-card {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Additional page patterns (Start, Partner, Downloads, Articles, …)
   -------------------------------------------------------------------------- */

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

.hero-home h1 {
  max-width: 22ch;
}

.hero-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.feature-card p {
  color: var(--muted);
}

.text-link {
  font-weight: 700;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
}

.text-link:hover {
  color: var(--gold-600);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.value-card h3 {
  font-size: 1.4rem;
}

.value-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.75rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.logo-row img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.9;
}

.focus-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .focus-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.focus-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.focus-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.focus-card > h3,
.focus-card > p {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.focus-card > h3 {
  margin-top: 1.1rem;
  font-size: 1.3rem;
}

.focus-card > p {
  color: var(--muted);
  padding-bottom: 1.25rem;
  margin-bottom: 0;
}

/* Combined card: ~1/3 image + ~2/3 content */
.focus-card-combined {
  display: grid;
  grid-template-columns: 1fr;
  flex-direction: unset;
}

@media (min-width: 700px) {
  .focus-card-combined {
    grid-template-columns: 1fr 2fr;
  }
}

.focus-combined-media {
  min-height: 220px;
  background: var(--navy-50);
}

.focus-combined-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.focus-combined-body {
  display: grid;
  gap: 0;
  padding: 0.35rem 0;
  align-content: center;
}

.focus-topic {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.focus-topic:last-child {
  border-bottom: 0;
}

.focus-topic h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.focus-topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band a:not(.btn) {
  color: var(--gold-400);
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
}

.service-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy-900);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.service-list.compact {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.narrow-content {
  max-width: 720px;
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.partner-card {
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.partner-card h2 {
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
}

.partner-role {
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}

.download-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.download-cards {
  display: grid;
  gap: 1rem;
}

.download-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

.download-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(196, 163, 90, 0.16);
  color: var(--gold-600);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.download-meta {
  display: grid;
  gap: 0.15rem;
}

.download-meta strong {
  font-size: 1.05rem;
  color: var(--navy-900);
}

.download-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.news-grid-full {
  grid-template-columns: repeat(2, 1fr);
}

.article-layout {
  display: grid;
  gap: 2rem;
}

.article-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.article-source {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.section-more {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-row.gallery-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  object-position: top center;
}

/* Decorative skyline band (e.g. Leistungen) — blends into dark neighbors */
.skyline-band {
  position: relative;
  height: clamp(120px, 18vw, 200px);
  background:
    url("../img/skyline.png") center center / cover no-repeat;
  background-color: var(--navy-900);
  overflow: hidden;
}

/* Fade into dark CTA above and dark footer below */
.skyline-band::before,
.skyline-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.skyline-band::before {
  top: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    var(--navy-900) 0%,
    rgba(15, 39, 68, 0.55) 40%,
    transparent 100%
  );
}

.skyline-band::after {
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    var(--navy-950) 0%,
    rgba(10, 22, 40, 0.55) 40%,
    transparent 100%
  );
}

@media (max-width: 760px) {
  .skyline-band {
    display: none;
  }
}



/* Nav with more items */
.site-nav a {
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .site-nav a {
    padding: 0.45rem 0.55rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 960px) {
  .feature-cards,
  .values-grid,
  .partner-grid,
  .download-layout,
  .service-list,
  .gallery-row,
  .gallery-row.gallery-row-4,
  .news-grid-full {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) and (max-width: 960px) {
  .gallery-row.gallery-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .cta-band-inner {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Contact map
   -------------------------------------------------------------------------- */

.map-section {
  padding-top: 3.5rem;
}

.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--navy-50);
  min-height: 420px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.map-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(15, 39, 68, 0.04), rgba(15, 39, 68, 0.1)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 12px,
      rgba(15, 39, 68, 0.03) 12px,
      rgba(15, 39, 68, 0.03) 24px
    );
  padding: 2rem 1.25rem;
}

.map-placeholder-inner {
  max-width: 420px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.map-placeholder-inner p {
  color: var(--muted);
  font-size: 0.98rem;
}

.map-fallback-link {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.map-embed.is-loaded .map-placeholder {
  display: none;
}

@media (max-width: 760px) {
  .map-embed,
  .map-placeholder {
    min-height: 320px;
  }

  .map-embed iframe {
    height: 320px;
  }
}
