/* SOYSAL Akademie – Coming Soon
   Markenfarben aus dem Logo-Portfolio (Claude Design, Runde 8):
   Navy #0D1C2B, Gold #B9975B, Text #4A5665, Linien #E4E8EE. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d1c2b;
  --gold: #b9975b;
  --text: #4a5665;
  --quiet: #8a93a0;
  --line: #e4e8ee;
  --pill: #f2f4f7;
  --sand: #f5f0e8;
  --sand-hover: #efe7da;
  --mist: #edf1f6;
  --mist-hover: #e3e9f1;
  --radius-tile: 28px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.nw {
  white-space: nowrap;
}

/* Kopfzeile */
.site-header {
  padding-top: 2rem;
}

.site-header .wrap {
  display: flex;
  justify-content: center;
}

.brand {
  display: inline-block;
  border-radius: 4px;
}

.brand img {
  height: 46px;
  width: auto;
}

@media (min-width: 640px) {
  .site-header {
    padding-top: 2.5rem;
  }

  .brand img {
    height: 68px;
  }
}

@media (min-width: 1024px) {
  .brand img {
    height: 84px;
  }
}

main {
  flex: 1;
}

/* Einstieg */
.intro {
  padding-block: clamp(2.75rem, 7vh, 5rem) clamp(2.25rem, 5vh, 3.25rem);
  text-align: center;
}

.pill {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.intro h1 .soft {
  color: var(--quiet);
}

.intro .lede {
  max-width: 31rem;
  margin: 1.4rem auto 0;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Kacheln */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

@media (min-width: 880px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 11rem;
  padding: 1.5rem;
  border-radius: var(--radius-tile);
  color: var(--navy);
  text-decoration: none;
  overflow: hidden;
  transition: background-color .25s ease;
}

@media (min-width: 640px) {
  .tile {
    padding: 1.75rem;
  }
}

@media (min-width: 880px) {
  .tile {
    aspect-ratio: 1;
    min-height: 0;
  }
}

.tile--sand {
  background: var(--sand);
}

.tile--sand:hover {
  background: var(--sand-hover);
}

.tile--mist {
  background: var(--mist);
}

.tile--mist:hover {
  background: var(--mist-hover);
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tile-label {
  color: var(--text);
  font-size: .9375rem;
  font-weight: 500;
}

.tile-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transition: background-color .25s ease, color .25s ease;
}

.tile-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform .25s ease;
}

.tile:hover .tile-arrow {
  background: var(--navy);
  color: #fff;
}

.tile:hover .tile-arrow svg {
  transform: translate(2px, -2px);
}

.tile-value {
  display: block;
  font-size: clamp(1.4rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
}

/* Fotokachel */
.tile--photo {
  order: -1;
  min-height: 17rem;
  padding: 0;
  background: var(--mist);
}

@media (min-width: 880px) {
  .tile--photo {
    order: 0;
  }
}

.tile--photo picture,
.tile--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile--photo img {
  object-fit: cover;
  object-position: 50% 30%;
}

/* Fußzeile */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Rechtstexte */
.legal {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 7vh, 4.5rem) 5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease;
}

.back-link:hover {
  background: var(--line);
  color: var(--navy);
}

.legal h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.legal h2 {
  margin: 2.75rem 0 .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.legal h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.7;
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: .3rem;
}

.legal a {
  color: var(--navy);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal .meta {
  margin-top: 3rem;
  color: var(--quiet);
  font-size: .875rem;
}

/* Fehlerseite */
.button {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease;
}

.button:hover {
  background: #152c40;
}

/* Bewegung */
.fade {
  animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) both;
}

.fade-2 { animation-delay: .06s; }
.fade-3 { animation-delay: .12s; }
.fade-4 { animation-delay: .2s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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