/*
Theme Name: Sophia Venus Fresh
Theme URI: https://www.sophia-venus.de/
Author: OpenAI Codex
Description: Elegantes WordPress-Theme fuer Sophia Venus mit grossem Titelbild und einheitlichem Layout fuer Beitraege.
Version: 1.0.17-fresh
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sophia-venus
*/

:root {
  --sv-ivory: #f7f0e8;
  --sv-sand: #e9d7c1;
  --sv-gold: #d5b086;
  --sv-rose: #c38979;
  --sv-mocha: #8a6a59;
  --sv-charcoal: #2b2724;
  --sv-shadow: 0 24px 70px rgba(82, 58, 38, 0.14);
  --sv-radius-xl: 32px;
  --sv-radius-lg: 22px;
  --sv-radius-md: 16px;
  --sv-content-width: min(1120px, calc(100vw - 3rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--sv-charcoal);
  background:
    radial-gradient(circle at top left, rgba(245, 213, 185, 0.85), transparent 34%),
    radial-gradient(circle at bottom right, rgba(213, 176, 134, 0.32), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, var(--sv-ivory) 48%, #f4ede6 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sv-site {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.sv-site::before,
.sv-site::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}

.sv-site::before {
  top: -6rem;
  left: -8rem;
  background: rgba(255, 220, 184, 0.72);
}

.sv-site::after {
  right: -8rem;
  bottom: -10rem;
  background: rgba(199, 145, 123, 0.2);
}

.sv-container {
  width: var(--sv-content-width);
  margin: 0 auto;
}

.sv-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 245, 0.78);
  border-bottom: 1px solid rgba(138, 106, 89, 0.12);
}

.sv-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 88px;
}

.sv-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.sv-branding img {
  width: 154px;
  max-width: 32vw;
  height: auto;
}

.sv-branding__title {
  display: none;
}

.sv-nav {
  justify-self: center;
}

.sv-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sv-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sv-nav a:hover,
.sv-nav .current-menu-item > a,
.sv-nav .current_page_item > a {
  background: rgba(213, 176, 134, 0.18);
  color: #6c4336;
  transform: translateY(-1px);
}

.sv-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.sv-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, var(--sv-charcoal), var(--sv-mocha));
  box-shadow: 0 12px 26px rgba(43, 39, 36, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.sv-social__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(43, 39, 36, 0.24);
}

.sv-social__link--placeholder {
  opacity: 0.65;
  border: 1px dashed rgba(255, 255, 255, 0.5);
}

.sv-social__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sv-main {
  padding: 1.5rem 0 4rem;
}

.sv-hero {
  position: relative;
  width: var(--sv-content-width);
  margin: 0 auto 2rem;
  min-height: min(78vh, 880px);
  border-radius: clamp(24px, 3vw, 42px);
  overflow: hidden;
  box-shadow: var(--sv-shadow);
  isolation: isolate;
}

.sv-hero--plain {
  min-height: auto;
  background: rgba(255, 252, 248, 0.82);
}

.sv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(44, 34, 28, 0.16) 0%, rgba(44, 34, 28, 0.04) 30%, rgba(255, 248, 243, 0.34) 65%, rgba(255, 248, 243, 0.74) 100%),
    linear-gradient(180deg, rgba(255, 246, 237, 0.03) 0%, rgba(255, 246, 237, 0.24) 100%);
}

.sv-hero--plain::after {
  display: none;
}

.sv-hero__image {
  position: relative;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.sv-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: end;
  min-height: inherit;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.sv-hero__panel {
  width: min(470px, 100%);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: rgba(255, 250, 246, 0.76);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 44px rgba(113, 83, 64, 0.16);
}

.sv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #7f5d4b;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sv-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.sv-hero h1,
.sv-page-hero h1,
.entry-title,
.sv-post-card__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.sv-hero h1 {
  font-size: clamp(3.3rem, 6vw, 6rem);
}

.sv-hero p {
  max-width: 34ch;
  margin: 1rem 0 0;
  font-size: 1.02rem;
  color: rgba(43, 39, 36, 0.84);
}

.sv-section {
  width: var(--sv-content-width);
  margin: 0 auto;
}

.sv-section--tight-top {
  margin-top: 0.5rem;
}

.sv-section + .sv-section {
  margin-top: 2rem;
}

.sv-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--sv-radius-xl);
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(138, 106, 89, 0.1);
  box-shadow: var(--sv-shadow);
}

.sv-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
}

.sv-home-story {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
}

.sv-home-content {
  max-width: 100%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.sv-home-intro {
  margin: 0 0 0.9rem;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  color: #523a30;
}

.sv-home-quote {
  margin: 0 0 1.4rem;
  font-size: 1.02rem;
  color: #6f574a;
}

.sv-home-story__main h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.sv-home-story__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sv-intro__lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: #523a30;
}

.sv-stat {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sv-stat__item {
  padding: 1rem 1.1rem;
  border-radius: var(--sv-radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.98), rgba(247, 236, 226, 0.9));
}

.sv-stat__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #87614f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sv-stat__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.sv-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.sv-section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
}

.sv-section-heading p {
  margin: 0;
  max-width: 42ch;
  color: #6f574a;
}

.sv-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.sv-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--sv-radius-xl);
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid rgba(138, 106, 89, 0.08);
  box-shadow: var(--sv-shadow);
}

.sv-post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(233, 215, 193, 0.95), rgba(243, 233, 223, 1));
}

.sv-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-post-card__body {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem 1.2rem 1.35rem;
}

.sv-post-card__meta,
.sv-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #87614f;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sv-post-card__title {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.sv-post-card__excerpt {
  color: #5e4a40;
}

.sv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7d4d3c;
  font-weight: 700;
}

