:root {
  --text:#1f1f1f;
  --accent:#c00000;
  --primary: #003875;
  --primary-dark:#002b5a;
  --light:#f7f7f7;
  --mid:#c9c9c9;
  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;
}

body {
  margin:0;
  padding:0;
  font-family: "Roboto", Arial, sans-serif;
  background:var(--light);
  color:var(--text);
  display:flex;
  min-height:100vh;
  letter-spacing:0.3px;
  background-image: url('../images/background_image_3.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  z-index: -1;
}

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

h1,h2,h3 {
  font-family:"Roboto Condensed", sans-serif;
  font-weight:700;
  text-transform:uppercase;
  margin-top:0;
}
h1 {
  color:white;
}
h2, h3 {
    color:var(--primary);
}

nav#side-menu {
  position:fixed;
  top:0;
  left:0;
  width:230px;
  height:100vh;
  background:var(--primary-dark);
  padding:25px 20px;
  overflow:auto;
  border-right:3px solid var(--accent);
  box-sizing:border-box;
}

nav#side-menu h2 {
  color:white;
  margin-bottom:20px;
  font-size:22px;
  letter-spacing:1px;
}

#side-menu ul {
  list-style:none;
  padding:0;
}

#side-menu a {
  display:block;
  padding:12px 15px;
  margin-bottom:10px;
  background:transparent;
  color:#e9e9e9;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  border-radius:var(--radius-sm);
  transition:0.25s ease;
}

#side-menu a:hover,
#side-menu a.active {
  background:var(--accent);
  color:white;
  transform:translateX(5px);
}

main#content {
  margin-left:250px;
  flex:1;
  padding:25px 30px;
}

header {
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  padding:30px 20px 45px;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  text-align:center;
  margin-bottom:30px;
  box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

header .logo img {
  width:250px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  
}

section {
  margin-bottom:40px;
}

.aktuality-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
}

.akt-box {
  background:white;
  padding:22px;
  border:2px solid var(--mid);
  border-radius:var(--radius-md);
  box-shadow:0 3px 8px rgba(0,0,0,0.08);
  transition:0.25s ease;
}

.akt-box h3 {
  margin-bottom:8px;
  color:var(--accent);
  font-size:19px;
}

.akt-box:hover {
  border-color:var(--accent);
  transform:translateY(-5px);
  box-shadow:0 6px 14px rgba(192,0,0,0.18);
}

.link-past {
  display:inline-block;
  padding:12px 20px;
  background:var(--accent);
  color:white;
  text-decoration:none;
  font-weight:700;
  border-radius:var(--radius-md);
  transition:0.25s ease;
  letter-spacing:0.5px;
}

.link-past:hover {
  background:#960000;
  transform:scale(1.05);
}

footer#footer-panel {
  background:var(--primary-dark);
  color:white;
  padding:30px 20px;
  font-size:14px;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  margin-top:60px;
  box-shadow:0 -6px 18px rgba(0,0,0,0.15);
}

