@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Protest+Revolution&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lacquer&display=swap');

/*===============================================Attribute explanation=================================================*/
.klasse {
  display: flex; /*determines how the content is dislayed: inline, block, inline-block, flex, grid, none)*/
  flex-direction: column; /*direction of the main-axis in (column, row(default))*/
  justify-content: flex-start; /*used in Flex: determins how elements are grouped and spaced on the main axis (flex-start (defaut), flex-end, center, space-around, space-between)*/
  align-items: center; /*used in flex: determines how elements are aligned in the cross-axis (flex-start. flex-end, center, stretch (default)) */
  align-content: flex-end; /*used wih flex-wrap: to control the space around wrapped rows of items, affects around the cross axis: flex-start:(stretch (default),flex end, center space between, space around)*/
  justify-items: flex-end; /* */
  flex-wrap: wrap; /* determines if the content overflows the container: nowrap, wrap, wrap-reverse*/
  flex-basis : auto;/*sets the initial size of flex items across the main axis, used in the flex item (auto(default), min, 50%, 30px*/
  flex-grow: 0; /*used in the flex item: defines how much a flex item can grow relative to the other flex items along the main axis (default 0, 1, 2)*/
  flex-shrink: 1; /*used in the flex item: defines how much a flex item can shrink relative to the other flex items (default 1, 0, 2)*/
  flex: 1 0 auto; /* shorthand for flex-grow, flex-shrink, flex-basis*/
  grid-template-columns: auto; /*used in grid: defines the number and size of columns in a grid layout (auto, 1fr, 100px, repeat(3, 1fr))*/
  grid-template-rows: auto; /*used in grid: defines the number and size of rows in a grid layout (auto, 1fr, 100px, repeat(3, 1fr))*/
  grid-template: 150px 150px / auto auto; /*shorthand for grid-template-rows and grid-template-columns*/
  row-gap: 10px; /*used in grid: defines the size of the gap between rows (default 0, 10px, 1em)*/
  column-gap: 10px; /*used in grid: defines the size of the gap*/
  gap: 10px 5px; /*shorthand for row-gap and column-gap*/
  grid-row: span 1; /*used in grid item: defines how many rows an item should span (default auto, span 1, span 2)*/
  grid-column: span 2; /*used in grid item: defines how many columns an item*/
  position: relative; /*determines how an element is positioned in the document (static (default), relative, absolute, fixed)*/
  border: solid green 3px; /*border stylen*/
  border-radius: 3px; /*Border runden. kreis= 1/2*Kant*/
  background-color: red; /* Hintergrundfarbe*/
  color: yellow; /*Schriftfarbe*/
  font-family: Arial; /*schriftart*/
  font-style: italic;
  text-align: right; /*Text horizontal verschieben*/
  margin: 5px; /*Abstand vom Border zum Nächsten element*/
  padding: 2px; /*Abstand vom Content zum Border*/
  height:200px; 
  width: 400px;
  gap: 10px; /*Raum zwischen zwei Elementen */
  z-index: 1; /*Lagenfolge bei überlappenden Elementen (default 0, höher = weiter vorne)*/
}
/*=======Fonts ============*/

.lacquer-regular {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
}

