
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #111;
  line-height: 1.6;
}

/* Header */
.header-flex {
  background: url('img/panorama.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 100%;
  overflow-x: hidden;
}

.logo {
  height: 100px;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.8));
}

.header-text h1 {
  font-size: 3.2rem;
  font-weight: 900;
  color: white;
  letter-spacing: 1px;
  text-shadow:
    -3px -3px 5px rgba(0,0,0,0.9),
     3px -3px 5px rgba(0,0,0,0.9),
    -3px  3px 5px rgba(0,0,0,0.9),
     3px  3px 5px rgba(0,0,0,0.9);
}

.header-text h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  text-shadow:
    -2px -2px 4px rgba(0,0,0,0.85),
     2px -2px 4px rgba(0,0,0,0.85),
    -2px  2px 4px rgba(0,0,0,0.85),
     2px  2px 4px rgba(0,0,0,0.85);
}


/* Desktop menu */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #b30000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  position: relative;
}

.menu a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Dropdown submenu */
.menu .submenu {
  display: none;
  position: absolute;
  background-color: #b30000;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
  list-style: none;
}

.menu li:hover .submenu {
  display: block;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background-color: #b30000;
  color: white;
  border: none;
  font-size: 1rem;
  padding: 1rem;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    width: 100%;
    text-align: left;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu.open {
    display: flex;
  }

  .menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .menu li:hover .submenu {
    position: static;
    display: flex;
    flex-direction: column;
  }

  .menu .submenu {
    background-color: #d60000;
    padding-left: 1rem;
  }
}


/* Aktuality */
#aktuality-preview h3 {
  text-align: center;
  margin: 2rem 0 1rem;
  color: #b30000;
}

