:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #eff1f2;
  --text: #000000;
  --muted: #111111;
  --border: #222222;
  --tile-border: #d8dde3;
  --accent: #000000;
  --accent-dark: #000000;
  --accent-soft: #f3f7fb;
  --shadow: 0 12px 32px rgba(24, 33, 43, 0.06);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 40px, 900px);
}

.section {
  padding: 72px 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 10px 14px;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  top: 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 0;
  padding: 34px 0 10px;
}

.header-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.brand {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: none;
}

.brand::before {
  content: none;
}

.brand-title {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.34em;
  color: #000;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  line-height: 1;
}

.brand-word {
  display: inline-flex;
  align-items: flex-end;
}

.brand-initial {
  font-size: clamp(2.06rem, 4.1vw, 2.72rem);
  line-height: 0.88;
}

.brand-rest {
  font-size: clamp(1.46rem, 2.82vw, 1.9rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 6px;
}

.primary-nav a {
  padding: 0;
  border-radius: 0;
  color: #000;
  font-weight: 400;
  font-size: 0.96rem;
  line-height: 1.2;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background: transparent;
  color: #000;
  border-bottom-color: #000;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 34px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 28px;
  height: 2px;
  margin: 5px auto;
  background: #000;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding-top: 24px;
  padding-bottom: 54px;
}

.hero .container {
  width: 100%;
}

.hero-centered {
  display: grid;
  gap: 26px;
  text-align: center;
}

.hero-content {
  width: min(100% - 40px, 980px);
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  display: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
}

h1,
h2 {
  font-weight: 400;
}

h1 {
  font-size: clamp(2.25rem, 4.1vw, 3.05rem);
  letter-spacing: -0.01em;
  width: min(100%, 940px);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.05rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-lead {
  margin: 6px auto 0;
  max-width: 940px;
  color: #000;
  font-size: 1.25rem;
  line-height: 1.35;
}

.hero-actions {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 0;
  font-weight: 700;
  border: 1px solid #000;
}

.button-primary {
  background: #000;
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: #000;
}

.hero-media {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(340px, 42vw, 560px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background-image: url("assets/Titelbild.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.hero-media img {
  display: none;
}

.hero-image-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.intro-section {
  display: none;
}

.section-heading {
  display: grid;
  gap: 0;
  margin: 0 auto 44px;
  max-width: 940px;
  text-align: center;
}

.section-heading h2 {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.section-heading p:last-child {
  margin-top: 6px;
  color: #000;
  font-size: 1.25rem;
  line-height: 1.35;
}

.team-section {
  padding-top: 70px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  padding: 32px 28px 30px;
  box-shadow: 0 12px 32px rgba(24, 33, 43, 0.06);
  text-align: center;
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.team-card:hover,
.team-card:focus-within {
  background: #f7f4ee;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.team-photo {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--surface-alt);
  background: var(--surface-alt);
  margin: 0 auto 22px;
  transition: border-color 220ms ease, transform 220ms ease;
}

.team-card:hover .team-photo,
.team-card:focus-within .team-photo {
  border-color: #eee4d7;
  transform: scale(1.025);
}

.team-card h3,
.team-card .role,
.team-card li {
  transition: color 220ms ease;
}

.team-card-body {
  display: inline-block;
  min-width: 210px;
  max-width: 245px;
  text-align: left;
}

.team-card-body h3,
.team-card-body .role {
  text-align: left;
}

.role {
  color: #000;
  font-weight: 400;
  margin-top: 8px;
  font-size: 1.02rem;
}

.team-card ul {
  display: block;
  margin: 24px 0 0;
  padding-left: 18px;
  color: #222;
  text-align: left;
  font-size: 1.02rem;
}

.team-card li + li {
  margin-top: 8px;
}

.services-section {
  background: #ffffff;
  border-top: 0;
  border-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 18px;
}

.service-card {
  min-height: 162px;
  padding: 26px;
  border-radius: 0;
  background: #f6f6f6;
  border: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card:hover,
.service-card:focus-within {
  background: #eeeeee;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.service-card h3 {
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.35;
  transition: color 220ms ease;
}

.contact-section {
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 84px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #000;
  box-shadow: none;
  text-align: center;
}

.contact-card h2 {
  width: min(100%, 940px);
  margin: 0 auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: #000;
  font-size: clamp(2.1rem, 4.2vw, 3.05rem);
}

.contact-card p {
  margin: 8px auto 0;
  max-width: 940px;
  color: #000;
  font-size: 1.25rem;
  line-height: 1.35;
}

.contact-details {
  display: grid;
  gap: 14px;
  justify-items: center;
  font-weight: 400;
  font-size: 1.08rem;
}

.contact-details a {
  display: inline-flex;
  padding: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #000;
}

.contact-details a:hover,
.contact-details a:focus {
  border-bottom-color: #000;
}

.site-footer {
  border-top: 0;
  padding: 18px 0;
  background: #ffffff;
  color: #000;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: #000;
  font-weight: 400;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus {
  border-bottom-color: #000;
}

.legal-main {
  padding: 54px 0;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--tile-border);
  border-radius: 0;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 12px 32px rgba(24, 33, 43, 0.06);
}

.legal-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 28px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-size: 1.55rem;
  margin-top: 34px;
  margin-bottom: 12px;
}

.legal-card h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
  color: #111;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.notice {
  margin-top: 30px;
  padding: 16px 18px;
  border-radius: 0;
  background: #f7f4ee;
  color: #000 !important;
  font-weight: 700;
}

@media (max-width: 920px) {
  .section {
    padding: 62px 0;
  }

  .hero-media img {
    max-height: 440px;
  }

  .team-grid,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding-top: 24px;
    padding-bottom: 8px;
  }

  .brand-title {
    gap: 0.22em;
  }

  .brand-initial {
    font-size: clamp(1.76rem, 7.9vw, 2.2rem);
  }

  .brand-rest {
    font-size: clamp(1.1rem, 4.95vw, 1.45rem);
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 12px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    max-width: 260px;
    padding: 9px 0;
    text-align: center;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-content {
    width: min(100% - 28px, 980px);
  }

  .hero-centered {
    gap: 20px;
  }

  .team-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 26px 22px;
  }

  .service-card {
    padding: 26px 20px;
    min-height: 140px;
  }
}


/* Legal pages: original Cornel Advisory style */
.legal-page {
  background: #ffffff;
  color: #000000;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.55;
}

.legal-page .site-header {
  padding-top: 40px;
  padding-bottom: 18px;
  background: #ffffff;
}

.legal-page .header-inner {
  width: min(100% - 56px, 1035px);
}

.legal-page .brand-title {
  gap: 0.36em;
}

.legal-page .brand-initial {
  font-size: clamp(2.28rem, 4.15vw, 2.92rem);
}

.legal-page .brand-rest {
  font-size: clamp(1.62rem, 2.95vw, 2.02rem);
}

.legal-page .primary-nav {
  padding-top: 7px;
  gap: 20px;
}

.original-legal-main {
  padding: 84px 0 70px;
  background: #ffffff;
}

.original-legal-content {
  width: min(100% - 56px, 1035px);
  margin: 0 auto;
  text-align: left;
}

.original-legal-content h1,
.original-legal-content h2,
.original-legal-content h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #000000;
  letter-spacing: 0;
  border-bottom: 0;
  width: auto;
  max-width: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.original-legal-content h1 {
  font-size: clamp(2.7rem, 5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 46px;
}

.original-legal-content h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 42px;
}

.original-legal-content h2.legal-big-heading {
  font-size: clamp(2.0rem, 4vw, 2.55rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 58px 0 8px;
}

.original-legal-content h3 {
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  margin: 38px 0 10px;
}

.original-legal-content p {
  margin: 0 0 26px;
  font-size: 1.06rem;
  line-height: 1.75;
  color: #000000;
}

.original-legal-content strong {
  font-weight: 700;
}

.original-legal-content a {
  color: #000000;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.original-legal-content a:hover,
.original-legal-content a:focus {
  text-decoration: underline;
}

.original-legal-content .legal-subtitle {
  margin-top: -32px;
  margin-bottom: 34px;
}

.original-legal-content .legal-source {
  margin-top: 56px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.legal-page .legal-footer {
  background: #ffffff;
  border-top: 0;
  padding-top: 34px;
  padding-bottom: 28px;
}

.legal-page .footer-inner {
  width: min(100% - 56px, 1035px);
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .legal-page .site-header {
    padding-top: 28px;
    padding-bottom: 12px;
  }

  .legal-page .header-inner,
  .original-legal-content,
  .legal-page .footer-inner {
    width: min(100% - 28px, 1035px);
  }

  .original-legal-main {
    padding: 58px 0 52px;
  }

  .original-legal-content h1 {
    margin-bottom: 34px;
  }

  .original-legal-content .legal-subtitle {
    margin-top: -22px;
  }

  .original-legal-content p {
    font-size: 1rem;
  }
}


/* Parallax fallback: fixed backgrounds are unreliable on many touch devices. */
@media (max-width: 920px), (hover: none) {
  .hero-media {
    background-attachment: scroll;
    min-height: clamp(260px, 58vw, 420px);
  }
}

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

  .hero-media {
    background-attachment: scroll;
  }
}


/* Mobile-only burger menu */
@media (max-width: 720px) {
  .legal-page .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 12px;
  }

  .legal-page .primary-nav.is-open {
    display: flex;
  }

  .legal-page .primary-nav a {
    width: 100%;
    max-width: 260px;
    padding: 9px 0;
    text-align: center;
    font-size: 0.95rem;
  }
}
