@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --bg-light: #fefcfb;
  --text-light: #222;
  --bg-dark: #1a1a1a;
  --text-dark: #f5f5f5;
  --accent: #a67c52;
  --accent-hover: #8c6239;
  --footer-dark: #111;
  --footer-light: #f8f6f4;
  --box-light: #ffffff;
  --box-dark: #2a2a2a;
  --transition: 0.4s ease;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: var(--bg-light);
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* Navbar */
nav {
  background: var(--box-light);
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition);
  border-radius: 0 0 20px 20px;
}

body.dark-mode nav {
  background: var(--footer-dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
}

/* Hero */
.hero {
  text-align: center;
  padding: 10em 2em 5em;
  background: #fff8f2;
  transition: background var(--transition);
  border-radius: 0 0 40px 40px;
}

body.dark-mode .hero {
  background: #2a2a2a;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 2em;
}

/* Button */
.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1em 2em;
  font-size: 1em;
  border-radius: 35px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* About */
.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4em;
  padding: 6em 2em;
}

.profile-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--box-light);
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: background var(--transition);
}

body.dark-mode .profile-box {
  background: var(--box-dark);
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--accent);
}

.about-text-box {
  max-width: 600px;
  background: var(--box-light);
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: background var(--transition);
}

body.dark-mode .about-text-box {
  background: var(--box-dark);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding: 4em 2em;
  max-width: 1300px;
  margin: auto;
}

.gallery-item {
  background: var(--box-light);
  border-radius: 20px;
  padding: 1em;
  transition: background var(--transition);
}

body.dark-mode .gallery-item {
  background: var(--box-dark);
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.gallery-description {
  margin-top: 0.5em;
  font-size: 1em;
}

/* Video */
#video {
  text-align: center;
  padding: 6em 2em;
}

#video video {
  width: 90%;
  max-width: 1280px;
  border-radius: 20px;
  margin: 2em 0;
}

/* Skills */
#skills {
  padding: 6em 2em;
  text-align: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
}

.skill-box {
  background: var(--box-light);
  border-radius: 20px;
  padding: 2em;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: background var(--transition);
}

body.dark-mode .skill-box {
  background: var(--box-dark);
}

.skill-category h3 {
  margin-bottom: 1em;
}

.skill-item {
  margin-bottom: 1em;
  text-align: left;
}

.skill-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.skill-progress {
  height: 14px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.4em;
}

body.dark-mode .skill-progress {
  background: #444;
}

.skill-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 1s ease;
}

/* Kontakt */
#contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  padding: 6em 2em;
  background: #fafafa;
  transition: background var(--transition);
}

body.dark-mode #contact {
  background: #1d1d1d;
}

.contact-left, .contact-right {
  background: var(--box-light);
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: background var(--transition);
}

body.dark-mode .contact-left,
body.dark-mode .contact-right {
  background: var(--box-dark);
  color: var(--text-dark);
}

.contact-left {
  max-width: 400px;
}

.contact-left p {
  margin-top: 1em;
  font-size: 1em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 1em;
  border-radius: 14px;
  border: 1px solid #ccc;
  font-size: 1em;
  background: white;
}

body.dark-mode input,
body.dark-mode textarea {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
}

/* Footer */
footer {
  background: var(--footer-light);
  color: #444;
  padding: 4em 2em;
  text-align: center;
  transition: background var(--transition), color var(--transition);
  border-radius: 40px 40px 0 0;
}

body.dark-mode footer {
  background: var(--footer-dark);
  color: var(--text-dark);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  margin-bottom: 2em;
}

.footer-box {
  min-width: 200px;
}

.footer-box a {
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin: 0.5em 0;
  transition: color 0.3s;
}

body.dark-mode .footer-box a {
  color: #d7bfa9;
}

.footer-box a:hover {
  color: var(--accent-hover);
}
