/* =========================================================
   g.g.com!
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. LOCAL WEBFONTS
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   2. VARIABLES
   ========================================================= */

:root {

  --ink: #202a31;
  --muted: #667078;

  --orange: #f47b12;

  --cream: #f7f4ee;
  --paper: #fcfbf8;

  --line: #ddd9d1;

  --navy: #12242f;

  --max: 1180px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;

}


/* =========================================================
   3. RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;

  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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


/* =========================================================
   4. GENERAL CONTAINER
   ========================================================= */

.container {
  width: min(
    calc(100% - 48px),
    var(--max)
  );

  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   5. HEADER
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(252, 251, 248, 0.96);

  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(10px);
}

.nav {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
   6. LOGO
   ========================================================= */

.logo {
  flex-shrink: 0;

  color: #4b4f51;

  font-family: var(--sans);
  font-size: 34px;
  font-weight: 800;

  letter-spacing: -1.8px;
  line-height: 1;
}

.logo .dot,
.logo .bang {
  color: var(--orange);

  font-family: var(--serif);
  font-weight: 600;
}

.logo .bang {
  font-size: 1.15em;
}


/* =========================================================
   7. NAVIGATION
   ========================================================= */

.navlinks {
  display: flex;
  align-items: center;

  gap: 25px;

  font-size: 14px;
  font-weight: 500;
}

.navlinks > a {
  position: relative;

  padding: 7px 0;

  border-bottom: 2px solid transparent;

  white-space: nowrap;
}

.navlinks > a:hover {
  border-bottom-color: var(--orange);
}


/* =========================================================
   8. LANGUAGE SWITCH
   ========================================================= */

.lang {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-left: 8px;
}

.lang a {
  padding: 7px 0;

  color: var(--muted);

  font-size: 12px;
  font-weight: 500;

  border-bottom: 2px solid transparent;
}

.lang a:hover {
  color: var(--ink);
}

.lang a.active {
  color: var(--ink);

  font-weight: 700;

  border-bottom-color: var(--orange);
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 9px;

  border: 0;
  background: transparent;

  cursor: pointer;

  flex-shrink: 0;
}

.menu-toggle span {
  display: block;

  width: 24px;
  height: 2px;

  margin: 5px auto;

  background: var(--ink);

  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}


/* ---------------------------------------------------------
   HAMBURGER → X
   --------------------------------------------------------- */

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------------------------------------------------------
   MOBILE MENU
   --------------------------------------------------------- */

.mobile-menu {
  display: none;

  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;

  background: var(--paper);

  border-bottom: 1px solid var(--line);

  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;

  padding:
    25px
    max(24px, calc((100vw - var(--max)) / 2))
    30px;
}

.mobile-menu a {
  display: block;

  padding: 12px 0;

  color: var(--ink);

  font-size: 18px;
  font-weight: 500;

  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a:hover {
  color: var(--orange);
}


/* ---------------------------------------------------------
   MOBILE LANGUAGE SWITCHER
   --------------------------------------------------------- */

.mobile-language-switcher {
  display: none;
}

@media (max-width: 900px) {

  .mobile-language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 14px;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
  }

  .mobile-language-switcher a {
    padding: 7px 0;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  .mobile-language-switcher a:hover {
    color: var(--ink);
  }

  .mobile-language-switcher a.active {
    color: var(--ink);
    font-weight: 700;
    border-bottom-color: var(--orange);
  }
}


/* ---------------------------------------------------------
   OPEN STATE
   --------------------------------------------------------- */

.mobile-menu.is-open {
  display: block;
}

body.menu-open {
  overflow: hidden;
}


/* =========================================================
   9. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
  margin-top: 0;

  font-family: var(--serif);
  font-weight: 500;

  line-height: 0.96;

  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 32px;

  font-size: clamp(
    54px,
    5.6vw,
    84px
  );
}

h1 span {
  color: var(--orange);
}

h2 {
  font-size: clamp(
    48px,
    5vw,
    72px
  );
}

h3 {
  line-height: 1.08;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 590px;

  color: #39434a;

  font-size: 20px;
  line-height: 1.55;
}

.meta {
  max-width: 600px;

  margin-top: 25px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.6;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.eyebrow,
.kicker {
  color: var(--orange);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.18em;

  line-height: 1.4;

  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
}


/* =========================================================
   10. HERO
   ========================================================= */

.hero {
  height: 720px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: stretch;
}


/* LEFT SIDE */

.hero-copy {
  min-width: 0;

  display: flex;
  align-items: center;

  padding-top: 55px;
  padding-right: 60px;
  padding-bottom: 55px;
  padding-left:
    max(
      24px,
      calc((100vw - var(--max)) / 2)
    );
}


/* RIGHT SIDE */

.hero-visual {
  min-width: 0;

  width: 100%;
  height: 720px;

  overflow: hidden;

  background: #eee9e1;
}

.hero-visual img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: 68% center;
}


/* HERO BUTTON */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 25px;
  padding: 13px 20px;

  background: var(--orange);
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.cta:hover {
  background: #d96809;

  transform: translateY(-1px);
}

.cta span {
  font-size: 18px;
  line-height: 1;
}


/* =========================================================
   11. GENERAL SECTIONS
   ========================================================= */

section {
  position: relative;
  z-index: 1;

  padding-top: 110px;
  padding-bottom: 110px;
}


/* =========================================================
   12. SECTION HEAD
   ========================================================= */

.section-head {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  gap: 70px;

  margin-bottom: 58px;
}

.section-intro {
  max-width: 720px;

  color: #4a555c;

  font-size: 20px;
  line-height: 1.55;
}


/* =========================================================
   13. FOUR CARDS
   ========================================================= */

.grid4 {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 1px;

  background: var(--line);

  border: 1px solid var(--line);
}

.card {
  min-width: 0;
  min-height: 270px;

  padding: 30px 26px;

  background: var(--paper);
}

.number {
  color: var(--orange);

  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.card h3 {
  margin-top: 18px;
  margin-bottom: 15px;

  font-size: 29px;
}

.card p {
  margin-bottom: 0;

  color: #5c666c;

  font-size: 15px;
  line-height: 1.65;
}


/* =========================================================
   14. DARK SECTIONS
   ========================================================= */

.dark {
  background: var(--navy);
  color: #f4f1ea;
}

.dark .section-intro,
.dark .copy {
  color: #c8d0d4;
}


/* =========================================================
   15. SPLIT LAYOUT
   ========================================================= */

.split,
.about,
.contact-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 80px;

  align-items: center;
}


/* =========================================================
   16. EXPERIENCE
   ========================================================= */

.experience {
  background: var(--cream);
}

.timeline {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.timeline article {
  min-width: 0;

  padding-top: 20px;

  border-top: 2px solid var(--orange);
}

.timeline strong {
  display: block;

  color: var(--ink);

  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;

  line-height: 1.1;
}

.timeline h3 {
  margin-top: 9px;
  margin-bottom: 13px;

  font-size: 28px;
}

.timeline p {
  margin-bottom: 0;

  color: #5c666c;

  font-size: 15px;
  line-height: 1.65;
}


/* =========================================================
   17. PRACTICE / CASES
   ========================================================= */

.cases {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.case {
  min-width: 0;
  min-height: 350px;

  display: flex;
  flex-direction: column;

  padding: 32px;

  background: #ffffff;

  border: 1px solid var(--line);
}

.case .tag {
  color: var(--orange);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.case h3 {
  margin-top: 20px;
  margin-bottom: 20px;

  font-size: 34px;
}

.case p {
  margin-top: auto;
  margin-bottom: 0;

  color: #5c666c;

  font-size: 15px;
  line-height: 1.65;
}


/* =========================================================
   18. ABOUT
   ========================================================= */

.about-mark {
  min-height: 500px;

  display: flex;
  align-items: flex-end;

  padding: 35px;

  background: #20313b;
}

.about-mark .big {
  color: #f1ece3;

  font-family: var(--serif);
  font-size: 100px;

  line-height: 0.8;
}


/* =========================================================
   19. CONTACT
   ========================================================= */

.contact {
  background: var(--orange);

  color: #ffffff;
}

.contact .kicker {
  color: #ffffff;
}

.contact h2 {
  color: #ffffff;
}

.contact .section-intro {
  color: #fff3e8;
}

.contact-details {
  font-size: 18px;
  line-height: 1.6;
}

.contact-details div {
  margin-top: 9px;
  margin-bottom: 9px;
}

.contact-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   20. FOOTER
   ========================================================= */

.footer {
  padding-top: 35px;
  padding-bottom: 35px;

  background: #182229;

  color: #b9c1c5;

  font-size: 13px;
}

.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.footer a:hover {
  color: #ffffff;
}


/* =========================================================
   21. TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .navlinks {
    gap: 18px;
  }

  .hero-copy {
    padding-right: 40px;
  }

  h1 {
    font-size: clamp(
      50px,
      5.4vw,
      72px
    );
  }

}


/* =========================================================
   22. TABLET / MOBILE BREAKPOINT
   ========================================================= */

@media (max-width: 900px) {

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

  .nav {
    min-height: 72px;
  }

  .navlinks {
    gap: 14px;
  }

  .navlinks > a {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navlinks {
    display: none;
  }


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

  /*
   * Wichtig:
   * Der Hero wird auf Mobilgeräten zu einer normalen
   * vertikalen Struktur. Dadurch kann das Bild niemals
   * hinter dem folgenden Abschnitt liegen.
   */

  .hero {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;

    display: block;

    padding-top: 60px;
    padding-right: 24px;
    padding-bottom: 60px;
    padding-left: 24px;
  }

  .hero-copy > div {
    width: 100%;
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    width: 100%;
    height: 520px;
    min-height: 520px;

    flex: none;

    overflow: hidden;
  }

  .hero-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: 68% center;
  }


  /* -------------------------------------------------------
     GENERAL SECTIONS
     ------------------------------------------------------- */

  section {
    padding-top: 85px;
    padding-bottom: 85px;
  }


  /* -------------------------------------------------------
     SECTION HEAD
     ------------------------------------------------------- */

  .section-head {
    grid-template-columns: 1fr;

    gap: 25px;

    margin-bottom: 45px;
  }


  /* -------------------------------------------------------
     CARDS
     ------------------------------------------------------- */

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


  /* -------------------------------------------------------
     SPLIT LAYOUTS
     ------------------------------------------------------- */

  .split,
  .about,
  .contact-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }


  /* -------------------------------------------------------
     EXPERIENCE / CASES
     ------------------------------------------------------- */

  .timeline,
  .cases {
    grid-template-columns: 1fr;
  }


  /* -------------------------------------------------------
     ABOUT
     ------------------------------------------------------- */

  .about-mark {
    min-height: 400px;
  }

}


/* =========================================================
   23. SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

  /* -------------------------------------------------------
     CONTAINER
     ------------------------------------------------------- */

  .container {
    width: calc(100% - 32px);
  }


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

  .nav {
    min-height: 68px;
  }

  .logo {
    font-size: 29px;
  }

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

  .hero-copy {
    padding-top: 55px;
    padding-right: 16px;
    padding-bottom: 55px;
    padding-left: 16px;
  }

  .eyebrow {
    margin-bottom: 18px;

    font-size: 11px;
    letter-spacing: 0.15em;
  }

  h1 {
    margin-bottom: 26px;

    font-size: 52px;

    line-height: 0.94;
  }

  .lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .meta {
    font-size: 11px;

    letter-spacing: 0.07em;
  }

  .hero-visual {
    width: 100%;
    height: 390px;
    min-height: 390px;
  }

  .hero-visual img {
    object-position: 70% center;
  }


  /* -------------------------------------------------------
     SECTIONS
     ------------------------------------------------------- */

  section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  h2 {
    font-size: 48px;
  }

  .section-intro {
    font-size: 18px;
  }


  /* -------------------------------------------------------
     FOUR CARDS
     ------------------------------------------------------- */

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

  .card {
    min-height: 0;

    padding: 28px 24px;
  }


  /* -------------------------------------------------------
     TIMELINE
     ------------------------------------------------------- */

  .timeline article {
    padding-top: 18px;
  }


  /* -------------------------------------------------------
     CASES
     ------------------------------------------------------- */

  .case {
    min-height: 0;

    padding: 28px 24px;
  }

  .case h3 {
    font-size: 31px;
  }


  /* -------------------------------------------------------
     ABOUT
     ------------------------------------------------------- */

  .about-mark {
    min-height: 300px;

    padding: 25px;
  }

  .about-mark .big {
    font-size: 75px;
  }


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

  .contact-details {
    font-size: 16px;
  }


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

  .footer .row {
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
  }

}

/* =========================================================
   24. LEGAL PAGES
   ========================================================= */

.legal-page {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0 110px;
}

.legal-page h1 {
  margin-bottom: 55px;
}

.legal-page h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 38px;
}

.legal-page p {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 18px;
}

.legal-page .kicker {
  margin-bottom: 10px;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .legal-page {
    padding: 40px 0 45px;
  }

  .legal-page h2 {
    margin-top: 26px;
    margin-bottom: 10px;
  }
}

@media (max-width: 560px) {
  .legal-page {
    width: calc(100% - 32px);
    padding: 35px 0 45px;
  }

  .legal-page h1 {
    margin-bottom: 28px;
  }

  .legal-page h2 {
    margin-top: 24px;
    margin-bottom: 9px;
    font-size: 34px;
  }
}

/* =========================================================
   25. LEGAL SECTION SPACING
   ========================================================= */

.legal-page .legal-block {
  padding-top: 0;
  padding-bottom: 0;
}

.legal-page .legal-block h2 {
  margin-top: 14px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .legal-page .legal-block h2 {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 560px) {
  .legal-page .legal-block h2 {
    margin-top: 12px;
    margin-bottom: 9px;
  }
}

/* =========================================================
   24. HERO / FIRST SECTION SPACING
   ========================================================= */

#approach {
  padding-top: 200px;
}

@media (max-width: 900px) {
  #approach {
    padding-top: 90px;
  }
}
