/*
Theme Name: Redweik Theme
Author: Eilinghoff
Author URI: http://eilinghoff.de
Description: Ein individuelles WordPress-Theme für Redweik.
Version: 1.0
Text Domain: redweik.eillinghoff.de
Tags: architecture, modern, minimal, responsive
*/

/* Global smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Anchor offset for fixed headers */
section[id] {
  scroll-margin-top: 80px;
}

.nav-item a.active {
  color: var(--primary-color) !important;
  font-weight: bold !important;
}
/* Form */
input[type="text"],
textarea {
  border: 1.7px solid #303130 !important;
  border-radius: 0 !important;
  padding: 30px 20px !important;
}

/* Form */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px solid green; */
}

/* Responsive images globally */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-direction: column;
}
.header {
  top: -100px; /* Initially hidden above the screen */
  width: 100%;
  transition: top 0.5s ease-in-out;
  z-index: 1000;
  background-color: #fff;
}

.header.sticky {
  position: fixed;
  top: 0; /* Slide down when sticky */
}

.small-logo {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease; /* Smooth fade-in/out */
  max-width: 165px;
}

.big-logo {
  display: none;
}

.top-nav {
  max-width: 100%;
  width: 100%;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav .container .contact-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.top-nav .container .contact-nav a {
  text-decoration: underline;
  font-weight: bold;
}

.bottom-nav {
  max-width: 100%;
  width: 100%;
  padding-block: 18px;
  background-color: var(--primary-color);
}

.bottom-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-nav .container .icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bottom-nav .container .icons a img {
  transition: all 0.3s ease;
  background-color: transparent;
}

.bottom-nav .container .icons span {
  display: none;
}

.nav {
  background-color: white;
  visibility: hidden; /* Hidden by default */
  position: fixed;
  right: 0;
  top: 140px;
  width: 100vw;
  height: calc(100vh - 117px);
  z-index: 10;
  justify-content: flex-start;
  padding-inline: 20px;
  transform: translateX(-100%); /* Start offscreen */
  opacity: 0; /* Start invisible */
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth transition */
}
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  z-index: 1000;
}

.nav.active {
  visibility: visible; /* Make it visible */
  transform: translateX(0); /* Slide in */
  opacity: 1; /* Fully visible */
  overflow-y: auto; /* Add scrolling for small screens */
}
.nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  margin-left: -30px;
  padding-left: 30px;
}
.nav .nav-list .nav-item {
  padding-block: 10px;
  margin-left: -20px;
  padding-left: 20px;
  margin-right: -20px;
  padding-right: 20px;
  border-bottom: 2px solid #a3a3a3;
}

.nav .nav-list .nav-item .nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 100%;
  transition: all 0.3s ease;
  max-width: fit-content;
  cursor: pointer;
  position: relative;
}
.nav .nav-list .nav-item .nav-link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  position: absolute;
  left: 0;
  bottom: 0;
}
.nav .nav-list .nav-item .nav-link:hover::after {
  width: 100%;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.menu-toggle .hamburger {
  width: 38px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Accordion Styles */
.accordion-content {
  display: none;
  gap: 10px;
  max-height: 0; /* Collapsed */
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease; /* Smooth height and opacity change */
  opacity: 0;
  margin-left: -20px;
  padding-left: 20px;
  margin-right: -20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  background-color: #f2f1ee;
  z-index: 200;
}

.accordion.open + .accordion-content {
  max-height: 1000px; /* Large enough to fit content */
  opacity: 1;
  margin-bottom: -10px;
  transition: all 0.3s ease-in-out;
}
.accordion.open span:not(:last-child) {
  color: var(--primary-color) !important;
  margin-bottom: 10px;
}

.accordion-content a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 300;
  padding-top: 10px;
  border-bottom: 1px solid #d2d1d0;
  margin-right: -20px;
  padding-right: 20px;
  margin-left: -20px;
  padding-left: 20px;
  padding-bottom: 5px;
}

.accordion-content img {
  display: none;
}

.nav .first-menu {
  display: none;
}

.nav-bottom-kontakt {
  margin-top: 40px;
}
.nav-bottom-kontakt .kontakt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 100;
}

.nav .btn-orange {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  min-width: 100%;
  text-align: center;
  height: 46px;
}
.main-hero .main-hero-content .right-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.folge a,
.folge span {
  font-size: 18px;
  font-weight: 500;
}

