/* iPhone Duo Apps – an aurarum-Portal angelehnt */

:root {
  color-scheme: light dark;
  --page-bg: #fafafa;
  --page-glow: radial-gradient(900px 420px at 12% -8%, rgba(90, 140, 200, 0.1), transparent 55%),
    radial-gradient(700px 380px at 92% 0%, rgba(40, 40, 48, 0.06), transparent 50%);
  --text: #111111;
  --text-muted: #5c5c5c;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --header-border: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius-lg: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent: #1d1d1f;
  --hero-overlay: linear-gradient(
    to bottom,
    rgba(8, 8, 10, 0.55) 0%,
    rgba(8, 8, 10, 0.72) 55%,
    rgba(8, 8, 10, 0.88) 100%
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0c0c0e;
    --page-glow: radial-gradient(900px 420px at 12% -8%, rgba(90, 140, 200, 0.14), transparent 55%),
      radial-gradient(700px 380px at 92% 0%, rgba(255, 255, 255, 0.04), transparent 50%);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --surface: #161618;
    --surface-2: #1c1c1e;
    --border: rgba(255, 255, 255, 0.1);
    --header-border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
    --accent: #f5f5f7;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--page-bg);
  background-image: var(--page-glow);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--header-border);
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
}

.site-header__lang {
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}

.lang-menu {
  position: relative;
  overflow: visible;
}

.lang-menu__trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.2rem 0.15rem 0.15rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-menu__trigger::-webkit-details-marker {
  display: none;
}

.lang-menu__trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.lang-menu[open] > .lang-menu__trigger::after {
  transform: rotate(180deg);
}

.lang-menu__trigger:hover {
  color: var(--text);
}

.lang-menu__trigger:hover::after {
  border-top-color: var(--text);
}

.lang-menu__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-menu__current {
  display: inline-flex;
  line-height: 0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.lang-menu__current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .lang-menu__current::after {
    background: rgba(255, 255, 255, 0.28);
  }
}

.lang-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 80;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: max-content;
  max-width: min(100vw - 2rem, 20rem);
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.lang-menu__link {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: max-content;
  box-sizing: border-box;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  white-space: nowrap;
}

.lang-menu__label {
  flex-shrink: 0;
}

.lang-menu__link .lang-flag {
  flex-shrink: 0;
}

.lang-menu__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.lang-menu__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.site-header__brand:hover {
  opacity: 0.88;
}

.site-header__logo {
  height: 1.75rem;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.site-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* Full-bleed hero */
.duo-hero {
  position: relative;
  min-height: min(92dvh, 52rem);
  display: flex;
  align-items: flex-end;
  color: #f5f5f7;
  overflow: hidden;
  isolation: isolate;
}

.duo-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.duo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.duo-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}

.duo-hero__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  animation: duo-fade-up 0.9s ease-out both;
}

.duo-hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.duo-hero__headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 28rem;
}

.duo-hero__lead {
  margin: 0 0 1.35rem;
  color: rgba(245, 245, 247, 0.78);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 32rem;
}

.duo-hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-radius: 980px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: default;
  animation: duo-soft-pulse 2.8s ease-in-out infinite;
}

.duo-hero__disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(245, 245, 247, 0.55);
}

@keyframes duo-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes duo-soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 245, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 245, 247, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .duo-hero__inner,
  .duo-hero__cta,
  .gallery__item {
    animation: none !important;
  }
}

/* Categories */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 28rem;
}

.section__intro {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.55;
}

.categories {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .categories {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.category__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }

  .gallery__item:first-child {
    grid-row: 1 / span 2;
  }
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  animation: duo-fade-up 0.8s ease-out both;
}

.gallery__item:nth-child(2) {
  animation-delay: 0.08s;
}

.gallery__item:nth-child(3) {
  animation-delay: 0.16s;
}

.gallery__item:nth-child(4) {
  animation-delay: 0.24s;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item:hover img {
    transform: none;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--header-border);
}

.site-footer__legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
}

.site-footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__legal a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer__legal a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.site-footer__sep {
  color: var(--text-muted);
  user-select: none;
}

.site-footer__credit {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Legal */
.legal-page {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
  max-width: 40rem;
}

.legal-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.legal-page h2 {
  margin: 1.65rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.legal-page h2:first-of-type {
  margin-top: 1.35rem;
}

.legal-page p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

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

.legal-page p:last-child {
  margin-bottom: 0;
}
