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

:root {
  --primary-color: #c00505;
  --secondary-light-color: #FFCDD2;
  --secondary-dark-color: #263238;
  --background-color: #1F1B1B;
  --bg-color-modal: #1c1c1cc9;
  --background-alt-color: #ECEFF1;
  --text-primary-color: #e4dfcf;
  --text-secondary-color: #5d5c5c;
  --hover-color: #E2DCC8;
  --border-color: #B0BEC5;
  --background-leicht-weiss: rgba(255, 255, 255, 0.64);
  --border: 1px solid rgba(230, 227, 217, 0.3)
}

/* --- Grundlegende Typografie & Resets --- */
a,
address,
b,
body,
canvas,
center,
div,
embed,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
i,
iframe,
img,
label,
legend,
li,
menu,
nav,
p,
s,
section,
small,
span,
summary,
ul {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

h5 {
  line-height: normal;
  margin-top: 5px;
  margin-bottom: 2px;
  font-weight: 600;
}

span {
  color: var(--primary-color);
}

hr {
  margin-top: 50px;
  margin-bottom: 20px;
  border: none;
  border-top: 2px solid var(--primary-color);
}

html {
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 1.1rem !important;
}

body,
html {
  font-family: AvantGarde, sans-serif;
  max-width: 100%;
  height: auto;
}

body {
  color: var(--text-primary-color);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(to right, #241f1f 0, #241f1f 32%, #4a4746 100%);
}

@font-face {
  font-family: AvantGarde;
  src: url('../fonts/Avant_Garde_Book.woff2') format('woff2'),
    url('../fonts/Avant_Garde_Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

li {
  margin: 0 0 0 3%;
  list-style: none;
}

.text-wrap {
  overflow-wrap: break-word;
  /* bricht lange Wörter bei Bedarf */
  word-wrap: break-word;
  /* ältere Browser, fallback */
  word-break: break-word;
  /* für Kompatibilität */
  hyphens: auto;
  /* Silbentrennung (wenn Sprache definiert ist, z. B. <html lang="de">) */
  white-space: normal;
  /* normaler Zeilenumbruch */
}

p {
  max-width: 900px;
  line-height: 1.2;
  word-wrap: break-word;
  font-size: clamp(1rem, .82rem + .49vw, 1.13rem);
  color: var(--text-primary-color) !important;
}

b {
  font-weight: 800;
  text-transform: uppercase;
}

i {
  font-style: italic;
}

a {
  text-decoration: none;
  color: var(--text-primary-color);
}

a:hover,
.header__menu li.active a {
  color: var(--primary-color);
}

li:hover {
  color: var(--primary-color) !important;
}

/* --- Allgemeine Komponenten & Helferklassen --- */
.main {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  position: relative;
}

.noise {
  z-index: -2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .15;
}

.noise--inner {
  width: 100%;
  height: 100%;
  position: absolute;
}

.img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.logo {
  width: 35px;
  height: auto;
}

.btn {
  border: 0;
  color: #e2dcc8;
  cursor: pointer;
  display: inline-block;
  border-radius: 70px;
  background: var(--primary-color);
  transition: background .3s, color .3s;
  font-size: 1.125rem;
  line-height: 130%;
  text-transform: uppercase;
  text-align: center;
  padding: .42917vw 1ch;
}

.btn:hover {
  background: #e2dcc8;
  color: var(--primary-color);
}

.h1 {
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 95%;
  text-transform: uppercase;
}

.h2 {
  color: var(--text-primary-color);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 100%;
  white-space: normal;
  word-break: break-word;
  hyphens: normal;
}

.small {
  font-size: clamp(1rem, .82rem + .49vw, 1.13rem);
  line-height: 120%;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Header & Navigation --- */
.header {
  background-color: var(--background-color);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  border-bottom: 1px solid rgba(230, 227, 217, .3);
  height: clamp(70px, 4.73542vw, 110px);
  left: 0;
  position: fixed;
  top: 0;
  z-index: 100;
}

.header__left {
  width: 36.927vw;
  box-sizing: border-box;
  border-right: 1px solid rgba(230, 227, 217, .3);
  display: flex;
  flex-shrink: 0;
}

.header__right {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 1.66667vw;
}

.header__letter {
  padding: 1%;
  width: 4.3vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.97917vw;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
  border-right: 1px solid rgba(230, 227, 217, .3);
}

.header__letter img {
  width: 80%;
  padding: 2%;
}

.header__socials {
  margin-left: 20px;
  display: flex;
  gap: 4px;
  /* Abstand zwischen den Icons */
  align-items: center;
}

.header__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__socials a+a {
  margin-left: 1.66667vw;
}

.header__socials a svg {
  max-width: 100%;
  max-height: 100%;
  object-position: center center;
}


.header__socials .logo {
  width: 100%;
  /* nimmt die volle Breite vom Container */
  height: auto;
  /* behält Seitenverhältnis */
  max-width: 32px;
  /* optional: verhindert zu große Skalierung */
}

.header__menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  align-items: center;
  gap: clamp(.5rem, .7vw, 1rem);
  margin: 0;
  padding: 0;
  width: 100%;
}

.header__menu li {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  padding: 0 clamp(.3rem, .8vw, 1rem);
  white-space: nowrap;
  text-transform: uppercase;
}

.header__menu li a {
  font-size: clamp(.9rem, 1vw, 1.1rem);
  line-height: 140%;
  display: block;
  text-decoration: none;
  color: inherit;
}

.nav2 {
  position: fixed;
  top: 0;
  width: 100%;
  /* volle Breite */
  z-index: 1000;
}

/* --- Seiten-Layout & Horizontales Scrolling (Desktop) --- */
.scroll {
  z-index: 1;
  position: fixed;
  width: 100%;
}

.home-page {
  width: 700vw;
  max-height: 100vh;
  top: 0;
  left: 0;
  padding-top: 4.63542vw;
  display: flex;
}

.home-page .scrollable,
.home-page section {
  display: flex;
}

.home-page .scrollable {
  height: auto;
  flex-shrink: 0;
}

.home-page .scrollable>* {
  flex-shrink: 0;
}

.home-page section {
  position: relative;
  max-height: 100%;
}

.home-page .content {
  height: 100%;
  box-sizing: border-box;
  width: 100vw;
  padding-left: 4.27083vw;
  display: flex;
  position: relative;
}

.home-page .content__bg {
  position: absolute;
  z-index: -2;
  width: calc(100% - 4.27083vw);
  height: 100%;
  background-size: cover;
  right: 0;
  top: 0;
  pointer-events: none;
  opacity: .5;
}

/* --- Seiten-Titel (Vertikal links) --- */
.page-title,
.sticky-title {
  overflow: hidden;
  width: 4.27083vw;
  height: 100%;
  position: fixed;
  flex-shrink: 0;
  z-index: 20;
  border-right: 1px solid rgba(230, 227, 217, .3);
  box-sizing: border-box;
  background: #241f1f;
}

.page-title {
  transform: translateX(-100%);
}

.page-title.show {
  transform: translateX(0);
}

.page-title ul,
.sticky-title ul {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(-90deg) translate(-50%, -50%);
  transform-origin: center;
  display: block;
  width: auto;
  height: auto;
}

.page-title ul li,
.sticky-title ul li {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.page-title ul li.active,
.sticky-title ul li.active {
  opacity: 1;
}

.page-title ul li .title,
.sticky-title ul li div {
  font-size: 2.5rem;
  text-align: center;
  cursor: default;
}

.sticky-title {
  transform: translateX(0) !important;
  letter-spacing: .02em;
  border-left: 1px solid rgba(230, 227, 217, .3);
}

/* --- Content Spalten (Desktop) --- */
.home-page .content__left {
  width: calc(36.927vw - 4.27083vw);
  border-right: 1px solid rgba(230, 227, 217, .3);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 1.14583vw 1.08333vw;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow-y: auto;
}

.home-page .content__right {
  width: calc(100% - (36.927vw - 4.27083vw));
  padding: 1.14583vw;
  box-sizing: border-box;
  position: relative;
}

.content__right {
  overflow-y: auto;
  max-height: 100vh;
  display: block;
}

.content__right .news__blocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  /* Karten auf gleiche Höhe */
}



/* --- Spezifische Sektionen-Stylings --- */

/* Home */
.home-page .content__description {
  margin-top: 1.5vw;
  max-width: 100%;
  position: relative;
}

.home-page .content__btn-block {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  margin-top: 50px;
  margin-bottom: 5.90625vw;
}

.home__circles {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: hidden;
}

.home__circles-lines {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.home__circles-lines div {
  width: 1px;
  height: 0;
  background: rgba(230, 227, 217, .3);
  opacity: 0;
}

.home__circle {
  width: 31.66667vw;
  height: 31.71875vw;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  z-index: 2;
  background: rgba(255, 255, 255, .432);
}

.home__circle-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home__circle--left {
  left: 250%;
  transform: translateY(-50%) translateX(-95%);
}

.home__circle--right {
  z-index: 3;
  right: 250%;
  transform: translateY(-50%) translateX(95%);
}

/* Leistungen & Produkte Menü */
.home-page .content__menu {
  max-height: calc(100vh - 4.63542vw);
  overflow-y: auto;
  list-style: none;
  margin-top: 4.82292vw;
  margin-left: -1.14583vw;
  margin-right: -2.08333vw;
}

.home-page .content__menu li {
  font-size: 1rem;
  line-height: 160%;
  text-transform: uppercase;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  opacity: .9;
  padding: .5rem 1rem;
  transition: background-color .3s ease;
}

.home-page .content__menu li:hover {
  background-color: rgba(255, 255, 255, .05);
  color: var(--primary-color);
  opacity: 1;
}

.liste.hochzeit-sub {
  padding-left: 2rem;
  font-size: .97rem
}

.projects__menu li,
.leistungen__menu li {
  padding: 2% 0 1% 3%;
  font-size: 1rem;
}

#product-menu {
  max-height: none !important;
  overflow-y: visible !important;
}

#product-menu li.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Leistungen Content */
.projects__blocks {
  top: 0;
  left: 0;
  height: auto;
  overflow: auto;
  position: relative;
}

.projects__block {
  width: 100%;
  min-height: 90vh;
  overflow: visible;
}

.imgLeistung {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
  display: block;
}

/* Produkte Content */
#imageContainer {
  max-width: 100%;
  /* passt sich an die verfügbare Breite an */
  max-height: 80vh;
  /* optional: nicht höher als der Bildschirm */
  display: flex;
  align-items: center;
  justify-content: center;
}

#imageContainer img.imgpro {
  width: 70%;
  /* füllt den Container */
  height: auto;
  /* Höhe automatisch -> keine Verzerrung */
  object-fit: contain;
  /* Bild wird komplett gezeigt, ohne abgeschnitten zu werden */
  border-radius: 8px;
  /* optional: abgerundete Ecken */
}



#imageContainer img:hover {
  transform: scale(1.05);
}

/* Karten Content */
.gallery-karten {
  gap: 1rem;
  overflow: auto;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* Mobile Karussell mit Snap-Scroll */
.gallery-karten.mobile-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-karten.mobile-carousel .gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0 10px;
}

.gallery-item {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  box-sizing: border-box;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  cursor: pointer;
}

.gallery-item .caption {
  margin-top: 5px;
  font-size: .9em;
  color: #555;
  word-wrap: break-word;
}


.trennlinie {
  margin-top: 2px;
  margin-bottom: 3px;
  height: 2px;
  width: 200px;
  background-color: var(--primary-color);
}

.news__blocks {
  display: grid;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 1.5625vw 20px 20px;
  height: auto;
  gap: 20px;
}

.zoom {
  padding: 5px;
  transition: transform .2s;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.zoom:hover {
  transform: scale(1.2);
}

/* Hund Animation */
.dog-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dog-container img {
  width: 100%;
  max-width: clamp(150px, 30vw, 200px);
  border-radius: clamp(6px, 1vw, 8px);
  transition: transform .3s ease;
}

.dog-container:hover img {
  transform: scale(1.05) rotate(-1deg);
}

.speech-bubble {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%) scale(.8);
  background: #fffdf2;
  color: var(--primary-color);
  padding: clamp(8px, 2vw, 12px) clamp(14px, 4vw, 20px);
  border-radius: 25px;
  border: 3px solid #333;
  box-shadow: 4px 4px 0 var(--primary-color);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: clamp(.85rem, 2.2vw, 1.1rem);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .4s ease;
  text-align: center;
  max-width: 90vw;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #fffdf2;
  filter: drop-shadow(2px 2px 0 #000);
}

.dog-container:hover .speech-bubble {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Kontakt & Formular */
.contacts__copyright {
  margin-top: auto;
  position: relative;
}

.contact-form__container {
  background-color: rgba(209, 208, 207, .55);
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #e2dcc8;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color .3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: 0;
}

.checkbox-group {
  border: none;
  margin-bottom: 1rem;
  padding: 0;
}

.checkbox-group legend {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #e2dcc8;
}

.checkbox-group label {
  display: block;
  font-size: .9rem;
  margin-bottom: .25rem;
  color: #e2dcc8;
}

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

/* --- CTA Button & Scroller --- */
.cta1 {
  position: relative;
  margin: auto;
  padding: 12px 18px;
  transition: all .2s ease;
  border: none;
  background: 0 0;
  cursor: pointer;
}

.cta1:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50px;
  background: var(--primary-color);
  width: 45px;
  height: 45px;
  transition: all .3s ease;
}

.cta1 span {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-primary-color);
}

.cta1 svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--primary-color);
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all .3s ease;
}

