/*
Theme Name: Schiller
Theme URI: https://schillermeet.de
Description: Custom theme for Schiller Institute, PHP 8.3 / WP 6.7 compatible
Version: 1.0
Author: Custom
Text Domain: schiller
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #049cdb; text-decoration: none; transition: color 0.2s; }
a:hover { color: #2D4F65; }
h1, h2, h3, h4, h5, h6 { color: #2D4F65; line-height: 1.3; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
img { max-width: 100%; height: auto; }
.site-container { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; min-height: 100vh; }
.site-header { background: #fff; border-bottom: 3px solid #2D4F65; }
.site-content { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.content-area { min-width: 0; }
.sidebar-area { min-width: 0; }
.site-footer { background: #2D4F65; color: #fff; padding: 40px 20px 20px; margin-top: 40px; }
.site-footer a { color: #8cc9e8; }
.site-footer a:hover { color: #fff; }
.full-width .site-content { grid-template-columns: 1fr; }
.left-sidebar .site-content .sidebar-area { order: 1; }
.left-sidebar .site-content .content-area { order: 2; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: 15px; }
.site-title { font-size: 1.5rem; font-weight: 700; color: #2D4F65; }
.site-title a { color: #2D4F65; }
.site-description { font-size: 0.85rem; color: #666; }
.custom-logo { max-height: 60px; width: auto; }
.site-header { position: sticky; top: 0; z-index: 999; }
.main-navigation { background: #2D4F65; }
.main-navigation .menu-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 12px 18px; color: #fff; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: #049cdb; }
.main-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #1a3a4a; min-width: 200px; max-height: 70vh; overflow-y: auto; z-index: 100; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu a { padding: 10px 18px; font-size: 0.85rem; text-transform: none; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 10px; }
.header-wpml { margin-left: auto; }
.post { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #e2e2e2; }
.post:last-child { border-bottom: none; }
.post-thumbnail { margin-bottom: 15px; }
.post-thumbnail img { display: block; width: 100%; border-radius: 3px; }
.post-title { font-size: 1.4rem; margin-bottom: 8px; }
.post-title a { color: #2D4F65; }
.post-title a:hover { color: #049cdb; }
.post-meta { font-size: 0.85rem; color: #888; margin-bottom: 12px; }
.post-meta span { margin-right: 15px; }
.post-excerpt { color: #555; line-height: 1.7; }
.post-excerpt p { margin-bottom: 10px; }
.read-more { display: inline-block; margin-top: 10px; padding: 8px 20px; background: #049cdb; color: #fff; border-radius: 3px; font-size: 0.9rem; font-weight: 600; }
.read-more:hover { background: #2D4F65; color: #fff; }
.single-post .post-title { font-size: 2rem; margin-bottom: 15px; }
.single-post .post-meta { padding-bottom: 15px; border-bottom: 1px solid #e2e2e2; margin-bottom: 20px; }
.single-post .entry-content { line-height: 1.8; }
.single-post .entry-content p { margin-bottom: 1.2em; }
.single-post .entry-content blockquote { border-left: 4px solid #2D4F65; padding: 15px 20px; margin: 20px 0; background: #f8f9fa; font-style: italic; }
.related-posts { margin-top: 40px; padding-top: 30px; border-top: 2px solid #e2e2e2; }
.related-posts h3 { margin-bottom: 20px; }
.related-posts ul { list-style: none; }
.related-posts li { margin-bottom: 10px; }
.page-header { margin-bottom: 30px; }
.page-title { font-size: 2rem; }
.widget { margin-bottom: 30px; }
.widget-title { font-size: 1.1rem; font-weight: 700; color: #2D4F65; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #2D4F65; text-transform: uppercase; }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px dotted #e2e2e2; }
.widget li:last-child { border-bottom: none; }
.widget_search .search-form { display: flex; }
.widget_search .search-field { flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 3px 0 0 3px; }
.widget_search .search-submit { padding: 8px 15px; background: #2D4F65; color: #fff; border: none; border-radius: 0 3px 3px 0; cursor: pointer; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-widgets .widget-title { color: #fff; border-bottom-color: #049cdb; }
.footer-widgets .widget li { border-bottom-color: rgba(255,255,255,0.1); }
.site-info { text-align: center; font-size: 0.85rem; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); max-width: 1200px; margin: 0 auto; }
.pagination { text-align: center; margin: 30px 0; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #e2e2e2; border-radius: 3px; color: #2D4F65; font-size: 0.9rem; }
.pagination .page-numbers.current { background: #2D4F65; color: #fff; border-color: #2D4F65; }
.pagination .page-numbers:hover:not(.current) { background: #049cdb; color: #fff; border-color: #049cdb; }
.comments-area { margin-top: 40px; padding-top: 30px; border-top: 2px solid #e2e2e2; }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid #e2e2e2; }
.comment-author { font-weight: 600; margin-bottom: 5px; }
.comment-metadata { font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.comment-reply-link { font-size: 0.85rem; color: #049cdb; }
.archive-header, .search-header { margin-bottom: 30px; padding: 20px; background: #f8f9fa; border-left: 4px solid #2D4F65; }
.archive-title, .search-title { font-size: 1.5rem; color: #2D4F65; }
.error404 .site-content { grid-template-columns: 1fr; text-align: center; padding: 80px 20px; }
.error404 .page-title { font-size: 3rem; margin-bottom: 20px; }
.error404 .search-form { max-width: 400px; margin: 30px auto; display: flex; }
.error404 .search-field { flex: 1; padding: 10px 15px; border: 1px solid #ccc; border-radius: 3px 0 0 3px; }
.error404 .search-submit { padding: 10px 20px; background: #2D4F65; color: #fff; border: none; border-radius: 0 3px 3px 0; cursor: pointer; }
.alm-reveal { display: block !important; }
.alm-btn-wrap { text-align: center; margin: 30px 0; }
.alm-load-more-btn { padding: 12px 30px; background: #049cdb; color: #fff; border: none; border-radius: 3px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.alm-load-more-btn:hover { background: #2D4F65; }
.breadcrumbs { display: block; width: 100%; font-size: 0.85rem; color: #888; margin-bottom: 20px; padding: 10px 0; border-bottom: 1px dotted #e2e2e2; }
.breadcrumbs a { color: #049cdb; }
.breadcrumbs span { margin: 0 5px; }
.social-share { margin: 20px 0; padding: 15px 0; border-top: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; }
.social-share span { font-weight: 600; margin-right: 10px; color: #2D4F65; }
.social-share a { display: inline-block; margin: 0 5px; padding: 6px 12px; border-radius: 3px; color: #fff; font-size: 0.85rem; }
.social-share .share-twitter { background: #1da1f2; }
.social-share .share-facebook { background: #3b5998; }
.social-share .share-email { background: #666; }
.home-slider { margin-bottom: 40px; }
@media (max-width: 960px) {
  .site-content { grid-template-columns: 1fr; gap: 30px; }
  .footer-widgets { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .main-navigation ul { display: none; flex-direction: column; }
  .main-navigation.toggled ul { display: flex; }
  .main-navigation .sub-menu { position: static; box-shadow: none; background: #1a3a4a; max-height: none; overflow-y: visible; }
  .main-navigation a { padding: 10px 15px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  .site-content { padding: 20px 15px; }
  .single-post .post-title { font-size: 1.5rem; }
}

/* Shortcodes */
.title-big { text-align: center; margin: 30px 0; }
.title-big-title { font-size: 1.8rem; color: #2D4F65; font-weight: 700; line-height: 1.3; }
.title-big-subtitle { font-size: 1rem; color: #888; margin-top: 10px; }
.cta-big { background: #f8f9fa; padding: 30px; margin: 20px 0; border-left: 4px solid #2D4F65; }
.cta-big h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cta-small { text-align: center; padding: 20px; margin: 15px 0; background: #f8f9fa; border-radius: 4px; }
.cta-small h4 { margin-bottom: 10px; }
.cta-small p { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.cta-btn { display: inline-block; padding: 8px 20px; border-radius: 3px; text-decoration: none; font-weight: 600; }
.info-box { margin: 15px 0; padding: 15px; background: #f8f9fa; border-left: 3px solid #2D4F65; }
.info-box-title { color: #2D4F65; margin-bottom: 8px; font-size: 1rem; }
.wide-bar { margin: 20px -40px; padding: 30px 40px; }
/* Column Grid */
.one-half { float: left; width: 48%; margin-right: 4%; margin-bottom: 20px; }
.one-half.last, .one-third.last, .one-fourth.last, .two-third.last, .three-fourth.last, .one-fifth.last { margin-right: 0; }
.one-third { float: left; width: 31%; margin-right: 3.5%; margin-bottom: 20px; }
.one-fourth { float: left; width: 23%; margin-right: 2.6%; margin-bottom: 20px; }
.two-third { float: left; width: 65%; margin-right: 3%; margin-bottom: 20px; }
.three-fourth { float: left; width: 73%; margin-right: 2%; margin-bottom: 20px; }
.four-fifth { float: left; width: 78%; margin-right: 2%; margin-bottom: 20px; }
.one-fifth { float: left; width: 18%; margin-bottom: 20px; }
.clear { clear: both; }

/* Shortcode HR / Divider */
.shortcode-hr { border: none; border-top: 1px solid #e2e2e2; margin: 30px 0; }
.divider { clear: both; margin: 20px 0; border-top: 1px solid #e2e2e2; }
.divider.divider10 { border-top-style: dashed; }
.divider.divider2 { border-top-width: 2px; }
.divider.divider3 { border-top-width: 3px; border-top-color: #2D4F65; }
.divider.divider4 { border-top: 3px double #e2e2e2; }
.divider.divider5 { border-top: 2px dotted #e2e2e2; }

/* Title Small */
.title-small { text-align: center; margin: 20px 0; }
.title-small-title { font-size: 1.3rem; color: #2D4F65; font-weight: 600; }
.title-small-subtitle { font-size: 0.9rem; color: #888; margin-top: 5px; }

/* Dropcap */
.dropcap { float: left; font-size: 3.5rem; line-height: 0.8; font-weight: 700; color: #2D4F65; margin-right: 8px; margin-top: 5px; }

/* Emphasis */
.shortcode-emphasis { font-style: italic; color: #2D4F65; }

/* Toggle / Accordion */
.toggle-box { margin: 15px 0; border: 1px solid #e2e2e2; border-radius: 3px; }
.toggle-title { display: block; width: 100%; text-align: left; padding: 12px 18px; background: #f8f9fa; border: none; font-size: 1rem; font-weight: 600; color: #2D4F65; cursor: pointer; }
.toggle-title:hover { background: #e9ecef; }
.toggle-content { padding: 15px 18px; }
.accordion { margin: 15px 0; }

/* Tabs */
.tabs { margin: 20px 0; }
.tabs-nav { list-style: none; padding: 0; margin: 0; border-bottom: 2px solid #2D4F65; display: flex; flex-wrap: wrap; }
.tabs-nav li { margin: 0; }
.tabs-nav li a { display: block; padding: 10px 20px; background: #f8f9fa; color: #555; text-decoration: none; border: 1px solid #e2e2e2; border-bottom: none; margin-right: 2px; border-radius: 4px 4px 0 0; font-weight: 600; font-size: 0.9rem; }
.tabs-nav li.active a, .tabs-nav li a:hover { background: #2D4F65; color: #fff; border-color: #2D4F65; }
.tab-content { padding: 20px; border: 1px solid #e2e2e2; border-top: none; background: #fff; }

/* Image */
.shortcode-image { margin: 15px 0; }
.shortcode-image.alignright { float: right; margin-left: 20px; }
.shortcode-image.alignleft { float: left; margin-right: 20px; }
.shortcode-image img { max-width: 100%; height: auto; border-radius: 3px; }

/* Lightbox */
.lightbox-link { display: inline-block; position: relative; }
.lightbox-title { display: block; padding: 10px; background: rgba(0,0,0,0.7); color: #fff; text-align: center; font-size: 0.85rem; border-radius: 3px; }

/* Icon */
.shortcode-icon { max-width: 64px; height: auto; }
.shortcode-icon.icon-left { float: left; margin: 0 15px 10px 0; }
.shortcode-icon.icon-right { float: right; margin: 0 0 10px 15px; }

/* Testimonial */
.testimonial { margin: 20px 0; padding: 20px 25px; background: #f8f9fa; border-left: 4px solid #2D4F65; border-radius: 3px; }
.testimonial blockquote { margin: 0; padding: 0; border: none; background: none; font-style: italic; color: #555; }
.testimonial-person { margin-top: 12px; text-align: right; font-weight: 600; color: #2D4F65; font-size: 0.9rem; }

/* Testimonial Scroller */
.testimonial-scroller { margin: 20px 0; }
.ts-slide { display: none; }
.ts-slide.active { display: block; }

/* Portfolio Grid */
.portfolio-grid { display: grid; gap: 20px; margin: 20px 0; }
.portfolio-cols-2 { grid-template-columns: repeat(2,1fr); }
.portfolio-cols-3 { grid-template-columns: repeat(3,1fr); }
.portfolio-cols-4 { grid-template-columns: repeat(4,1fr); }
.portfolio-item { text-align: center; }
.portfolio-item img { width: 100%; height: auto; border-radius: 3px; display: block; }
.portfolio-item h4 { margin-top: 8px; font-size: 0.95rem; }

/* Price Table */
.price-table { display: grid; gap: 0; margin: 20px 0; border: 1px solid #e2e2e2; border-radius: 4px; overflow: hidden; }
.price-cols-2 { grid-template-columns: repeat(2,1fr); }
.price-cols-3 { grid-template-columns: repeat(3,1fr); }
.price-cols-4 { grid-template-columns: repeat(4,1fr); }
.price-column { border-right: 1px solid #e2e2e2; }
.price-column:last-child { border-right: none; }
.price-column-header { background: #2D4F65; color: #fff; text-align: center; padding: 12px; font-weight: 700; font-size: 1.1rem; }
.price-column-content { padding: 15px; text-align: center; }
.price-tag { margin: 10px 0; }
.price-value { font-size: 2rem; font-weight: 700; color: #2D4F65; }
.price-period { font-size: 0.85rem; color: #888; }

/* CTA Bar */
.cta-bar { display: flex; align-items: center; justify-content: space-between; padding: 25px 30px; background: #2D4F65; color: #fff; border-radius: 4px; margin: 20px 0; flex-wrap: wrap; gap: 15px; }
.cta-bar h3 { color: #fff; margin: 0 0 5px; font-size: 1.2rem; }
.cta-bar p { margin: 0; opacity: 0.9; }
.cta-bar-btn { display: inline-block; padding: 10px 24px; background: #049cdb; color: #fff; border-radius: 4px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.cta-bar-btn:hover { background: #0390c7; color: #fff; }

/* Logo Scroller */
.logo-scroller { display: flex; overflow-x: auto; gap: 20px; padding: 10px 0; margin: 15px 0; }
.logo-item { flex: 0 0 auto; }
.logo-item img { max-height: 60px; width: auto; display: block; }

/* Recent Posts Widget */
.recent-posts-widget { margin: 20px 0; }
.recent-posts-widget ul { list-style: none; padding: 0; }
.recent-posts-widget li { padding: 8px 0; border-bottom: 1px dotted #e2e2e2; }
.recent-posts-widget li:last-child { border-bottom: none; }
.recent-posts-widget li a { font-weight: 600; }
.recent-posts-widget li p { font-size: 0.85rem; color: #666; margin: 4px 0 0; }

/* Custom List */
.custom-list { margin: 15px 0; padding-left: 20px; }
.custom-list li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 960px) {
  .one-half, .one-half.last, .one-third, .one-third.last,
  .one-fourth, .one-fourth.last, .two-third, .two-third.last,
  .three-fourth, .three-fourth.last, .four-fifth, .one-fifth.last { float: none; width: 100%; margin-right: 0; }
  .portfolio-cols-3, .portfolio-cols-4 { grid-template-columns: repeat(2,1fr); }
  .price-cols-3, .price-cols-4 { grid-template-columns: repeat(2,1fr); }
  .cta-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .wide-bar { margin: 20px -15px; padding: 20px 15px; }
  .portfolio-cols-2, .portfolio-cols-3, .portfolio-cols-4 { grid-template-columns: 1fr; }
  .price-cols-2, .price-cols-3, .price-cols-4 { grid-template-columns: 1fr; }
  .price-column { border-right: none; border-bottom: 1px solid #e2e2e2; }
  .tabs-nav { flex-direction: column; border-bottom: none; }
  .tabs-nav li a { border-radius: 0; margin-right: 0; border-bottom: 1px solid #e2e2e2; }
}



/* CPT AJAX Load More */
.cpt-alm-post { display: flex; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e2e2e2; }
.cpt-alm-post:last-child { border-bottom: none; }
.cpt-alm-thumb { flex: 0 0 150px; }
.cpt-alm-thumb img { width: 100%; height: auto; border-radius: 3px; display: block; }
.cpt-alm-content { flex: 1; }
.cpt-alm-content h3 { font-size: 1.1rem; margin: 0 0 5px; }
.cpt-alm-content h3 a { color: #2D4F65; }
.cpt-alm-content h3 a:hover { color: #049cdb; }
.cpt-alm-meta { font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.cpt-alm-excerpt { font-size: 0.9rem; color: #555; line-height: 1.6; margin-bottom: 8px; }
.cpt-alm-readmore { font-size: 0.85rem; color: #049cdb; font-weight: 600; }
.cpt-alm-readmore:hover { color: #2D4F65; }
@media (max-width: 600px) {
  .cpt-alm-post { flex-direction: column; }
  .cpt-alm-thumb { flex: none; max-width: 100%; }
}
