/* === Grundopsætning === */
body {
    margin: 0;
    font-family: arial, sans-serif;
	font-size  : 1.0em;
    background: #b30000; /* røde kanter */
    color: #333;
}
.com-content-article.item-page {
    max-width: 750px;
    margin: 0 auto;     /* centrerer */
}
/* mih */
.article-content p {
    text-align: justify;   /* lige sidemarginer */
    margin-top: 0;
    margin-bottom: 1em;
}

/* Alle afsnit EFTER det første */
.article-content p + p {
    text-indent: 1.5em;
}

/* Wrapper til alt indhold */
#wrapper {
    max-width: 1100px; /* 60% af en typisk skærm ca */
    margin: 0 auto;
    background: #fff;
    border-left: 20%; /* røde kanter kan evt ses på større skærme */
    border-right: 20%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	border-radius: 8px;   /* Juster tallet for større/mindre hjørner */
    overflow: hidden;      /* Sikrer, at indholdet ikke stikker ud af hjørnerne */	
}

/* === Header === */
#header {
    text-align: center;
    padding: 20px 0 10px 0;
    position: relative;
}
  thead {
    display: table-header-group;
  }

.header-wrapper {
    position: relative;
    display: inline-block;
	width: 100%;              /* fylder hele wrapperen */
}

.header-image {
    max-width: 1050px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: block;
	margin: 0 auto;           /* centrerer block-billede */	
}

/* === Logoer på billedet === */
.header-logo {
    position: absolute;
    top: 15%; /* afstand fra toppen af billedet */
    width: 200px; /* du kan ændre størrelsen her */
    height: auto;
    z-index: 10;
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-logo.left {
    left: 20px;
}

.header-logo.right {
    right: 20px;
}

/* Lidt elegant effekt */
.header-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Responsiv tilpasning */
@media (max-width: 768px) {
    .header-logo {
        width: 60px;
        top: 25%;
    }
}

/* === Menu === */
#mainmenu {
    display: flex;
    justify-content: center;
    padding: 10px 0; 
    margin-bottom: 20px; /* lidt luft under menu */
}

#mainmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#mainmenu li {
    display: inline-block;
}

#mainmenu a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.2s;
    background: #f5f5f5;
}

#mainmenu a:hover {
    background: #ddd;
}

/* Luft til højre og venstre på topmenu-modulet */
#topmenu {
    padding-left: 20px;
    padding-right: 20px;
}

/* === Indholdsområde === */
#content {
    padding: 30px;
}

/* === Bundmoduler === */
#bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
}

.bottom-module {
    background: #f5f5f5;
    flex: 1 1 200px;
    max-width: 280px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    min-height: 100px;
}

/* === Responsiv tilpasning === */
@media (max-width: 1024px) {
    #wrapper {
        margin: 0 5%; /* mindre margin på tablet */
    }
}

@media (max-width: 768px) {
    #wrapper {
        margin: 0 2%; 
    }

    #mainmenu ul {
        flex-direction: column;
        gap: 10px;
    }

    .bottom-module {
        max-width: 100%;
    }
}
/* Sørg for at containeren fylder hele bredden */
.maximenuckh {
    width: 100%;
    text-align: center; /* centrér indhold inde i containeren */
}

/* Gør selve listen inline-block, så text-align virker */
.maximenuckh ul.maximenuck {
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Fjern float og tvungen venstrejustering */
.maximenuckh ul.maximenuck > li {
    float: none !important;
    display: inline-block;
    vertical-align: middle;
}
.match-heading {
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: 10px;
}

.match-info {
  text-align: left;
  padding-top: 10px;
  font-weight: normal;
}

/* Header styling */
.styled-table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.4;
    background-color: #b30000; /* mørkeblå */
    color: white;
    border: none; /* fjern linjer mellem th */
    text-align: left; /* venstrestiller tekst */
}

/* Zebra-striber i tbody */
.styled-table tbody tr:nth-child(even) {
    background-color: #f7f7f7; /* lys grå */
}

/* Hover effekt for rækker */
.styled-table tbody tr:hover {
    background-color: #e0e0e0;
}

/* Ydre ramme omkring tabel samt centrering */
.styled-table,
.opponent-article {
    border-collapse: collapse;
    border: 1px solid #ccc;
	margin-left: auto;
    margin-right: auto;
	width: 85%;	
}

