/* ----- RESET & BASE ----- */
:root {
  --primary-color: #f17836;
  --primary-color-hover: #b75c2c;
  --cta-light: #625a55;
  --cta-dark: #f17836;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 20px;
}

a,
a:visited,
a:active,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

p {
  margin: 0 0 16px;
  line-height: 1.4;
}

h1 {
  color: #000;
  font-size: 50px;
  line-height: 1.1;
  margin: 10px 0;
  font-family: "Segoe UI", "Segoe WP", Arial, sans-serif;
}

.text-center {
  text-align: center;
}

.grey {
  color: #858585;
}

/* ----- HEADER ----- */
header {
  text-align: center;
  box-shadow: 1px 6px 5px #999999;
  margin-bottom: 15px;
}

header>div {
  max-width: 95%;
  width: 790px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}
.header-logo img {
  width: 32px;
}

header a {
  text-align: left;
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
}

header img {
  max-height: 100px;
  padding: 16px 0;
  max-width: 90%;
}

/* ----- MAIN LAYOUT ----- */
main.article {
  flex: 1;
  line-height: 1.3;
  margin: 0 auto;
  max-width: 90%;
  width: 790px;
}

.author-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.author {
  font-size: 12px;
  color: #666666;
}

.author strong {
  color: #000000;
}

.anzeige {
  font-size: 17px;
  text-align: right;
  line-height: 1.3;
}

.impressum-link {
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

/* ----- CTA & LINKS ----- */
.article p a,
.article li a {
  color: var(--primary-color);
  font-weight: bold;
}

.cta-light {
  background: #fbe5d6;
  color: #625a55;
  font-size: 22px;
  font-weight: bold;
  line-height: 25px;
  margin-bottom: 12px;
  padding: 10px 15px;
  text-align: center;
  border: solid 2px #625a55;
}

.cta-light p:last-child {
  margin-bottom: 0;
}

.cta-button {
  background: var(--primary-color);
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 0 0 var(--primary-color-hover);
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-size: 120%;
  font-weight: bold;
  margin-bottom: 16px;
  padding: 16px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.cta-button:hover {
  box-shadow: 0 0 0 0 var(--primary-color-hover);
  transform: translateY(6px);
}

/* ----- DOB PICKER ----- */
.dobs,
.dobs-mobile {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.dobs a,
.dobs-mobile a {
  background: var(--cta-dark);
  color: white;
  font-size: 19px;
  font-weight: bold;
  margin: 2px;
  min-width: 60px;
  padding: 15px 0;
  text-align: center;
  width: calc(12.5% - 4px);
  transition: background 0.2s;
}

.dobs a:hover,
.dobs-mobile a:hover {
  background: var(--cta-light);
  color: var(--cta-dark);
}

.dobs-mobile {
  display: none;
}

.dobs-mobile a {
  width: calc(50% - 4px);
}

@media screen and (max-width: 450px) {
  .dobs {
    display: none;
  }
  .dobs-mobile {
    display: flex;
  }
}

/* ----- LIST STYLES ----- */
.article ol {
  counter-reset: ordered-list;
  margin: 0 0 16px;
  padding: 0;
}

.article ol li {
  align-items: start;
  display: flex;
  list-style: none;
  margin-bottom: 8px;
  padding: 0;
}

.article ol li::before {
  background-color: var(--primary-color);
  border-radius: 50%;
  color: #FFFFFF;
  content: counter(ordered-list);
  counter-increment: ordered-list;
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
  line-height: 23px;
  margin-right: 10px;
  padding: 5px;
  text-align: center;
  width: 33px;
}

/* ----- FOOTER ----- */
footer {
  background-color: #000000;
  color: #FFFFFF;
  font-size: 0.8em;
  margin-top: 16px;
  padding: 16px;
  text-align: center;
}

footer a {
  color: #FFFFFF;
}

footer a:hover {
  color: var(--primary-color-hover);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ----- RESPONSIVE ----- */
@media screen and (max-width: 700px) {
  h1 {
    font-size: 33px;
  }
  header {
    font-size: 75%;
  }
}
.dynamic-modal-trigger {
  cursor: pointer;
  text-decoration: underline;
}
.dynamic-modal-trigger:hover {
  color: var(--primary-color);
}
#dynamic-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, .5);
  opacity: 0;
  display: none;
  visibility: hidden;
  transition: all .4s ease;
  z-index: 9999;
  word-break: break-word;
}
#dynamic-modal.visible {
  opacity: 1;
  display: block;
  visibility: visible;
}
#dynamic-modal .container {
  background-color: #fff;
  border-radius: 30px;
  border: solid 2px var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  left: 50%;
  max-width: 90%;
  overflow: hidden;
  position: absolute;
  top: 25px;
  transform: translateX(-50%);
  transition: all .4s ease;
  width: 900px;
}
#dynamic-modal .container .content {
  overflow: auto;
  padding: 20px;
  max-height: calc(100vh - 50px);
}
.close-dynamic-modal {
  background: var(--primary-color);
  border-radius: 50%;
  border: solid 2px white;
  box-shadow: 0 0 4px black;
  color: white;
  cursor: pointer;
  height: 40px;
  padding-top: 3px;
  position: absolute;
  right: 8px;
  text-align: center;
  top: 8px;
  width: 40px;
  z-index: 9;
}