/* Loose Capital GmbH — Visitenkarte */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --card: #f5f2ea;
  --ink: #1c2b24;
  --muted: #5a6b60;
  --green: #1f4a38;
  --brass: #9c7a3c;
  --hairline: rgba(28, 43, 36, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--card);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ── Bühne (index) ─────────────────────────────────────── */

body.stage {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 35%, #245240 0%, #17382b 70%);
  padding: 1.5rem;
}

.scene {
  perspective: 1600px;
  width: min(42rem, 100%);
}

.card {
  position: relative;
  width: 100%;
  aspect-ratio: 856 / 540;
  transform-style: preserve-3d;
  transition: transform 640ms cubic-bezier(0.35, 0, 0.2, 1);
}

.card.flipped {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--card);
  border-radius: 10px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.face.back {
  transform: rotateY(180deg);
}

/* Vorderseite */

.face.front {
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 1.1rem;
}

.brand {
  margin-top: auto;
}

.mark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.9rem, 5.2vw, 2.6rem);
  letter-spacing: 0.005em;
  color: var(--green);
}

.mark .gmbh {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 0.5rem;
  vertical-align: 0.35em;
}

.tag {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.who {
  margin-top: auto;
  padding-bottom: 1.4rem;
  font-size: 0.86rem;
  color: var(--ink);
}

.who .name {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.who a {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.08em;
  transition: border-color 160ms ease, color 160ms ease;
}

.who a:hover,
.who a:focus-visible {
  color: var(--green);
  border-color: var(--brass);
}

.who .sep {
  color: var(--muted);
  margin-inline: 0.45rem;
}

/* Kleingedrucktes (Flip-Auslöser) */

.fine {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 160ms ease;
}

.fine:hover,
.fine:focus-visible {
  color: var(--green);
}

.face.front .fine {
  margin-bottom: 0.2rem;
}

/* Rückseite */

.face.back {
  padding: 1.7rem 2.1rem 0.8rem;
  align-items: stretch;
}

.back-cols {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.8rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  text-align: left;
}

.back h2 {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.55rem;
}

.back h3 {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--green);
  margin-top: 0.7rem;
}

.back p {
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--ink);
  hyphens: auto;
  overflow-wrap: break-word;
}

.back a {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

.back a:hover {
  color: var(--green);
  border-color: var(--brass);
}

.face.back .fine {
  align-self: center;
}

/* Sanfter Auftritt */

@media (prefers-reduced-motion: no-preference) {
  .scene {
    animation: settle 700ms ease both;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}

/* Hochformat auf schmalen Screens — Karte wird „hochkant gehalten" */

@media (max-width: 620px) {
  .scene {
    width: min(24rem, 100%);
  }

  .card {
    aspect-ratio: 540 / 856;
  }

  .back-cols {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (max-height: 620px) and (min-width: 621px) {
  .scene {
    width: min(34rem, 100%);
  }
}

/* ── Unterseite (Impressum, No-JS-Fallback) ────────────── */

.page {
  display: block;
  padding-block: 2.5rem 4rem;
}

.frame {
  width: min(42rem, 100% - 3rem);
  margin-inline: auto;
  overflow-wrap: break-word;
  hyphens: auto;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark strong {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.1rem;
}

.wordmark span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 320;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  color: var(--green);
  margin: 2rem 0 2.2rem;
}

.page h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.15rem;
  color: var(--green);
  margin: 2.2rem 0 0.6rem;
}

.page p {
  max-width: 40em;
  margin-bottom: 0.6rem;
}

.page a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

.page a:hover {
  border-color: var(--brass);
}