.cta1:hover:before {
  width: 100%;
  background: var(--primary-color);
}

.cta1:hover svg {
  transform: translateX(0);
  stroke: #fff;
}

.cta1:active {
  transform: scale(.95);
}

.scroller {
  width: 100%;
  height: auto;
  overflow-y: scroll;
  scrollbar-color: var(--primary-color) var(--text-primary-color);
  scrollbar-width: thin;
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 28, 28, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #2a2929;
  padding: 2%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 95%;
  max-width: 100vw;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}

.modal-content img {
  display: block;
  width: 100%;
  max-width: 95vw;
  max-height: 85vh;
  height: auto;
  margin: auto;
  object-fit: cover;
}

.modal-content h3 {
  font-weight: bolder;
  font-size: large;
  margin-top: 5px;
  margin-bottom: 5px;
}

.modal-body img {
  width: 100%;
  /* nimmt volle Breite ein */
  height: auto;
  /* behält Seitenverhältnis */
  object-fit: contain;
  /* Bild nicht verzerren */
  border-radius: 6px;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  left: auto;
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  text-align: right;
  padding: 16px;
}

/* Close-Button fixiert oben rechts am Viewport, nur wenn Modal geöffnet ist */
.modal.show .close {
  position: fixed;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 2000;
  /* über Modal-Content */
}

