/* =========================
   FONTS
   ========================= */
@font-face {
  font-family: 'FiraSans';
  src: url('ffunit.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family: breit; src: url(breit.ttf); }
@font-face { font-family: bert; src: url(bert.ttf); }




/* =========================
   GLOBAL RESET
   ========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'FiraSans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #acb8cd;
  background: #000;
}

img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
    margin-bottom: 1em; /* Abstand nach jedem Absatz */
}

/* =========================
   HEADINGS
   ========================= */
h1, h2, h3, h4, h5, h6 {
  color: #acb8cd;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1.title
{ font: normal 400% 'bert', sans-serif;
  color: #acb8cd;
  text-align:center;
  margin-bottom:0px;
  padding-bottom:0px;}

h1.sub {
  font-size: 2rem;
  font-weight: 400;
  text-transform: capitalize;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5, h6 {
  font-weight: 400;
  font-style: italic;
  color: #fff;
}

/* =========================
   LINKS
   ========================= */
a {
  color: #acb8cd;
  text-decoration: underline;
  transition: color 0.3s;
}

a:hover {
  color: #888;
  text-decoration: none;
}

/* =========================
   MAIN LAYOUT
   ========================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
  width: 70%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.video-thumb {
  display: block;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  opacity: 0.8;
}

.video-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


/* =========================
   HEADER
   ========================= */
#header {
  background: #000;
  text-align: center;
}

#logo {
  position: relative;
  background: url('../img/top.jpg') no-repeat center top;
  background-size: cover;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#logo_text h1, #logo_text h2 {
  color: #acb8cd;
}

/* =========================
   MENUBAR
   ========================= */
#menubar {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

ul#menu {
  display: flex;
  gap: 10px;
  list-style: none;
}

ul#menu li a {
  display: block;
  padding: 0.5em 1em;
  font-weight: 600;
  text-transform: uppercase;
  background: #333;
  color: #acb8cd;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

ul#menu li a:hover,
ul#menu li.selected a {
  color: #fff;
  background: #555;
}

/* =========================
   SITE CONTENT
   ========================= */
#site_content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 20px;
}

/* Sidebar */
.sidebar {
  width: 25%;
  padding: 20px;
  background: #111;
  border-radius: 6px;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li a {
  display: block;
  padding-left: 20px;
  background: url('link.png') no-repeat left center;
  color: #acb8cd;
  text-decoration: none;
}

.sidebar li a:hover {
  color: #fff;
}

/* Main content */
#content {
  flex: 1;
  padding: 0 10px;
}

article {
  text-align:center;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table th, table td {
  padding: 0.5rem;
  color: #acb8cd;
  text-align: left;
  border-bottom: 1px solid #222;
}

/* =========================
   FORMS
   ========================= */
.form_settings input,
.form_settings textarea,
.form_settings select {
  width: 100%;
  padding: 8px;
  background: #000;
  color: #555;
  border: 1px solid #555;
  border-radius: 4px;
  font-family: 'FiraSans', sans-serif;
}

.form_settings .submit {
  background: #555;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.5em 1em;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
}

.form_settings .submit:hover {
  background: #777;
}

/* =========================
   FOOTER
   ========================= */
#footer {
  background: #000;
  color: #aaa;
  text-align: center;
  padding: 1em 0;
  font-size: 0.8rem;
  border-top: 1px solid #222;
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Tablets */
@media (max-width: 1024px) {
  #site_content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 2rem;
  }

  #logo {
    height: 120px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  article {
  text-align:left;
}

  h1.title {
    font-size: 2.5rem;
  }

  h1.sub {
    font-size: 1.5rem;
  }

    #menubar ul#menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Abstand zwischen den beiden Spalten */
    padding: 0;
  }

  /* Jeder Menüpunkt nimmt ca. 48% der Breite */
  #menubar ul#menu li {
    width: 48%;
    margin-bottom: 10px;
  }

  #menubar ul#menu li a {
    display: block;
    text-align: center;
    padding: 10px 5px;
    background-color: #222; /* optional: Hintergrundfarbe */
    color: #fff;           /* Textfarbe */
    text-decoration: none;
    border-radius: 5px;
  }

  #menubar ul#menu li a:hover {
    background-color: #444;
  }

  #logo {
    height: 100px;
  }

  #main {
    width: 100%;       /* volle Breite */
    max-width: 100%;   /* max-width aufheben */
    padding: 0 10px;   /* optional etwas Innenabstand */
  }
  #main p {
    font-size: 1.2em; /* kann auf 1.3em oder 1.4em angepasst werden */
    line-height: 1.6; /* sorgt für bessere Lesbarkeit */
    text-align: left;
  }

  #main h1, 
  #main h2, 
  #main h3, 
  #main h4 {
    font-size: 1.5em; /* Überschriften skalieren */
    text-align: left;
  }
  #main h1.title {
    font-size: 2em;
    text-align: center;
  }
}