/*
Theme Name: Atem – Atemübungstherapie
Theme URI: https://example.com/atem
Author: Labbel Feldmann
Description: Elegantes, helles One-Page-Theme (Creme & Gold) für Atemübungstherapie mit persönlicher Begleitung. Hero mit Porträt, Wirkung, Ablauf, Über mich und Kontakt – alle Texte, Bilder und Kontaktdaten im Customizer anpassbar.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atem
Tags: one-page, light, elegant, custom-colors, custom-logo, translation-ready
*/

/* ---------------------------------------------------------
   Design Tokens – Creme & Gold (hell & freundlich)
--------------------------------------------------------- */
:root {
  --ink: #faf6ee;
  --ink-soft: #f2ecdf;
  --background: #faf6ee;
  --foreground: #3a332a;
  --heading: #3a332a;
  --card: #f2ecdf;
  --muted-foreground: #6f6553;
  --gold: #a07e35;
  --gold-soft: #7c6226;
  --border: rgba(120, 100, 60, 0.25);
  --radius: 16px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(160, 126, 53, 0.3); color: var(--foreground); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.display-serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); margin: 0;
}
.text-gold { color: var(--gold); }
.muted { color: var(--muted-foreground); }
.gold-rule {
  height: 1px; width: 6rem; margin: 3rem auto 0;
  background: linear-gradient(to right, transparent, rgba(160, 126, 53, 0.7), transparent);
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 246, 238, 0.8);
  backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
@media (min-width: 640px) {
  .site-header .wrap { flex-direction: row; gap: 0; }
}
.brand { font-family: var(--font-display); font-size: 1.25rem; }
.site-nav ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.25rem; margin: 0; padding: 0;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .site-nav ul { gap: 1.75rem; font-size: 0.8rem; }
}
.site-nav a { transition: color 0.2s ease; }
.site-nav a:hover { color: var(--foreground); }
.site-nav li:last-child a { color: var(--gold); }
.site-nav li:last-child a:hover { color: var(--gold-soft); }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.6; }
.hero__media::after,
.hero__media::before { content: ""; position: absolute; inset: 0; }
.hero__media::before { background: linear-gradient(to right, var(--ink), rgba(250, 246, 238, 0.85), transparent); }
.hero__media::after { background: linear-gradient(to top, var(--ink), transparent, rgba(250, 246, 238, 0.4)); }
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(160, 126, 53, 0.14), transparent 70%);
}
.hero__inner { position: relative; width: 100%; padding-top: 8rem; padding-bottom: 6rem; }
.hero__content { max-width: 36rem; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); margin: 1.5rem 0 0; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { margin: 1.75rem 0 0; max-width: 28rem; color: var(--muted-foreground); }
.hero__actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.5rem; flex-wrap: wrap; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(160, 126, 53, 0.55); background: rgba(160, 126, 53, 0.08);
  color: var(--gold-soft); border-radius: 999px;
  padding: 0.75rem 1.75rem; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.25s ease;
}
.btn-gold:hover { background: var(--gold); color: var(--ink); }
.btn-plain {
  font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-foreground); transition: color 0.2s ease;
}
.btn-plain:hover { color: var(--foreground); }

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */
.section { position: relative; padding: 7rem 0; scroll-margin-top: 6rem; }
.section h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 1.5rem 0 0; }
.section p.intro { margin-top: 1.5rem; color: var(--muted-foreground); max-width: 42rem; }

.cards {
  display: grid; gap: 1px; margin-top: 4rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--border);
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: rgba(250, 246, 238, 0.9); padding: 2rem; transition: background 0.25s ease; }
.card:hover { background: var(--card); }
.card__num { font-family: var(--font-display); font-size: 1.875rem; color: rgba(160, 126, 53, 0.8); }
.card h3 { margin: 1.25rem 0 0; font-size: 1.125rem; }
.card p { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--muted-foreground); }

/* Ablauf */
.section--ablauf { overflow: hidden; }
.section--ablauf .bg { position: absolute; inset: 0; }
.section--ablauf .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.section--ablauf .bg::after { content: ""; position: absolute; inset: 0; background: rgba(250, 246, 238, 0.65); }
.ablauf-grid { position: relative; display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .ablauf-grid { grid-template-columns: 1.1fr 1fr; } }
.steps {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border);
}
.steps li { display: flex; gap: 1.25rem; background: rgba(250, 246, 238, 0.9); padding: 1.75rem; }
.steps .num { font-family: var(--font-display); font-size: 1.5rem; color: rgba(160, 126, 53, 0.8); }
.steps h3 { margin: 0; font-size: 1rem; }
.steps p { margin: 0.375rem 0 0; font-size: 0.9rem; color: var(--muted-foreground); }

/* Über mich */
.ueber-mich-grid { position: relative; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 768px) { .ueber-mich-grid { grid-template-columns: 1fr 1.15fr; gap: 5rem; } }
.ueber-mich-media { position: relative; max-width: 24rem; margin: 0 auto; width: 100%; }
.ueber-mich-media img {
  position: relative; z-index: 2; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center;
  border-radius: 35% 65% 60% 40% / 50% 40% 60% 50%;
  box-shadow: 0 24px 60px -28px rgba(160, 126, 53, 0.3);
}
.portrait-frame {
  position: absolute; inset: -1.25rem; z-index: 1;
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  border: 1px solid rgba(160, 126, 53, 0.3);
  background: linear-gradient(to bottom right, rgba(160, 126, 53, 0.1), transparent);
  animation: atem-spin 18s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;

}
.portrait-initial {
  position: absolute; right: -1rem; bottom: -1rem; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 50%;
  border: 1px solid rgba(160, 126, 53, 0.4); background: rgba(250, 246, 238, 0.85);
  backdrop-filter: blur(8px); font-family: var(--font-display); font-size: 1.5rem; color: var(--gold);
}
.ueber-mich-content .intro { margin-top: 2rem; color: var(--muted-foreground); }
.ueber-mich-content .intro p + p { margin-top: 1.25rem; }
.ueber-mich-content .gold-rule { margin: 2.5rem 0 0; }
.ueber-mich-content .quote { margin-top: 1.5rem; font-size: 0.95rem; font-style: italic; color: var(--muted-foreground); }

/* Kontakt */
.section--kontakt .wrap { max-width: 48rem; text-align: center; }
.contact-grid { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius); padding: 1.75rem; text-align: left; transition: all 0.25s ease;
}
.contact-card:hover { border-color: rgba(160, 126, 53, 0.5); background: var(--card); }
.contact-card .value { display: block; margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.5rem; }
.contact-card .hint { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-note { margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.site-footer .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; justify-content: space-between;
}
@media (min-width: 640px) { .site-footer .wrap { flex-direction: row; } }
.site-footer .name { font-family: var(--font-display); font-size: 1.125rem; }
.site-footer .tag {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground);
}

/* ---------------------------------------------------------
   Animation
--------------------------------------------------------- */
.fade-up { animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  html { scroll-behavior: auto; }
}

/* WordPress core classes */
.alignwide, .alignfull { margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption, .bypostauthor, .sticky { display: block; }

/* Rotierender Rahmen um das "Über mich"-Bild */
@keyframes atem-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-frame { animation: none; }
}