/* Valgfri: juster højden på alle rækker */
.styled-table thead tr,
.styled-table tbody tr {
    height: 40px; /* justér som ønsket */
}
.styled-table th {
    border: 0;
}
.styled-table th, td {
    padding: 8px;
    vertical-align: top;
    border-top: 1px solid #ddd;
    line-height: 1.5em;
    text-align: left;
}
.styled-table th.aligncenter,
.styled-table td.aligncenter {
    text-align: center;
}

.styled-table th.alignright,
.styled-table td.alignright {
    text-align: right;
}

.styled-table th.alignleft,
.styled-table td.alignleft {
    text-align: left;
}

.styled-table th a {
    color: #ffffff !important;
	text-decoration: underline;
}

.styled-table th a:hover {
    color: #dddddd !important; /* valgfri hover-farve */
	text-decoration: underline;
}
.styled-table tfoot td {
    background-color: #b30000; /* #0014aa; #005baa; samme farve som thead */
    color: white;
    text-align: center;         /* eller venstre/højre */
    padding: 10px;
    font-weight: bold;          /* fremhæver footer */
    height: 50px;
}

#opponentslist {
	width: 100% !important;
}

#playerslist {
    width: 60%;
}

#playerstats.table-responsive,

#playerstats {
    width: 100% !important;
}
#standingtable {
	width: 60%;
}

#matchstyle {
  text-align: left;
  margin-top: 5px;
  line-height: 1.8; /* kan justeres */
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 10px;
  margin-top: 10px;
  color: white;
}

.section.blue { background-color: #000080; }
.section.green { background-color: green; }
.section.red { background-color: #cc0000; }
.section.grey { background-color: grey; }

.section-title {
  font-weight: bold;
  margin-left: 5px;
  text-align: left;
}

.section-subtitle {
  font-weight: bold;
  margin-left: 5px;
  margin-top: 10px;
}

.section-content {
  text-align: center;
  margin-left: 5px;
}

/* Michael Hentrich */
a:link.bluewhite {
	color: white;
	text-decoration: underline;
}
a:visited.bluewhite {
	color: white;
	text-decoration: underline;
}
table.standingtable
{
	width: 70%;
  	margin-left: auto;
    margin-right: auto;
}
th.standingtable
	{
	margin-right: 2px;
	margin-left: 2x;
	padding-left: 2px;
	padding-right: 2px;
	}
th.standingtabler
	{
	margin-right: 2px;
	margin-left: 2x;
	padding-left: 2px;
	padding-right: 2px;
    text-align: right;
	}
td.standingtable
	{
	margin-right: 2px;
	margin-left: 2x;
	padding-left: 2px;
	padding-right: 2px;
	}
td.standingtabler
	{
	margin-right: 2px;
	margin-left: 2x;
	padding-left: 2px;
	padding-right: 2px;
    text-align: right;
	}
tr.red td
    {
    background-color:red;
	color:white;   
	}
tr.grey td
    {
    background:#808080;   
    color:white;
	}
tr.green td
    {
    background:green;   
    color: white;
	}
tr.yellow td
    {
    background:yellow;
	color: black;
	}
tr.redbold td
    {
    background-color:red;
	color:white;   
	font-weight:bold;
	}
tr.greybold td
    {
    background-color:#808080;
	color:white;   
	font-weight:bold;
	}
tr.greenbold td
    {
    background-color:green;
	color:white;   
	font-weight:bold;
	}
tr.yellowbold td
    {
    background-color:yellow;
	color:black;   
	font-weight:bold;
	}
#wrapper2 .item-page
    {
    margin: auto;
    }

.player-profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 0;
  max-width: 900px;
  text-align: left;
  margin-top: 10px;
  border-collapse: collapse;
}
.player-profile .value br {
  display: block;
  content: "";
  margin-bottom: 6px; /* justér luft her */
}

.player-profile .info-field {
  padding-right: 20px;
  word-wrap: break-word;
  max-width: 100%;
}

.profile-row {
  display: contents; /* lader grid håndtere alignment */
}

.profile-row .label {
  font-weight: bold;
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

.profile-row .value {
  padding: 4px 0;
  border-bottom: 1px solid #ddd;
  white-space: pre-line;
}

@media (max-width: 600px) {
  .player-profile {
    grid-template-columns: 1fr;
  }
  .profile-row .label {
    border-bottom: none;
    padding-bottom: 0;
  }
  .profile-row .value {
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
  }
}