/*  */
/*  */
/*  */
/* HERO SECTION */
/*  */
/*  */
/*  */
.kontaktwunsch a {
  position: fixed;
  bottom: 90px;
  right: 40px;
  padding-inline: 10px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: light;
  z-index: 1000;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kontaktwunsch a::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: var(--primary-color);
  z-index: -1;
  transform: rotate(45deg);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.kontaktwunsch a:hover::before {
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}
.hero {
  margin-top: 220px !important;
  height: 300px;
  background: url("assets/imgs/hero.jpg");
  background-size: cover;
  background-position: center;
}
.desk {
  display: none !important;
}
.hero .container h1 {
  max-width: 800px;
  margin-left: 0;
}
.hero h1 span {
  color: var(--secondary-color);
}
section {
  padding: 30px 0;
}
/* Möglichkeiten */
.moeglichkeiten {
  background-color: var(--section-bg);
}
.moeglichkeiten .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  justify-content: space-around;
}
.moeglichkeiten .cards .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  background-color: #fff;
  min-height: 50px;
  max-width: 235px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
.moeglichkeiten .cards .card img {
  max-width: 70%;
  min-width: 50%;
}
.markt {
  background-color: white !important;
}
.markt .top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.markt .top .p {
  max-width: 1050px;
  width: 100%;
}

/* Mobile First - Slider Style */
.markt .cards-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.markt .cards-wrapper {
  flex: 1;
  overflow: hidden;
  width: 100%;
  min-width: 290px;
}

.markt .cards {
  display: flex;
  transition: transform 0.3s ease;
  gap: 15px;
  padding: 20px 0;
  will-change: transform;
  width: 100%;
}

.markt .cards .card {
  position: relative;
  min-width: 300px;
  min-height: 300px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none; /* إزالة تنسيق الرابط */
  color: inherit;
  cursor: pointer;
  display: block;
}

.markt .cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.markt .cards .card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.markt .cards .card::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: #ffffff61;
  z-index: 1;
  transition: all 0.3s ease;
}

/* تأثير عند تمرير المؤشر */
.markt .cards .card:hover::before {
  background-color: rgba(255, 255, 255, 0.3);
}

/* تأثير زر أكثر وضوحًا عند تمرير المؤشر */
.markt .cards .card:hover .button {
  background-color: rgba(255, 255, 255, 0.95);
}

.markt .cards .card:hover .button span {
  color: var(--secondary-color);
}

.markt .cards .card:active {
  transform: translateY(0px);
  transition: transform 0.1s ease;
}

