/* style.css */


/* 0) Apply border-box globally */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 1) Variable Font Definition */
@font-face {
  font-family: 'Montserrat VF';
  src: url('../fonts/Montserrat-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
}

/* 2) Base Styles */
body {
  margin: 0;
  font-family: 'Montserrat VF', sans-serif;
  font-weight: 400;
  /* ensure content isn't hidden behind fixed navbar */
  padding-top: 60px; /* match navbar height (~0.5rem+40px+0.5rem ≈ 60px) */
  color: #555;
}

h1, h2, h3, h4, h5, h6 {color: #333;}

/* 3) Navbar Container */
#topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

/* 4) Brand (Logo + Toggle) */
.nav-brand {
  display: flex;
  align-items: center;
}

/* 5) Logo */
.nav-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
}

/* 6) Hamburger Toggle (hidden by default) */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 2;
}
/* Three bars */
#nav-toggle .hamburger,
#nav-toggle .hamburger::before,
#nav-toggle .hamburger::after {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#nav-toggle .hamburger::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
}
#nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
}
/* Active state: X shape */
#nav-toggle.active .hamburger {
  background: transparent;
}
#nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
  top: -7px;
}
#nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
  top: 7px;
}

/* 7) Menu List (Desktop) */
#nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto; /* pushes menu to right */
}
#nav-menu li {
  margin-left: 1rem;
}
#nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.2s ease;
}
#nav-menu li a:hover {
  color: #2bb4c4;
}

/* 8) Mobile Styles */
@media (max-width: 600px) {
  /* Brand spans full width to push toggle right */
  .nav-brand {
    width: 100%;
    justify-content: space-between;
  }

  /* Show toggle */
  #nav-toggle {
    display: block;
  }

  /* Hide menu by default */
  #nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }
  /* Show when toggled */
  #nav-menu.show {
    display: flex;
  }
  /* Stack items vertically */
  #nav-menu li {
    margin: 0.25rem 0;
  }
}



main, footer{
  padding: 0.5rem 1rem;
}

a {color: #2bb4c4; text-decoration: none;}
a:hover {color: #1da6b6;}

a.button,
button.button {
  display: inline-block;       /* unify display */
  font-family: inherit;        /* inherit your page font */
  font-size: inherit;          /* same font size */
  line-height: 1;              /* set exact line-height */
  padding: 12px;               /* shorthand for top/right/bottom/left */
  border-radius: 3px;
  text-decoration: none;       /* remove underline on <a> */
  vertical-align: middle;      /* align nicely in text flow */
  box-sizing: border-box;      /* include padding in width/height if you set them */
}

/* reset any UA button styling */
button.button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background-color: #2bb4c4;
  color: #fff;
}
a.button {
  background-color: #2bb4c4;
  color: #fff;
}

a.button:hover,
button.button:hover {
  background-color: #1da6b6;
  color: #fff;
}

a.button .fas, 
button.button .fas {margin-right: 6px;}


.form-container {
  max-width: 500px;
  padding: 2rem;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group button {
  width: 100%;
  padding: 0.8rem;
  background-color: #2bb4c4;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.form-group button:hover {
  background-color: #1da6b6;
}

.readonly {background-color:#DFDFDF;}


/* assets/css/app.css – Card-Layout für die Trail-Liste */
.trail-list {
  display: grid;
  grid-gap: 1rem;
  /* Auf kleinen Bildschirmen eine Spalte, ab 600px zwei */
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .trail-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
.trail-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.trail-card h2 {
  margin-top: 0;
}
.trail-card-actions {
  margin-top: 0.5rem;
}
.trail-card-actions .button {
  margin-right: 0.5rem;
}

.dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 300px));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dash-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: #2bb4c4;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.dash-link i {
  margin-bottom: 0.5rem;
}

.dash-link span {
  font-weight: bold;
  text-align: center;
}

.dash-link:hover {
  background-color: #1da6b6;
  color: #fff;
}

.dashboard-overview {
  display: grid;
  gap: 1rem;
  /* ab 600px zwei Spalten, ab 900px drei Spalten */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 1rem 0;
}

.overview-card {
  background: #f9fcfd;
  border: 2px solid #2bb4c4;
  border-radius: 6px;
  padding: 0.3rem;
  text-align: center;
}

.overview-card h2,
.overview-card h3 {
  color: #2bb4c4;
  font-weight: normal;
}

.overview-card h2{
  margin: 0 0 0.2rem;	
}
.overview-card h3{
  margin: 0 0 0.5rem;	
	font-size: 1rem; 
}

.overview-value {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

/* Optional: spezielle Styles für die große Plan-Karte */
.plan-card {
  grid-column: span 1;
}
@media (max-width: 600px) {
  .plan-card {
    grid-column: span 1;
  }
}
