/* Cengiz Darian Hanci – Website & rechtliche Seiten */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("./assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("./assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #13203a;
  --ink-soft: #3c4a63;
  --muted: #637087;
  --rule: #dde2ea;
  --hanse: #c8102e;
  --hanse-ink: #a50d26;
  --band: #13203a;
  --band-ink: #eef1f6;
  --band-muted: #a9b4c7;
  --band-rule: #2b3a57;
  --icon-shadow: 0 1px 2px rgb(19 32 58 / 0.12), 0 6px 16px -6px rgb(19 32 58 / 0.25);

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1522;
    --surface: #152033;
    --ink: #eaeef5;
    --ink-soft: #c3ccdb;
    --muted: #8e9ab0;
    --rule: #26334a;
    --hanse: #ff5a6e;
    --hanse-ink: #ff7a8a;
    --band: #152033;
    --band-ink: #eaeef5;
    --band-muted: #9aa6bb;
    --band-rule: #2c3b55;
    --icon-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 18px -8px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0e1522;
  --surface: #152033;
  --ink: #eaeef5;
  --ink-soft: #c3ccdb;
  --muted: #8e9ab0;
  --rule: #26334a;
  --hanse: #ff5a6e;
  --hanse-ink: #ff7a8a;
  --band: #152033;
  --band-ink: #eaeef5;
  --band-muted: #9aa6bb;
  --band-rule: #2c3b55;
  --icon-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 18px -8px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--hanse);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus {
  left: 8px;
}

/* ---------- Kopfzeile ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  padding-left: 12px;
  border-left: 4px solid var(--hanse);
}

.wordmark-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.wordmark-trade {
  font-size: 0.8125rem;
  color: var(--muted);
}

.mainnav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.9375rem;
}

.mainnav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.mainnav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--hanse);
}

/* ---------- Einstieg ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 9vw, 112px);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 13ch;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--hanse);
  color: #fff;
}

.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--hanse);
}

.textlink:hover {
  color: var(--hanse-ink);
}

/* Die Icon-Wand: alle Apps wie auf einem Homescreen */
.iconwall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 20px);
  width: min(100%, 440px);
  justify-self: end;
}

.iconwall img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow: var(--icon-shadow);
  background: var(--surface);
  animation: settle 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 28ms + 120ms);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .iconwall img {
    animation: none;
  }
}

/* ---------- Apps ---------- */

.apps {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2,
.company h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 36em;
}

.platform-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.platform-head h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.platform-head p {
  color: var(--ink-soft);
}

.platform-head a {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--hanse);
}

.appgroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 72px);
}

.appgroup h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.applist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.applist li {
  border-bottom: 1px solid var(--rule);
}

.applist a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding-block: 12px;
  text-decoration: none;
}

.applist img {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 22.5%;
  box-shadow: var(--icon-shadow);
}

.app-name {
  font-weight: 600;
  line-height: 1.3;
}

.app-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.4;
}

.applist a:hover .app-name {
  color: var(--hanse-ink);
}

.apps-more {
  margin-top: 40px;
  color: var(--ink-soft);
}

.apps-more a {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--hanse);
}

/* ---------- Unternehmen ---------- */

.company {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(56px, 8vw, 104px);
}

.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.company-text > p {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--band-muted);
}

.principles {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.principles h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.principles p {
  color: var(--band-muted);
  max-width: 34em;
}

.facts {
  margin: 0;
  padding: 8px 28px;
  border: 1px solid var(--band-rule);
  border-top: 4px solid var(--hanse);
  border-radius: 4px;
}

.facts > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--band-rule);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--band-muted);
  font-size: 0.9375rem;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

/* ---------- Kontakt ---------- */

.contact {
  padding-block: clamp(56px, 8vw, 104px);
}

.contact-intro {
  margin-top: 16px;
  max-width: 36em;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.contact-grid h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-big {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-big:hover {
  color: var(--hanse-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

address {
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ---------- Fußzeile ---------- */

.sitefoot {
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
}

.sitefoot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}

.sitefoot nav {
  display: flex;
  gap: 24px;
}

.sitefoot a {
  color: var(--ink-soft);
  text-decoration: none;
}

.sitefoot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Rechtliche Seiten ---------- */

.legal-wrap {
  width: min(760px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.legal-wrap h1 {
  font-size: clamp(2.125rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.legal-wrap h2 {
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
  max-width: 68ch;
}

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

.legal-wrap ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.legal-wrap li + li {
  margin-top: 6px;
}

.legal-wrap li::marker {
  color: var(--hanse);
}

.legal-wrap strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-wrap a {
  text-underline-offset: 3px;
  text-decoration-color: var(--hanse);
}

.legal-wrap a:hover {
  color: var(--hanse-ink);
}

.legal-meta {
  padding: 8px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--hanse);
  border-radius: 4px;
}

.legal-meta p {
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
  max-width: none;
}

.legal-meta p + p {
  margin-top: 0;
}

.legal-meta p:last-child {
  border-bottom: 0;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 880px) {
  .hero,
  .company-inner,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    max-width: 16ch;
  }
  .iconwall {
    justify-self: start;
  }
  .appgroups {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-block: 16px;
  }
  .iconwall {
    gap: 8px;
  }
  .facts {
    padding: 4px 18px;
  }
  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.mainnav .lang {
  padding-left: clamp(16px, 3vw, 32px);
  border-left: 1px solid var(--rule);
}