.close:hover,
.close:focus {
  color: var(--primary-color);
  text-decoration: none;
}

/* --- Utility Klassen --- */
.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mt-5 {
  margin-top: 5rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mb-3 {
  margin-bottom: 3rem !important;
}

.visible {
  overflow: visible;
  height: auto;
}

.block {
  display: block;
}

.content__right.block {
  display: flex;
  flex-direction: column;
}

/* Basis-Burger-Button */
.burger {
  display: none;
  /* Desktop aus, wird in Media Queries angezeigt */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  /* über dem Menü-Panel */
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--primary-color);
  transition: transform .25s ease, opacity .2s ease, top .25s ease, bottom .25s ease;
}

.burger span:nth-child(1) {
  top: 14px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  bottom: 14px;
}

/* Kreuz-Animation bei aktivem Zustand */
.burger.is-active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  bottom: auto;
  top: 21px;
  transform: rotate(-45deg);
}

.media-block {
  width: 70%;
  display: flex;
  gap: 1rem;
  align-items: center;
  border: var(--background-alt-color) solid 1px;
  border-radius: 20px;
  padding: 5%;
}

.media-block__image,
.media-block__text {
  flex: 1 1 0;
}

.media-block__text h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: b;
  color: var(--text-primary-color);
  margin: 0;
  line-height: 1.2;
}

