/* Webbaukasten v1.4 – Ferienhaus Julia
   Design: clean, mobile-first, system UI, airy cards, soft shadows, pastel background alternation.
*/
:root{
  --page-bg: #5684e601;
  --text: #1f2937;
  --muted: #4b5563;
  --card-bg: #ffffff;
  --card-radius: 18px;
  --card-shadow: 10px 14px 26px rgba(0,0,0,.50);
  --maxw: 980px;
  --pad: clamp(16px, 3vw, 28px);
  --gap: clamp(12px, 2vw, 20px);
  --accent: #01BCC4; /* user memory */
  --accent2: #FF7600;
  --ring: rgba(1, 188, 196, .28);
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.55;
}
a{ color: inherit; }
a:hover{ text-decoration: none; }

.page{
  padding: clamp(18px, 3vw, 36px) 14px 44px;
}

/* Cards */
.card{
  width: min(94vw, var(--maxw));
  margin: 0 auto var(--gap);
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--pad);
  position: relative;
  overflow: hidden;
}

/* Alternating backgrounds for separation */
.card.bg-1{ background: #5684e630; }
.card.bg-2{ background: #5684e630; }
.card.bg-3{ background: #5684e630; }

/* Typography */
h1{
  font-size: clamp(1.4rem, 2.2vw, 2.0rem);
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
h2{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: .1rem 0 1rem;
  font-weight: 600;
}
h3{
  font-size: 1.05rem;
  margin: .9rem 0 .4rem;
}
p{ margin: .45rem 0; color: var(--text); }
ul{
  padding-left: 1.1rem;
  margin: .5rem 0;
}
li{ margin: .2rem 0; }

/* Images */
img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* 2-4 columns */
.horizontal{
  display: grid;
  gap: var(--gap);
  margin: 1rem 0;
}
.horizontal[data-columns="2"]{ grid-template-columns: 1fr; }
.horizontal[data-columns="3"]{ grid-template-columns: 1fr; }
.horizontal[data-columns="4"]{ grid-template-columns: 1fr; }

@media (min-width: 860px){
  .horizontal[data-columns="2"]{ grid-template-columns: 1fr 1fr; }
  .horizontal[data-columns="3"]{ grid-template-columns: 1fr 1fr 1fr; }
  .horizontal[data-columns="4"]{ grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Card navigation arrows (only if enabled via attributes) */
.card-nav-top{
  position: absolute;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: 14px;
  z-index: 3;
}

.card-nav-bottom{
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}

.nav-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.nav-btn:focus{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.nav-btn svg{
  width: 20px;
  height: 20px;
}

/* Footer */
.site-footer{
  width: min(94vw, var(--maxw));
  margin: 18px auto 0;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
}
.site-footer a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}


/* v1.5 – horizontal arrow layout */
.card-nav{
  flex-direction: row;
  align-items: center;
}
