/* Solemont Commerce – Gestaltung
   Schwarz/Weiß, dezente blaue Akzente, nur System-Schriften. */

:root {
  --bg: #ffffff;
  --text: #0b0b0c;
  --muted: #5d5d63;
  --line: #e4e4e8;
  --card: #ffffff;
  --card-hover: #f6f7f9;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.10);
  --topo: rgba(0, 0, 0, 0.09);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", "New York", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2a2a2d;
    --card: #111113;
    --card-hover: #18181b;
    --accent: #2997ff;
    --accent-soft: rgba(41, 151, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.7);
    --topo: rgba(255, 255, 255, 0.10);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Kopfbereich ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 64px 0 36px;
  isolation: isolate;
}

.topo {
  position: absolute;
  inset: -40px -50vw 0;
  z-index: -1;
  color: var(--topo);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  overflow: hidden;
}

.topo svg {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1400px;
  height: 640px;
  margin-left: -700px;
  animation: drift 40s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-30px, 0, 0) scale(1); }
  to   { transform: translate3d(30px, -14px, 0) scale(1.06); }
}

.avatar {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
}

.avatar .photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.avatar .badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  padding: 4px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2rem, 8vw, 2.6rem); }

.slogan {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro {
  margin: 20px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Link-Karten ---------- */

.links {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card .icon svg { width: 22px; height: 22px; }

.card .txt { flex: 1; min-width: 0; }

.card .title {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}

.card .sub {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

.card .arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: translate 0.35s var(--ease), color 0.35s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    translate: 0 -3px;
    box-shadow: var(--shadow-hover);
    background: var(--card-hover);
  }
  .card:hover .icon {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .card:hover .arrow { color: var(--accent); translate: 3px -3px; }
}

.card:active { translate: 0 0; }

/* ---------- Fotos ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 48px 0 0;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  background: var(--card-hover);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--ease);
}

@media (hover: hover) {
  .gallery figure:hover img { scale: 1.06; }
}

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

.contact {
  margin: 48px 0 0;
  padding: 28px 22px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact h2 { font-size: 1.6rem; }

.mail {
  display: inline-block;
  margin: 12px 0 18px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  word-break: break-word;
}

.mail:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: scale 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}

.btn:active { scale: 0.97; }

.btn.done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Fußbereich ---------- */

.footer {
  margin: 56px 0 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
}

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

.footer p { margin: 6px 0 0; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.page { padding: 40px 0 0; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.back:hover { color: var(--accent); }

.page h1 { margin: 18px 0 24px; }

.page h2 {
  font-size: 1.3rem;
  margin: 34px 0 10px;
}

.page p, .page li { color: var(--muted); }

.page strong { color: var(--text); font-weight: 600; }

.page address { font-style: normal; color: var(--text); }

.page ul { padding-left: 1.2em; }

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

/* ---------- Animationen ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Kopfbereich blendet beim Laden von unten ein */
  .rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: var(--d, 0s);
  }

  @keyframes rise {
    from { opacity: 0; translate: 0 18px; }
    to   { opacity: 1; translate: 0 0; }
  }

  /* Zoom beim Scrollen (Browser, die das können; sonst einfach sichtbar) */
  @supports (animation-timeline: view()) {
    .zoom {
      animation: zoom-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    .zoom-strong {
      animation: zoom-in-strong linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }

  @keyframes zoom-in {
    from { opacity: 0; scale: 0.88; }
    to   { opacity: 1; scale: 1; }
  }

  @keyframes zoom-in-strong {
    from { opacity: 0.15; scale: 0.78; filter: grayscale(1); }
    to   { opacity: 1; scale: 1; filter: grayscale(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .topo svg { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