.media-block__text p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text-primary-color);
  margin: 0;
  margin-top: 0.5rem;
  line-height: 1.3;
  text-align: left !important;
  width: 100%;
  word-break: break-word;
}


/* ==========================================================================
   Responsive Styles (Nur Tablets 769–1024px)
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1180px) {

  html {
    font-size: 15px;
  }

  .home-page {
    padding-top: 10%;
    width: 700vw;
    /* gleiche Breite wie Desktop */
    max-height: 100vh;
    display: flex;
    flex-direction: row;
    /* horizontal */
    margin-top: 0;
    /* das 5% entfernen */
  }

  .home-page .scrollable,
  .home-page section {
    flex-shrink: 0;
    height: auto;
    display: flex;
  }

  .header__left {
    width: 37%;
  }

  .header__right {
    width: 63%;
  }

  #team .news__blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  #team .media-block {
    width: 100%;
  }

  .header__menu {
    display: none;
    /* statt display:none !important */
    flex-direction: column;
    position: absolute;
    top: 80px;
    /* unter dem Header */
    right: 0;
    background: var(--background-color);
    width: 70vw;
    padding: 1rem;
    z-index: 1000;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  }

  .header__menu.active {
    display: flex;
    /* so öffnet es sich */
  }

  .burger {
    display: flex !important;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
  }


}

/* Querformat (Landscape) Anpassungen */
@media screen and (min-width: 769px) and (max-width: 1180px) and (orientation: landscape) {
  html {
    font-size: 14px;
  }

  .home-page {
    padding-top: 6%;
    /* iPad Air Querformat */
  }

  .header__left {
    width: 37%;
  }

  .header__right {
    width: 63%;
  }
}

/* ==========================================================================
   Responsive Styles (Nur Smartphones)
   ========================================================================== */
