/* ----------------------------------------------------------
   ROOT / BASE
----------------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f2f3f5;
  --color-section-soft: #f6f7f9;
  --color-text: #050505;
  --color-text-muted: #666b73;
  --color-text-accent: #666b73;
  --color-nav: #a5a8ac;
  --color-black: #000000;
  --color-white: #ffffff;

  --radius-pill: 999px;
  --radius-card-lg: 32px;
  --radius-card-md: 24px;
  --radius-section: 40px;

  --shadow-soft: 0 30px 80px rgba(15, 23, 42, 0.16);
  --shadow-pill: 0 16px 35px rgba(15, 23, 42, 0.16);
  --shadow-card-soft: 0 32px 80px rgba(15, 23, 42, 0.07);

  --container-width: 1120px;

  /* ✅ Approx header height so hero can be exactly "1 screen below header" */
  --header-height: 74px;
}

/* Reset */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
}

/* Typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

/* Layout helpers */

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

/* ----------------------------------------------------------
   HEADER / NAV
----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background-color: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo__image {
  display: block;
  height: 17px;
  width: 182px;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.88rem;
}

.main-nav__list > li > a {
  text-decoration: none;
  color: var(--color-black);
  font-weight: 500;
}

.main-nav__list > li > a:hover {
  text-decoration: none;
  color: var(--color-black);
}

.main-nav__cta {
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-black);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav toggle – circular button + lines */

.nav-toggle {
  display: none;
  border: none;
  background-color: #ffffff;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-black);
  transform-origin: center;
  transition:
    transform 0.18s ease-out,
    opacity 0.18s ease-out;
}

/* two horizontal lines in burger state */
.nav-toggle span:nth-child(1) {
  transform: translate(-50%, -3px);
}

.nav-toggle span:nth-child(2) {
  transform: translate(-50%, 3px);
}

/* when nav is open, morph into an "X" */
.site-header.nav-open .nav-toggle {
  background-color: #f5f5f7;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* ----------------------------------------------------------
   HERO
----------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 4.6rem;
  background-color: #ffffff;

  /* ✅ EXACTLY one viewport *below the header* */
  height: calc(100vh - var(--header-height));  /* fallback */
  height: calc(100svh - var(--header-height)); /* mobile-safe viewport */
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: 4.5rem;
}

/* Eyebrow */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 1.4rem;
  margin-bottom: 1.4rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-soft);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
  font-weight: 600;
}

/* Heading */

.hero__title {
  margin: 0;
  font-size: 4rem;
}

.hero__title-main {
  font-size: clamp(3.2rem, 5.1vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__title-sub {
  font-size: clamp(2.8rem, 4.4vw, 3.9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-accent);
  letter-spacing: -0.01em;
}

/* Lead */

.hero__lead {
  margin-top: 1.4rem;
  max-width: 30rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Buttons */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.8rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out,
    color 0.18s ease-out;
}

.btn--primary {
  background-color: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-pill);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid #e5e7eb;
}

.btn--secondary:hover {
  background-color: #f9fafb;
}

/* Media / image card */

.hero__media {
  justify-self: end;
}

.hero__image-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5; /* portrait */
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background-color: var(--color-bg-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

/* Image zoom on hover */
.hero__image-card:hover .hero__image {
  transform: scale(1.07);
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform-origin: center;
}

/* Scroll indicator */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text-accent);
  animation: scroll-pulse 2s infinite;
}

.scroll-indicator__arrow {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--color-text-accent);
  border-bottom: 1.5px solid var(--color-text-accent);
  transform: rotate(45deg);
}

@keyframes scroll-pulse {
  0%   { transform: translate(-50%, 0); opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: translate(-50%, 6px); }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ----------------------------------------------------------
   EXPERTISE SECTION
----------------------------------------------------------- */

/* Grey background from edge to edge */
.expertise {
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
  background-color: var(--color-section-soft);
  border-radius: var(--radius-section);
}

.expertise__inner {
  width: 100%;
  padding-block: 4.4rem 4.8rem;
}

.expertise__content {
  max-width: var(--container-width);
  margin-inline: auto;
}

/* Header */

.expertise__header {
  text-align: left;
  margin-bottom: 3.1rem;
}

.expertise__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.expertise__title {
  font-size: clamp(2.2rem, 3.3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Grid */

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem 2.1rem;
}

/* Cards */

.expertise-card {
  position: relative;
  padding: 2.4rem 2.6rem 2.6rem;
  border-radius: var(--radius-card-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card-soft);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

/* no movement on hover */
.expertise-card:hover {
  box-shadow: var(--shadow-card-soft);
}

/* quarter-circle decorative shape in top-right */
.expertise-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: #fafbfc;
  opacity: 0.9;
}

/* Icon box */

.expertise-card__icon-box {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  transition: transform 0.2s ease-out;
}

/* Icon SVG */
.expertise-card__icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* Icon box grows slightly on hover */
.expertise-card:hover .expertise-card__icon-box {
  transform: scale(1.08);
}

/* Text */

.expertise-card__title {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.expertise-card__text {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 26rem;
}

/* CTA footer */

.expertise-card__footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  min-height: 1.7rem; /* reserve space so layout doesn't jump */
}

.expertise-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out;
}

/* CTA appears on hover (desktop) */
.expertise-card:hover .expertise-card__link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.expertise-card__link-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-black);
}