.sv-link::after {
  content: "\2192";
  transition: transform 160ms ease;
}

.sv-link:hover::after {
  transform: translateX(3px);
}

.sv-page-hero {
  width: var(--sv-content-width);
  margin: 0 auto 1.8rem;
}

.sv-page-hero__inner {
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--sv-radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 252, 248, 0.96), rgba(247, 237, 228, 0.92)),
    radial-gradient(circle at right top, rgba(213, 176, 134, 0.18), transparent 30%);
  border: 1px solid rgba(138, 106, 89, 0.12);
  box-shadow: var(--sv-shadow);
}

.sv-page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.sv-page-hero p {
  margin: 0.9rem 0 0;
  max-width: 56ch;
  color: #644d40;
}

.sv-single-layout {
  width: var(--sv-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
}

.sv-post {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--sv-radius-xl);
  background: rgba(255, 252, 248, 0.92);
  box-shadow: var(--sv-shadow);
}

.sv-post__thumbnail {
  margin-bottom: 1.4rem;
  overflow: hidden;
  border-radius: var(--sv-radius-lg);
}

.sv-post__thumbnail img {
  width: 100%;
  height: auto;
}

.entry-title {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content li {
  font-size: 1.06rem;
  color: #43362f;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
  color: #312720;
}

.entry-content h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.entry-content a {
  color: #91543d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.sv-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sv-sidebar__card {
  padding: 1.2rem;
  border-radius: var(--sv-radius-lg);
  background: rgba(255, 250, 246, 0.92);
  border: 1px solid rgba(138, 106, 89, 0.1);
  box-shadow: var(--sv-shadow);
}

.sv-sidebar__card h2,
.sv-sidebar__card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.sv-sidebar__card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.sv-sidebar__card li + li {
  margin-top: 0.55rem;
}

.sv-video-gallery {
  margin-top: 1.8rem;
}

.sv-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.sv-video-card {
  overflow: hidden;
  border-radius: var(--sv-radius-lg);
  background: rgba(255, 250, 246, 0.94);
  border: 1px solid rgba(138, 106, 89, 0.12);
  box-shadow: var(--sv-shadow);
}

.sv-video-card__embed {
  aspect-ratio: 16 / 9;
  background: #e7d7c9;
}

.sv-video-card__embed iframe,
.sv-video-card__embed video,
.sv-video-card__embed .wp-video {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.sv-video-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  text-align: center;
  color: #6a5447;
  background: linear-gradient(145deg, rgba(247, 236, 226, 0.94), rgba(232, 216, 201, 0.9));
}

.sv-video-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.sv-video-card__title {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.08;
}

.sv-video-card__text {
  margin: 0;
  color: #5c483e;
}

.sv-video-note {
  margin-top: 1.8rem;
  padding: 1.2rem;
  border-radius: var(--sv-radius-lg);
  background: rgba(255, 248, 241, 0.92);
  border: 1px dashed rgba(138, 106, 89, 0.25);
}

.sv-video-note p {
  margin: 0 0 0.65rem;
}

.sv-video-note__example {
  margin: 0;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  color: #5f4c43;
}

.sv-video-shortcode-note {
  padding: 1rem 1.1rem;
  border-radius: var(--sv-radius-md);
  background: rgba(255, 248, 241, 0.92);
  border: 1px dashed rgba(138, 106, 89, 0.3);
  color: #6c5446;
}

.sv-footer {
  padding: 1.8rem 0 2.6rem;
}

.sv-footer__inner {
  width: var(--sv-content-width);
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid rgba(138, 106, 89, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #6d5548;
  font-size: 0.92rem;
}

.sv-footer__brand,
.sv-footer__copyright {
  font-weight: 700;
  white-space: nowrap;
}

.sv-footer__nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
}

.sv-footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-footer-menu li {
  display: inline-flex;
  align-items: center;
}

.sv-footer-menu li + li::before {
  content: "|";
  margin: 0 0.7rem;
  color: #8a6a59;
}

.sv-footer-menu a {
  color: #6d5548;
  text-decoration: none;
}

.sv-footer-menu a:hover {
  color: #7d4d3c;
}

.sv-empty {
  padding: 2rem;
  border-radius: var(--sv-radius-xl);
  text-align: center;
  background: rgba(255, 252, 248, 0.88);
  box-shadow: var(--sv-shadow);
}

.sv-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.sv-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.84);
  border: 1px solid rgba(138, 106, 89, 0.12);
}

.sv-pagination .current,
.sv-pagination .page-numbers:hover {
  background: rgba(213, 176, 134, 0.22);
}

@media (max-width: 1040px) {
  .sv-header__bar,
  .sv-intro,
  .sv-home-story,
  .sv-single-layout,
  .sv-post-grid,
  .sv-video-grid {
    grid-template-columns: 1fr;
  }

  .sv-header__bar {
    padding: 1rem 0;
  }

  .sv-nav {
    justify-self: start;
  }

  .sv-social {
    justify-content: flex-start;
  }

  .sv-hero {
    min-height: 70vh;
  }

  .sv-hero__content {
    justify-items: stretch;
  }
}

@media (max-width: 720px) {
  :root {
    --sv-content-width: min(100vw - 1.25rem, 100%);
  }

  .sv-header {
    position: relative;
  }

  .sv-header__bar {
    gap: 1rem;
  }

  .sv-branding img {
    width: 128px;
  }

  .sv-hero {
    min-height: 62vh;
    margin-top: 0.25rem;
  }

  .sv-hero__panel {
    padding: 1.2rem;
  }

  .sv-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .sv-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .sv-footer__inner {
    justify-content: center;
    border-radius: 28px;
  }

  .sv-footer__brand,
  .sv-footer__copyright,
  .sv-footer__nav {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
