/* ==========================================================================
   PROJEKT: KDK Reisen
   DATEI:   style.css
   WEB:     reisen.kdk.de
   ========================================================================== */

/* ==========================================================================
   GLOBALE VARIABLEN
   ========================================================================== */

:root {
  --page-max-width: 1000px;
  --bg-page: #ffffff; 
  --bg-content: #ffffff;
  --text-color: #50525a; 
  --text-dark: #45474e; 
  --link-color: #006fc9; 
  --line-color: #dddddd;
  --font-main: Arial, Helvetica, sans-serif;
  --header-height: 120px;
}

/* ==========================================================================
   RESET / BASIS
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overscroll-behavior-y: none; }
html { scroll-behavior: smooth; }
body { padding-top: var(--header-height); background: var(--bg-page); color: var(--text-color); font-family: var(--font-main); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   TYPOGRAFIE
   ========================================================================== */

h1 { margin-top: 0; color: var(--text-dark); font-family: var(--font-main); font-weight: 700; font-size: 22px; }
h2 { margin-top: 0; color: var(--text-dark); font-family: var(--font-main); font-weight: 700; font-size: 20px; }
h3 { margin-top: 0; color: var(--text-dark); font-family: var(--font-main); font-weight: 700; font-size: 18px; }
h4 { margin-top: 0; color: var(--text-dark); font-family: var(--font-main); font-weight: 700; font-size: 16px; }
h5 { margin-top: 0; color: var(--text-dark); font-family: var(--font-main); font-weight: 700; font-size: 15px; }
h6 { margin-top: 0; color: var(--text-dark); font-family: var(--font-main); font-weight: 700; font-size: 14px; }
p { margin: 0 0 16px 0; color: var(--text-color); font-family: var(--font-main); font-weight: 400; font-size: 16px; }

.text10 { font-size: 10px; }
.text11 { font-size: 11px; }
.text12 { font-size: 12px; }
.text13 { font-size: 13px; }
.text14 { font-size: 14px; }
.text15 { font-size: 15px; }
.text16 { font-size: 16px; }
.text17 { font-size: 17px; }
.text18 { font-size: 18px; }
.text19 { font-size: 19px; }
.text20 { font-size: 20px; }
.text21 { font-size: 21px; }
.text22 { font-size: 22px; }
.text23 { font-size: 23px; }
.text24 { font-size: 24px; }
.text25 { font-size: 25px; }
.text26 { font-size: 26px; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  width: 100%; background: #ffffff;
  position: fixed; top: 0; left: 0; z-index: 100;
}

.header-inner {
  width: 100%; max-width: var(--page-max-width); min-height: var(--header-height); margin: 0 auto; padding: 15px 24px 8px 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); align-items: center;
  border-bottom: 1px solid var(--line-color);
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.logo-area { min-width: 0; text-align: center; }
.logo-area img { width: 190px; height: auto; margin: 0 auto; }
.logo-area p { margin: 2px 0 0 0; text-align: center; }

#header-module { min-width: 0; display: flex; align-items: center; justify-content: center; }
#header-module img { width: 170px; height: auto; margin: 0 auto; }

/* ==========================================================================
   HAUPTINHALT
   ========================================================================== */

main { width: 100%; max-width: var(--page-max-width); margin: 0 auto; background: var(--bg-content); }
main > section:not(.reisebereiche) { padding: 15px 30px 25px 30px; text-align: center; }
main > section:not(.reisebereiche) h1 { margin: 0 0 22px 0; }
main > section:not(.reisebereiche) h2 { margin: 0 0 20px 0; line-height: 1.35; }


/* ==========================================================================
   REISEBEREICHE
   ========================================================================== */

.reisebereiche {
  width: 100%; max-width: var(--page-max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reise-kachel {
  min-width: 0; padding: 12px 30px;
  display: flex; align-items: center; justify-content: center;
}

.reise-kachel img { width: 100%; max-width: 450px; height: auto; }
.reise-kachel:hover { text-decoration: none; }

.reise-kachel:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 50%;
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {
  .header-inner { padding: 12px 15px 8px 15px; }
  .reise-kachel { padding: 12px 25px; }
  .reise-kachel img { max-width: 300px; }
}

/* ==========================================================================
   SMARTPHONE
   ========================================================================== */

@media (max-width: 600px) {
  body { font-size: 15px; }
  .header-inner { padding: 12px 15px 8px 15px; }
  .logo-area img { width: 170px; }
  #header-module img { width: 150px; }
  main > section:not(.reisebereiche) { padding: 15px 15px 25px 15px; }
  .reise-kachel { padding: 10px; }
  .reise-kachel img { width: 100%; max-width: 190px; }
}

/* ==========================================================================
   POPUP
   ========================================================================== */

.popup-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.35); }
.popup-box { width: 100%; max-width: 400px; padding: 25px; background: #ffffff; border: 1px solid var(--line-color); border-radius: 4px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.popup-box h2 { margin: 0 0 15px 0; }
.popup-box p { margin: 0 0 20px 0; }
.popup-box button { padding: 9px 20px; border: 0; border-radius: 2px; background: var(--link-color); color: #ffffff; font-family: var(--font-main); font-size: 14px; cursor: pointer; }
.popup-box button:hover { opacity: 0.9; }