/*
Theme Name: SEO Dynamic Media
Theme URI: https://seodynamicmedia.com
Author: SEO Dynamic Media GmbH
Author URI: https://seodynamicmedia.com
Description: Custom Theme für die SEO Dynamic Media GmbH. Digital Marketing Agentur mit Fokus auf messbaren ROI.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: seo-dynamic-media
*/

:root {
  --green-900: #0d3d2a;
  --green-800: #11523a;
  --green-700: #177a54;
  --green-600: #1e9a6a;
  --green-500: #27b57d;
  --green-400: #4dd19a;
  --green-50:  #e9f7f0;
  --ink:       #0a1f16;
  --text:      #1f2a23;
  --muted:     #5c6b62;
  --line:      #d9e6de;
  --bg:        #ffffff;
  --cream:     #f7f5ef;
  --radius:    14px;
  --maxw:      1240px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }
a  { color: inherit; text-decoration: none; }

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

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-800); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.logo {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem;
  color: #fff; display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px; background: var(--green-500);
  border-radius: 8px; position: relative; overflow: hidden;
}
.logo-mark::before, .logo-mark::after { content: ''; position: absolute; background: #fff; }
.logo-mark::before { inset: 6px 6px auto auto; width: 12px; height: 2px; transform: rotate(45deg); transform-origin: right; }
.logo-mark::after  { inset: auto auto 8px 6px; width: 14px; height: 2px; }

.nav-links, .nav-links ul {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  padding: 10px 16px; border-radius: 999px;
  font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: all .2s var(--ease);
  display: inline-block;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a.active { background: #fff; color: var(--green-800); }

.call-us { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.call-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15);
}
.call-icon svg { width: 18px; height: 18px; fill: #fff; }
.call-text span { display: block; font-size: .78rem; opacity: .75; }
.call-text strong { font-weight: 600; font-size: 1rem; }

.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }

/* HERO */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(77,209,154,.25), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(23,122,84,.4), transparent 55%),
    linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #fff; overflow: hidden; padding: 90px 0 120px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem; font-weight: 500; margin-bottom: 28px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 12px var(--green-400); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--green-400); font-weight: 500; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.trust {
  display: flex; justify-content: center; gap: 32px;
  margin-top: 48px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.65);
}
.trust span { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; fill: var(--green-400); }

/* SECTIONS */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow-alt {
  display: inline-block;
  color: var(--green-700); font-weight: 600;
  text-transform: uppercase; font-size: .8rem;
  letter-spacing: .12em; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Stats */
.stats { background: var(--cream); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--green-700);
  line-height: 1; margin-bottom: 8px;
}
.stat-label { color: var(--muted); font-size: .95rem; }

/* ROI */
.roi { background: var(--ink); color: #fff; }
.roi h2 { color: #fff; }
.roi .section-head p { color: rgba(255,255,255,.7); }
.roi .eyebrow-alt { color: var(--green-400); }
.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.roi-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  transition: all .3s var(--ease);
}
.roi-card:hover { border-color: var(--green-400); background: rgba(77,209,154,.04); }
.roi-num {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem; font-weight: 700;
  color: var(--green-400);
  line-height: 1; margin-bottom: 8px; display: block;
}
.roi-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.roi-card p { color: rgba(255,255,255,.65); font-size: .95rem; margin: 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(13,61,42,.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-size: .78rem; padding: 4px 10px;
  background: var(--green-50); color: var(--green-700);
  border-radius: 999px;
}

/* Process */
.process { background: var(--cream); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { text-align: left; }
.process-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--green-600);
  line-height: 1; margin-bottom: 16px; display: block; opacity: .5;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--green-800); aspect-ratio: 4/5;
  padding: 40px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(77,209,154,.4), transparent 50%),
    linear-gradient(135deg, transparent 60%, rgba(0,0,0,.3));
}
.about-visual-content { position: relative; z-index: 1; }
.about-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; line-height: 1.3;
  font-style: italic; margin-bottom: 24px;
}
.about-author { font-size: .9rem; opacity: .8; }
.about-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid rgba(255,255,255,.2);
}
.about-badge {
  position: relative; z-index: 1; display: inline-block;
  padding: 10px 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: .85rem; align-self: flex-start;
}
.about h2 em { font-style: italic; color: var(--green-700); }
.about ul.checklist {
  list-style: none; padding: 0; margin: 24px 0 32px;
  display: grid; gap: 14px;
}
.about .checklist li { padding-left: 32px; position: relative; color: var(--text); }
.about .checklist li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 0; font-family: inherit;
  transition: all .2s var(--ease);
}
.btn-primary { background: var(--green-400); color: var(--green-900); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-solid { background: var(--green-700); color: #fff; }
.btn-solid:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.05); }

/* Cases */
.cases { background: var(--cream); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(13,61,42,.2); }
.case-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  position: relative; display: grid; place-items: center;
  color: #fff; font-family: 'Fraunces', serif;
  font-size: 3rem; font-weight: 700;
}
.case-media::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.case-media span { position: relative; z-index: 1; }
.case-body { padding: 28px; }
.case-tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  color: var(--green-700); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 10px;
}
.case-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: .9rem; margin: 0; }

/* CTA */
.cta-wrap { padding: 0 0 100px; }
.cta {
  background: var(--green-800); color: #fff;
  border-radius: var(--radius); padding: 70px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(77,209,154,.3), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(77,209,154,.2), transparent 40%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 680px; margin: 0 auto 20px; }
.cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--green-900); color: rgba(255,255,255,.7);
  padding: 80px 0 30px; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-grid h4 {
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: .85rem; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 600; margin-bottom: 20px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { max-width: 340px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: .85rem;
}

/* Page / Post content */
.page-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h1, .page-content h2 { margin-top: 1.5em; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation: fadeUp .7s var(--ease) both; }
.hero h1       { animation: fadeUp .7s .1s var(--ease) both; }
.hero .lead    { animation: fadeUp .7s .2s var(--ease) both; }
.hero-cta      { animation: fadeUp .7s .3s var(--ease) both; }
.trust         { animation: fadeUp .7s .4s var(--ease) both; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links, .call-us { display: none; }
  .menu-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .cases-grid, .roi-grid, .process-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta { padding: 50px 24px; }
  section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
}
@media (max-width: 540px) {
  .services-grid, .cases-grid, .roi-grid, .process-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
}
