/* style.css */

/* ===== Alapbeállítások ===== */
body {
  font-size: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #222;
}

h1, h2 {
  color: #b31b1b;
  text-align: center;
}

a {
  text-decoration: underline;
  color: #b31b1b;
}

a:visited {
  color: #6e0b0b;
}

a:hover {
  color: #ff5252;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111;
  color: white;
  text-decoration: none;
  display: inline-block;
}

/* ===== Navigáció és fejléc ===== */
header {
  background-color: #111;
  padding: 1rem;
  background-image: url("../img/stadion.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #ff5252;
}

/* ===== Fő tartalom ===== */
main {
  padding: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ===== Lábléc ===== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #111;
  color: white;
}

.external-links a {
  text-decoration: underline;
  color: #b31b1b;
}

.external-links a:visited {
  color: #6e0b0b;
}

/* ===== Bemutatkozás ===== */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.about-image {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 12px;
  width: 100%;
}

.about-text {
  flex: 2 1 400px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #b31b1b;
}

/* ===== Termékek ===== */
.product-gallery {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.product-item {
  text-align: center;
  max-width: 200px;
}

.product-item img,
.product-gallery img {
  width: 200px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.product-item p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* ===== Statisztikák ===== */
.statistics table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.statistics th,
.statistics td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: center;
}

.statistics th {
  background-color: #eaeaea;
}

/* ===== Videók ===== */
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.video-gallery iframe {
  width: 320px;
  height: 180px;
  border: none;
}

/* ===== Kapcsolat űrlap ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

button {
  padding: 0.75rem;
  background-color: #b31b1b;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #ff5252;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Mobilnézet ===== */
@media (max-width: 600px) {
  .product-gallery img {
    width: 100%;
  }

  .video-gallery iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Nyomtatás ===== */
@media print {
  header,
  nav,
  footer,
  .video-gallery,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  .skip-link {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  main {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  img {
    max-width: 50% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}