/*
Theme Name: bauXpert Magazin
Theme URI: https://blog.seelmeyer.de
Author: Bauzentrum Seelmeyer KG
Description: Custom WordPress-Theme für das bauXpert Seelmeyer Magazin, abgestimmt auf das Design von seelmeyer.de.
Version: 1.0
Requires PHP: 7.4
Text Domain: bauxpert-magazin
*/

:root {
  --blue: #004fa0;
  --blue-dark: #003a78;
  --red: #e5051c;
  --bg-light: #f5f6f7;
  --text: #1c2226;
  --text-muted: #5c6670;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; color: var(--text); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.script {
  font-family: 'Architects Daughter', cursive;
  color: var(--blue);
  font-weight: 400;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Header */
.site-header { border-bottom: 1px solid #e6e8ea; padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo img { height: 42px; display: block; }
.site-logo { font-size: 20px; font-weight: 700; }

nav.main-nav ul { list-style: none; display: flex; gap: 26px; font-size: 14px; font-weight: 700; color: #333; flex-wrap: wrap; }
nav.main-nav ul li a:hover { color: var(--blue); }
nav.main-nav .current-menu-item > a { color: var(--blue); }

.btn {
  display: inline-block; background: var(--blue); color: #fff !important; font-weight: 700; font-size: 13px;
  padding: 11px 20px; border-radius: 3px; border: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--blue); color: var(--blue) !important; font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 3px; background: transparent;
}

/* Hero */
.blog-hero { padding: 48px 0 36px; }
.blog-hero .eyebrow { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 10px; }
.blog-hero h1 { font-size: 52px; line-height: 1.1; }
.blog-hero .script-tag { font-size: 34px; display: block; margin-top: 8px; }
.blog-hero p.lead { color: var(--text-muted); font-size: 16px; max-width: 540px; margin-top: 14px; }

/* Category pills */
.cat-pills { display: flex; gap: 10px; margin: 26px 0 4px; flex-wrap: wrap; }
.cat-pill {
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 3px;
  border: 1.5px solid #dde1e4; color: var(--text-muted); background: #fff;
}
.cat-pill.active, .cat-pill:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Sections & grid */
.section { padding: 40px 0; }
.section-bg { background: var(--bg-light); }
.section h2 { font-size: 30px; margin-bottom: 22px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid #e6e8ea;
  transition: box-shadow .15s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,79,160,0.12); }
.card .thumb {
  aspect-ratio: 4/3; background: linear-gradient(135deg,#d8e4f0,#b9d0e6) center/cover no-repeat; position: relative;
}
.card .thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.card .thumb-label {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 2px; text-transform: uppercase; letter-spacing: .02em;
}
.card .body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); flex: 1; }
.card .read-more { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 14px; display: inline-flex; align-items: center; gap: 5px; }

.featured {
  grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; border-radius: 4px; overflow: hidden;
  border: 1px solid #e6e8ea;
}
.featured .thumb { aspect-ratio: auto; height: 100%; }
.featured .body { justify-content: center; padding: 26px; }
.featured h3 { font-size: 26px; }

/* Icon feature band */
.feature-band { background: var(--blue); padding: 32px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.feature-item { color: #fff; }
.feature-item .icon { width: 40px; height: 40px; margin: 0 auto 10px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.feature-item span { font-size: 14px; font-weight: 700; }

/* Newsletter band */
.cta-band { background: var(--blue); color: #fff; padding: 42px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.cta-band p { color: #cfe0f0; margin-bottom: 18px; font-size: 15px; }
.cta-band form { display: flex; gap: 10px; justify-content: center; max-width: 400px; margin: 0 auto; }
.cta-band input { flex: 1; padding: 12px 14px; border-radius: 3px; border: none; font-size: 14px; }
.cta-band .btn { background: var(--red); }
.cta-band .btn:hover { background: #b80415; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid #dde1e4; border-radius: 3px; font-size: 14px; font-weight: 700; color: var(--text-muted);
}
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* Article page */
.article-page { padding: 44px 0 56px; }
.article-header { max-width: 760px; margin: 0 auto 30px; text-align: left; }
.article-header .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.article-header .breadcrumb a { color: var(--blue); font-weight: 700; }
.article-header .cat-badge {
  display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 2px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .02em;
}
.article-header h1 { font-size: 42px; line-height: 1.15; margin-bottom: 16px; }
.article-header .byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.article-header .byline .avatar { width: 32px; height: 32px; border-radius: 50%; background: #d8e4f0; object-fit: cover; }
.article-hero-img {
  max-width: 900px; margin: 0 auto 32px; aspect-ratio: 16/7; background: linear-gradient(135deg,#d8e4f0,#b9d0e6) center/cover no-repeat;
  border-radius: 4px; overflow: hidden;
}
/* !important nötig: WordPress' eigenes classic-theme-styles.css setzt
   pauschal img { height: auto } und lädt nach unserem Stylesheet. */
.article-hero-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.article-body { max-width: 720px; margin: 0 auto; font-size: 17px; color: #262c31; }
.article-body h2 { font-size: 28px; margin: 34px 0 14px; }
.article-body h3 { font-size: 21px; margin: 26px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body blockquote {
  border-left: 3px solid var(--red); padding-left: 18px; margin: 26px 0; font-family: 'Architects Daughter', cursive;
  font-size: 22px; color: var(--blue); font-weight: 400;
}
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body img { border-radius: 4px; margin: 20px 0; }

.cta-inline {
  max-width: 720px; margin: 38px auto; background: var(--bg-light); border-radius: 4px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 4px solid var(--red);
  flex-wrap: wrap;
}
.cta-inline h4 { font-size: 19px; margin-bottom: 4px; }
.cta-inline p { font-size: 14px; color: var(--text-muted); }

.article-tags { max-width: 720px; margin: 40px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 3px; background: var(--bg-light); color: var(--text-muted);
}

/* Footer */
.site-footer { background: var(--bg-light); padding: 44px 0 22px; margin-top: 36px; border-top: 1px solid #e6e8ea; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; font-size: 14px; color: var(--text-muted); display: flex; flex-direction: column; gap: 7px; }
.footer-grid ul li a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid #dde1e4; padding-top: 18px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }

/* Kommentare */
.comment-respond, .comments-area { max-width: 720px; margin: 40px auto 0; }
.comment-reply-title { font-size: 22px; margin-bottom: 6px; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dde1e4; border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: var(--text);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-form .form-submit { margin-top: 6px; margin-bottom: 0; }
.comment-form input[type="submit"] {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px;
  padding: 11px 22px; border-radius: 3px; border: none; cursor: pointer; font-family: Arial, sans-serif;
}
.comment-form input[type="submit"]:hover { background: var(--blue-dark); }

.comment-list { list-style: none; margin-top: 24px; }
.comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid #eceef0; }
.comment-list .comment-author .fn { font-weight: 700; font-size: 14px; }
.comment-list .comment-metadata { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.comment-list .comment-content p { font-size: 15px; margin-bottom: 8px; }
.comment-list .reply a { font-size: 12px; font-weight: 700; color: var(--blue); }

/* No posts */
.no-results { padding: 60px 24px; text-align: center; color: var(--text-muted); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .featured { grid-column: span 1; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .blog-hero h1 { font-size: 34px; }
  .article-header h1 { font-size: 30px; }
}