.footer-top {
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.opening-hours td {
  padding:6px 10px;
}

table {
  border: 1px solid var(--primary);
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

th, td {
  border-bottom: 1px solid var(--primary);
  padding: 10px 12px;
  text-align: left;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: rgba(12, 88, 192, 0.05);
}

.opening-hours {
    margin: 0 0 20px 0;
}

.akt-box a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.large-photo img,
.member-photo img,
.transformation .photo-box img,
.logo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.photo-box img:hover,
.large-photo img:hover,
.member-photo img:hover,
.transformation .photo-box img:hover,
.logo img:hover {
  transform: scale(1.02);
}

.team-members-1, .team-members-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: white;
  padding: 20px;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-member:hover {
  border-color: #c00000;
  box-shadow: 0 4px 12px rgba(192,0,0,0.2);
  transform: translateY(-2px);
}

.member-photo {
  flex: 0 0 30%;
}

.member-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.member-info {
  flex: 1;
}

.member-info h3 {
  margin-top: 0;
  color: #c00000;
  font-size: 20px;
}

.member-info p {
  margin-bottom: 0;
  line-height: 1.5;
  color: #383838;
}

.photo-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}

.photo-box {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  
}

.photo-row:only-child .photo-box {
  flex: 0 0 50%;
  margin: 0 auto;
}
.contact-photo {
    display: flex;
    width: 100%;
}
.contact-photo1 {
  width: 15%;
  max-width: 400px;
  height: auto;
  margin: 0 0 40px 40px;
  flex-direction: column;
  flex-grow: 1;
  
}
  

.transformation {
  margin-bottom: 30px;
}

.transformation-photos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.transformation .photo-box {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  background: white;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.transformation .photo-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.transformation .photo-box img:hover {
  transform: scale(1.02);
}

.transformation h3 {
  margin-bottom: 10px;
  color: #c00000;
}

.large-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.large-photo img {
  width: 60%;
  max-width: 60%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.large-photo img:hover {
  transform: scale(1.02);
}

.page-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin: 20px auto;
  max-width: 1200px;
  box-sizing: border-box;
}

#mobile-menu-button {
  display:none;
}

#menu-toggle {
  display:none;
}

.photo-box iframe {
    width: 100%; 
    height: 300px; 
}

@media (max-width:900px) {
  main#content {
    padding:15px;
  }
}

#mobile-menu-button {
    z-index: 1001; 
}

#side-menu {
    z-index: 1000; 
}
@media (max-width:650px) {
  nav#side-menu {
    display: block;
    position: absolute; 
    top: 50px; 
    left: 0;
    width: 100%;
    height: auto;
    padding-top: 0;
    padding: 0;
    margin:0;

    
    
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out; 
    
    background: var(--primary-dark);
    border-right: none;
    border-bottom: 3px solid var(--accent);
  }

  #menu-toggle:checked ~ #side-menu {
    max-height: 500px; 
    overflow: auto; 
    padding-top: 20px; 
    left: 0;
  }

  nav#side-menu h2 {
      display: none; 
  }
  main#content {
    margin-left:0;
  }

  .aktuality-grid {
    grid-template-columns:1fr;
  }

#mobile-menu-button {
    background-color: var(--primary-dark);
    color: #fff;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    font-family: "Roboto", Arial, sans-serif;

}

#menu-toggle {
    display: none;
}

#side-menu {
    position: fixed;
    top: 50px;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #d0e6f8;
    transition: left 0.3s ease;
    padding-top: 20px;
    z-index: 1000;
}
#side-menu ul {
  padding: 0;
  margin:0;
}



body {
    padding-top: 50px;
}
}

@media print {
  nav,
  footer,
  #mobile-menu-button,
  #menu-toggle,
  .button,
  .btn,
  .button-primary,
  .akce-btn,
  iframe {
    display: none !important;
  }

  main#content {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: white !important;
    box-shadow: none;
  }

  *, p, h1, h2, h3, h4 {
    color: black !important;
    background: transparent !important;
  }

  h1, h2 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }
  
  table td,
  table th {
    border: 1px solid #000;
    padding: 6px;
  }

  .bubble {
    border: none;
    padding: 0;
    box-shadow: none;
  }

  a {
    text-decoration: none;
    color: black !important;
  }

  .aktuality-grid,
  .team-members,
  .services-grid {
    display: block;
  }

  section, article, .aktualita {
    page-break-inside: avoid;
  }
}

@media (max-width: 768px) {
  .team-members {
    grid-template-columns: 1fr;
  }

  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-photo {
    flex: none;
    width: 50%;
    margin-bottom: 15px;
  }
  .large-photo img {
    width: 80%;
    max-width: 80%;
}
}


#side-menu a.active {
  background: var(--accent);
  color: white;
  font-weight: bold;
  transform: translateX(5px);
}

iframe { border: none; }