/*
Theme Name: The Ivy Star
Theme URI: https://theivystar.com
Author: The Ivy Star
Description: Ein warmes, redaktionelles WordPress-Theme für The Ivy Star – mit Kente-Band, Magazin-Startseite und dezenten Animationen.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: the-ivy-star
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
  --ivy-green: #11531d;
  --ivy-green-dark: #0a3f18;
  --ivy-cream: #fbf8ef;
  --ivy-soft: #f0f3e9;
  --ivy-line: #d8ddd0;
  --ivy-terracotta: #b95f3b;
  --ivy-gold: #d49a21;
  --ivy-blue: #245c78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivy-cream); color: var(--ivy-green); font-family: Inter, Arial, sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.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; }
.ivy-wrap { width: min(90%, 1500px); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,239,.96); border-bottom: 1px solid var(--ivy-line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { font: 500 35px/1 'Cormorant Garamond', Georgia, serif; letter-spacing: -.02em; white-space: nowrap; }
.site-branding img { display: block; max-height: 52px; width: auto; }
.primary-menu { display: flex; gap: clamp(16px, 2vw, 32px); align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 500; }
.primary-menu a { position: relative; display: block; padding: 29px 0; }
.primary-menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 21px; height: 1px; background: var(--ivy-green); transition: right .25s ease; }
.primary-menu a:hover::after, .primary-menu .current-menu-item a::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 7px auto; background: var(--ivy-green); }

.ivy-hero { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(38px, 6vw, 96px); align-items: center; padding: clamp(54px, 7vw, 106px) 0 30px; }
.ivy-hero-copy { max-width: 680px; }
.ivy-kicker { margin: 0 0 24px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, .entry-title { margin-top: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; letter-spacing: -.025em; }
.ivy-hero h1 { margin-bottom: 0; font-size: clamp(54px, 6.2vw, 96px); line-height: .98; }
.ivy-hero p { max-width: 660px; margin: 26px 0 30px; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; }
.ivy-hero-image { width: 100%; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; box-shadow: 0 20px 55px rgba(17,83,29,.10); }
.ivy-button { display: inline-flex; gap: 22px; align-items: center; padding: 14px 24px; border-radius: 999px; background: var(--ivy-green); color: #fff; font-size: 14px; font-weight: 600; transition: transform .22s, background .22s; }
.ivy-button:hover { transform: translateY(-2px); background: var(--ivy-green-dark); }
.ivy-kente { width: 100%; height: clamp(56px, 5.2vw, 82px); background: url('assets/images/kente-pattern.webp') center 38%/cover no-repeat; border-block: 1px solid rgba(0,0,0,.08); }

.ivy-section { padding: clamp(68px, 7vw, 110px) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-heading h2, .split-section h2, .about-strip h2 { margin-bottom: 0; font-size: clamp(45px, 5vw, 72px); line-height: 1; }
.ivy-text-link { font-size: 14px; font-weight: 500; white-space: nowrap; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.article-card { display: grid; grid-template-columns: 43% 1fr; min-height: 270px; border: 1px solid var(--ivy-line); background: rgba(255,255,255,.24); transition: transform .3s, border-color .3s, box-shadow .3s; }
.article-card:hover { transform: translateY(-5px); border-color: #98ad91; box-shadow: 0 16px 38px rgba(17,83,29,.08); }
.article-card img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 29px 25px 24px; }
.card-number { margin-bottom: 25px; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.article-card h3 { margin-bottom: 12px; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.02; }
.card-meta { margin: 0 0 8px; font-size: 14px; }
.card-category { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.card-link { margin-top: auto; padding-top: 24px; font-size: 13px; font-weight: 500; }

.split-section { border-top: 1px solid var(--ivy-line); }
.split-inner { display: grid; grid-template-columns: minmax(180px,.7fr) 1.7fr; gap: 60px; padding: clamp(68px,7vw,106px) 0; }
.split-section p { max-width: 760px; margin: 24px 0 0; font-size: clamp(17px,1.5vw,22px); line-height: 1.58; }
.split-section.perspectives { background: var(--ivy-soft); }
.about-strip { border-top: 1px solid var(--ivy-line); }
.about-inner { display: grid; grid-template-columns: .55fr 1.1fr 1.1fr auto; gap: 36px; align-items: center; padding: clamp(68px,7vw,108px) 0; }
.about-inner .ivy-kicker, .about-inner p { margin: 0; }
.about-inner p { font-size: 16px; line-height: 1.58; }

.site-footer { padding: 56px 0 34px; background: var(--ivy-green); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.footer-brand { font: 500 38px/1 'Cormorant Garamond', Georgia, serif; }
.footer-about { max-width: 390px; margin: 14px 0 0; line-height: 1.55; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 32px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.copyright { grid-column: 1/-1; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); font-size: 12px; }

.content-area { min-height: 65vh; padding: clamp(60px,7vw,100px) 0; }
.entry-header, .entry-content, .archive-header { width: min(100%, 850px); margin-inline: auto; }
.entry-title, .archive-title { margin-bottom: 22px; font-size: clamp(46px,6vw,78px); line-height: 1; }
.entry-meta { margin-bottom: 32px; font-size: 13px; }
.entry-content { color: #173d20; font-size: 18px; line-height: 1.75; }
.entry-content a { text-decoration: underline; }
.entry-content h2 { margin-top: 2em; font-size: 42px; line-height: 1.1; }
.post-thumbnail { width: min(100%, 1100px); margin: 0 auto 45px; }
.post-thumbnail img { width: 100%; max-height: 620px; object-fit: cover; }
.archive-list { width: min(100%,1000px); margin: 45px auto 0; display: grid; gap: 28px; }
.archive-card { padding-bottom: 28px; border-bottom: 1px solid var(--ivy-line); }
.archive-card h2 { margin: 0 0 8px; font-size: 38px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .primary-navigation { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 12px 5% 24px; background: var(--ivy-cream); border-bottom: 1px solid var(--ivy-line); box-shadow: 0 18px 28px rgba(0,0,0,.06); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-menu a { padding: 12px 0; }
  .primary-menu a::after { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 32% 1fr; }
  .about-inner { grid-template-columns: 1fr 1.4fr; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 760px) {
  .header-inner { min-height: 66px; }
  .site-branding { font-size: 30px; }
  .primary-navigation { top: 66px; }
  .ivy-hero { grid-template-columns: 1fr; padding-top: 42px; }
  .ivy-hero-image { order: -1; }
  .ivy-hero h1 { font-size: clamp(50px,14vw,72px); }
  .ivy-kente { height: 48px; }
  .section-heading { align-items: start; flex-direction: column; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { min-height: 260px; max-height: 340px; }
  .split-inner, .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-heading h2, .split-section h2, .about-strip h2 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-menu { justify-content: flex-start; }
}

/* Version 1.2: redaktionelle Magazin-Startseite */
.brand-lockup { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-lockup .custom-logo-link { display: block; line-height: 0; }
.brand-lockup .custom-logo { display: block; width: auto; max-width: 44px; height: 44px; object-fit: contain; }
.brand-lockup .site-branding { font-size: 29px; }
.mag-kente { width: 100%; height: 48px; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.08); }
.mag-kente img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.mag-section { padding: clamp(50px, 5.5vw, 78px) 0; }
.mag-section + .mag-section { border-top: 1px solid var(--ivy-line); }
.mag-title-row { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 30px; }
.mag-title-row h1 { margin: 0; font-size: clamp(44px, 4.3vw, 64px); line-height: 1; }
.mag-title-row h2 { margin: 0; font-size: clamp(40px, 3.7vw, 56px); line-height: 1; }
.mag-latest-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
.mag-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--ivy-line); background: rgba(255,255,255,.25); transition: transform .25s ease, box-shadow .25s ease; }
.mag-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(17,83,29,.08); }
.mag-card img { width: 100%; height: 190px; object-fit: cover; }
.mag-card.mag-lead img { height: 280px; }
.mag-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.mag-card-number { margin-bottom: 14px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mag-card h3 { margin: 0; font-size: clamp(25px, 2.1vw, 34px); line-height: 1.04; }
.mag-card:not(.mag-lead) h3 { font-size: clamp(23px, 1.8vw, 29px); }
.mag-card-category { margin-top: 14px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mag-card-link { margin-top: auto; padding-top: 22px; font-size: 12px; font-weight: 500; }
.mag-topic { background: var(--ivy-soft); }
.mag-topic:nth-of-type(even) { background: var(--ivy-cream); }
.mag-topic-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 60px); }
.mag-feature { display: grid; grid-template-columns: 45% 1fr; border: 1px solid var(--ivy-line); background: var(--ivy-cream); }
.mag-topic:nth-of-type(even) .mag-feature { background: var(--ivy-soft); }
.mag-feature img { width: 100%; min-height: 280px; height: 100%; object-fit: cover; }
.mag-feature-copy { padding: 28px; }
.mag-feature h3 { margin: 0 0 16px; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.04; }
.mag-feature p:not(.ivy-kicker) { margin: 0; color: #294b30; font-size: 14px; line-height: 1.6; }
.mag-list { display: grid; align-content: start; }
.mag-list-item { display: block; padding: 20px 0; border-bottom: 1px solid var(--ivy-line); }
.mag-list-item:first-child { padding-top: 0; }
.mag-list-item small { font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mag-list-item h3 { margin: 8px 0 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; }
.mag-about { padding: clamp(52px, 5.5vw, 76px) 0; background: var(--ivy-green); color: #fff; }
.mag-about-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.mag-about h2 { margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1; }
.mag-about-copy { max-width: 780px; }
.mag-about-copy p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; }
.mag-about .ivy-text-link { color: #fff; }

@media (max-width: 1000px) {
  .mag-latest-grid { grid-template-columns: 1fr 1fr; }
  .mag-card.mag-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 46% 1fr; }
  .mag-card.mag-lead img { height: 100%; min-height: 300px; }
  .mag-topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand-lockup .custom-logo { width: 38px; height: 38px; }
  .brand-lockup .site-branding { font-size: 25px; }
  .mag-kente { height: 38px; }
  .mag-title-row { align-items: flex-start; flex-direction: column; }
  .mag-latest-grid { grid-template-columns: 1fr; }
  .mag-card.mag-lead { grid-column: auto; display: flex; }
  .mag-card img, .mag-card.mag-lead img { height: 230px; min-height: 0; }
  .mag-feature { grid-template-columns: 1fr; }
  .mag-feature img { min-height: 240px; max-height: 340px; }
  .mag-about-inner { grid-template-columns: 1fr; }
}

/* Version 1.1: kompaktere Startseite */
.ivy-wrap { width: min(88%, 1280px); }
.header-inner { min-height: 68px; }
.site-branding { font-size: 30px; }
.primary-menu { gap: clamp(14px, 1.7vw, 26px); font-size: 12px; }
.primary-menu a { padding: 25px 0; }
.primary-menu a::after { bottom: 17px; }
.ivy-hero { grid-template-columns: .94fr 1.06fr; gap: clamp(34px, 5vw, 72px); padding: clamp(44px, 5.5vw, 72px) 0; }
.ivy-hero h1 { font-size: clamp(48px, 5.1vw, 74px); line-height: .98; }
.ivy-hero p { margin: 22px 0 26px; font-size: clamp(16px, 1.25vw, 19px); }
.ivy-hero-image { box-shadow: none; }
.ivy-section { padding: clamp(54px, 5.5vw, 76px) 0; }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .about-story h2 { font-size: clamp(40px, 4vw, 58px); }
.article-card { min-height: 230px; }
.article-card img { min-height: 230px; }
.article-card h3 { font-size: clamp(25px, 2vw, 33px); }
.card-copy { padding: 23px 21px 20px; }
.card-number { margin-bottom: 18px; }
.category-section { padding: clamp(48px, 5vw, 70px) 0; border-top: 1px solid var(--ivy-line); background: var(--ivy-soft); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { padding: 28px; border: 1px solid var(--ivy-line); background: var(--ivy-cream); transition: transform .25s ease, border-color .25s ease; }
.category-card:hover { transform: translateY(-3px); border-color: #97aa91; }
.category-card h3 { margin: 0 0 10px; font-size: 32px; line-height: 1; }
.category-card p { margin: 0; color: #294b30; font-size: 14px; line-height: 1.55; }
.about-story { padding: clamp(58px, 6vw, 84px) 0; border-top: 1px solid var(--ivy-line); }
.about-story-inner { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: clamp(45px, 7vw, 95px); }
.about-story-copy { max-width: 760px; }
.about-story-copy p:not(.ivy-kicker) { color: #173d20; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; }
.kente-complete { justify-self: end; width: min(100%, 310px); }
.kente-complete img { display: block; width: 100%; height: auto; border-radius: 4px; }
.site-footer { padding: 44px 0 28px; }
.footer-brand { font-size: 32px; }

@media (max-width: 1120px) {
  .primary-navigation { top: 68px; }
  .article-card { grid-template-columns: 36% 1fr; }
}
@media (max-width: 760px) {
  .ivy-wrap { width: min(90%, 1280px); }
  .ivy-hero { padding: 30px 0 46px; }
  .ivy-hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .category-grid, .about-story-inner { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .kente-complete { justify-self: start; width: min(75%, 300px); }
}
