/* 
   Stefan Gnad - Theme Stylesheet (Inspired by Haus Arafna / Galakthorrö)
   Aesthetic: Minimalist, Post-Industrial, Stark Black & White
   1:1 Replication of the Original hausarafna.de Visual Style and Spacing
*/

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@900&display=swap');

html {
  height: 101%;
  background-color: #000;
}

body, table, ul {
  background-color: #000;
  color: white;
  font-size: 14px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.4em;
  list-style-type: none;
}

body {
  text-align: center;
}

/* Base Typographical Styles (matching original) */
h1 { 
  color: white; 
  font-size: 14px; 
  font-weight: bold; 
  text-align: center; 
  margin: 0;
}

h2 { 
  color: #ccc; 
  font-size: 14px; 
  font-weight: bold; 
  text-transform: uppercase; 
  margin: 0 0 15px 0;
}

h3 {
  color: white;
  font-size: 14px;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
}

h4 {
  color: #ccc;
  font-size: 13px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 8px;
}

p {
  margin: 0 0 15px 0;
}

/* Links (matching original #ccc and white hover) */
a { 
  color: #ccc; 
  text-decoration: none;
}

a:hover { 
  color: white; 
  text-decoration: none; 
}

/* Distressed Logo & Emblem Styling (Google Fonts + SVG Filter) */
/* Custom styled to match the exact physical dimensions of the original images */
.sg-emblem {
  font-family: 'League Spartan', Arial, Helvetica, sans-serif;
  font-size: 16px;       /* Slightly adjusted for geometric sans font */
  font-weight: 900;
  letter-spacing: 4px;
  color: white;
  border: 3px solid white;
  width: 130px;          /* Exact width of HA_Totenkopf.png */
  height: 43px;          /* Exact height of HA_Totenkopf.png */
  line-height: 37px;     /* Vertically center text within borders */
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  filter: url(#distress);
  user-select: none;
  padding-left: 4px;     /* Offset for letter-spacing centering */
}

.sg-title {
  font-family: 'League Spartan', Arial, Helvetica, sans-serif;
  font-size: 26px;       /* Adjusted for geometric sans font with brackets */
  font-weight: 900;
  letter-spacing: 1.5px;
  color: white;
  width: 316px;          /* Exact width of HA_HausArafna.png */
  height: 75px;          /* Exact height of HA_HausArafna.png */
  line-height: 75px;     /* Vertically center text */
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  filter: url(#distress);
  user-select: none;
  padding-left: 1.5px;   /* Offset for letter-spacing centering */
}

/* Layout Containers (matching original 1:1) */
#container { 
  background-image: none; 
  background-repeat: repeat-y; 
  margin-right: auto; 
  margin-left: auto; 
  width: 700px;          /* Exact original container width */
}

#top { 
  background-image: none; 
  text-align: center; 
  margin-top: 38px;      /* Exact original margin */
  width: 100%; 
  height: 100px;         /* Exact original height */
}

#navi { 
  background-image: none; 
  text-align: center; 
  width: 100%; 
  height: 100px;         /* Exact original height */
}

#logo { 
  text-align: center; 
  margin-top: 10px;      /* Exact original margin */
  width: 100%; 
  height: auto;
}

#logo p {
  line-height: 1.4em;
  margin: 16px 0;        /* Natural paragraph spacing */
}

#content { 
  line-height: 1.4em; 
  text-align: center; 
  margin-top: 20px;      /* Exact original margin */
  margin-bottom: 60px;   /* Exact original margin */
  padding-right: 120px;  /* Exact original padding */
  padding-left: 120px;   /* Exact original padding */
  width: auto;
}

#content img {
  max-width: 345px;      /* Exact width of the original tableaus */
  width: 100%;
  height: auto;
  margin-bottom: 0px;    /* Stacked tightly using HTML br tags, matching original */
  display: inline-block;
}

#recht { 
  line-height: 1.4em; 
  text-align: left; 
  margin-top: 20px; 
  margin-bottom: 60px; 
  padding-right: 120px; 
  padding-left: 120px; 
  width: auto;
}

/* Legal navigation at bottom */
.legal-nav {
  margin-top: 20px;
  line-height: 1.4em;
}

/* Responsive Rules for Mobile Devices (ensuring page doesn't overflow) */
@media (max-width: 700px) {
  #container {
    width: 100%;
    padding: 0 10px;
  }
  
  #content, #recht {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .sg-title {
    font-size: 24px;
    width: 100%;
    letter-spacing: 2px;
  }
}