.markt .cards .card .button {
  max-width: 100%;
  width: 100%;
  position: absolute;
  left: 50%;
  bottom: 0;
  padding-block: 10px;
  transform: translateX(-50%);
  z-index: 1;
  background-color: #ffffff90;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.markt .cards .card .button p {
  position: relative;
  font-size: 20px;
  color: #fff;
  max-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.markt .cards .card .button span {
  position: relative;
  font-size: 20px;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 500;
  max-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight {
  color: var(--secondary-color) !important;
}
.markt .cards .card .button p::before {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  background-color: var(--primary-color);
  z-index: -1;
  transform: rotate(45deg);
  border-radius: 4px;
  transition: all 0.3s ease;
  left: -7px;
  top: 5px;
}

/* Slider Navigation */
.slider-btn {
  background: var(--primary-color);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  padding-bottom: 2px;
}
.prev-btn {
  left: 10px;
}
.next-btn {
  right: 10px;
}
.slider-btn:hover {
  background: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slider-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* إزالة الـ slider-nav والنقاط */
.slider-nav {
  display: none;
}

.slider-dots {
  display: none;
}

.slider-dot {
  display: none;
}
.kontakt-section {
  background-color: var(--primary-color);
}
.kontakt-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 50px;
  flex-wrap: wrap;
}
.kontakt-section img {
  max-width: 30px;
  max-height: 30px;
  width: 100%;
  height: 100%;
  height: auto;
}
.kontakt-section a {
  color: #fff;
  font-size: 18px;
}

.under .btn {
  padding-inline: 40px !important;
}

@media (min-width: 576px) {
  .moeglichkeiten .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .moeglichkeiten .cards .card {
    padding: 30px;
    min-height: 250px;
    max-width: 235px;
  }
  .moeglichkeiten .cards .card img {
    max-width: 100%;
    min-width: 50%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .markt .cards .card {
    min-width: 320px;
  }

  .markt .cards .card img {
    height: 220px;
  }

  .slider-btn {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }
  .slider-btn {
    width: 50px;
    height: 50px;
  }
  .kontakt-section a {
    font-size: 25px;
  }
} /* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .moeglichkeiten .cards {
    grid-template-columns: repeat(3, 230px);
  }
  /* Desktop - Grid Style */
  .markt .cards-container {
    display: block;
  }

  .markt .cards-wrapper {
    overflow: visible;
  }

  .markt .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    padding: 40px 0;
    transform: none !important;
    max-width: none;
    overflow: visible;
  }

  .markt .cards .card {
    min-width: auto;
    width: 100%;
    height: 280px;
    transition: all 0.3s ease;
  }

  .markt .cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .markt .cards .card img {
    height: 100%;
  }

  .markt .cards .card .button {
    padding-block: 15px;
  }

  .markt .cards .card .button a {
    font-size: 18px;
  }

  /* Hide slider buttons on desktop */
  .slider-btn {
    display: none;
  }
}
/* Large devices (desktops, 1024px and up) */
@media (min-width: 1200px) {
  .markt .top {
    gap: 20px;
  }
  .under .btn {
    padding-inline: 100px !important;
  }
  section {
    padding: 50px 0;
  }
  .hero {
    margin-top: 0 !important;
    height: 300px;
  }
  .hero .container h1 {
    margin-top: 0 !important;
  }
  .desk {
    display: inline !important;
  }
  .small-logo {
    display: none !important;
    opacity: 0;
  }
  .big-logo {
    display: block;
    margin-bottom: 20px;
  }
  .menu-toggle {
    display: none;
  }

  .bottom-nav .container .icons span {
    display: flex;
  }
  .tel-nummer,
  .bottom-nav .location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color) !important;
  }
  header .top-nav {
    max-width: 100%;
    width: 100%;
    padding-block: 7px;
    height: 42px;
  }
  .top-nav .container {
    justify-content: center;
  }
  header .bottom-nav {
    max-width: 100%;
    width: 100%;
    color: white;
    padding-block: 18px;
    max-height: 100px;
    display: flex;
    align-items: normal;
  }
  .bottom-nav {
    background-color: transparent;
  }
  .nav {
    all: unset;
  }

  .nav .nav-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-left: 0;
    padding-left: 0;
  }
  .nav .nav-list .nav-item .nav-link {
    color: var(--primary-color);
  }
  .nav .nav-list .nav-item {
    border: none !important;
  }
  .nav .btn-orange,
  .nav .folge,
  .nav .no-border {
    display: none;
  }
  /* Accordion in desktop */
  .accordion .plus-icon {
    display: none;
  }

  .accordion-content {
    display: flex;
    gap: 16px;
    background-color: #ffffff;
    margin-bottom: unset;
    padding-block: 50px;
    position: absolute;
    top: 120px;
    left: 49%;
    width: fit-content;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    transform: translateX(-50%);
    opacity: 0; /* Start with opacity 0 for closed state */
    visibility: hidden; /* Hide the content initially */
    transition: all 0.3s ease; /* Smooth transition for opacity and visibility */
    /* width: 100%; */
    align-items: baseline;
    justify-content: center;
    padding-block: 20px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  }

  .accordion.open + .accordion-content {
    opacity: 1; /* Fully visible when open */
    visibility: visible; /* Show the content */
    transition: all 0.3s ease; /* Smooth transition for opacity and visibility */
  }
  .accordion.open + .accordion-content img {
    display: block;
    max-width: 240px;
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.4s ease; /* Smooth transition for opacity and visibility */
  }
  .accordion-content a {
    border: none;
    padding: 0;
    margin: 0;
  }
  .accordion.open span:not(:last-child) {
    color: var(--primary-color) !important;
    margin-bottom: 0;
  }

  /*  */
  /*  */
  /*  */
  /* HERO SECTION */
  /*  */
  /*  */
  /*  */
  .hero {
    height: calc(100vh - 142px);
  }
  .hero h1 {
    padding-top: 80px;
  }
  .markt {
    margin-bottom: 0;
  }
}

/* Extra Large devices (large desktops, 1440px and up) */
@media (min-width: 1440px) {
  .block {
    display: block !important;
  }
  .moeglichkeiten .cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Extra Extra Large devices (4K screens, 1920px and up) */
@media (min-width: 1920px) {
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
  background-color: #f8f9fa;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer Sections */
.footer-section h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  padding-bottom: 5px;
  display: inline-block;
}

.footer-section p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.footer-section a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #e55100;
  text-decoration: underline;
}

/* Contact Info */
.contact-info p strong,
.contact-person p strong {
  color: #333;
}

/* Footer Navigation */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

/* Business Hours */

.business-hours h4 {
  margin-bottom: 10px;
}

.business-hours p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Footer Right Column */
.footer-right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-right a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
  color: var(--primary-color);
}

.footer-bottom-right span {
  color: #ccc;
  font-size: 13px;
}

/* Mobile Responsive */
@media (min-width: 576px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .footer-logo {
    grid-column: 1 / 2;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 80px 0 30px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 50px;
    align-items: start;
  }

  .footer-logo {
    grid-column: 1 / 2;
  }

  .footer-logo .logo h3 {
    font-size: 26px;
  }

  .footer-section h4 {
    font-size: 16px;
    font-weight: 600;
  }

  .footer-section p {
    font-size: 14px;
  }

  .business-hours {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
  }

  /* تنسيق خاص للـ navigation */
  .footer-section:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }
}

.nummer {
  display: none !important;
}
.etiketten .left::before {
  display: none !important;
}

.kontaktwunsch img {
  max-width: 80%;
}
/* ===== BORLABS COOKIE CUSTOM STYLING ===== */
