/* ========================================================================
   Digitales Leben im Alter - Finales Custom Stylesheet - v17.0 (Komplett)
   ======================================================================== */

/* --- 1. GRUNDEINSTELLUNGEN & TYPOGRAFIE --- */
body { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; color: #333333; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 600; line-height: 1.3; }
h1, h2 { color: #B53737; }
h3, h4 { color: #4A7A96; }
a { color: #B53737; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #9A2E2E; text-decoration: underline; }
.lead { font-size: 1.25em; font-weight: 300; color: #555; }
hr.section-divider { margin: 3rem 0; border: 0; border-top: 1px solid #e0e0e0; }

/* --- 2. WIEDERVERWENDBARE KOMPONENTEN --- */
.btn-brand-primary { background-color: #B53737; color: #FFFFFF !important; padding: 12px 25px; border-radius: 5px; font-family: 'Montserrat', sans-serif; font-size: 1.1em; font-weight: bold; text-decoration: none !important; transition: background-color 0.3s ease, transform 0.2s ease; border: none; display: inline-block; cursor: pointer; }
.btn-brand-primary:hover { background-color: #9A2E2E; color: #FFFFFF !important; transform: translateY(-2px); }
.info-box { padding: 1.5rem; margin: 1.5rem 0; border-radius: 5px; border-left-width: 5px; border-left-style: solid; }
.info-box h3, .info-box h4 { margin-top: 0; }
.info-box-ziel { background-color: #f0f8ff; border-left-color: #4A7A96; }
.info-box-ziel h3 { color: #4A7A96; }
.info-box-warnung { background-color: #fff3cd; border-left-color: #ffc107; }
.info-box-warnung h3 { color: #856404; }
.info-box-erfolg { background-color: #d4edda; border-left-color: #28a745; }
.info-box-erfolg h3 { color: #155724; }
.karten-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.karte { background-color: #FFFFFF; border: 1px solid #e0e0e0; border-radius: 5px; padding: 1.5rem; text-decoration: none !important; color: #333333; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; align-items: center; text-align: center; }
.karte:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.karte-icon { height: 64px; width: 64px; margin-bottom: 1rem; }

/* --- 3. STARTSEITE --- */
.hero-section { position: relative; padding: 5rem 1rem; color: #FFFFFF; background-size: cover; background-position: center 30%; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)); }
.hero-section .container { position: relative; z-index: 2; text-align: center; }
.hero-section h1 { font-size: 3.2em; font-weight: 700; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
@media (max-width: 767px) { .hero-section h1 { font-size: 2.2em; } }
.hero-section div.mod-finder { margin-top: 1.5rem; margin-bottom: 2rem; }
.hero-section div.mod-finder label { display: none !important; }
.hero-section div.mod-finder input[type="search"] { width: 100%; max-width: 550px; padding: 18px 20px; font-size: 1.1em; font-family: 'Lato', sans-serif; color: #333333; border-radius: 8px; border: 2px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: all 0.3s ease; text-align: center; }
.hero-section div.mod-finder input[type="search"]:focus { border-color: #B53737; outline: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-align: left; }
.hero-section div.mod-finder input[type="search"]::placeholder { color: #999; opacity: 1; }
.hero-section div.mod-finder button { display: none !important; }

/* --- 4. ANLEITUNGS-HUB & KATEGORIE-SEITEN --- */
.inhaltsverzeichnis .iv-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.inhaltsverzeichnis ul { list-style: none; padding-left: 0; margin-top: 1rem; }
.inhaltsverzeichnis ul li a { display: block; padding: 0.5rem; border-radius: 4px; text-decoration: none; }
.inhaltsverzeichnis ul li a:hover { background-color: #f8f9fa; color: #B53737; text-decoration: none; }
@media (max-width: 767px) { .inhaltsverzeichnis .iv-spalten { grid-template-columns: 1fr; } }

.featured-tutorial { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center; background-color: #f8f9fa; padding: 2rem; border-radius: 8px; border: 1px solid #e0e0e0; }
.featured-tutorial-image img { width: 100%; height: auto; border-radius: 5px; }
.subcategory-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.subcategory-item { display: block; padding: 1.5rem; border: 1px solid #e0e0e0; border-radius: 5px; text-decoration: none; color: #333; transition: all 0.3s ease; }
.subcategory-item:hover { border-color: #B53737; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-5px); color: #B53737; }
.subcategory-item h3 { margin-top: 0; }
@media (max-width: 767px) { .featured-tutorial { grid-template-columns: 1fr; } }

/* --- 5. SIDEBAR --- */
div.sidebar-right2.moduletable2 { background-color: #FFFFFF; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; padding: 0; }
div.sidebar-right2.moduletable2 h3 { background-color: #F8F9FA; color: #4A7A96; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1em; padding: 1rem 1.25rem; margin: 0; border-bottom: 1px solid #e0e0e0; text-transform: uppercase; letter-spacing: 0.5px; }
div.sidebar-right2.moduletable2 .module-content,
div.sidebar-right2.moduletable2 .custom,
div.sidebar-right2.moduletable2 .finder,
div.sidebar-right2.moduletable2 .mod-menu { padding: 1.25rem; }
div.sidebar-menue ul.mod-menu { list-style: none !important; padding: 0 !important; margin: 0 !important; }
div.sidebar-menue ul.mod-menu li.nav-item { padding: 0 !important; margin: 0 !important; border-bottom: 1px dotted #ccc; }
div.sidebar-menue ul.mod-menu li.nav-item:last-child { border-bottom: none; }
div.sidebar-menue ul.mod-menu li.nav-item a.nav-link { text-decoration: none !important; color: #B53737 !important; padding: 0.75rem 0 !important; font-weight: 600; font-family: 'Montserrat', sans-serif; background: none !important; }
div.sidebar-menue ul.mod-menu li.nav-item a.nav-link:hover { color: #9A2E2E !important; }
div.sidebar-begleiter { text-align: center; }
div.sidebar-begleiter img { max-width: 120px; border-radius: 50%; margin-bottom: 1rem; border: 3px solid #F5F5F5; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
div.sidebar-begleiter p { font-size: 0.95em; line-height: 1.5; color: #555; margin-bottom: 1.5rem; }
div.sidebar-begleiter .btn-brand-primary { background-color: #4A7A96; width: 100%; }
div.sidebar-begleiter .btn-brand-primary:hover { background-color: #3a6178; }
div.sidebar-suche .finder-search label { display: none; }
div.sidebar-suche .finder-search input[type="search"] { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; }
div.sidebar-suche .finder-search input[type="search"]:focus { border-color: #B53737; outline: none; }

/* --- 6. PREMIUM-TUTORIAL-KOMPONENTEN --- */
.benoetigt-box { background-color: #f8f9fa; border: 1px solid #e0e0e0; border-left: 5px solid #4A7A96; border-radius: 5px; padding: 1.5rem; margin: 2rem 0; }
.benoetigt-box h3 { margin-top: 0; color: #4A7A96; }
.benoetigt-box ul { list-style-type: '✓ '; list-style-position: inside; padding-left: 0.5rem; margin-bottom: 0; }
h2.schritt-titel { display: flex; align-items: center; margin-top: 3rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 0.5rem; }
.schritt-nummer { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 1.2em; font-weight: 700; color: #FFFFFF; background-color: #B53737; border-radius: 50%; margin-right: 1rem; flex-shrink: 0; }
.zusammenfassung-box { background-color: #d4edda; border: 1px solid #c3e6cb; border-left: 5px solid #28a745; border-radius: 5px; padding: 1.5rem; margin: 2rem 0; }
.zusammenfassung-box h3 { margin-top: 0; color: #155724; }
.zusammenfassung-box ul { list-style-type: '✓ '; list-style-position: inside; padding-left: 0.5rem; margin-bottom: 0; }

/* --- 7. MIKRO-INTERAKTIONEN & FEINSCHLIFF --- */
.item-page .article-body img { border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; max-width: 100%; height: auto; }
.item-page .article-body img:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.item-page .article-body blockquote { border-left: 5px solid #B53737; margin: 1.5rem 0; padding: 1rem 1.5rem; background-color: #f8f9fa; font-style: italic; font-size: 1.1em; border-radius: 0 5px 5px 0; }

/* --- 8. FAQ-AKKORDEON --- */
.faq-item { border-bottom: 1px solid #e0e0e0; margin-bottom: 1rem; }
.faq-frage { font-weight: bold; font-size: 1.2em; cursor: pointer; padding: 1rem 0; position: relative; color: #4A7A96; }
.faq-frage::after { content: '+'; position: absolute; right: 1rem; font-size: 1.5em; font-weight: 300; transition: transform 0.3s ease; }
.faq-antwort { padding: 0 1rem 0rem 1rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-item.active .faq-frage::after { transform: rotate(45deg); }
.faq-item.active .faq-antwort { max-height: 500px; padding: 0 1rem 1.5rem 1rem; }

/* --- 9. FORMULARE --- */
.form-label { font-weight: bold; margin-bottom: 0.5rem; display: block; }
.form-control, textarea.form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: 'Lato', sans-serif; font-size: 1em; margin-bottom: 1rem; transition: border-color 0.3s ease; }
.form-control:focus, textarea.form-control:focus { border-color: #B53737; outline: none; }
.btn-primary { background-color: #B53737 !important; color: #FFFFFF !important; padding: 12px 25px !important; border-radius: 5px !important; font-family: 'Montserrat', sans-serif !important; font-size: 1.1em !important; font-weight: bold !important; border: none !important; cursor: pointer !important; }
.btn-primary:hover { background-color: #9A2E2E !important; }
.form-check-label { font-size: 0.9em; }
.com-contact-contact .contact-form fieldset { border: none; padding: 0; }

/* --- 10. NEU: STYLING FÜR DIE STARTHILFE-SEITE --- */
.lernpfad { display: flex; flex-direction: column; gap: 2rem; }
.lernpfad-schritt { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; background-color: #f8f9fa; padding: 2rem; border-radius: 8px; border: 1px solid #e0e0e0; }
.lernpfad-icon { flex-shrink: 0; }
.lernpfad-icon img { width: 80px; height: 80px; }
.lernpfad-text { flex-grow: 1; }
.schritt-nummer-badge { display: inline-block; background-color: #B53737; color: white; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.9em; font-weight: bold; font-family: 'Montserrat', sans-serif; margin-bottom: 1rem; }
.lernpfad-text h2 { margin-top: 0; }