/* ====
   ROOT VARIABLES
=========================== */
:root {
  --navy: #1d3365;
  --orange: #c85f0e;
  --bg: #f8f8f8;
  --text: #333333;
  --muted: #b1c0ce;
  --panel: #ffffff;
  --line: #e8e8e8;
  --move: #c1e9f6;
}

/* 
   GLOBAL RESET & BOX MODEL
=========================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* 
   BODY STYLING
=========================== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
}

/* 
   LINKS
=========================== */
a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  /* text-transform: lowercase; */
  filter: brightness(1.9);
  color: #c85f0e;
}

/* 
   CONTAINER
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  
}

/* 
HEADER
=========================== */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 9;
}

/* 
NAVBAR
=========================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px
}

.glanzwerk-logo:hover {
  filter: brightness(1.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Abstand zwischen den Logos */
}
.brand img {
  height: 40px;
  width: auto;
  padding-left: 1px;
}

.brand img:hover {
  transform: scale(1.1) translateY(-2px);
  transition: transform 0.3s ease;
}


@media (max-width: 400px) {
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  nav a {
    font-size: 1rem;
  }
}

/*
.brand .title{
  font-weight:700;
  letter-spacing:.5px;    
  text-transform:uppercase  
}                               

.brand .title:hover {
  transform: scale(1.1) translateY(-2px);
  transition: transform 0.3s ease;
  }                                        
   */
  

  .glanzwerklogo .glanzwerkwien-logo{
    margin-left: 2rem;
  }
                            
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

nav a {
  color: #fff;
  font-weight: 500
}

.nav a.btn {
  background: var(--orange);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a.active {
  color: rgb(237, 119, 29);
  font-weight: bold;
}

@media (max-width: 550px) {
  nav ul {
    display: inline-block;
  }
}

/* ===========================
HERO SECTION
=========================== */
.hero {
  padding: 66px 0;
  /*background: linear-gradient(135deg, #00264d, var(--navy));*/
  background-image: url('assets/img/gallery/cover_02.jpg');
  background-size: cover;
  color: #fff;
  text-align: center
}

.hero h1 {
  font-size: 2.1rem;
  margin: 8px 0
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.4em;
  }
}

@media (max-width: 450px) {
  .hero h1 {
    font-size: 0.9em;
  }
}

.hero p {
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.input {
  width: 200px;
  height: 25px;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.inputN {
  width: 404px;
  height: 80px;
  gap: 10px;
  margin-bottom: -11px;
}

@media (max-width: 450px) {
  .input {
    width: 25em;
  }
}

@media (max-width: 450px) {
  .inputN {
    width: 25em;
  }
}

.btn2 {
  width: 160px;
  height: 25px;
  display: inline-block;
  padding-bottom: 1.7em;
  /*
  vertical-align: middle;
  text-align: center;
  */
  border: 2px solid var(--orange);
  color: var(--bg);
  border-radius: 4px;
  margin-top: 0.9em;
  background: var(--navy);
  transition: transform 0.5s ease;
}

.btn2:hover {
  transform: translateY(-2px);
  filter: brightness(1.5);
}

/* 
   BUTTON STYLES
=========================== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border: 3px solid var(--orange);
  color: var(--orange);
  border-radius: 5px;
  background: transparent;
  transition: transform 0.5s ease;
}

.btn:hover {
  transform: translateY(-5px);
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    height: auto;
  }
}

/* 
SECTION & HEADINGS
=========================== */
.section {
  padding: 48px 0;
}

.section h2 {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-shadow: 1px 1px 2px #926f54;
}

/* ===========================
CARD LAYOUT
=========================== */
/* Standard: 3 Spalten */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
}

/* Bis 1000px: 2 Spalten */
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Bis 682px: 1 Spalte */
@media (max-width: 682px) {
  .cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 553px) {
  .cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  height: auto;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  color: white;
  background-attachment: fixed;
  border: 0px solid var(--line);
  border-radius: 4px;
  /*background-color: #f0f0f0;  Falback*/
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 rgba(0, 0, 0, 0.03);
}

.addmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 600px) {
  .addmap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

  .map {
    border-radius: 3px;
    padding-top: 20px;
  }
  
.card-content {
  position: relative;
  bottom: 0;
  background: rgba(92, 86, 86, 0.2);
  /* halbtransparentes Overlay */
  width: 100%;
  padding: 5px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  
}

.card.express {
  background-image: url('assets/img/gallery/photo_14.jpg');
  background-size: cover;
  background-position: 50%;
}

.card.standard {
  background-image: url('assets/img/gallery/photo_15.jpg');
  background-size: cover;
  background-position: 60%;
}

.card.intensiv {
  background-image: url('assets/img/gallery/photo_12.jpg');
  background-size: cover;
  background-position: 30%;
}

/* 
   PRICE LIST
=========================== */
.price-list {
  background-image: url('assets/img/gallery/cover_02.jpg');
  background-size: cover;
  background-position: left;
  /*filter: blur(1px);
  */
}
.price-list p {
  color: var(--orange);
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: none;
}

.price {
  font-weight: bold;
  color: var(--line);
}

.note {
  color: var(--line);
}

.note1 {
  color: var(--navy);
}

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

/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
}

