/* Theme/Website Information */
/*
Theme Name: Tamo_Ink
Author: Tamorello
Description: Indi
Version: 1.2
*/

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Globale Variablen */
:root {
  --primary-color: goldenrod;
  --font-main: "Roboto", sans-serif;
  --bg-dark: #060606;
  --text-light: #f4f4f4;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 48px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.container1,
.container2 {
  display: flex;
  align-items: center;
}

.container2 {
  justify-content: flex-end;
  gap: 16px;
}

.logo {
  height: 56px;
  width: auto;
}

.menu-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.menu-link:hover,
.menu-link:focus {
  color: #ffd369;
  text-shadow: 0 0 10px rgba(255, 215, 99, 0.4);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.menu-button {
  font-family: inherit;
}

.menu-link.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

main {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 120px 6vw 80px;
  overflow: hidden;
  background: #000;
}

/* Hero background via pseudo-element — keeps filter isolated to image only */
main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/background.jpeg') center / cover no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

.clock-wrapper {
  display: grid;
  place-items: center;
  gap: 10px;
  z-index: 1;
  text-align: center;
  margin-right: 4vw;
}

#analog-clock {
  display: block;
}

.clock-time {
  color: var(--text-light);
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.clock-label {
  color: var(--text-light);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
}

.impressum,
.datenschutz-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.92);
  color: var(--text-light);
  padding: 2rem;
  max-width: 720px;
  width: 92%;
  z-index: 1000;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.impressum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.close-button {
  background: transparent;
  color: var(--primary-color);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

.impressum h2,
.impressum h3,
.datenschutz-modal h2,
.datenschutz-modal h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.impressum p,
.datenschutz-modal p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

@media screen and (max-width: 900px) {
  header {
    padding: 12px 28px;
  }

  main {
    justify-content: center;
    padding: 110px 3vw 70px;
  }

  .clock-wrapper {
    margin-right: 0;
  }

  .logo {
    height: 48px;
  }

  .container2 {
    gap: 12px;
  }
}

@media screen and (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .container2 {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px 12px;
  }

  .menu-link {
    font-size: 16px;
    padding: 6px 8px;
  }

  .logo {
    height: 42px;
  }
}