.expertise-card__link-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #eef0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.expertise-card__link-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--color-black);
  border-bottom: 1.5px solid var(--color-black);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------
   ABOUT / ÜBER MICH
----------------------------------------------------------- */

.about {
  padding-block: 5rem;
  background-color: #ffffff;
}

.about__inner {
  max-width: var(--container-width);
}

.about__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 3.2rem;
  align-items: flex-start;
}

/* Intro / headline */

.about__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.about__title {
  font-size: clamp(2.4rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.about__title-muted {
  color: var(--color-text-accent);
  font-weight: 400;
}

.about__title-italic {
  font-style: italic;
}

/* Right column cards */

.about__context {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.about-card {
  padding: 1.6rem 1.8rem;
  border-radius: 26px;
  background-color: #f8f9fb;
}

.about-card--philosophy {
  background-color: #f8f9fb;
}

.about-card--bio {
  background-color: #fbfbfd;
}

.about-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.about-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Stats */

.about__stats {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.about-stat {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 1.4rem 1.8rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-stat--primary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.about-stat--secondary {
  background-color: #ffffff;
  color: var(--color-text);
  border: 1px solid #e7e8ec;
}

.about-stat__value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-stat__label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ----------------------------------------------------------
   CONTACT
----------------------------------------------------------- */

.contact {
  padding-block: 5.2rem 5.8rem;
  background-color: #ffffff;
}

.contact__inner {
  max-width: 820px;
  text-align: center;
}

.contact__header {
  margin-bottom: 2rem;
}

.contact__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact__title {
  font-size: clamp(2rem, 3.1vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.contact__lead {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Inline phone text */

.contact__phone-inline {
  margin-bottom: 2.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact__phone-inline-link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed #d1d5db;
  padding-bottom: 0.05rem;
}

.contact__phone-inline-link:hover {
  color: var(--color-black);
  border-bottom-color: var(--color-black);
}

/* Card */

.contact__card {
  margin-inline: auto;
  border-radius: 32px;
  background-color: #ffffff;
  box-shadow: 0 40px 110px rgba(15, 23, 42, 0.08);
  padding: 2.4rem 2.6rem 2.5rem;
  text-align: left;
}

/* Form */

.contact-form {
  width: 100%;
}

.contact-form__row {
  display: block;
}

.contact-form__row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.4rem;
}

.contact-form__row + .contact-form__row {
  margin-top: 1.2rem; /* increase or decrease as needed */
}

.contact-form__field {
  display: flex;
  flex-direction: column;
}

.contact-form__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  margin-bottom: 0.55rem;
}

/* Inputs / Textarea */

.contact-form__input,
.contact-form__textarea {
  border-radius: 16px;
  border: none;
  background-color: #f6f7fb;
  padding: 0.85rem 1.05rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  resize: vertical;
}

.contact-form__input {
  height: 52px;
}

.contact-form__textarea {
  min-height: 150px;
  padding-top: 0.95rem;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #b8bcc6;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  box-shadow: 0 0 0 1px #e0e3ec;
  background-color: #f9fafc;
}

/* Actions */

.contact-form__actions {
  margin-top: 2.1rem;
}

.contact-form__submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  height: 54px;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: var(--shadow-pill);
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background-color 0.16s ease-out;
}

.contact-form__submit-icon {
  font-size: 0.9rem;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
  background-color: #111111;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

/* Contact form messages */

.contact-form__message {
  display: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.contact-form__message--visible {
  display: block;
}

.contact-form__message--success {
  background-color: #ecfdf3;
  color: #166534;
}

.contact-form__message--error {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* ----------------------------------------------------------
   CONTACT SOCIAL ICONS (updated: only hovered animates)
----------------------------------------------------------- */

.contact-socials {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.contact-socials a {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid #eef0f4;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-muted);
  text-decoration: none;

  /* lock baseline transform to avoid any row re-raster “jump” */
  transform: translate3d(0, 0, 0);
  will-change: transform;

  /* keep transitions but avoid “global wobble” */
  transition: transform 0.16s ease-out, color 0.16s ease-out, background-color 0.16s ease-out, border-color 0.16s ease-out;
}

/* Only the hovered one animates */
.contact-socials a:hover {
  transform: translate3d(0, -1px, 0);
  color: var(--color-black);
  background-color: #fbfbfd;
  border-color: #e6e8ee;
  z-index: 1; /* float above neighbors so nothing else appears to move */
}

/* Optional: keep shadow change WITHOUT reflow/jitter by applying it via filter */
.contact-socials a:hover {
  filter: drop-shadow(0 26px 70px rgba(15, 23, 42, 0.10));
}

.contact-socials a:active {
  transform: translate3d(0, 0, 0);
}

.contact-socials a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14), 0 18px 55px rgba(15, 23, 42, 0.06);
  color: var(--color-black);
}

.contact-socials__icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

.site-footer {
  background-color: var(--color-section-soft);
  padding-block: 1.8rem 2.2rem;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-accent);
}

/* ----------------------------------------------------------
   COOKIE BANNER
----------------------------------------------------------- */

/* Desktop: wide, centered bar near bottom */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  padding: 0 1.5rem;
  z-index: 40;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 1.4rem 1.1rem;
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.cookie-banner__text {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
}

.cookie-banner__btn {
  flex: 1 0 auto;
  border-radius: 999px;
  border: 0;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background-color 0.16s ease-out,
    color 0.16s ease-out;
}

.cookie-banner__btn--primary {
  background-color: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-pill);
}

.cookie-banner__btn--secondary {
  background-color: #f3f4f6;
  color: #111827;
}

.cookie-banner__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.cookie-banner__btn--secondary:hover {
  background-color: #e5e7eb;
}

.cookie-banner__link {
  font-size: 0.78rem;
  color: var(--color-text-accent);
  text-decoration: underline;
  align-self: flex-start;
}

/* ----------------------------------------------------------
   ANIMATION HOOKS (scroll reveal)
----------------------------------------------------------- */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */

@media (max-width: 960px) {
  /* header is a bit smaller on this range in practice */
  :root {
    --header-height: 70px;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3.8rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 3rem;
  }

  .hero__media {
    justify-self: center;
    width: min(420px, 100%);
  }

  .expertise {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    border-radius: 24px;
  }

  .expertise__inner {
    padding-block: 3.2rem 3.6rem;
  }

  .expertise__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .about__stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__inner {
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  /* header gets shorter here (you reduce header-inner padding) */
  :root {
    --header-height: 56px;
  }

  .header-inner {
    padding-block: 0.9rem;
  }

  /* Mobile nav: full-width area under header, card-style menu */
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;             /* start just below the header */
    z-index: 10;
    display: block;
    padding: 1.2rem 0 1.6rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease-out,
      transform 0.2s ease-out;
    background: transparent;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.8rem 1.8rem 2.4rem;
    margin: 0 auto;
    width: calc(100% - 2.5rem);   /* almost full width */
    max-width: 520px;
    background-color: #ffffff;
    border-radius: 32px;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.25);
  }

  .main-nav__list > li {
    width: 100%;
  }

  .main-nav__list > li + li {
    margin-top: 1.8rem;           /* spacing between menu items */
  }

  .main-nav__list > li > a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 500;
    color: #374151;
  }

  .main-nav__list > li > a:hover {
    color: #111827;
  }

  /* "Kontakt" should NOT be a black pill in mobile */
  .main-nav__cta {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #374151 !important;
    justify-content: flex-start;
  }

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

  .site-header.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Hero alignment + stacked buttons for mobile */
  .hero__content {
    text-align: center;
  }

  .hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.1rem;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.2rem;
  }

  .hero__actions {
    margin-top: 1.6rem;
    justify-content: center;
    flex-direction: column;      /* stack buttons */
    align-items: center;         /* center the 50% width buttons */
  }

  .btn {
    width: 50%;                  /* 50% width on mobile */
  }

  .hero__title-main {
    font-size: 2.6rem;
  }

  .hero__title-sub {
    font-size: 2.1rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  /* Expertise section: narrower content & centered header on mobile */
  .expertise__content {
    width: 75%;                 /* reduce content width by ~25% */
    margin-inline: auto;
  }

  .expertise__header {
    text-align: center;
  }

  /* On mobile, always show "MEHR ERFAHREN" (no hover needed) */
  .expertise-card__link {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* About section: reduce width by ~15% on mobile */
  .about__inner {
    width: 85%;
    margin-inline: auto;
  }

  .about {
    padding-block: 4rem;
  }

  .contact__card {
    padding: 2.1rem 1.8rem 2.2rem;
  }

  .contact-form__row--two {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Cookie banner full-width-ish on mobile */
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0;
  }

  .cookie-banner__inner {
    padding: 1rem 1.1rem 1rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .about__title {
    font-size: 2.2rem;
  }

  .contact__title {
    font-size: 1.9rem;
  }

  .contact__lead {
    font-size: 0.86rem;
  }

  .contact__phone-inline {
    font-size: 0.86rem;
  }

  .site-footer__inner {
    font-size: 0.6rem;
  }
}
