/* businessway – gemeinsames Styling */

:root {
  --blue: #4a7696;
  --blue-light: #7fa3bd;
  --blue-soft: #e8eff4;
  --blue-deep: #1d3446;
  --ink: #16202a;
  --dark: #222;
  --muted: #5d6b78;
  --line: rgba(22, 32, 42, 0.1);
  --bg: #f6f8fa;
  --white: #fff;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 42, 0.04), 0 12px 32px -12px rgba(22, 32, 42, 0.14);
  --shadow-lift: 0 2px 4px rgba(22, 32, 42, 0.05), 0 28px 56px -20px rgba(29, 52, 70, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header .brand {
  display: inline-flex;
  padding: 8px 2px;
  transition: opacity 0.3s var(--ease);
}

.site-header .brand img {
  height: 22px;
  width: auto;
}

/* Header auf Unterseiten: Glas-Leiste */
.site-header.is-solid {
  pointer-events: auto;
  background: rgba(246, 248, 250, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-solid.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 248, 250, 0.85);
}

/* ---------- Menü ---------- */

.menu {
  position: relative;
  margin-left: auto;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 18px 10px 20px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle:active {
  transform: scale(0.97);
}

.is-solid .menu-toggle {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(22, 32, 42, 0.05);
}

.is-solid .menu-toggle:hover {
  border-color: rgba(74, 118, 150, 0.4);
}

.burger {
  position: relative;
  width: 16px;
  height: 10px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger::before {
  top: 1px;
}

.burger::after {
  top: 7.5px;
}

.menu-toggle[aria-expanded="true"] .burger::before {
  top: 4.25px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger::after {
  top: 4.25px;
  transform: rotate(-45deg);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
}

.menu.is-open .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s;
}

.menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}

.menu-panel a::after {
  content: "→";
  color: var(--blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: var(--blue-soft);
}

.menu-panel a:hover::after,
.menu-panel a:focus-visible::after,
.menu-panel a[aria-current="page"]::after {
  opacity: 1;
  transform: none;
}

.menu-panel a[aria-current="page"] {
  color: var(--blue);
}

/* ---------- Hero (Startseite) ---------- */

.home {
  background: var(--blue-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  /* Berlin-Panorama; Abdunklung für lesbares weißes Logo, Verlauf als Fallback */
  --hero-shade:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(14, 26, 36, 0.38), transparent 75%),
    linear-gradient(180deg, rgba(14, 26, 36, 0.55) 0%, rgba(14, 26, 36, 0.42) 50%, rgba(14, 26, 36, 0.6) 100%);
  --hero-fallback: radial-gradient(120% 90% at 50% 0%, #3b6584 0%, #24425a 45%, #142533 100%);
  --hero-pos: center bottom;
  background:
    var(--hero-shade),
    url("/assets/img/hero.jpg") var(--hero-pos) / cover no-repeat,
    var(--hero-fallback);
  background:
    var(--hero-shade),
    image-set(url("/assets/img/hero.webp") type("image/webp"), url("/assets/img/hero.jpg") type("image/jpeg"))
      var(--hero-pos) / cover no-repeat,
    var(--hero-fallback);
  background-color: #142533;
}

/* weiche, langsam wandernde Lichtflächen */
.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  will-change: transform;
}

.hero-glow--a {
  width: 55vmax;
  height: 55vmax;
  left: -15vmax;
  top: -20vmax;
  background: radial-gradient(circle, #6f9cbd 0%, transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.hero-glow--b {
  width: 50vmax;
  height: 50vmax;
  right: -18vmax;
  bottom: -22vmax;
  background: radial-gradient(circle, #4a7696 0%, transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

/* feines Raster für Tiefe */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}

@keyframes drift-a {
  to {
    transform: translate(12vmax, 8vmax) scale(1.1);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-10vmax, -6vmax) scale(1.15);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  margin: 0;
  padding: 0 var(--gutter);
  font-weight: inherit;
  text-align: center;
}

.hero-logo {
  width: min(78vw, 720px);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.25));
  animation: rise 1.4s var(--ease) both 0.15s;
}

.hero-tagline {
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  animation: rise 1.4s var(--ease) both 0.55s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }
}

.home .site-footer {
  position: absolute;
  inset: auto 0 0 0;
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
  background: none;
}

.home .site-footer a:hover {
  color: var(--white);
}

/* ---------- Unterseiten ---------- */

main.page {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 16vw, 168px) var(--gutter) clamp(64px, 9vw, 112px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

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

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.page-title .accent {
  color: var(--blue);
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}

/* Leistungskarten */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(48px, 7vw, 80px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(74, 118, 150, 0.25);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.card:hover .card-icon {
  background: var(--blue);
  color: var(--white);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(22, 32, 42, 0.3);
  font-variant-numeric: tabular-nums;
}

.card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.card ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.card li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.5;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a7696' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5'/%3E%3C/svg%3E")
      center / 15px no-repeat,
    var(--blue-soft);
}

/* Call to Action */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius);
  color: var(--white);
  background: radial-gradient(120% 140% at 100% 0%, #5b88a8 0%, #2c4f69 50%, #1a3042 100%);
}

.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.02);
}

.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--blue-deep);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}

.button .arrow {
  transition: transform 0.35s var(--ease);
}

.button:hover .arrow {
  transform: translateX(4px);
}

.button--blue {
  color: var(--white);
  background: var(--blue);
}

.button--blue:hover {
  box-shadow: 0 14px 30px -12px rgba(74, 118, 150, 0.7);
}

/* Kontakt */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  padding: 4px 0;
  font-size: clamp(18px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: break-word;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}

.contact-mail:hover {
  color: var(--blue);
  background-size: 100% 2px;
}

.contact-aside {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-left: clamp(0px, 4vw, 48px);
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.contact-aside p {
  margin: 0;
}

/* Impressum */
.legal {
  max-width: 760px;
  margin-top: clamp(40px, 6vw, 64px);
}

.legal section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.legal p,
.legal address {
  margin: 0;
  font-style: normal;
}

.legal a {
  color: var(--blue);
}

.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff4d6;
  color: #7a5b00;
  font-size: 0.92em;
}

/* 404 */
.notfound {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 26px var(--gutter);
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---------- Scroll-Einblendung ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsiv ---------- */

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .contact-aside {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .menu {
    position: static;
  }

  .menu-panel {
    left: 16px;
    right: 16px;
    top: 68px;
    min-width: 0;
  }

  .menu-panel a {
    padding: 16px;
    font-size: 17px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 16px;
  }

  .home .site-footer {
    align-items: center;
    text-align: center;
  }

  main.page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    padding: 0 16px;
  }

  .hero-logo {
    width: 82vw;
  }

  .hero-tagline {
    letter-spacing: 0.2em;
    line-height: 1.8;
  }

  .cta .button {
    width: 100%;
    justify-content: center;
  }
}

/* Hochformat: Ausschnitt nach links, damit der Fernsehturm sichtbar bleibt */
@media (max-aspect-ratio: 1/1) {
  .hero {
    --hero-pos: 24% bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
