:root {
  --color-primary:   #b01724;
  --color-accent:    #001f5b;
  --color-text:      #666;
  --color-bg:        #fff;
  --font-base:       "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-size-base:  12px;        
  --h1-size:         2.3rem;     
  --h2-size:         1.6rem;        
  --line-height:     1.58;
  --wrapper-width:   1000px;
  --spacing-vertical:   1.85rem;  
  --spacing-horizontal: 0.85rem;  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: var(--font-size-base);
}
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: transparent;
  line-height: var(--line-height);
}

.background-image {
  position: fixed;
  inset: 0;
  background: url('../images/bg-werkstatt.jpg') center 0px/cover no-repeat;
  z-index: -1;
}

.site-wrapper {
  width: 100%;
  max-width: var(--wrapper-width);
  margin: 0 auto;
  background: var(--color-bg);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
  background: #fff;
  text-align: center;
  padding: 2.5rem 0 0; 
}
.header .logo {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: none;
  padding-bottom: 1rem;
}

.navbar {
  background: var(--color-primary);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 0; 
}

.navbar ul {
  display: flex;        
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  flex: 0 0 auto;        
  margin: 0;
  padding: 0;
}

.navbar a {
  display: block;
  padding: 0.75rem 1.77rem;
  white-space: nowrap;   
  color: #fff;
  text-decoration: none;
  border-right: 1px solid #fff;
}

.navbar li:last-child a {
  border-right: none;   
}

.navbar a:hover,
.navbar a.active {
  background: var(--color-accent);
}


.main {
  display: flex;
  gap: var(--spacing-horizontal);
  padding: 0 var(--spacing-vertical) var(--spacing-horizontal);
}

.content {
  flex: 4;
  padding: 4rem 2rem 2rem 1.5rem;
}
.content h1 {
  font-size: var(--h1-size);
  color: var(--color-primary);
  padding-bottom: 0.8rem;
}
.content p {
  margin-bottom: 1rem;
}
.content h2 {
  font-size: var(--h2-size);
  color: var(--color-accent);
  margin: 1.5rem 0 0.75rem;
}
.content ul {
  list-style: disc inside;
}


.img-text-row {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-horizontal);
  margin: 1rem 0 1rem;
}
.img-text-row img {
  width: auto;
  height: auto;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}
.img-text-row p {
  flex: 1;
  margin: 0;
}

.content p {
  margin-bottom: 0rem;
}