.protest-revolution-regular {
  font-family: "Protest Revolution", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.bungee-regular {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
  color:#000000
}

.montserrat-regular {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: normal;
  color:#000000
}


/*===============================================standard parts style==================================================*/
body {
  font-family:'Montserrat', sans-serif;
  margin: 0;
  background-color: #FFFFFF;
  color: #333;
}

header{
  background-color: #000000;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  padding: 20px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 15px;
  background-color: #eee;
  color: #777;
  margin-top: 20px;
}

.redline{
margin:0 0 0 0;
background-color: #AD1124;
height: 5px;
}

/*===================================Header style===========================================*/

.site-header {
	padding: 12px 16px; 
}

.logo {
  width: 80px;
  margin-right: 10px;
}

.header-inner-header {
  flex-direction: row;
 /* border: solid brown;*/
  display: flex;
  justify-content: center;    
  align-items: flex-end;      
  gap: 20px;
  text-align: center;         
}

.header-column-maker{
  margin: 2px;
  flex-direction: row;
  display: flex;
  /*border: solid purple;*/
}
.header-column-maker .header-column{
  display: flex;
  flex-direction: column;
  margin: 2px;
  /*border: solid green;*/
  gap: 10px;
  justify-content: flex-start;
}

.header-column a{
	align-self: flex-start;
	text-align: left
}


.header-brand{
    margin:2px;
    display:flex;
   /* border: solid pink; */
    flex-direction: row;        
    align-items: center;
	justify-content: flex-start;
}

.header-row-maker{
  margin: 2px;
  display: flex;            
  flex-direction: column;   
  align-items: flex-start;
  justify-content:space-around;
 /* border: solid yellow;*/
  text-align: left;
  line-height: 1 ;
}

.header-row-maker-nav{
  margin: 2px;
  display: flex;            
  flex-direction: column;   
  align-items: flex-start;
  justify-content:space-around;
 /* border: solid yellow;*/
  text-align: left;
}

.header-row-maker-nav .header-row{
  display: flex;
  margin: 2px;
/*  border: solid orange;*/
  flex-direction: row;
  gap: 10px;
  justify-content: space-around; 
  align-items: stretch;
  text-align: center;
}

.header-row-maker .header-row a{
	align-self: flex-start;
	text-align: center;
}

.header-row-maker-nav .header-row-nav{
  display: flex;
  margin: 2px;
 /* border: solid orange;*/
  flex-direction: row;
  gap: 10px;
  justify-content: space-around; 
  align-items: stretch;
  text-align: center;
}

.header-row-maker .header-row-nav a{
	align-self: flex-start;
	text-align: center;
}


/* Desktop Navigation display */
@media (min-width: 769px){
	.hidden-menu{
		display: none;
	}
}	

/* Smartphone navigation Display*/
@media (max-width: 768px){
  .header-row-maker-nav { display: none; }
  .header-row-maker-nav .header-row-nav { display: none; }
  .header-row-maker-nav .header-row-nav a { display: none; }
  .mobile-menu { display: block; }
}

/*===========================Navigation Style===========================================================*/
nav {
  margin-top: 10px;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

/*nav a:hover {
text-decoration: underline;} */

  
/*===========================hidden Menu style===============================================================*/ 
.hidden-menu[open] summary { opacity: .90; }

.hidden-menu[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
.hidden-menu summary {
  list-style: none;         /* remove standard triangle */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 6px;
  border: 2px solid white;
  background: #000;         
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  }
  
  .hidden-menu .menu-items {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: #000;
  border: 2px solid white;
  border-radius: 8px;
  padding: .6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.hidden-menu .menu-items a {
  display: block;
  text-align: center;
  padding: 10px;
  border: 2px solid white;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: #000;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.2s;
}
/*================================================button style==========================================================*/
.button {
	border: solid black 2px;
  display: flex;
  background-color: #000000;
  color: white;
  /*padding: 6px 0 6px 0;*/
  width:160px;
  height:35px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin: 2px;
  transition: background-color 0.3s;
  font-family: 'Montserrat', sans-serif;
  border: solid white 2px;
  align-items: center;
  justify-content: center;
}

.button:hover {
  background-color: #AD1124;
}

/*=================================================table style=============================================================*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

thead {
  background-color: #000000;
  color: white;
}

tbody tr:nth-child(even) {
  background-color: #eee;
}

th.sortable {
  position: relative;
  cursor: pointer;
  padding-right: 20px; /* sapce for arrows */
}

th.sortable::after {
  content: '⇅';
  font-size: 0.8em;
  color: white;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
/*========================================================figure style==============================================*/
figure {
  text-align: center;
  margin: 20px auto;
}

figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 8px;
}

/*=====================================================series of pictures style=======================================*/
.pictures {
  display: flex;
  justify-content: center;
  gap: 20px; 
  flex-wrap: wrap; /* wrap pictures on small screens */
}

.pictures figure {
  margin: 0;
  text-align: center;
}

.pictures img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}

/* ================================================ contact form style =====================================================*/
.contact-form {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: 'Montserrat', sans-serif;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  padding: 12px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #AD1124;
}

/* ================================= Match schedule style ===================================================*/
.match-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 800px;
}

.match-box {
  background-color: #F2F2F2;
  border-left: 6px solid #AD1124;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  flex: 1 1 300px;
  font-family: 'Montserrat', sans-serif;
}


.match-box h2 {
  margin-top: 0;
  font-size: 1.4em;
  color: #000;
}

.match-box .date {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.match-box .result {
  background-color: #AD1124;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 8px;
}
.match-box a {
  text-decoration: none;
  color: black;
}



/*=================================================Carousel==========================================*/
.carousel {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.carousel .viewport {
  overflow: hidden;
  background: #000;               /* black when pic s loading*/
}

.carousel .track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel .track figure {
  flex: 0 0 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; 
  box-sizing: border-box;
}

.carousel img {
  width: 100%;
  height: 520px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .carousel img {
    height: 280px;
  }
}

/* == carousel arrow navigation=== */
.carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(000,000,000,0.55);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.carousel .nav:hover { background: #AD1124; }  
.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* === carousel dots navigation === */
.carousel .dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.carousel .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #bbb;
  cursor: pointer;
}

.carousel .dots button.active {
  background: #AD1124;             
}

/* === Responsiv === */
@media (max-width: 640px) {
  .carousel img { height: 280px; }
}

/* ===================================Scorer/cards-table-Styling======================================= */
.site-section h2{ margin: 0 0 12px 0; }
.tables-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


.table-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:12px;
}
.table-card h3{ margin: 0 0 8px 0; }

.stats-table{
  width:100%;
  border-collapse: collapse;
  table-layout: fixed;       /* for mobile use */
}
.stats-table th, .stats-table td{
  padding:10px;
  border-top:1px solid #f0f0f0;
  text-align:left;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-table thead th{
  border-top:none;
  cursor:pointer;
  user-select:none;
  position:relative;
}
.stats-table thead th.sort-asc::after{
  content:"▲"; position:absolute; right:8px; font-size:12px;
}
.stats-table thead th.sort-desc::after{
  content:"▼"; position:absolute; right:8px; font-size:12px;
}

/* Mobile: tables one under another */
@media (max-width: 768px){
  .tables-grid{ grid-template-columns: 1fr; }
  .stats-table th, .stats-table td{
    padding:12px 10px;
    white-space: nowrap;     
  }
}

.toggle-more{
  margin-top:10px;
  padding:8px 12px;
  border-radius:6px;
  border:1px solid #ddd;
  background:#f7f7f7;
  font-weight:600;
  cursor:pointer;
}
.toggle-more:active{ transform:scale(.99); }


/*================================================ img stlye ===============================================*/
.with-shadow {
	box-shadow: 0 0 12px #000(173, 17, 36, 0.6);
	border-radius: 6px;
}

/* ========================= date style ========================================== */
.month-details {
  /*border:solid blue;*/
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  text-align: left;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  align-content: center;
  justify-content: center;
  min-height: 220px;
}

.day-details-home {
  /*border: solid green;*/
  flex: 0 0 220px;
  color: #FFFFFF;
  background-color: #000000;
  text-align: center;
  padding: 10px;
  margin: 5px;
  box-sizing: border-box;
  height: 220px;
  width: 220px;
}


.day-details-away {
  /*border: solid yellowgreen;*/
  flex: 0 0 220px;
  color: #ffffff;
  background-color: #AD1124;
  text-align: center;
  padding: 10px;
  margin: 5px;
  box-sizing: border-box;
  height: 220px;
  width: 220px;
}
.day-details-home p, .day-details-away p {
  margin-top: 0;       
}
.day-details-home a, .day-details-away a {
  text-decoration: none;
  color: white;
}

.match-up {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.day-details-away .match-up img{
  /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);*/
  padding: 5px 0px;
}
.day-details-home .match-up img{
  /*box-shadow: 0 4px 10px rgba(190, 15, 15, 0.777);*/  
  padding: 5px 0px;
}
.match-up p{
  margin: 30px 10px 0px 10px;
  text-align: center;
}

/* ================================= news-feed style =================================== */
.news-article {
  display: flex;
  flex-direction: column;
  border-left: 6px solid #AD1124;
  box-shadow: 0 0 12px rgba(16, 14, 14, 0.5);
  margin: 20px auto;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  max-width: 800px;
}

.news-article p {
  margin: 10px;
}

/* ================================= dialog style =================================== */

dialog {    
  margin: auto;       
  padding: 20px;
}

dialog a.button {     
  margin: 20px auto;     
  text-align: center;

}