/*
Theme Name: Wiesner Rohrfrei
Author: Codex
Description: WordPress theme based on the existing Wiesner company website.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: wiesner
*/

body.admin-bar .site-header {
  top: 32px;
}

.navbar-brand .custom-logo,
.footer-brand-mark .custom-logo {
  display: block;
  width: 100%;
  height: auto;
}

.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current-menu-ancestor > .nav-link,
.navbar-nav .current_page_item > .nav-link,
.navbar-nav .current_page_ancestor > .nav-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.site-main {
  display: block;
  min-height: clamp(240px, 35vh, 520px);
}

.page-shell {
  padding: 4rem 0;
}

.page-shell--light {
  background:
    radial-gradient(circle at 82% 18%, rgba(230, 81, 30, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(244, 246, 251, 0.58) 0%, rgba(238, 243, 255, 0.52) 100%);
}

.content-card {
  padding: clamp(1.5rem, 2vw, 2.25rem);
  border: 1px solid rgba(13, 31, 87, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(0, 14, 50, 0.08);
}

.entry-title,
.archive-title {
  margin: 0 0 1rem;
  color: #000e32;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.entry-meta,
.archive-description {
  margin: 0 0 1.5rem;
  color: #4b587c;
}

.entry-content > * + *,
.post-card-copy > * + * {
  margin-top: 1.25rem;
}

.entry-content img,
.post-card-copy img {
  height: auto;
  border-radius: 1rem;
}

.entry-content a,
.post-card-copy a,
.footer-menu-placeholder a {
  color: #e6511e;
}

.entry-content a:hover,
.entry-content a:focus-visible,
.post-card-copy a:hover,
.post-card-copy a:focus-visible,
.footer-menu-placeholder a:hover,
.footer-menu-placeholder a:focus-visible {
  color: #b63f17;
}

.posts-grid {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.35rem, 2vw, 2rem);
  border: 1px solid rgba(13, 31, 87, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(0, 14, 50, 0.08);
}

.post-card-title {
  margin: 0;
  color: #000e32;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
}

.post-card-title a {
  text-decoration: none;
}

.post-card-meta {
  color: #4b587c;
  font-size: 0.95rem;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #ff7b37 0%, #e6511e 100%);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(230, 81, 30, 0.24);
}

.post-card-link:hover,
.post-card-link:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-menu-placeholder {
  margin: 0;
}

.footer-menu-placeholder a {
  font-weight: 700;
  text-decoration: none;
}

.no-content-message {
  margin: 0;
  color: #4b587c;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding: 3.25rem 0;
  }

  .content-card,
  .post-card {
    padding: 1.35rem;
  }
}
