/*
Theme Name: MeinPflegePlaner
Theme URI: https://example.com
Author: MeinPflegePlaner
Author URI: https://example.com
Description: Ruhiges, modernes App-Landingpage-Theme für MeinPflegePlaner.
Version: 1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nova-apple
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root{
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-muted: #86868b;
  --color-accent: #1b6e54;
  --color-accent-hover: #17593f;
  --color-border: rgba(0,0,0,0.08);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --container: 1120px;
  --header-h: 48px;
}

/* =========================================================
   SCROLL-PROGRESS-LEISTE
   ========================================================= */
.scroll-progress{
  position: fixed;
  top:0; left:0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 200;
  transition: width 0.05s linear;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   HEADER — sticky, translucent, blurred (das Signature-Element)
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  height: var(--header-h);
  display:flex;
  align-items:center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:100%;
}
.site-branding a{
  font-family: var(--font-display);
  font-weight:600;
  font-size:15px;
  letter-spacing:-0.01em;
}
.primary-menu{
  display:flex;
  gap: 32px;
}
.primary-menu a{
  font-size:12px;
  font-weight:400;
  color: var(--color-text);
  opacity:0.85;
  transition: opacity 0.2s ease;
}
.primary-menu a:hover{ opacity:1; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{
  display:block;
  width:20px;
  height:2px;
  background: var(--color-text);
  margin:4px 0;
}

@media (max-width: 780px){
  .primary-menu{
    position:fixed;
    top: var(--header-h);
    left:0; right:0;
    background: rgba(255,255,255,0.98);
    flex-direction:column;
    align-items:center;
    padding: 24px 0;
    gap:20px;
    transform: translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition: all 0.25s ease;
    border-bottom:1px solid var(--color-border);
  }
  .primary-menu.is-open{
    transform: translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .nav-toggle{ display:block; }
}

/* =========================================================
   HERO
   ========================================================= */
@keyframes heroRise{
  from{ opacity:0; transform: translateY(28px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero{
  text-align:center;
  padding: 140px 24px 80px;
  overflow:hidden;
}
.hero .eyebrow{
  display:inline-block;
  font-size:14px;
  font-weight:600;
  color: var(--color-accent);
  margin-bottom:14px;
  opacity:0;
  animation: heroRise 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.hero h1{
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing:-0.03em;
  font-size: clamp(38px, 6vw, 68px);
  line-height:1.05;
  max-width: 820px;
  margin: 0 auto 18px;
  opacity:0;
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.22s forwards;
}
.hero p.lead{
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight:400;
  opacity:0;
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.34s forwards;
}
.hero-actions{
  display:flex;
  gap:16px;
  justify-content:center;
  opacity:0;
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.46s forwards;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 24px;
  border-radius: 980px;
  font-size:15px;
  font-weight:500;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.2s ease;
  cursor:pointer;
  border: 1px solid transparent;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0) scale(0.97); }
.btn-primary{
  background: var(--color-accent);
  color:#fff;
}
.btn-primary:hover{ background: var(--color-accent-hover); }
.btn-secondary{
  color: var(--color-accent);
}
.btn-secondary:hover{ text-decoration: underline; }

/* App-Store Button (eigenes, nicht-offizielles Badge-Design) */
.btn-store{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: #1d1d1f;
  color:#fff;
  padding: 10px 22px 10px 18px;
  border-radius: var(--radius-sm);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.2s ease;
}
.btn-store:hover{
  background:#000;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4);
}
.btn-store:active{ transform: translateY(0) scale(0.97); }
.btn-store .store-icon{
  width:20px;
  height:20px;
  flex-shrink:0;
  border-radius:5px;
  background: linear-gradient(160deg, #4a4a4c, #1d1d1f);
}
.btn-store .store-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.1;
  font-size:17px;
  font-weight:600;
}
.btn-store .store-text small{
  font-size:11px;
  font-weight:400;
  opacity:0.85;
}

/* =========================================================
   FEATURE / SERVICE SECTION
   ========================================================= */
.section{
  padding: 96px 0;
}
.section-alt{
  background: var(--color-bg-alt);
}
.section-head{
  text-align:center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom:14px;
}
.section-head p{
  color: var(--color-text-muted);
  font-size:18px;
}

.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-grid-4{
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px){
  .feature-grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px){
  .feature-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .feature-grid-4{ grid-template-columns: 1fr; }
}
.feature-card{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--color-border);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,0.25);
}
.feature-card .icon{
  width:44px; height:44px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  font-size:20px;
}
.feature-card h3{
  font-family: var(--font-display);
  font-weight:600;
  font-size:19px;
  margin-bottom:10px;
}
.feature-card p{
  color: var(--color-text-muted);
  font-size:15px;
}

/* =========================================================
   DEVICE-FRAME — großer, sauberer Screenshot ohne Fake-Bezel
   (Screenshots enthalten bereits Statusleiste/Dynamic Island)
   ========================================================= */
.device-frame{
  position:relative;
  border-radius: 40px;
  overflow:hidden;
  box-shadow: 0 50px 100px -35px rgba(0,0,0,0.4), 0 8px 24px -8px rgba(0,0,0,0.15);
  line-height:0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.device-frame:hover{
  transform: translateY(-6px);
}
.device-frame img{
  display:block;
  width:100%;
}
.device-wrap{
  position:relative;
  isolation:isolate;
}
.device-wrap::before{
  content:"";
  position:absolute;
  inset: -10% -30%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 72%);
  filter: blur(40px);
  z-index:-1;
  opacity:0.7;
  pointer-events:none;
}
.device-frame-hero{
  width: min(360px, 82vw);
  margin: 72px auto 0;
  opacity:0;
  animation: heroRise 1.1s cubic-bezier(0.16,1,0.3,1) 0.58s forwards;
}
.device-frame-story{
  width: min(340px, 78vw);
}

/* =========================================================
   STORY-SEKTIONEN — großes Bild + kurzer Text, alternierend
   (wie apple.com/iphone)
   ========================================================= */
.story{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 40px;
  padding: 140px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.story-alt{ background: var(--color-bg-alt); max-width:none; }
.story-alt .story-copy,
.story-alt .device-frame{ max-width: 1120px; margin-left:auto; margin-right:auto; }
.story-copy{ max-width: 560px; }
.story-index{
  display:inline-block;
  font-family: var(--font-display);
  font-weight:600;
  font-size:13px;
  letter-spacing:0.08em;
  color: var(--color-accent);
  margin-bottom:12px;
}
.story-copy h2{
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom:14px;
}
.story-copy p{
  color: var(--color-text-muted);
  font-size:18px;
  line-height:1.5;
}

/* =========================================================
   KONTINUIERLICHES SCROLL-REVEAL
   Wird per JS (rAF) direkt an opacity/transform/filter
   gekoppelt — bewegt sich live mit dem Scrollen mit.
   ========================================================= */
.reveal{
  opacity:0;
  transform: translateY(50px) scale(0.96);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; filter:none !important; }
}

/* =========================================================
   TESTIMONIAL / QUOTE
   ========================================================= */
.quote-section{
  text-align:center;
  padding: 100px 24px;
}
.quote-section blockquote{
  font-family: var(--font-display);
  font-weight:600;
  letter-spacing:-0.01em;
  font-size: clamp(24px, 3.6vw, 34px);
  max-width: 780px;
  margin: 0 auto 20px;
  line-height:1.3;
}
.quote-section cite{
  font-style:normal;
  color: var(--color-text-muted);
  font-size:15px;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band{
  text-align:center;
  padding: 90px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin: 0 24px;
}
.cta-band h2{
  font-family: var(--font-display);
  font-weight:700;
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing:-0.02em;
  margin-bottom:14px;
}
.cta-band p{
  color: var(--color-text-muted);
  margin-bottom:28px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  padding: 48px 24px 32px;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-col h4{
  font-size:13px;
  font-weight:600;
  margin-bottom:12px;
}
.footer-col ul li{
  margin-bottom:8px;
}
.footer-col a{
  font-size:13px;
  color: var(--color-text-muted);
}
.footer-col a:hover{ color: var(--color-text); }
.footer-bottom{
  font-size:12px;
  color: var(--color-text-muted);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  border-top:1px solid var(--color-border);
  padding-top:20px;
}

/* =========================================================
   GENERIC PAGE CONTENT (page.php)
   ========================================================= */
.page-content{
  padding: 100px 0;
  max-width: 760px;
  margin:0 auto;
}
.page-content h1{
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom:24px;
}
.page-content .entry-content p{
  margin-bottom:20px;
  color: var(--color-text);
}
