/*
Theme Name: RentnerPlus
Theme URI: https://rentnerplus.de
Author: Torsten Abrolat / SyncSouls
Author URI: https://syncsouls.de
Description: Das WordPress-Theme fuer RentnerPlus.de - Dein Plus fuer den Ruhestand. Barrierefreies, seniorenfreundliches Design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rentnerplus
Tags: accessibility-ready, one-column, custom-menu
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1B5E20;
  --green-mid: #2E7D32;
  --green-light: #4CAF50;
  --green-bg: #E8F5E9;
  --gold-dark: #B8860B;
  --gold-mid: #DAA520;
  --gold-light: #FFD54F;
  --beige: #F5F0E8;
  --text: #212121;
  --text-light: #555;
  --text-muted: #757575;
  --white: #FFFFFF;
  --gray-light: #F8F8F8;
  --gray-border: #E0E0E0;
  --red-sos: #C62828;
  --font-size-base: 19px;
  --font-size-scale: 1;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html {
  font-size: calc(var(--font-size-base) * var(--font-size-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-mid); }
a:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 2px; border-radius: 4px; }
button:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--green-dark); font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

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

/* ===== SKIP LINK (Barrierefreiheit) ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--green-dark); color: var(--white);
  padding: 12px 24px; border-radius: 0 0 8px 8px;
  z-index: 10000; font-size: 1rem; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ===== FONT SIZE CONTROLS ===== */
.font-controls {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  background: var(--white); padding: 10px 8px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--gray-border);
}
.font-controls button {
  width: 44px; height: 44px; border: 2px solid var(--green-dark);
  background: var(--white); color: var(--green-dark);
  border-radius: 8px; cursor: pointer; font-weight: 700;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.font-controls button:hover { background: var(--green-bg); }
.font-controls .label { font-size: 0.6rem; text-align: center; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.font-controls-close {
  width: 24px !important; height: 24px !important; min-width: 24px;
  border: none !important; background: var(--gray-light) !important;
  color: var(--text-muted) !important; border-radius: 50% !important;
  font-size: 1rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; padding: 0; margin: -4px auto 2px;
  transition: all var(--transition); line-height: 1;
}
.font-controls-close:hover { background: var(--green-bg) !important; color: var(--green-dark) !important; }
.font-controls.hidden { display: none; }
.font-reopen {
  display: none; background: none; border: 2px solid var(--green-dark);
  color: var(--green-dark); border-radius: 8px; padding: 6px 12px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; line-height: 1;
}
.font-reopen:hover { background: var(--green-bg); }
.font-reopen.visible { display: inline-flex; align-items: center; gap: 4px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--green-bg);
  padding: 12px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.logo svg { height: 52px; width: auto; }

/* Desktop Navigation */
.main-navigation { display: flex; align-items: center; gap: 6px; }
.main-navigation a {
  padding: 10px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: all var(--transition); white-space: nowrap;
}
.main-navigation a:hover { background: var(--green-bg); color: var(--green-dark); }
.main-navigation a.active { background: var(--green-dark); color: var(--white); }

/* Mobile Menu */
.menu-toggle {
  display: none; background: none; border: 2px solid var(--green-dark);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--green-dark);
  font-size: 1.4rem; line-height: 1;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-bg) 0%, var(--beige) 50%, var(--white) 100%);
  padding: 80px 0 60px; text-align: center;
  border-bottom: 3px solid var(--green-light);
}
.hero h1 { margin-bottom: 16px; font-size: 2.6rem; }
.hero h1 .gold { color: var(--gold-dark); }
.hero .subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 700px; margin: 0 auto 32px; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 50px; font-size: 1.05rem;
  font-weight: 700; cursor: pointer; border: none;
  transition: all var(--transition); min-height: 56px;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--white); color: var(--green-dark); border: 2px solid var(--green-dark); }
.btn-secondary:hover { background: var(--green-bg); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-mid)); color: #3E2723; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white); padding: 24px 0;
  border-bottom: 1px solid var(--gray-border);
}
.trust-items {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted); font-weight: 600;
}
.trust-icon { font-size: 1.4rem; }

/* ===== SECTIONS ===== */
section { padding: 70px 0; }
section:nth-child(even) { background: var(--gray-light); }