.aktuality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.aktualita {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

.aktualita .datum {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

.aktualita-foto {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin: 0.5rem 0;
}
.vice-aktualit-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.btn-vice {
  background-color: #b30000;
  color: white;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-vice:hover {
  background-color: #990000;
}


/* Footer */
footer {
  background-color: #c00;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

#vysledky-preview h3 {
  text-align: center;
  margin: 2rem 0 1rem;
  color: #b30000;
}
.uvod {
  text-align: center;
  padding: 2rem 1rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.uvod h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #b30000;
}

.uvod p {
  font-size: 1.1rem;
  color: #444;
}
.tym-nadpis {
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #b30000;
}

.zapas-stred {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.tym-jmeno {
  font-weight: normal;
  font-size: 1rem;
  color: #222;
}

.vysledek-vyrazny {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}
.zadne-zapasy {
  text-align: center;
  font-size: 1rem;
  color: #888;
  padding: 1rem 0;
}
#co-nas-ceka h3 {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #b30000;
}

.sekce-nadpis {
  text-align: center;
  margin-bottom: 2rem;
}





.event-datum {
  color: #b30000;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.event-nazev {
  font-size: 1.1rem;
  color: #b30000;
  margin-bottom: 0.5rem;
}

.event-misto,
.event-popis {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}
#social-follow h3 {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #b30000;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icons img {
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}
.kontaktni-dlazdice-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.kontaktni-dlazdice {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}
.kontaktni-dlazdice:hover {
  transform: scale(1.02);
}

.kontaktni-dlazdice h4 {
  color: #c00;
  margin-bottom: 0.5rem;
}
.sekce-nadpis {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #b30000;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}
.sekce-nadpis2 {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #b30000;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
}
.parket-hlavicka {
  background-image: url('img/parket.jpg');
}
#parket-header {
  background: url('img/parket.jpg') no-repeat center 75%;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}
#aktuality {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.aktualita {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.aktualita:hover {
  transform: translateY(-4px);
}

.aktualita h4 {
  color: #c00;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-align: center !important;
  width: 100%;
}

.aktualita p {
  margin: 0.5rem 0;
}

.aktualita .datum {
  text-align: right;
  font-size: 0.9rem;
  color: #777;
}

.aktualita-foto_2 {
  display: block;
  margin: 1rem auto;  /* zarovná obrázek horizontálně na střed */
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.oddelovac {
  display: none; /* oddělovač už není potřeba s dlaždicemi */
}
/* Výsledky - hlavní kontejner */
#vysledky {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Jedna dlaždice = zápas */
.zapas {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.zapas:hover {
  transform: translateY(-4px);
}

/* Řádek s týmy a výsledkem */
.zapas .radek {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.zapas .tym {
  font-weight: bold;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.zapas .tym.habry {
  color: #c00;
}

.zapas .domaci {
  text-align: right;
}

.zapas .hoste {
  text-align: left;
}

.zapas .vysledek {
  font-weight: bold;
  color: #000;
  font-size: 2rem;
  text-align: center;
  min-width: 90px;
}

/* Druhý řádek - info */
.zapas .info {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.podnadpis {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Mobilní zobrazení */
@media (max-width: 600px) {
  .zapas .radek {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .zapas .domaci,
  .zapas .hoste,
  .zapas .vysledek {
    text-align: center;
  }

  .zapas .vysledek {
    min-width: unset;
  }
}
/* Foto týmu */
.kontaktni-foto-wrapper {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 900px;       /* zmenší „dlaždici“ fotky */
  margin-left: auto;
  margin-right: auto;
}

.kontaktni-foto {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-height: 400px;
  object-fit: cover;
}

/* Styl jednoho člena týmu */
.clen {
  width: 280px;     /* fixní šířka */
  height: 180px;    /* fixní výška */
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease;
}


.clen:hover {
  transform: translateY(-4px);
}

.clen strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #c00; /* červená barva jména */
}


/* Mobilní */
@media (max-width: 600px) {
  .clen-wrapper {
    justify-content: center;
  }
}

.clen-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}
/* FOTOGALERIE */

.galerie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}


.galerie {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galerie h3 {
  color: #c00;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
}

.galerie p {
  margin: 0.5rem 0;
}

.galerie .datum {
  font-size: 0.85rem;
  color: #777;
  text-align: right;
  margin-top: 0.5rem;
}

.galerie a.album-link {
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background-color: #c00;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

.galerie a.album-link:hover {
  background-color: #a00;
}


.galerie .fotky {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
  justify-content: center;
}

.galerie .fotky img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

/* ✅ Efekt náhodného natočení */
.galerie .fotky img:nth-child(3n) {
  transform: rotate(-2deg);
}

.galerie .fotky img:nth-child(3n+1) {
  transform: rotate(1.5deg);
}

.galerie .fotky img:nth-child(3n+2) {
  transform: rotate(-1deg);
}
/* pro historii */
.obsah-stranky {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.text-center {
  text-align: center;
  font-size: 1.1rem;
}
/* Fotka z Google tabulky */
/*#foto img {
  max-width: 900px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}*/

#foto-blok {
  max-width: 900px;
  margin: 2rem auto;
  text-align: center;
}

.foto-nadpis {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #b30000;
}
/* parket */
/* Odstavec s úvodním popisem parketu */
.popis-parketu {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

/* Popisek pod formulářem */
.form-popis {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}
.grid-obsah {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.dlazdice {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-left: 6px solid #c00;
}
.udalosti-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.udalost-dlazdice {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.udalost-obsah {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 3fr;
  gap: 1rem;
  align-items: center;
  text-align: left;
}

.udalost-polozka {
  font-size: 0.95rem;
  color: #333;
  word-break: break-word;
}

.udalost-polozka:first-child {
  font-weight: bold;
  color: #c00;
}

@media (max-width: 768px) {
  .udalost-obsah {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .udalost-polozka::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #444;
  }
}
.cenik-dlazdice {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cenik-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.cenik-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: none; /* žádné čáry mezi řádky */
  font-size: 1rem;
  color: #111;
}

.cenik-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.formular-dlazdice {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.formular-pole {
  margin-bottom: 1rem;
}

.formular-pole label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.formular-pole input,
.formular-pole textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.formular-tlacitko {
  text-align: right;
}

.formular-tlacitko button {
  background-color: #b30000;
  color: white;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formular-tlacitko button:hover {
  background-color: #990000;
}

.form-popis {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #555;
}
@media (max-width: 600px) {
  .formular-dlazdice {
    margin: 0 1rem;
  }
}
@media (max-width: 600px) {
  .form-popis {
    padding: 0 1rem;
  }
}
.sponzori-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.sponzor-box {
  width: 280px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.sponzor-box img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  margin-top: 0.5rem;
}
/* --- ČISTÝ RESET PRO OBRÁZKY --- */
img { max-width: 100%; height: auto; }

/* Dlaždice s týmovou fotkou nesmí mít pevnou výšku ani aspekt */
.tym-foto {
  height: auto !important;
  aspect-ratio: auto !important;
  max-height: none !important;

  /* pokud je rodič grid/flex, zruš vertikální stretch */
  align-self: start !important;
  justify-self: center;

  max-width: 900px;
  margin: 0 auto 2rem;
}

/* Obrázek drží jen šířku, výška se dopočítá = žádná deformace */
.tym-foto img {
  display: block;
  margin: 0 auto;
  width: 100% !important;
  height: auto !important;
  object-fit: initial !important;   /* žádný cover/contain */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media (max-width: 600px) {
  .tym-foto {
    padding-left: 2rem;
    padding-right: 2rem;   /* odsazení po stranách jen na mobilu */
  }
}
.tym-foto:empty { display: none; }

.zadne-akce {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin: 1rem 0;
}





