/*
Theme Name: Erektion.net
Description: Portal-Theme für erektion.net, das Ratgeber-Portal für Erektion und Männergesundheit.
Version: 1.0
Author: David Emmerich
Text Domain: erektion
*/

:root {
	--ek-navy: #0e2a47;
	--ek-blue: #1d5fa8;
	--ek-blue-dark: #164a85;
	--ek-cta: #e8842c;
	--ek-cta-dark: #d0721e;
	--ek-bg: #ffffff;
	--ek-soft: #f2f6fb;
	--ek-line: #e3eaf2;
	--ek-text: #26313d;
	--ek-muted: #5f6f80;
	--ek-serif: Georgia, "Times New Roman", serif;
	--ek-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ek-radius: 12px;
	--ek-maxw: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ek-sans);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ek-text);
	background: var(--ek-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--ek-blue); }
a:hover { color: var(--ek-blue-dark); }

h1, h2, h3, h4 { font-family: var(--ek-serif); color: var(--ek-navy); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; }

.ek-wrap { max-width: var(--ek-maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.ek-header { background: #fff; border-bottom: 1px solid var(--ek-line); position: sticky; top: 0; z-index: 50; }
.ek-header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.ek-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ek-logo img { height: 40px; width: auto; }
.ek-logo-text { font-family: var(--ek-serif); font-weight: 700; font-size: 1.45rem; color: var(--ek-navy); text-decoration: none; }
.ek-logo-text span { color: var(--ek-blue); }
.ek-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ek-nav a { color: var(--ek-text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.ek-nav a:hover { color: var(--ek-blue); }
.ek-btn {
	display: inline-block; background: var(--ek-cta); color: #fff !important;
	padding: 11px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
	box-shadow: 0 4px 14px rgba(232, 132, 44, .35); white-space: nowrap;
}
.ek-btn:hover { background: var(--ek-cta-dark); }
.ek-btn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.ek-btn-ghost:hover { background: rgba(255,255,255,.1); }
.ek-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.7rem; color: var(--ek-navy); cursor: pointer; }
.ek-nav .ek-btn { display: none; }

/* ---------- Hero ---------- */
.ek-hero { background: linear-gradient(135deg, var(--ek-navy) 0%, #16406e 60%, var(--ek-blue-dark) 100%); color: #fff; padding: 72px 0 64px; }
.ek-hero h1 { color: #fff; margin: 0 0 18px; max-width: 720px; }
.ek-hero p.ek-sub { font-size: 1.15rem; color: #d6e4f5; max-width: 640px; margin: 0 0 28px; }
.ek-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.ek-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding: 0; list-style: none; color: #bcd2ea; font-size: .95rem; }
.ek-trust li::before { content: "✓ "; color: #7fc48a; font-weight: 700; }

/* Hero mit Bild — Premium-Rezept */
.ek-hero-rich { position: relative; overflow: hidden; padding: 96px 0 88px; background: linear-gradient(135deg, #0b1626 0%, #0e2440 55%, #123356 100%); }
.ek-hero-rich::after { content: ""; position: absolute; right: 6%; top: 8%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(232,132,44,.14) 0%, transparent 62%); pointer-events: none; }
.ek-hero-img {
	position: absolute; top: 0; right: 0; height: 100%; width: 58%;
	object-fit: cover; object-position: 38% top; opacity: .92; pointer-events: none;
	-webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 42%, transparent 94%);
	mask-image: linear-gradient(to left, rgba(0,0,0,1) 42%, transparent 94%);
}
.ek-hero-inner { position: relative; z-index: 2; }
.ek-hero-rich h1, .ek-hero-rich .ek-sub { max-width: 600px; }
.ek-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #f2a45f; font-weight: 600; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.ek-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ek-cta); box-shadow: 0 0 12px rgba(232,132,44,.8); }
.ek-hl { font-style: italic; color: #f2a45f; }
.ek-btn-hero { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(160deg, #f5924a, #d0721e); box-shadow: 0 10px 40px rgba(232,132,44,.35); }
.ek-btn-hero:hover { transform: translateY(-1px); box-shadow: 0 14px 46px rgba(232,132,44,.45); }
.ek-btn-hero svg { width: 18px; height: 18px; }
.ek-trust { color: #93a9c2; }
.ek-trust li { display: inline-flex; align-items: center; gap: 8px; }
.ek-trust li::before { content: none; }
.ek-trust svg { width: 16px; height: 16px; color: #7fb2e8; flex-shrink: 0; }

/* Floating Notification-Cards */
.ek-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: rgba(11, 25, 43, .68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 12px 18px; box-shadow: 0 12px 34px rgba(0,0,0,.35); color: #e8eef6; opacity: 0; }
.ek-float strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.2; }
.ek-float small { color: #8fa6c0; font-size: .78rem; }
.ek-float-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ek-cta); box-shadow: 0 0 10px rgba(232,132,44,.9); flex-shrink: 0; }
.ek-float-1 { top: 12%; right: 4%; animation: ekFloat 5s ease-in-out infinite, ekIn .7s .5s cubic-bezier(.22,1,.36,1) forwards; }
.ek-float-2 { top: 52%; right: 6%; animation: ekFloat 6s ease-in-out infinite .8s, ekIn .7s .9s cubic-bezier(.22,1,.36,1) forwards; }
.ek-float-3 { bottom: 5%; right: 17%; animation: ekFloat 5.5s ease-in-out infinite .4s, ekIn .7s 1.3s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes ekFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -8px; } }
@keyframes ekIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Proof-Band (Stats) */
.ek-stats { background: #0a1a2e; border-top: 1px solid rgba(255,255,255,.07); }
.ek-stats-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 34px 20px 38px; }
.ek-stat {
	display: flex; align-items: center; gap: 16px;
	background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
	border-radius: 16px; padding: 20px 22px;
}
.ek-stat-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(232,132,44,.12); border: 1px solid rgba(232,132,44,.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ek-stat-ico svg { width: 22px; height: 22px; color: #f2a45f; }
.ek-stat strong { font-family: var(--ek-serif); font-size: 1.75rem; color: #fff; white-space: nowrap; line-height: 1; display: block; margin-bottom: 4px; }
.ek-stat span.ek-stat-label { color: #93a9c2; font-size: .88rem; line-height: 1.45; display: block; }

/* Turn-Line */
.ek-turn { background: linear-gradient(135deg, #0b1626, #10233c); padding: 76px 0; text-align: center; }
.ek-turn-line { font-family: var(--ek-serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35; color: #fff; margin: 0 auto; max-width: 880px; }
.ek-turn-line em { font-style: italic; color: #f2a45f; }

/* Scroll-Reveal Spotlight */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].ek-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.ek-float { animation: none; opacity: 1; }
}

/* Themen-Kachel-Icons (SVG) */
.ek-topic-ico svg { width: 30px; height: 30px; color: var(--ek-blue); }

/* 3-Schritte-Comics */
.ek-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ek-step { position: relative; background: #fff; border: 1px solid var(--ek-line); border-radius: var(--ek-radius); padding: 26px 26px 28px; text-align: center; text-decoration: none; color: var(--ek-text); transition: box-shadow .2s, transform .2s; }
.ek-step:hover { box-shadow: 0 10px 30px rgba(14, 42, 71, .12); transform: translateY(-2px); color: var(--ek-text); }
.ek-step img { width: 72%; max-width: 240px; margin: 0 auto 14px; display: block; }
.ek-step-num { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--ek-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ek-step h3 { margin: 0 0 8px; }
.ek-step p { margin: 0; color: var(--ek-muted); font-size: .95rem; }

/* Themen-Kacheln */
.ek-topics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ek-topic { background: var(--ek-soft); border: 1px solid var(--ek-line); border-radius: var(--ek-radius); padding: 22px 16px; text-align: center; text-decoration: none; color: var(--ek-navy); transition: background .2s, transform .2s; display: flex; flex-direction: column; gap: 6px; }
.ek-topic:hover { background: #e7eef7; transform: translateY(-2px); color: var(--ek-navy); }
.ek-topic-ico { font-size: 1.7rem; }
.ek-topic-name { font-weight: 700; font-size: .98rem; }
.ek-topic-count { color: var(--ek-muted); font-size: .82rem; }

/* Gratis-Buch */
.ek-book { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; background: linear-gradient(135deg, var(--ek-navy), var(--ek-blue-dark)); border-radius: var(--ek-radius); padding: 44px 48px; color: #fff; }
.ek-book-img img { width: 100%; max-width: 280px; display: block; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.ek-book-kicker { display: inline-block; background: rgba(232,132,44,.16); color: #f2a45f; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.ek-book-body h2 { color: #fff; margin: 0 0 14px; }
.ek-book-body ul { list-style: none; margin: 0 0 22px; padding: 0; }
.ek-book-body li { padding-left: 26px; position: relative; margin-bottom: 10px; color: #d6e4f5; }
.ek-book-body li::before { content: "✓"; position: absolute; left: 0; color: #7fc48a; font-weight: 700; }

/* ---------- Grids / Cards ---------- */
.ek-section { padding: 56px 0; }
.ek-section-soft { background: var(--ek-soft); }
.ek-section h2.ek-sec-title { margin: 0 0 8px; }
.ek-sec-sub { color: var(--ek-muted); margin: 0 0 30px; }
.ek-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ek-card { background: #fff; border: 1px solid var(--ek-line); border-radius: var(--ek-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.ek-card:hover { box-shadow: 0 10px 30px rgba(14, 42, 71, .12); transform: translateY(-2px); }
.ek-card-img { aspect-ratio: 16/9; background: var(--ek-soft); display: block; }
.ek-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ek-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ek-card-cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ek-blue); }
.ek-card h3 { margin: 0; font-size: 1.15rem; }
.ek-card h3 a { color: var(--ek-navy); text-decoration: none; }
.ek-card h3 a:hover { color: var(--ek-blue); }
.ek-card p { margin: 0; color: var(--ek-muted); font-size: .95rem; line-height: 1.6; }
.ek-card .ek-more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ---------- Single / Content ---------- */
.ek-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding: 44px 0 70px; }
.ek-breadcrumb { font-size: .85rem; color: var(--ek-muted); margin-bottom: 14px; }
.ek-breadcrumb a { color: var(--ek-muted); text-decoration: none; }
.ek-breadcrumb a:hover { color: var(--ek-blue); }
.ek-post-meta { display: flex; align-items: center; gap: 12px; color: var(--ek-muted); font-size: .9rem; margin: 14px 0 26px; }
.ek-post-meta img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ek-featured { border-radius: var(--ek-radius); margin: 0 0 30px; overflow: hidden; }
.ek-featured img { display: block; width: 100%; }
.ek-content { font-size: 1.06rem; }
.ek-content p { margin: 0 0 1.35em; }
.ek-content ul, .ek-content ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.ek-content li { margin-bottom: .55em; }
.ek-content h2 { padding-top: .2em; }
mark.ek-mark { background: linear-gradient(transparent 55%, rgba(29, 95, 168, .18) 55%); color: inherit; padding: 0 2px; }

.ek-box { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--ek-radius); margin: 1.8em 0; font-size: .99rem; line-height: 1.65; border: 1px solid; }
.ek-box-icon { font-size: 1.4rem; line-height: 1.3; }
.ek-box-tip { background: #f0f7f1; border-color: #cde5d2; }
.ek-box-info { background: #eef4fb; border-color: #cfdff2; }
.ek-box-warn { background: #fdf3ec; border-color: #f3d9c3; }

/* CTA-Block im Artikel */
.ek-cta { background: linear-gradient(135deg, var(--ek-navy), var(--ek-blue-dark)); color: #fff; border-radius: var(--ek-radius); padding: 34px 34px 30px; margin: 2.4em 0; }
.ek-cta h3 { color: #fff; margin: 0 0 10px; font-size: 1.35rem; }
.ek-cta p { color: #d6e4f5; margin: 0 0 20px; font-size: 1rem; }
.ek-cta .ek-btn { font-size: 1.02rem; }
.ek-cta .ek-cta-alt { display: block; margin-top: 14px; color: #bcd2ea; font-size: .9rem; }
.ek-cta .ek-cta-alt a { color: #fff; }

/* FAQ */
.ek-faq { margin-top: 3em; }
.ek-faq details { border: 1px solid var(--ek-line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.ek-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ek-navy); font-size: 1.02rem; }
.ek-faq details[open] summary { border-bottom: 1px solid var(--ek-line); }
.ek-faq .ek-faq-a { padding: 14px 20px 18px; }

/* ---------- Sidebar ---------- */
.ek-side { display: flex; flex-direction: column; gap: 26px; }
.ek-widget { background: #fff; border: 1px solid var(--ek-line); border-radius: var(--ek-radius); padding: 26px; }
.ek-widget h4 { margin: 0 0 14px; font-size: 1.05rem; }
.ek-author { text-align: center; }
.ek-author img.ek-author-pic { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.ek-author p { font-size: .92rem; color: var(--ek-muted); margin: 8px 0 0; }
.ek-side-cta { background: linear-gradient(150deg, var(--ek-navy), var(--ek-blue-dark)); color: #fff; text-align: center; }
.ek-side-cta h4 { color: #fff; }
.ek-side-cta p { color: #cfe0f2; font-size: .93rem; }
.ek-pop-list { list-style: none; margin: 0; padding: 0; }
.ek-pop-list li { padding: 10px 0; border-bottom: 1px solid var(--ek-line); }
.ek-pop-list li:last-child { border-bottom: 0; }
.ek-pop-list a { text-decoration: none; color: var(--ek-text); font-size: .95rem; font-weight: 500; line-height: 1.45; display: block; }
.ek-pop-list a:hover { color: var(--ek-blue); }

/* Related */
.ek-related { background: var(--ek-soft); padding: 50px 0 64px; }

/* Autor-Band */
.ek-authorband { display: flex; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--ek-line); border-radius: var(--ek-radius); padding: 30px 34px; }
.ek-authorband img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ek-authorband h3 { margin: 0 0 6px; }
.ek-authorband p { margin: 0; color: var(--ek-muted); font-size: .97rem; }

/* ---------- Footer ---------- */
.ek-footer { background: var(--ek-navy); color: #b9c9dc; margin-top: 60px; font-size: .93rem; }
.ek-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 54px 0 40px; }
.ek-footer h5 { color: #fff; font-size: 1rem; margin: 0 0 14px; font-family: var(--ek-sans); }
.ek-footer ul { list-style: none; margin: 0; padding: 0; }
.ek-footer li { margin-bottom: 9px; }
.ek-footer a { color: #b9c9dc; text-decoration: none; }
.ek-footer a:hover { color: #fff; }
.ek-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .82rem; color: #8fa3ba; line-height: 1.6; }
.ek-copy { padding-bottom: 26px; font-size: .82rem; color: #8fa3ba; }

/* ---------- Seiten ---------- */
.ek-page-head { background: var(--ek-soft); padding: 46px 0 38px; border-bottom: 1px solid var(--ek-line); }
.ek-page-head h1 { margin: 0; }
.ek-page-head p { color: var(--ek-muted); margin: 10px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ek-main { grid-template-columns: 1fr; }
	.ek-grid { grid-template-columns: repeat(2, 1fr); }
	.ek-footer-in { grid-template-columns: 1fr 1fr; }
	.ek-hero-img { width: 100%; opacity: .22; -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%); mask-image: linear-gradient(to left, black 60%, transparent 100%); }
	.ek-float { display: none; }
	.ek-hero-rich::after { display: none; }
	.ek-steps { grid-template-columns: 1fr; }
	.ek-topics { grid-template-columns: repeat(2, 1fr); }
	.ek-stats-in { grid-template-columns: 1fr; gap: 12px; }
	.ek-stat { justify-content: flex-start; }
	.ek-book { grid-template-columns: 1fr; padding: 32px 26px; text-align: center; }
	.ek-book-body li { text-align: left; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.ek-grid { grid-template-columns: 1fr; }
	.ek-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--ek-line); }
	.ek-nav.open { display: flex; }
	.ek-burger { display: block; }
	.ek-header .ek-btn { display: none; }
	.ek-nav .ek-btn { display: inline-block; }
	.ek-hero { padding: 48px 0 44px; }
	.ek-hero h1 { overflow-wrap: break-word; hyphens: auto; }
	.ek-authorband { flex-direction: column; text-align: center; }
	.ek-footer-in { grid-template-columns: 1fr; }
	.ek-cta { padding: 26px 22px; }
	.ek-btn { white-space: normal; }
}