.logo-footer {
  height: 60px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.logo-footer:hover {
  filter: brightness(1.5);
}

@media (max-width: 600px) {
  .logo-footer {
    height: 80px;
    margin-top: 0;

  }
}

@media (max-width: 400px) {
  .logo-footer {
    height: 90px;
    margin-top: 0;
  }
}

/* ===========================
   GALLERY GRID
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-grid a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-grid a:hover img {
  transform: scale(1.02);
}

/* Responsive Gallery */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding-top: 5%;
  
}

@media (max-width: 600px) {
  .lightbox img {
    padding-top: 40px;
  }
}
@media (max-width: 400px) {
  .lightbox img {
    padding-top: 150px;
  }
}

.lightbox-close {
  width: 6px auto;
  height: 0;
  position: fixed;
  margin-top: -32em;
  right: 1.1em;
  background: var(--navy);
  color: #fff;
  padding: 80px 5px 0 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
@media (max-width: 600px) {
  .lightbox-close {
    margin-top: 29em;
  }
}
@media (max-width: 400px) {
  .lightbox-close {
    margin-top: 140%;
  }
}
/* ===========================
   BEFORE & AFTER SECTION
=========================== */
.before-after {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
  width: 100%;
  padding: 0; /* überschreibt card-padding */
  overflow: visible; /* zeigt alle Bilder */
}
@media (max-width: 600px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}

.before-after img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* 
   Werbefläche SECTION
 */
.section {
  padding: 40px 0;
}

.price-list {
  flex: 2;
  min-width: 300px;
}

.ad-space {
  flex: 1;
  min-width: 250px;
  background-color: #f9f9f9;
  padding: 2px 15px;
  border-left: 2px solid #ddd;
}

.ad-box {
  background-color: #4eb0ed;
  border: 1px dashed #aaa;
  padding: 18px;
  margin-top: 4em;
  margin-bottom: 4em;
  text-align: center;
  font-style: normal;
  /* Animation hinzufügen */
  animation: backgroundPulse 8s infinite alternate;
}

/* Keyframes für Farbverlauf */
@keyframes backgroundPulse {
  0% {
    background-color: #46a7e2;
  }

  50% {
    background-color: #38e35d;
  }

  75% {
    background-color: #cbec3b;
  }

  100% {
    background-color: #f3511f;
  }
}

.ad-rotator {
  position: relative;
  margin-top: 1em;
  height: 220px;
  overflow: hidden;
}

.ad-message {
  position: absolute;
  margin-top: 0.1em;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  font-size: 1.7em;
  text-align: center;
  color: #1d3365;
}

.ad-message.active {
  opacity: 1;
}

.ad-banner {
  text-align: center;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
}

.ad-banner img {
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0d4872;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

/*Zusatzinfo Leistungsdetails*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1.5rem;
  border: 2px solid #333;
  border-radius: 8px;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal h3 {
  margin-top: 0;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.modal-close {
  background-color: #081c8c;
  /* Orange Hintergrund */
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: #4177cf;
  /* Dunkleres Orange beim Hover */
}

.info-button {
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.info-button:hover {
  background-color: #005fa3;
}

main {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

