/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

:root {
  --bg-color: #F5F0E1;
  --text-color: #3E2F1C;
  --accent-color: #C2A773;
  --sidebar-bg: #C2A773;
  --card-bg: white;
  --hover-bg: #b4995d;
  --hover-bg-toggle: #5b4d3d;
  --header-bg: #d1b87f;
  --footer-bg: #d1b87f;
  --blog-bg: #f9f1dc;
  --blog-text: #3b2e1e;
}

body.dark {
  --bg-color: #1e1b16;
  --text-color: #f1e9dc;
  --sidebar-bg: #3b2e23;
  --card-bg: #2a241f;
  --hover-bg: #5b4d3d;
  --hover-bg-toggle: #b4995d;
  --header-bg: #5a4e3a;
  --footer-bg: #4a3e2a;
  --blog-bg: #2c241b;
  --blog-text: #f2e7d8;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  background-color: var(--header-bg);
  padding: 1rem 2.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 15;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  background-color: var(--sidebar-bg);
  width: 240px;
  padding: 4rem 1.5rem 2.5rem 1.5rem;
  position: fixed;
  top: 56px;
  height: calc(100vh - 56px);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
}

nav .logo {
  display: block;
  max-width: 180px;
  object-fit: contain;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.3rem 0.2rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: var(--hover-bg);
}

#darkModeToggle {
  background: var(--hover-bg-toggle);
  color: white;
  border: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  width: auto;
  max-width: 3rem;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#darkModeToggle:hover {
  background-color: #968260;
  color: white;
}

main {
  margin-left: 240px;
  padding: 5rem clamp(1rem, 5vw, 4rem) 5rem clamp(1rem, 5vw, 4rem);
  max-width: 1000px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.4rem;
  margin-top: 2rem;
}

.coin-thumb {
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  transition: transform 0.2s ease, border-color 0.2s;
}

.coin-thumb:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.coin-thumb.active {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.coin-thumb.hidden {
  visibility: hidden;
}

/* Coin detail view */
.coin-details {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.coin-details.hidden {
  display: none;
}

.coin-flip-wrapper {
  max-width: 280px;
  perspective: 1000px;
  flex: 1;
}

.coin-flip {
  width: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.coin-flip img {
  width: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  display: block;
  background: transparent;
}

.coin-flip img.back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

.coin-flip.flipped {
  transform: rotateY(180deg);
}

.flip-button {
  margin-top: 0.6rem;
  padding: 0.4rem 0.8rem;
  border: none;
  background: var(--accent-color);
  color: white;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

	#coin-table {
	  flex: 2;
	  min-width: 300px;
	  background: var(--card-bg);
	  padding: 1rem;
	  border-radius: 8px;
	  border: 1px solid var(--accent-color);
	  box-shadow: 0 0 10px rgba(0,0,0,0.1);
	  font-size: 0.95rem;
	}

	#coin-table th {
	  text-align: left;
	  padding-right: 0.5rem;
	  font-weight: 600;
	  vertical-align: top;
	  white-space: nowrap;
	}

	#coin-table td {
	  padding-bottom: 0.4rem;
	}

	/* Footer */
	footer, #site-footer {
	  background-color: var(--footer-bg);
	  padding: 1.2rem clamp(1rem, 5vw, 4rem);
	  color: var(--text-color);
	  font-size: 0.85rem;
	  text-align: center;
	  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
	  position: fixed;
	  bottom: 0;
	  left: 0;
	  width: 100%;
	  z-index: 20;
	}

	.blog-eintrag {
	  background: var(--blog-bg);
	  color: var(--blog-text);
	  padding: 2rem;
	  border-radius: 12px;
	  max-width: 800px;
	  margin: 0 auto;
	  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	  font-size: 1.05rem;
	  line-height: 1.7;
	}

	.blog-eintrag img {
	  max-width: 100%;
	  border-radius: 8px;
	  margin: 1rem 0;
	}

	.blog-eintrag .eintrag-datum {
	  font-style: italic;
	  color: #7c6b51;
	  margin-bottom: 1rem;
	}

	.blog-nav {
	  display: flex;
	  justify-content: center;
	  gap: 2rem;
	  margin: 2rem auto 1.5rem auto;
	  max-width: 800px;
	}

	.blog-nav button {
	  background: var(--accent-color);
	  color: white;
	  border: none;
	  padding: 0.6rem 1.4rem;
	  font-size: 1rem;
	  border-radius: 6px;
	  cursor: pointer;
	  transition: background 0.2s ease;
	  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
	}

	.blog-nav button:disabled {
	  background: #aaa;
	  cursor: default;
	}

	.blog-frame {
	  width: 100%;
	  height: 75vh;
	  border: none;
	  margin: 0 auto;
	  display: block;
	}

    #blog-content {
      background: var(--blog-bg);
      color: var(--blog-text);
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      line-height: 1.7;
      font-size: 1.05rem;
    }
    
  .sidebar-submenu {
  display: none;
  flex-direction: column;
  margin-left: 0.8rem;
  margin-top: 0.4rem;
}

.sidebar-submenu a {
  font-size: 0.95rem;
  padding-left: 0.5rem;
  color: white;
  text-decoration: none;
}

.sidebar-section button.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  padding: 0.3rem 0;
  width: 100%;
}
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    