.sidebar {
  flex: 1;
  background: #f9f9f9;
  padding: 4rem var(--spacing-vertical) var(--spacing-horizontal);
  line-height: 1.7;
}
.sidebar h3 {
  font-size: 1.25rem;
  color: #212121;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.1rem;
}
.sidebar p,
.sidebar a {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.sidebar a {
  color: var(--color-primary);
  text-decoration: none;
}
.sidebar a:hover {
  text-decoration: underline;
}

.footer {
  background: var(--color-primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.footer-nav {
  display: flex;
}
.footer-nav a {
  display: inline-block;
  margin-right: 1rem;
  color: #fff;
  text-decoration: none;
 
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-nav .sep {
  margin: 0 0.5rem;
}
.footer .copyright a {
  color: #fff;
  text-decoration: none;
}
.footer .copyright a:hover {
  text-decoration: underline;
}

.cards {
  flex: 2;
  display: flex;
  gap: 17px;
  padding: 15px 15px;
}
.card {
  width: 218px;
  text-align: left;
}
.card-header {
  background: #1e2b70;
  color: #fff;
  font-size: 1.17rem;
  padding: 4px 5px;
  line-height: 22px;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 3px 0 24px;
}
.card p {
  margin: 27px 0 15px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.1px;
  color: #666;
}
.card a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.08rem;
}
.content li {
  line-height: 2rem;
}

.content a,
.z-link {
  color: var(--color-primary); 
  text-decoration: none;       
}

.content a:hover,
.z-link:hover {
  color: #000;
  text-decoration: none;
}
.content a:active,
.z-link:active {
  color: #000;
}

.color-swatch {
  display: inline-block;
  padding: 1rem 1rem;
  margin: 0.2rem;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 2px;
  color: #fff;
  text-transform: lowercase;
  text-align: center;
}
.swatch-schwarz   { background: #000; }
.swatch-nachtblau { background: #1e2b70; }
.swatch-basalt    { background: #555; }
.swatch-judyrot   { background: #b01724; }
.swatch-weiss     { background: #fff; color: #333; }
.swatch-mangogelb { background: #f1c40f; color: #333; }
.swatch-matt-schwarz  { background: #222; }
.swatch-nachtblau-matt{ background: #1a234d; }
.swatch-vanille       { background: #f7e7a1; color:#333; }
.swatch-weinrot       { background: #6e1e23; color:#fff}
.swatch-skyblue       { background: #2a56c6; }
.swatch-mocca         { background: #7f4f24; }
.swatch-anthrazit     { background: #333; }
.swatch-silber        { background: #bbb; color:#333; }
.swatch-silber-matt   { background: #999; color:#333; }


.img-text-row img.detail-img {
  width: 20%;
  height: auto;
  margin: 0 1rem 1rem 0rem;
}

.img-text-row {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-horizontal);
}

.detail-images {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-left: 2rem;
    }

.detail-images img.detail-img {
  width: 100%; 
  height: auto;
}
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.brands-grid figure {
  flex: 1 1 calc(33.333% - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brands-grid figure figcaption.above {
  order: -1;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-transform: capitalize;
}
.brands-grid figure figcaption.below {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}
.logo-margin {
  display: block;
  margin: 0 auto 15px;   
} 

.page-impressum h1 {
  color: #b01724;
  font-size: 2.3rem;
}
.page-impressum h2 {
  color: #001f5b;
  font-size: 1.6rem;
}
.page-impressum h3 {
  color: #b01724;
  font-size: 1.4rem;
}


.datenschutz-content h2 {
  color: var(--color-accent);
}
.datenschutz-content h3 {
  color: var(--color-primary);
}

body.home .sidebar {
  position: relative;
  margin-right: 3rem;
  padding-top: 0.75rem;   
  padding-left: 3rem    

}
@media (max-width: 1024px) {
  .site-wrapper {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main {
    flex-direction: column;
  }
  .content,
  .sidebar {
    width: 100%;
    padding: 1rem;
  }
  .img-text-row {
    flex-direction: column;
    gap: 1rem;
  }
  .cards {
    flex-wrap: wrap;
    justify-content: center;
  }
  .card {
    flex: 1 1 45%;
    max-width: 45%;
    margin: 0.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .content h1 {
    font-size: 2.1rem;
  }
  .content h2 {
    font-size: 1.45rem;
  }
  .content h3 {
    font-size: 1.1rem;
  }

  .page-datenschutz h1,
  .page-impressum h1 {
    font-size: 1.6rem;
  }
  .page-datenschutz h2,
  .page-impressum h2 {
    font-size: 1.2rem;
  }
  .page-datenschutz h3,
  .page-impressum h3 {
    font-size: 1.1rem;
  }
  .page-datenschutz p,
  .page-impressum p {
    font-size: 0.95rem;
  }

 .content img,
  .img-text-row img,
  .detail-images img {
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
  }

  body.page-kennbro .brands-grid img {
    width: 30%;
    max-width: 30%;
    height: auto;
    margin: 1rem auto;
  }

  body.page-elbe .img-text-row figure img {
    width: 50%;
    max-width: 50%;
    height: auto;
    margin: 1rem auto;
  }

  body.page-kennbro img[src*="NavKennbro/1.jpg"] {
    width: 50%;
    height: auto;
    display: block;
    margin: 1rem auto;
  }

  body.page-kennbro img[src*="NavKennbro/4.jpg"] {
    width: 50%;
    height: auto;
    display: block;
    margin: 1rem auto;
  }

  .navbar {
    overflow-x: auto;
    border-radius: 5%;
    margin-bottom: 5%;
  }
  .navbar ul {
    display: flex;
    flex-direction: column;
    background: var(--color-primary);
    padding: 0;
  }
  .navbar li {
    width: 100%;
    margin: 0;

  }
  .navbar a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid #fff;
  }
  .navbar li:last-child a {
    border-bottom: none;
  }
  .navbar a.active {
    background: var(--color-accent);
  }

  .cards {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .img-text-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .img-text-row img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .main {
    flex-direction: column;
  }
  .sidebar {
    margin-top: 2rem;
  }
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .header .logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 1rem;
  }
  .site-wrapper {
    padding: 0 1rem;
  }
.banner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  max-width: 100%;
}

  .NavZubehoer img {
  width: 60%;
}
body.page-ebikes .brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  body.page-ebikes .brands-grid a {
    margin: 0.5rem;
  }
  body.page-ebikes .brands-grid img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  body.page-fahrraeder .brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  body.page-fahrraeder .brands-grid a {
    margin: 0.5rem;
  }
  body.page-fahrraeder .brands-grid img {
    max-width: 100%;
    height: auto;
    display: block;
  }

}