.section-header { text-align: center; max-width: 750px; margin: 0 auto 48px; }
.section-header p { color: var(--text-light); margin-top: 12px; font-size: 1.05rem; line-height: 1.6; }
.section-label {
  display: inline-block; background: var(--green-bg); color: var(--green-dark);
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ===== CARD GRID ===== */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--green-light); }

.card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px;
}
.card-icon.green { background: var(--green-bg); }
.card-icon.gold { background: #FFF8E1; }
.card-icon.blue { background: #E3F2FD; }
.card-icon.red { background: #FFEBEE; }
.card-icon.purple { background: #F3E5F5; }
.card-icon.teal { background: #E0F2F1; }
.card-icon.orange { background: #FFF3E0; }
.card-icon.pink { background: #FCE4EC; }

.card h3 { color: var(--green-dark); }
.card p { color: var(--text-light); line-height: 1.65; margin-top: 10px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 700; color: var(--green-dark);
  font-size: 0.95rem;
}
.card .card-link:hover { color: var(--gold-mid); gap: 10px; }

/* ===== FEATURE HIGHLIGHT ===== */
.section-banner { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.section-banner a { display: block; }
.section-banner-img { width: 100%; height: auto; border-radius: var(--radius); transition: transform 0.3s ease; }
.section-banner:hover .section-banner-img { transform: scale(1.02); }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 60px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
  background: var(--green-bg); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: center;
  min-height: 320px; font-size: 4rem;
}
.feature-visual.gold-bg { background: #FFF8E1; }
.feature-visual.red-bg { background: #FFEBEE; }
.feature-visual--image {
  background: none; padding: 0; overflow: hidden;
}
.feature-visual--image a { display: block; line-height: 0; }
.feature-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.feature-visual--image:hover .feature-img { transform: scale(1.03); }
.feature-content h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-content p { color: var(--text-light); margin-bottom: 16px; }

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 8px 0 8px 32px; position: relative;
  color: var(--text-light); line-height: 1.5;
}
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 8px;
  color: var(--green-light); font-weight: 700; font-size: 1.1rem;
}

/* ===== TAGESPLANER PREVIEW ===== */
.planner-preview {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); border: 2px solid var(--green-bg);
  max-width: 500px;
}
.planner-time { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.planner-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: flex-start;
}
.planner-item:last-child { border-bottom: none; }
.planner-emoji { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.planner-text strong { display: block; color: var(--green-dark); margin-bottom: 2px; }
.planner-text span { font-size: 0.88rem; color: var(--text-muted); }
.planner-badge {
  display: inline-block; background: var(--green-bg); color: var(--green-dark);
  padding: 2px 10px; border-radius: 50px; font-size: 0.72rem;
  font-weight: 700; margin-top: 4px;
}

/* ===== FINANCE ARTICLES ===== */
.article-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
a.article-card-link { text-decoration: none; color: inherit; display: block; }
a.article-card-link .card-link-text { display: block; padding: 0 20px 16px; color: var(--green-dark); font-weight: 600; font-size: 0.9rem; }
.article-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-img.fin { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.article-img.tax { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
.article-img.job { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.article-img.calc { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.article-body { padding: 24px; }
.article-body .tag {
  display: inline-block; background: var(--green-bg); color: var(--green-dark);
  padding: 4px 12px; border-radius: 50px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.article-body h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.article-body p { font-size: 0.92rem; color: var(--text-light); }

/* ===== SOS SECTION ===== */
.sos-section { background: linear-gradient(135deg, #FFEBEE, #FFF3E0); }
.sos-card {
  background: var(--white); border: 2px solid var(--red-sos);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.sos-card h3 { color: var(--red-sos); }

/* ===== DEMENZ BANNER ===== */
.demenz-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white); padding: 60px 0; text-align: center;
}
.demenz-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.demenz-banner p { opacity: 0.9; max-width: 700px; margin: 0 auto 24px; font-size: 1.1rem; }
.demenz-stat {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.15); padding: 16px 28px;
  border-radius: 50px; font-size: 1.2rem; font-weight: 700;
}
.demenz-stat .num { font-size: 2rem; color: var(--gold-light); }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--beige); padding: 60px 0; text-align: center;
}
.newsletter-form {
  display: flex; gap: 12px; max-width: 520px; margin: 24px auto 0;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1; min-width: 260px; padding: 16px 20px;
  border: 2px solid var(--gray-border); border-radius: 50px;
  font-size: 1rem; font-family: inherit;
}
.newsletter-form input:focus { outline: none; border-color: var(--green-dark); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--green-dark); color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.6; opacity: 0.8; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.site-footer li a:hover { color: var(--gold-light); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0; text-align: center;
  font-size: 0.82rem; line-height: 1.6; opacity: 0.75;
}
.footer-disclaimer a { color: var(--gold-light); text-decoration: underline; }
.footer-disclaimer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; text-align: center;
  font-size: 0.85rem; opacity: 0.7;
}
.footer-logo svg { height: 40px; }
.footer-logo svg text { fill: #fff !important; }
.footer-logo svg stop { stop-color: #fff !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-navigation { display: none; }
  .main-navigation.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px 24px;
    border-bottom: 2px solid var(--green-bg);
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .font-controls { right: 10px; }
}
@media (max-width: 600px) {
  section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 20px; }
  .hero .cta-row { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 340px; justify-content: center; }
}

/* ===== CLICKABLE TEASER CARDS ===== */
a.card-link-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.card-link-block:hover,
a.card-link-block:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
a.card-link-block .card-link-text {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.95rem;
}
a.card-link-block:hover .card-link-text {
  color: var(--green-dark);
}

/* ===== SECTION & CARD TITLE LINKS ===== */
a.section-title-link { color: inherit; text-decoration: none; }
a.section-title-link:hover { color: var(--green-mid); }
.card-icon a { color: inherit; text-decoration: none; }
.card-icon a:hover { opacity: 0.8; }
a.card-title-link { color: inherit; text-decoration: none; }
a.card-title-link:hover { color: var(--green-mid); }

/* ===== ENTRY CONTENT (page.php, single.php) ===== */
.entry-content h2 { margin: 2rem 0 1rem; font-size: 1.6rem; color: var(--green-dark); }
.entry-content h3 { margin: 1.5rem 0 0.8rem; font-size: 1.3rem; color: var(--green-dark); }
.entry-content p { margin-bottom: 1rem; line-height: 1.8; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1rem 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.entry-content a { color: var(--green-mid); text-decoration: underline; }
.entry-content a:hover { color: var(--green-dark); }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }

/* ===== TAGESPLANER APP ===== */
.tagesplaner-page { background: var(--green-bg); min-height: 100vh; padding: 40px 0 80px; }

.tp-header { text-align: center; margin-bottom: 32px; }
.tp-header h1 { font-size: 2.2rem; color: var(--green-dark); margin-bottom: 8px; }
.tp-date { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.tp-greeting { font-size: 1.15rem; color: var(--green-mid); margin-top: 8px; font-weight: 600; }

.tp-intro { background: var(--white); border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--gold-mid); }
.tp-intro p { font-size: 1rem; line-height: 1.7; color: var(--text); margin: 0; }
.tp-intro strong { color: var(--green-dark); }

.tp-progress { background: var(--white); border-radius: 50px; height: 48px; position: relative; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); border: 2px solid var(--green-bg); display: flex; align-items: center; }
.tp-progress-bar { height: 100%; background: linear-gradient(90deg, var(--green-light), var(--green-dark)); border-radius: 50px; transition: width 0.5s ease; min-width: 0; }
.tp-progress-text { position: absolute; width: 100%; text-align: center; font-weight: 700; font-size: 1rem; color: var(--green-dark); text-shadow: 0 0 4px rgba(255,255,255,0.8); }

.tp-progress--goal { border-color: var(--gold-mid); }
.tp-progress--goal .tp-progress-bar { background: linear-gradient(90deg, var(--gold-mid), #F9A825, var(--gold-mid)); }
.tp-progress--goal .tp-progress-text { color: #7B5E00; }

.tp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.tp-filter { padding: 10px 20px; border-radius: 50px; border: 2px solid var(--green-dark); background: var(--white); color: var(--green-dark); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all var(--transition); min-height: 48px; font-family: inherit; }
.tp-filter:hover { background: var(--green-bg); }
.tp-filter.active { background: var(--green-dark); color: var(--white); }

.tp-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.tp-item { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); border: 2px solid transparent; transition: all var(--transition); cursor: pointer; user-select: none; }
.tp-item:hover { border-color: var(--green-light); }
.tp-item--done { opacity: 0.7; background: #F1F8E9; }
.tp-item--done .tp-item-title { text-decoration: line-through; color: var(--text-muted); }
.tp-item--done .tp-check { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

@keyframes tp-pop { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.tp-item--animate { animation: tp-pop 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .tp-item--animate { animation: none; } }

.tp-done-overlay { position: absolute; inset: 0; background: var(--green-dark); color: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; opacity: 1; transition: opacity 0.6s ease 1s; z-index: 2; }
.tp-done-overlay--fade { opacity: 0; }

.tp-check { width: 52px; height: 52px; min-width: 52px; border: 3px solid var(--green-dark); border-radius: 50%; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--green-dark); transition: all var(--transition); flex-shrink: 0; font-family: inherit; }
.tp-check:hover { background: var(--green-bg); transform: scale(1.1); }

.tp-item-content { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; }
.tp-emoji { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.tp-item-text { flex: 1; min-width: 0; }
.tp-item-title { display: block; font-size: 1.05rem; color: var(--green-dark); font-weight: 700; margin-bottom: 4px; }
.tp-item-desc { display: block; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }

.tp-badge { display: inline-block; padding: 2px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tp-badge--bewegung { background: #E8F5E9; color: #2E7D32; }
.tp-badge--gehirn { background: #E3F2FD; color: #1565C0; }
.tp-badge--soziales { background: #FFF3E0; color: #E65100; }
.tp-badge--entspannung { background: #F3E5F5; color: #6A1B9A; }
.tp-badge--kreatives { background: #FCE4EC; color: #C62828; }

.tp-remove { width: 40px; height: 40px; border: none; background: transparent; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; border-radius: 50%; transition: all var(--transition); flex-shrink: 0; font-family: inherit; }
.tp-remove:hover { background: #FFEBEE; color: #C62828; }

.tp-motivation { text-align: center; font-size: 1.05rem; color: var(--text); margin-bottom: 24px; font-weight: 500; line-height: 1.6; }

.tp-more-section { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; justify-content: flex-end; }
.tp-more-btn { padding: 12px 28px; font-size: 0.95rem; min-height: 48px; }
.tp-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tp-more-info { font-size: 0.9rem; color: var(--green-mid); font-weight: 600; margin: 0; }

.tp-add-section { margin-bottom: 32px; display: flex; flex-direction: column; align-items: flex-end; }
.tp-add-toggle { padding: 12px 28px; font-size: 0.95rem; min-height: 48px; width: auto; }
.tp-add-form { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 12px; box-shadow: var(--shadow); width: 100%; }
.tp-form-label { display: block; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; font-size: 1rem; }
.tp-input, .tp-select { width: 100%; padding: 14px 18px; border: 2px solid var(--gray-border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; margin-bottom: 16px; min-height: 52px; box-sizing: border-box; }
.tp-input:focus, .tp-select:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(46,125,50,0.15); }
.tp-add-btn { width: 100%; min-height: 56px; }

.tp-celebration { background: linear-gradient(135deg, #FFF8E1, #E8F5E9); border-radius: var(--radius); padding: 32px; text-align: center; margin-bottom: 32px; border: 2px solid var(--gold-mid); box-shadow: var(--shadow); }
.tp-celebration-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.tp-celebration strong { font-size: 1.4rem; color: var(--green-dark); display: block; margin-bottom: 8px; }
.tp-celebration p { color: var(--text-muted); font-size: 1rem; }

.tp-info { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 600px) {
  .tagesplaner-page { padding: 24px 0 60px; }
  .tp-item { padding: 16px; gap: 12px; }
  .tp-check { width: 48px; height: 48px; min-width: 48px; }
  .tp-emoji { font-size: 1.3rem; }
  .tp-filters { gap: 6px; }
  .tp-filter { padding: 8px 14px; font-size: 0.82rem; min-height: 44px; }
  .tp-header h1 { font-size: 1.7rem; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .font-controls, .newsletter, .site-footer, .tp-filters, .tp-add-section, .tp-info { display: none; }
  .tagesplaner-page { background: white; padding: 0; }
  .tp-item { box-shadow: none; border: 1px solid #ccc; }
  section { padding: 20px 0; break-inside: avoid; }
}
