@font-face {
  font-family: 'Advent Pro';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/advent-pro-v11-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
      url('fonts/advent-pro-v11-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('fonts/advent-pro-v11-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
      url('fonts/advent-pro-v11-latin-regular.woff') format('woff'), /* Modern Browsers */
      url('fonts/advent-pro-v11-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
      url('fonts/advent-pro-v11-latin-regular.svg#AdventPro') format('svg'); /* Legacy iOS */
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v18-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/open-sans-v18-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/open-sans-v18-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/open-sans-v18-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/open-sans-v18-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/open-sans-v18-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v18-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/open-sans-v18-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/open-sans-v18-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/open-sans-v18-latin-700.woff') format('woff'), /* Modern Browsers */
       url('fonts/open-sans-v18-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/open-sans-v18-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}

body {
  font-family: 'Open Sans', sans-serif;
}
h1,h2,h3,h4 {
  font-family: 'Advent Pro', sans-serif;
}
.teaser {
  width: 100vw;
  aspect-ratio: 700 / 389;
  background-image: url(images/lakeside-700.jpg);
  background-size: cover;
  background-position-y: center;
}
.teaser h1 {
  margin-left: 20px;
  color: white;
  text-shadow:2px 2px rgba(117, 117, 117, 1);
}
.teaser h1 small {
  display: block;
  font-size: small;
  margin-top: -8px;
}
@media only screen and (min-width: 700px) and (min-resolution: 2dppx) {
  .teaser { background-image: url(images/lakeside-1500.jpg); }
}
@media only screen and (min-width: 1500px) {
  .teaser { background-image: url(images/lakeside-1500.jpg); }
}
@media only screen and (min-width: 1500px) and (min-resolution: 2dppx) {
  .teaser { background-image: url(images/lakeside-3000.jpg); }
}
@media only screen and (min-width: 3000px) {
  .teaser { background-image: url(images/lakeside-3000.jpg); }
}

@media only screen and (min-width: 500px) {
  nav ul {
    display: flex;
    height: 16px;
    line-height: 16px;
  }
}

body {
  --background-color: rgba(255,255,255,0.9);
  margin: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a:link {
  color: #135bad;
}
a:visited {
  color: #8913ad;
}
main {
  flex: 1;
  padding: 0px 20px 60px 20px;
}

footer {
  background-color: #e3b25f;
  padding: 0px 15px;
  display: flex;
  justify-content: space-between;
}

nav {
  margin-top: 0px;
}


nav ul {
  padding: 0;
  margin: 10px;
  list-style: none;
  padding: 10px;
  color: rgba(117, 117, 117, 1);
  background-color: var(--background-color);
}
nav ul li {
  cursor: pointer;
  margin-right: 10px;
}
nav ul li:first-child {
  font-weight: bold;
}
nav ul li a:any-link {
  text-decoration: none;
}
nav ul li a:hover {
  text-decoration: underline;
}

/* ---------- seite images.php ------------- */

div.bilder {
  display: flex;
  flex-wrap: wrap;
}
div.bilder div {
  width: 320px;
  height: 400px;
  padding: 5px;
}
div.bilder img {
  width: 300px;
  height: 202px;
}

/* ---------- seite login.php ------------- */

.login-wrapper {
  max-width: 520px;
  margin: 28px auto 0;
}

.login-card {
  background: linear-gradient(160deg, rgba(227, 178, 95, 0.15), rgba(19, 91, 173, 0.1));
  border: 1px solid rgba(19, 91, 173, 0.15);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.login-intro {
  margin: 0 0 18px;
  color: #424242;
}

.login-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid #b42318;
  border-radius: 6px;
  background-color: #fff3f2;
  color: #7a271a;
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form label {
  margin-top: 8px;
  font-weight: 700;
  color: #2f2f2f;
}

.login-form input {
  appearance: none;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid rgba(117, 117, 117, 0.45);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #135bad;
  box-shadow: 0 0 0 3px rgba(19, 91, 173, 0.18);
}

.login-form button {
  margin-top: 16px;
  padding: 11px 14px;
  border: none;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #135bad, #0f487f);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
  box-shadow: 0 8px 16px rgba(19, 91, 173, 0.3);
  transform: translateY(-1px);
}

.login-form button:active {
  transform: translateY(0);
}

@media only screen and (max-width: 560px) {
  .login-card {
    padding: 22px 16px;
  }
}

/* ---------- include login-error.php ------------- */

.permission-error {
  max-width: 620px;
  margin: 26px auto;
  padding: 20px 18px;
  border-left: 5px solid #b42318;
  border-radius: 10px;
  background: linear-gradient(150deg, #fff4f3, #fffaf7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.permission-error h3 {
  margin: 0 0 10px;
  color: #8d1f13;
}

.permission-error p {
  margin: 0 0 10px;
  color: #5a2620;
}

.permission-error p:last-child {
  margin-bottom: 0;
}

.permission-error a:any-link {
  font-weight: 700;
}

/* ---------- seite index.php ------------- */

.booking-box {
  max-width: 640px;
  margin: 22px auto 26px;
  padding: 18px;
  border: 1px solid rgba(19, 91, 173, 0.2);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.92);
}

.booking-box h3 {
  margin: 0 0 12px;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.booking-form label {
  font-weight: 700;
  margin-top: 4px;
}

.booking-form input,
.booking-form select {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid rgba(117, 117, 117, 0.45);
  border-radius: 8px;
}

.booking-help {
  color: #5f5f5f;
  font-size: 0.9rem;
}

.booking-form button {
  margin-top: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background-color: #135bad;
  cursor: pointer;
}

.booking-form button:hover {
  background-color: #0f487f;
}

/* ---------- seite konfiguration.php ------------- */

.config-page {
  max-width: 980px;
  margin: 20px auto;
}

.config-intro {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 10px;
  background-color: rgba(227, 178, 95, 0.18);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.config-card {
  border: 1px solid rgba(19, 91, 173, 0.18);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.94);
  padding: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.config-card h3 {
  margin: 0 0 8px;
}

.config-type {
  margin: 0 0 8px;
  font-weight: 700;
}

.config-description {
  margin: 0 0 14px;
}

.config-description.muted {
  color: #757575;
  font-style: italic;
}

.config-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.config-actions form,
.config-new-room {
  margin: 0;
}

.config-actions button,
.config-new-room button {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.btn-edit {
  background-color: #135bad;
  color: #fff;
}

.btn-delete {
  background-color: #b42318;
  color: #fff;
}

.btn-new {
  margin-top: 16px;
  background-color: #1f7a3f;
  color: #fff;
}

.config-empty {
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(117, 117, 117, 0.12);
}