@media screen and (max-width: 768px) {

  html {
    font-size: 16px;
  }

  body,
  table {
    width: 100% !important;
    box-sizing: border-box;
  }

  td,
  p,
  a,
  h2,
  h3 {
    font-size: 16px;
    line-height: 1.5 !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* --- Allgemeine Layout-Anpassungen --- */
  .home-page,
  .home-page .scrollable,
  .home-page section,
  .home-page .content {
    display: block;
    width: 100vw;
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
  }

  .modal-content {
    width: 98vw;
    max-width: none;
    max-height: 95vh;
    padding: 2%;
  }

  .modal-content img {
    width: 100%;
    max-height: 100vh;
  }

  .home-page .content__left,
  .home-page .content__right,
  .content__right {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 1rem;
    border: 0;
  }

  .scroll {
    position: static;
    padding-top: 18.66667vw;
  }

  [id] {
    scroll-margin-top: 22vw;
  }

  /* --- Header --- */
  .header__left {
    width: 60%;
  }

  .header__right {
    width: 40%;
    padding-right: 5.33333vw;
    justify-content: end;
  }

  .header__letter {
    width: 16.33333vw;
    font-size: 5.33333vw;
  }

  .header__socials {
    padding: 0 5.33333vw;
  }

  .header__letter img {
    width: 12vw;
    max-width: 60px;
    height: auto;
    padding: 0;
    display: block;
  }

  /* --- Seiten-Titel --- */
  .page-title {
    display: none;
  }

  .sticky-title {
    display: none;
    width: 100%;
    height: 13.33333vw;
    position: sticky;
    top: 18.66667vw;
    border: 0;
    border-top: 1px solid rgba(230, 227, 217, .3);
    border-bottom: 1px solid rgba(230, 227, 217, .3);
    background: #241f1f;
  }

  .sticky-title ul {
    width: 100%;
    font-size: 5.33333vw;
    position: static;
    height: 100%;
    transform: none !important;
    display: flex;
    align-items: center;
  }

  .sticky-title ul li {
    padding: 0 5.33333vw;
  }

  /* --- Burger-Menü --- */
  .burger {
    display: flex;
  }

  .header__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 18.66667vw;
    right: 0;
    background: var(--background-color);
    width: 78vw;
    padding: 1rem;
    z-index: 1000;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  }

  .header__menu.active {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  /* --- Home Sektion --- */
  .home__circle.is-mobile {
    position: static;
    width: 54.66667vw;
    height: 54.66667vw;
    margin: 2rem auto;
    transform: none;
  }

  /* --- Leistungen Sektion --- */
  #leistungen .content__right {
    display: none;
  }

  /* --- Karten Sektion --- */
  .gallery-karten {
    display: none;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    height: 90vh;
    padding: 10px 0;
  }

  .gallery-karten .gallery-item img {
    width: 158px;
    height: 100%;
    object-fit: cover;
  }

  .gallery-item {
    flex: 0 0 auto;
    max-width: 160px;
  }

  /* --- Team Sektion --- */
  #team .news__blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .5rem 0;
    width: 100%;
  }

  /* --- Kontakt & Formular --- */
  .contact-form__container {
    padding: 15px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form label,
  .btn {
    font-size: .9rem;
  }

  .media-block {
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
  }

  .news__blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Abstand zwischen den Blöcken */
    width: 100%;
  }


  /* --- Karten Sektion Smartphone --- */
  .gallery-karten {
    display: flex;
    /* sichtbar machen */
    flex-wrap: nowrap;
    /* nicht umbrechen */
    gap: 15px;
    overflow-x: auto;
    /* horizontales Scrollen */
    -webkit-overflow-scrolling: touch;
    /* sanftes Scrollen iOS */
    scroll-snap-type: x mandatory;
    /* Snap-Effekt */
    height: auto;
    /* Höhe flexibel */
    padding: 10px 0;
  }

  .gallery-karten .gallery-item {
    flex: 0 0 auto;
    /* fixe Breite */
    max-width: 160px;
    scroll-snap-align: center;
    /* Snap auf Mitte */
  }

}




.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .5rem 1rem;
  background: #333;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.category-dropdown {
  width: 90%;
  max-width: 100%;
  padding: 10px;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #333;
  color: #fff;
}




.caption {
  text-align: center;
  margin-top: .3rem;
  font-size: .9rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 28, 28, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-color-modal);
  padding: 16px;
  border-radius: 8px;
  max-width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}


/* --- Karten Sektion nur für karten-mobile.php --- */
.karten-mobile {
  margin-left: 3%;
  margin-right: 3%;
}

body.karten-mobile .gallery-karten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 3 Spalten */
  gap: 15px;
  padding: 10px;
}

body.karten-mobile .gallery-karten .gallery-item {
  width: 100%;
  box-sizing: border-box;
}

body.karten-mobile .gallery-karten .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}