/*
Theme Name: Der Bergsteiger
Theme URI: https://derbergsteiger.com
Description: Deutsches Trekking Theme
Author: Mario
Author URI: https://derbergsteiger.com
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: derbergsteiger
*/

@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@700&display=swap');

body {
  font-family: sans-serif;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 16px;
  box-sizing: border-box;
  background: #F2F2EF;
  color: #1C1C1C;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  padding: 1em;
  background-color: #F2F2EF;
  border-bottom: 4px solid #2E5339;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

header .site-info h1 {
  font-size: 2em;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
}

header .site-info h1 a {
  color: #2E5339;
  text-decoration: none;
}

.header-title {
  font-family: 'Cabin Sketch', cursive;
  color: #D97B29;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  letter-spacing: 0.05em;
  text-align: center;
}

.header-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  position: relative;
}

.menu-toggle {
  color: #2E5339;
}

.header-background {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 12px;
}

.header-background img {
  width: 100%;
  height: auto;
  display: block;
}
.header-image-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1em 1em;
  box-sizing: border-box;
}

.header-image-container img {
  width: 100%;
  height: auto;
  display: block;
}


header .site-info {
  flex: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  line-height: 1;
}

@media screen and (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
}

nav {
  flex: 0 1 auto;
  text-align: center;
  display: inline-flex;
  align-items: center;
  margin: 0 auto;
}

.suche {
  display: inline-flex;
  margin-left: auto;
  vertical-align: middle;
  position: absolute;
  right: 0;
}

.suche form {
  display: flex;
  align-items: center;
}

.suche input[type="search"] {
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #A9C4C0;
  border-radius: 4px;
  width: 180px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232E5339" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><line x1="20" y1="20" x2="16.65" y2="16.65"/></svg>') no-repeat right 10px center;
  padding-right: 36px;
}

.suche input[type="submit"] {
  display: none;
}

.suche input[type="submit"]:hover {
  background-color: #2E5339;
}

.mein-menue {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 1.3em;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
  color: #2E5339;
  justify-content: center;
}

.mein-menue li {
  display: inline-flex;
  position: relative;
  align-items: center;
}

.mein-menue > li:not(:last-child)::after {
  content: '|';
  color: #A9C4C0;
  margin: 0 0.75em;
}

.mein-menue a {
  text-decoration: none;
  color: #2E5339;
  position: relative;
  padding: 0.5em 0.75em;
  display: inline-block;
}

.mein-menue a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #A9C4C0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.mein-menue a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mein-menue li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #F2F2EF;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #A9C4C0;
  z-index: 10;
  text-align: left;
}

.mein-menue li:hover ul {
  display: block;
}

.mein-menue li.submenu-open > ul {
  display: block;
}

.mein-menue li ul li {
  display: block;
}

.mein-menue li ul li a {
  display: block;
  padding: 0.5em 1em;
  white-space: nowrap;
  color: #2E5339;
  text-decoration: none;
}

.mein-menue li ul li a:hover {
  background: #D97B29;
  color: #F2F2EF;
}

.content-with-sidebar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 2em;
  padding: 0 0 2em;
}

body.blog .content-with-sidebar {
  padding-top: 0;
}

.main-content {
  width: 80%;
}

.packlist-content {
  background: #F2F2EF;
  padding: 1.5em;
  border-radius: 8px;
}

.sidebar {
  width: 20%;
  background: #F2F2EF;
  padding: 1em;
  border-radius: 0;
  margin-top: 5em;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #A9C4C0;
  padding-left: 1.5em;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin: 0;
}

.sidebar a {
  text-decoration: none;
  color: #2E5339;
  padding: 0.3em 0.6em;
  background: #F2F2EF;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sidebar a:hover {
  background: #D97B29;
  color: #F2F2EF;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
}

.blog-grid article {
  all: unset;
  display: block;
  padding: 0;
}

.blog-grid article a {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.blog-grid article p {
  text-align: justify;
}

.blog-grid article h2 {
  font-size: 2em;
  margin: 0.5em 0 0;
  color: #2E5339;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
}

.blog-heading {
  text-align: center;
  margin-bottom: 1.5em;
}

.blog-heading h2 {
  font-size: 3em;
  margin: 0;
  color: #2E5339;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
}

.blog-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.5em;
}

.pagination {
  text-align: center;
  margin: 2em 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 0.5em;
  padding: 0.5em 1em;
  background: #A9C4C0;
  color: #1C1C1C;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .current {
  background: #2E5339;
  color: #F2F2EF;
  font-weight: bold;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3em 2em;
  background: #2E5339;
  color: #F2F2EF;
  position: relative;
  margin-top: 3em;
  margin-bottom: 0;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 2em;
}

footer .footer-left,
footer .footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  flex: 1;
  min-width: 200px;
}

footer .footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  flex: 1;
  min-width: 200px;
}

footer .footer-logo {
  font-size: 1.8em;
  color: #F2F2EF;
  text-decoration: none;
  margin-bottom: 0.5em;
}

footer .footer-slogan {
  font-size: 0.9em;
  text-align: center;
  color: #F2F2EF;
}

footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

footer .footer-links a {
  color: #F2F2EF;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 0;
}

footer .footer-links a:hover {
  color: #D97B29;
  transform: translateX(5px);
}

footer .social-icons {
  display: flex;
  gap: 1em;
  margin-top: 0.5em;
}

footer .social-icons a {
  color: #F2F2EF;
  font-size: 1.5em;
  transition: all 0.3s ease;
}

footer .social-icons a:hover {
  color: #D97B29;
  transform: scale(1.2);
}

footer .copyright {
  width: 100%;
  text-align: center;
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid rgba(242, 242, 239, 0.3);
  font-size: 0.9em;
  color: #F2F2EF;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  footer .footer-left,
  footer .footer-center,
  footer .footer-right {
    width: 100%;
    min-width: unset;
  }
}

footer .footer-left .legal-links {
  display: flex;
  gap: 2em;
}

footer .footer-left .copyright {
  font-size: 0.9em;
  color: #000;
}




.footer-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #D97B29;
  border: none;
  margin: 0;
}

/* Sitemap Styling */
.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2em;
}

.sitemap-list li {
  margin: 5px 0;
}


/* Sicherstellen, dass Links in der Sitemap keine Unterstreichung und keine blaue Farbe haben */
.sitemap-list li a {
  color: #2E5339 !important; /* Setzt den Text auf die Primärfarbe */
  text-decoration: none !important; /* Entfernt die Unterstreichung */
}

.sitemap-list li a:hover {
  color: #D97B29 !important; /* Wärme beim Hover */
  text-decoration: none !important; /* Entfernt die Unterstreichung beim Hover */
}



h1, h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #2E5339;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1.1em;
  margin-bottom: 0.75em;
  color: #2E5339;
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
}

/* Main content styles */
.main-content {
  max-width: 80%;
  margin: 0 auto;
}

.main-content ul {
  padding-left: 20px;
}

.main-content ul li {
  padding-left: 10px;
}

.full-width-title-wrap {
	background-color: #2E5339;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 10px 00px;
}

.full-width-title-wrap .post-title {
    color: white;
    text-align: center;
    font-size: 2.5em;
    margin: 0;
}

/* Desktop Styles (1920px and above - Full HD) */
@media screen and (min-width: 1920px) {
  .mein-menue {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 1.3em;
  }
  
  .menu-toggle {
    display: none !important;
  }
}

/* Tablet Styles (1025px - 1919px) */
@media screen and (max-width: 1919px) and (min-width: 1025px) {
  body {
    max-width: 100%;
  }
  
  .menu-toggle {
    display: none !important;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
  }
  
  .content-with-sidebar {
    flex-direction: column;
    gap: 2em;
  }
  
  .main-content {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
    margin-top: 3em;
  }
  
  .mein-menue {
    font-size: 1.3em;
  }
  
  .mein-menue a {
    padding: 0.3em;
  }
  
  .suche input[type="search"] {
    width: 150px;
  }
  
  header .site-info h1 {
    font-size: 1.5em;
  }
  
  .full-width-title-wrap .post-title {
    font-size: 2em;
  }
}

/* Mobile Styles (max-width: 767px) */
@media screen and (max-width: 767px) {
  body {
    max-width: 100%;
  }
  
  header {
    flex-direction: column;
    padding: 1em;
    gap: 1em;
  }
  
  header .site-info {
    text-align: center;
  }
  
  header .site-info h1 {
    font-size: 1.3em;
  }
  
  .menu-toggle {
    display: block !important;
  }
  
  .blog-grid img {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
  }
  
  nav {
    width: 100%;
    text-align: center;
  }
  
  .mein-menue {
    display: none !important;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1em 0;
  }
  
  .mein-menue.active {
    display: flex !important;
  }
  
  .mein-menue li {
    display: block;
  }
  
  .mein-menue li ul {
    position: static;
    display: block;
    background: #f4f4f4;
    margin-top: 0.5em;
  }
  
  .suche {
    width: 100%;
    margin-left: 0;
    margin-top: 1em;
  }
  
  .suche form {
    justify-content: center;
  }
  
  .suche input[type="search"] {
    width: 200px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 100px;
    max-width: 90%;
    margin: 0 auto;
  }
  
  .content-with-sidebar {
    flex-direction: column;
    padding: 1em;
  }
  
  .main-content {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
    margin-top: 1.5em;
  }
  
  .sidebar ul {
    justify-content: center;
  }
  
  footer {
    flex-direction: column;
    height: auto;
    padding: 2em 1em;
    text-align: center;
    gap: 2em;
  }
  
  footer .footer-left {
    align-items: center;
  }
  
  footer .footer-left .legal-links {
    flex-direction: column;
    gap: 1em;
  }
  
  footer .footer-center {
    display: none;
  }
  
  .full-width-title-wrap .post-title {
    font-size: 1.8em;
    padding: 0 1em;
  }
  
  .header-background {
    height: 200px;
  }
  
  h1, h2 {
    font-size: 1.3em;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.4em 0.8em;
    margin: 0 0.2em;
  }
}



