/*
Theme Name: JOOSN Partner
Theme URI: https://joosn.de
Author: JOOSN
Description: Partner portal theme for the JOOSN partner WordPress site.
Version: 0.1.2
Text Domain: joosn-partner
*/

:root {
  --jp-bg: #0d1722;
  --jp-bg-soft: #122735;
  --jp-panel: #fff8ef;
  --jp-panel-2: #173241;
  --jp-line: rgba(255, 248, 239, 0.16);
  --jp-text: #fff8ef;
  --jp-muted: #c3d0d7;
  --jp-cyan: #7debd0;
  --jp-red: #ff9b8f;
  --jp-yellow: #f6d988;
  --jp-ink: #142332;
  --jp-card-text: #405060;
  --jp-radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, #0d1722 0%, #102432 46%, #0d1722 100%);
  color: var(--jp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  position: relative;
}

a { color: var(--jp-cyan); }

body::before {
  content: "";
  position: fixed;
  inset: 72px 0 auto auto;
  width: min(58vw, 760px);
  height: min(58vw, 620px);
  background:
    linear-gradient(90deg, var(--jp-bg), rgba(13, 23, 34, 0.58) 28%, rgba(13, 23, 34, 0) 68%),
    url("assets/images/joosn-partner-hero-friendly.webp") center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.jp-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.jp-header {
  border-bottom: 1px solid var(--jp-line);
  background: rgba(13, 23, 34, 0.92);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.jp-header-inner,
.jp-main,
.jp-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.jp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--jp-text);
  font-weight: 800;
  letter-spacing: 0;
}

.jp-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, var(--jp-cyan), #ffe2b8);
}

.jp-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.jp-nav a {
  color: var(--jp-muted);
  text-decoration: none;
}

.jp-nav a:hover { color: var(--jp-text); }

.jp-main {
  flex: 1;
  padding: 52px 0 64px;
}

.jp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
}

.jp-kicker {
  color: var(--jp-yellow);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jp-hero h1,
.jp-page h1 {
  margin: 12px 0 16px;
  max-width: 820px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.jp-lead {
  max-width: 720px;
  color: var(--jp-muted);
  font-size: 20px;
}

.jp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.jp-button,
.joosn-button,
button.joosn-button,
input[type="submit"].joosn-button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 46px;
  color: var(--jp-ink);
  background: var(--jp-cyan);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(125, 235, 208, 0.18);
}

.jp-button.secondary,
.joosn-button.secondary {
  background: rgba(255, 248, 239, 0.08);
  color: var(--jp-text);
  border: 1px solid var(--jp-line);
  box-shadow: none;
}

.jp-hero-visual {
  position: relative;
  min-height: 480px;
}

.jp-hero-visual picture,
.jp-hero-visual img {
  display: block;
}

.jp-hero-visual img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 239, 0.24);
  border-radius: var(--jp-radius);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.jp-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--jp-radius);
  background:
    linear-gradient(90deg, rgba(13, 23, 34, 0.18), rgba(13, 23, 34, 0) 48%),
    linear-gradient(180deg, rgba(13, 23, 34, 0) 58%, rgba(13, 23, 34, 0.58));
  pointer-events: none;
}

.jp-snapshot {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100% - 36px));
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(12px);
  padding: 22px;
  z-index: 2;
  color: var(--jp-ink);
}

.jp-snapshot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 35, 50, 0.12);
}

.jp-snapshot-row:last-child { border-bottom: 0; }

.jp-snapshot strong { font-size: 24px; color: #0b907e; }

.jp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.jp-card,
.joosn-card {
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: rgba(255, 248, 239, 0.96);
  color: var(--jp-ink);
  padding: 20px;
  overflow: hidden;
}

.jp-card {
  padding: 0;
  background: #fff8ef;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.jp-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--jp-line);
}

.jp-card h2,
.jp-card p {
  padding-inline: 20px;
}

.jp-card h2 {
  margin-bottom: 8px;
}

.jp-card p {
  padding-bottom: 20px;
}

.jp-card h2,
.jp-card h3,
.joosn-card h2,
.joosn-card h3 {
  margin-top: 0;
}

.jp-card p,
.joosn-card p {
  color: var(--jp-card-text);
}

.jp-footer {
  border-top: 1px solid var(--jp-line);
  color: var(--jp-muted);
  padding: 28px 0;
}

.jp-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .jp-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .jp-nav { flex-wrap: wrap; }

  .jp-hero,
  .jp-grid {
    grid-template-columns: 1fr;
  }

  body::before {
    width: 100vw;
    height: 360px;
    opacity: 0.08;
  }

  .jp-hero-visual {
    min-height: auto;
  }

  .jp-hero-visual img {
    min-height: 280px;
  }

  .jp-snapshot {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}
