/* =============================================
   Naddi's Ceramiche — Minimal CSS
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --light:  hsl(60, 7%, 87%);
  --dark:   hsl(330, 2%, 16%);
  --white:  #fff;
  --gap:      clamp(12px, 3vw, 24px);
  --max-w:    1500px;
  --page-top: clamp(40px, 5vw, 72px);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* =============================================
   HEADER
   Layout: instagram icon left | logo center | (empty) right
   Nav: centered below logo
============================================= */

.site-header {
  border-bottom: 1px solid var(--light);
  padding: 18px var(--gap) 0;
}

/* Top bar: 3 columns */
.header-top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 14px;
}

.header-social {
  visibility: hidden;
}

.header-social a {
  display: flex;
  align-items: center;
  opacity: .85;
  transition: opacity .2s;
}
.header-social a:hover { opacity: .4; }

.header-social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--dark);
  stroke-width: 1.8;
}

.header-logo {
  display: flex;
  justify-content: center;
}

.header-logo img {
  height: 100px;
  width: auto;
}

/* Nav row: centered */
.header-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding-bottom: 14px;
}

.header-nav a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--dark);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.header-nav a:hover,
.header-nav a.active {
  border-bottom-color: var(--dark);
}

/* Mobile burger */
.header-right {
  display: flex;
  justify-content: flex-end;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .06em;
}
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: var(--gap);
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

@media (max-width: 767px) {
  .header-nav { display: none; }
  .burger { display: flex; }
}

/* =============================================
   PORTFOLIO GRID  — 3 columns, title below image
============================================= */

main { flex: 1; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 20px);
  padding: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(40px, 6vw, 96px);
}

@media (max-width: 767px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

.portfolio-item {
  display: flex;
  flex-direction: column;
}

.portfolio-item-image {
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--light);
}

.portfolio-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-item:hover .portfolio-item-image img {
  transform: scale(1.03);
}

.portfolio-item-label {
  text-align: center;
  padding: .9rem 1rem .8rem;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--dark);
}

/* =============================================
   ABOUT PAGE
============================================= */

.about-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--page-top) var(--gap) clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 767px) {
  .about-wrapper { grid-template-columns: 1fr; }
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-content { padding-top: .5rem; }

.about-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: .04em;
  margin-bottom: 2rem;
}

.about-text-block { margin-bottom: 2.5rem; }

.about-text-block p {
  font-size: .9rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: .8rem;
}
.about-text-block p:last-child { margin-bottom: 0; }

.about-lang-divider {
  width: 32px;
  height: 1px;
  background: var(--light);
  margin: 2rem 0;
}

.about-contact h2 {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}

.about-contact p {
  font-size: .85rem;
  line-height: 2;
  font-weight: 300;
}
.about-contact a { transition: opacity .2s; }
.about-contact a:hover { opacity: .55; }

.about-social { margin-top: 1.5rem; }

.about-social h3 {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: .5rem;
}

.about-social a {
  font-size: .85rem;
  font-weight: 300;
  transition: opacity .2s;
}
.about-social a:hover { opacity: .55; }

/* =============================================
   COURSE PAGE
============================================= */

.course-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--page-top) var(--gap) clamp(40px, 6vw, 96px);
  text-align: center;
}

.course-wrapper p {
  font-size: .9rem;
  line-height: 2;
  font-weight: 300;
}

/* =============================================
   FOOTER
============================================= */

.site-footer {
  padding: 2rem var(--gap);
  text-align: center;
  font-size: .7rem;
  letter-spacing: .04em;
  color: hsl(0,0%,60%);
  border-top: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.site-footer a {
  color: hsl(0,0%,60%);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.site-footer a:hover { color: var(--dark); }

.footer-instagram svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vertical-align: middle;
}

/* =============================================
   CATEGORY PAGE (Einzelne Kategorie)
============================================= */

.category-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 60px) var(--gap);
}

.category-header {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.back-link {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: .5;
  transition: opacity .2s;
}
.back-link:hover { opacity: 1; }

.category-header h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: .04em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (max-width: 767px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

.category-image-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light);
}

.category-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.category-image-item:hover img { transform: scale(1.04); }

.no-images {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  font-size: .9rem;
  font-weight: 300;
  opacity: .5;
}

/* Portfolio items are now links */
a.portfolio-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* =============================================
   KATEGORIE-SEITEN
============================================= */

.kategorie-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--page-top) clamp(24px, 4vw, 64px) clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(0,0%,55%);
  transition: color .2s;
  flex-shrink: 0;
}

.back-link:hover { color: var(--dark); }

.back-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.kategorie-header h1 {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: .04em;
}

.kategorie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 20px);
  padding: clamp(24px, 4vw, 64px);
  padding-top: 0;
  padding-bottom: clamp(40px, 6vw, 96px);
}

@media (max-width: 767px) {
  .kategorie-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .kategorie-grid { grid-template-columns: repeat(2, 1fr); }
}

.kategorie-item {
  display: flex;
  flex-direction: column;
  background: var(--light);
}

.kategorie-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.kategorie-item-caption {
  padding: .6rem .8rem;
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .03em;
  color: hsl(0,0%,45%);
}

/* Startseite: portfolio-item als Link */
a.portfolio-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

a.portfolio-item:hover .portfolio-item-image img {
  transform: scale(1.03);
}

/* Platzhalter wenn noch kein Titelbild gesetzt */
.portfolio-item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light);
}

/* Leere Kategorie */
.kategorie-leer {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 300;
  color: hsl(0,0%,55%);
}

/* =============================================
   FREIE SEITEN
============================================= */
.freie-seite-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--page-top) var(--gap) clamp(40px, 6vw, 96px);
}

.freie-seite-wrapper h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: .04em;
  margin-bottom: 2rem;
}

.freie-seite-wrapper p {
  font-size: .9rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}
