/*
Theme Name: Hutter Reisen
Theme URI: https://hutter-reisen.at
Description: Passendes WordPress-Theme für den Hutter Reisen Blog
Version: 1.0
Author: Hutter Reisen
*/

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0d2b45;
  --blue-mid:    #1a4a72;
  --blue-light:  #2d7dd2;
  --gold:        #e8a020;
  --gold-light:  #f5c842;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --gray-light:  #e8ecf0;
  --gray-mid:    #8a95a0;
  --gray-dark:   #3d4a56;
  --text:        #1e2d3d;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.10);
  --shadow-md:   0 6px 24px rgba(0,0,0,.14);
  --radius:      12px;
  --radius-sm:   6px;
  --transition:  .3s ease;
  --max-width:   1180px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
p  { color: var(--gray-dark); }

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--gold); color: var(--blue-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,.4); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(13,43,69,.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: .75rem; color: var(--white); font-weight: 800; font-size: 1.3rem; }
.nav-logo .logo-placeholder {
  width: 44px; height: 44px; background: var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.nav-logo img { height: 60px; width: auto; filter: drop-shadow(1px 0 0 white) drop-shadow(-1px 0 0 white) drop-shadow(0 1px 0 white) drop-shadow(0 -1px 0 white); transition: transform .3s ease; }
.nav-logo img:hover { transform: scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500; transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.nav-burger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); display: block; }

/* ===== BLOG ARCHIVE HERO ===== */
.archive-hero {
  min-height: 42vh;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  display: flex; align-items: center;
  padding-block: 5rem 4rem;
  text-align: center; color: var(--white);
}
.archive-hero h1 { color: var(--white); margin-bottom: .75rem; }
.archive-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; margin-inline: auto; }
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}

/* ===== BLOG GRID ===== */
.blog-section { padding-block: 5rem; background: var(--off-white); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem; margin-top: 3rem;
}
.blog-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card-img { height: 200px; background: linear-gradient(135deg, var(--blue-mid), var(--blue-light)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.blog-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-card-cat {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--blue-dark);
  font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 50px;
}
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.blog-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--gray-mid); margin-bottom: .6rem; flex-wrap: wrap; }
.blog-card-body h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.blog-card-body h2 a { color: var(--text); transition: color var(--transition); }
.blog-card-body h2 a:hover { color: var(--blue-mid); }
.blog-card-body p { font-size: .88rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-size: .88rem; font-weight: 600; color: var(--blue-mid); display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--transition); }
.read-more:hover { gap: .6rem; }

.no-posts { text-align: center; padding: 4rem 2rem; color: var(--gray-mid); font-size: 1.05rem; }

/* ===== SINGLE POST ===== */
.article-hero {
  min-height: 52vh;
  background: linear-gradient(160deg, #0d2b45 0%, #1a4a72 50%, #134e5e 100%);
  display: flex; align-items: flex-end;
  padding-bottom: 4rem; padding-top: 8rem; color: white;
}
.article-hero h1 { color: white; margin-bottom: 1rem; }
.article-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .9rem; margin-top: .75rem; }
.article-meta span { display: flex; align-items: center; gap: .35rem; }

.post-thumbnail { height: 420px; background: linear-gradient(135deg, #134e5e, #2d7dd2); display: flex; align-items: center; justify-content: center; font-size: 8rem; overflow: hidden; position: relative; }
.post-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.article-wrapper { max-width: 780px; margin-inline: auto; padding-inline: 1.5rem; }
.article-body { padding-block: 3.5rem 5rem; }
.article-body p { font-size: 1.05rem; line-height: 1.85; color: #3d4a56; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.55rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--blue-dark); }
.article-body h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .75rem; color: var(--blue-mid); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--gray-dark); line-height: 1.85; }
.article-body ul li, .article-body ol li { margin-bottom: .4rem; }
.article-body a { color: var(--blue-mid); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body img { border-radius: var(--radius); margin-block: 1.5rem; width: 100%; }
.article-body blockquote {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white; border-radius: var(--radius); padding: 2rem 2.5rem;
  margin-block: 2.5rem; position: relative;
}
.article-body blockquote::before { content: '"'; font-size: 6rem; line-height: 1; color: rgba(255,255,255,.15); position: absolute; top: -.5rem; left: 1.25rem; font-family: Georgia, serif; }
.article-body blockquote p { color: rgba(255,255,255,.9) !important; font-style: italic; font-size: 1.1rem !important; position: relative; z-index: 1; margin-bottom: .5rem !important; }

.article-divider { border: none; border-top: 2px solid var(--gray-light); margin-block: 2.5rem; }

.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.article-tags a { background: var(--off-white); border: 1px solid var(--gray-light); border-radius: 50px; padding: .3rem .85rem; font-size: .8rem; color: var(--gray-dark); transition: background var(--transition); }
.article-tags a:hover { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }

.article-author-card { background: var(--off-white); border-radius: var(--radius); padding: 1.5rem; display: flex; gap: 1.25rem; align-items: center; margin-top: 3rem; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-mid), var(--blue-light)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: white; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-info h4 { margin-bottom: .2rem; }
.author-info p  { font-size: .88rem; margin: 0; }

.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue-mid); font-weight: 600; font-size: .9rem; margin-bottom: 2rem; transition: gap var(--transition); }
.back-link:hover { gap: .7rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2rem 0 4rem; }
.pagination a, .pagination span {
  width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem; border: 2px solid var(--gray-light); color: var(--text); transition: var(--transition);
}
.pagination a:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.pagination .current { background: var(--gold); border-color: var(--gold); color: var(--blue-dark); }

/* ===== NEWSLETTER ===== */
.newsletter { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); padding-block: 5rem; text-align: center; color: var(--white); }
.newsletter h2 { color: var(--white); margin-bottom: .75rem; }
.newsletter p  { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.newsletter-form { display: flex; max-width: 480px; margin-inline: auto; gap: .75rem; }
.newsletter-form input { flex: 1; padding: .75rem 1rem; border: 2px solid rgba(255,255,255,.3); border-radius: 50px; background: rgba(255,255,255,.1); color: var(--white); font-size: .95rem; font-family: inherit; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: var(--gold); }

/* ===== FOOTER ===== */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.7); padding-top: 4rem; padding-bottom: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 1.5rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background var(--transition); color: var(--white); }
.social-link:hover { background: var(--gold); color: var(--blue-dark); }
.footer-col h4 { color: var(--white); margin-bottom: 1.25rem; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col ul a { font-size: .88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .6rem; font-size: .88rem; align-items: flex-start; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: var(--gold); }

/* ===== 404 ===== */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; background: var(--off-white); }
.error-page h1 { font-size: 6rem; color: var(--gold); margin-bottom: .5rem; }
.error-page h2 { margin-bottom: 1rem; }
.error-page p  { margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--blue-dark); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-burger { display: flex; z-index: 100; }
  .newsletter-form { flex-direction: column; }
  .article-author-card { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .post-thumbnail { height: 240px; font-size: 5rem; }
}
