/*
Theme Name: Sörin Atelier
Theme URI: https://soerinbergmann.de/
Author: Meister-Fo
Author URI: https://meister-fo.de/
Description: Ein ruhiges, musikalisches WordPress-Theme für Sörin Bergmann – Chorleitung, Stimmbildung und Musikwerkstatt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: soerin-atelier
Tags: custom-logo, custom-menu, featured-images, full-width-template, e-commerce, accessibility-ready
*/

:root {
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --plum: #4b155d;
  --plum-deep: #2f1837;
  --violet: #71427b;
  --gold: #c59435;
  --gold-soft: #e7d5ae;
  --coral: #d8694f;
  --sage: #8d9b83;
  --ink: #332d33;
  --muted: #706770;
  --line: rgba(75, 21, 93, 0.14);
  --shadow: 0 24px 70px rgba(47, 24, 55, 0.12);
  --radius: 1.4rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--coral); }

button,
input,
textarea,
select { font: inherit; }

button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--plum);
  border-radius: 999px;
  color: #fff;
  background: var(--plum);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

button:hover,
.button:hover,
.wp-element-button:hover {
  color: var(--plum);
  background: transparent;
  transform: translateY(-2px);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.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;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--plum);
}

.wrap {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.narrow { width: min(760px, calc(100% - 3rem)); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--plum);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: var(--plum-deep);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(3.2rem, 6vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p { margin: 0 0 1.25rem; }

.lead {
  color: var(--plum-deep);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.48;
}

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 310px) 1fr auto;
  align-items: center;
  min-height: 7rem;
  gap: 2rem;
}

.site-branding img { width: min(310px, 100%); }

.site-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  text-decoration: none;
}

.main-navigation ul,
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-block;
  color: var(--plum-deep);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-navigation a::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 0.2rem;
  background: var(--gold);
  content: "";
  transition: width 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { width: 100%; }

.header-shop {
  min-height: auto;
  padding: 0.65rem 1.05rem;
  color: var(--plum);
  background: transparent;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 3rem;
  min-height: 3rem;
  padding: 0;
  color: var(--plum);
  background: transparent;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 1.3rem;
  height: 1px;
  margin: 0.24rem auto;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero::after {
  position: absolute;
  inset: auto -8rem -11rem auto;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(197, 148, 53, 0.35);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: min(720px, calc(100vh - 7rem));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 6vw, 6rem) clamp(7rem, 11vw, 10rem) max(1.5rem, calc((100vw - 1180px) / 2));
}

.hero h1 { max-width: 10ch; }

.hero-subtitle {
  max-width: 31rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-image {
  position: relative;
  min-height: 34rem;
  background: var(--plum-deep);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.94;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 24, 55, 0.18), transparent 45%);
  content: "";
}

.sound-line {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  height: 2.3rem;
  margin-top: 2rem;
}

.sound-line i {
  display: block;
  width: 2px;
  height: var(--h, 20%);
  background: var(--gold);
  opacity: 0.7;
}

.doors {
  position: relative;
  z-index: 4;
  margin-top: -5.5rem;
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.door {
  position: relative;
  min-height: 15.5rem;
  padding: 2rem 1.7rem 1.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.97);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.door:hover {
  color: var(--ink);
  transform: translateY(-0.5rem);
  box-shadow: 0 30px 80px rgba(47, 24, 55, 0.18);
}

.door-number {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 2.4rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--plum);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.door:nth-child(2) .door-number { background: var(--coral); }
.door:nth-child(3) .door-number { background: var(--violet); }
.door:nth-child(4) .door-number { background: var(--gold); }

.door h2 { font-size: clamp(1.35rem, 2vw, 1.72rem); }

.door-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.4rem;
  color: var(--gold);
  font-size: 1.6rem;
}

.intro-band {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.78);
}

.intro-band-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.intro-band .eyebrow,
.intro-band h2 { color: #fff; }

.intro-portrait {
  position: relative;
  margin: 0;
}

.intro-portrait::before {
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 2rem 2rem;
  content: "";
}

.intro-portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 2rem 2rem;
  object-fit: cover;
}

.link-arrow {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.link-arrow::after { color: var(--gold); content: "→"; }

.quote-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.quote-section blockquote {
  max-width: 880px;
  margin: 0 auto;
  color: var(--plum-deep);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.22;
}

.quote-section blockquote::before {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--gold);
  content: "♪";
  font-size: 1.7rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  min-height: 38rem;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 9vw, 8rem) clamp(2rem, 6vw, 6rem) clamp(5rem, 9vw, 8rem) max(1.5rem, calc((100vw - 1180px) / 2));
}

.page-hero h1 { font-size: clamp(3rem, 6vw, 5.7rem); }

.page-hero-media { min-height: 34rem; }

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.content-section.tint { background: var(--cream); }

.content-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.content-grid.reverse { grid-template-columns: 1.2fr 0.8fr; }

.section-label {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.section-label span {
  display: inline-block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
}

.offer-list {
  display: grid;
  gap: 0.85rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.offer-list a,
.offer-list .offer-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}

.offer-list a:hover {
  border-color: var(--gold);
  transform: translateX(0.25rem);
}

.offer-list .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
}

.offer-list .meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.photo-break {
  position: relative;
  min-height: min(70vh, 720px);
  color: #fff;
  background: var(--plum-deep);
}

.photo-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.photo-break::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 24, 55, 0.84), rgba(47, 24, 55, 0.08));
  content: "";
}

.photo-break-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  min-height: min(70vh, 720px);
  padding-block: 5rem;
}

.photo-break h2 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
}

.references {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.references li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.references li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "◆";
  font-size: 0.65rem;
}

.editor-content > * { max-width: 760px; }
.editor-content > .alignwide { max-width: 1180px; }
.editor-content > .alignfull { max-width: none; }

.site-footer {
  padding: 5rem 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--plum-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4rem;
}

.footer-title {
  max-width: 10ch;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.footer-nav { align-self: center; }
.footer-menu { flex-wrap: wrap; }

.footer-menu a {
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.social-links a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.social-links a:hover { border-color: var(--gold); background: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
}

.footer-bottom a { color: inherit; }

.not-found { padding: 9rem 0; text-align: center; }

.woocommerce .products li.product,
.woocommerce-page .products li.product {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: minmax(170px, 270px) 1fr auto; min-height: 6rem; }
  .menu-toggle { display: block; }
  .header-shop { display: none; }
  .main-navigation {
    position: fixed;
    inset: 6rem 0 0;
    display: none;
    padding: 2rem 1.5rem;
    background: var(--paper);
  }
  .menu-open .main-navigation { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; }
  .main-navigation a { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .hero-grid,
  .page-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-copy { padding-left: 1.5rem; }
  .hero-image { min-height: 50vw; }
  .doors { margin-top: -3rem; }
  .door-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-band-grid,
  .content-grid,
  .content-grid.reverse { grid-template-columns: 1fr; }
  .intro-portrait { max-width: 32rem; }
  .section-label { position: static; }
}

@media (max-width: 640px) {
  .wrap,
  .narrow { width: min(100% - 2rem, 1180px); }
  .site-branding img { max-width: 220px; }
  .hero-copy { padding: 4.5rem 1rem 6rem; }
  .hero-image { min-height: 72vw; }
  .door-grid { grid-template-columns: 1fr; }
  .door { min-height: 12.5rem; }
  .door-number { margin-bottom: 1.4rem; }
  .page-hero-grid { display: flex; flex-direction: column-reverse; }
  .page-hero-copy { padding: 4rem 1rem; }
  .page-hero-media { min-height: 70vw; }
  .references,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
